------------------------------------------------------------------------ r4336 | helixhorned | 2014-02-16 11:16:06 -0800 (Sun, 16 Feb 2014) | 7 lines Lunatic: add engine.saveLookupDat() and document, related tweaks. - Mapster32: before loading LOOKUP.DAT, set palookup[0][239]=239 to make an identity map of the base shade table's shade 0 - Rewrite color index remapping case of makepalookup() for clarity BUILD_LUNATIC. ------------------------------------------------------------------------ r4335 | helixhorned | 2014-02-16 11:16:05 -0800 (Sun, 16 Feb 2014) | 8 lines In loadlookups(), look for gap of 4 consecutive unused pals for fog pals. As opposed to the previous way, where the first fog pals was +1, where is the first byte value of LOOKUP.DAT. This allows to pack e.g. lookups [1 .. 25] and [30 .. ] into LOOKUP.DAT and have fog pals be generated at pals [26 .. 29] (i.e. the additional lookups don't shift the fog pals, making user maps depending on these numbers not look as intended.) ------------------------------------------------------------------------ r4334 | helixhorned | 2014-02-16 11:16:03 -0800 (Sun, 16 Feb 2014) | 4 lines Factor out common parts of loading LOOKUP.DAT into engine.c:loadlookups(). Also, error if didn't read enough data and account for TITLE and REALMS swap between basepal number and on-disk order (sigh). ------------------------------------------------------------------------ r4333 | helixhorned | 2014-02-16 11:16:01 -0800 (Sun, 16 Feb 2014) | 7 lines Lunatic: rewrite shadexfog.create_128_trans to allow creating fewer tables. It must be a power of two in [2 .. 128]. Rewrite test/sprite_access.con's liztroop example to account for that. Also, add function shadexfog.create_trans() which aceepts a function (r,g,b,R,G,B) -> blended (r,g,b) and rewrite shadexfog.create_additive_trans() in terms of it. ------------------------------------------------------------------------ r4332 | helixhorned | 2014-02-16 11:15:59 -0800 (Sun, 16 Feb 2014) | 3 lines Lunatic: in shade table 'remap16' method, allow sparse table, document it. Add shadexfog.createremap() convenience function. ------------------------------------------------------------------------ See http://svn.eduke32.com/listing.php?repname=eduke32 for more details.