Subversion Repositories eduke32

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
4343 2772d 23h hendricks266 /polymer/eduke32/ Build system: Detect the SVN revision and generate rev.h directly from the Makefile, if applicable.  
4341 2772d 23h hendricks266 /polymer/eduke32/ Further optimize our SDL_Renderer for 8-bit by making the SDL_Texture SDL_TEXTUREACCESS_STATIC, saving some RAM without any loss of functionality.  
4340 2773d 5h terminx /polymer/eduke32/ Fix texcache  
4339 2773d 5h terminx /polymer/eduke32/ Indicate MSVC in build string  
4338 2775d 11h helixhorned /polymer/eduke32/ engine.c: always setup blending table whenever drawing translucent objects.

BUILD_LUNATIC.
 
4337 2775d 11h helixhorned /polymer/eduke32/ Lunatic: engine.setupDebugBasePal(), auto-detect 2nd+ shadexfog.translate().

engine.setupDebugBasePal() set up the water base palette such each of the first
15 "ramps" of 16 consecutive colors has a single, "representative" color. For
example, color indices 0-15 and black, 16-31 are dark gray.
In shadexfog.lua, list remappings from LOOKUP.DAT that are expressible as
remappings of 16-tuples.
 
4336 2778d 12h helixhorned /polymer/eduke32/ 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.
 
4335 2778d 12h helixhorned /polymer/eduke32/ 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 <numlookups>+1,
where <numlookups> is the first byte value of LOOKUP.DAT. This allows to
pack e.g. lookups [1 .. 25] and [30 .. <lastpal>] 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.)
 
4334 2778d 12h helixhorned /polymer/eduke32/ 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).
 
4333 2778d 12h helixhorned /polymer/eduke32/ 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.
 
4332 2778d 12h helixhorned /polymer/eduke32/ Lunatic: in shade table 'remap16' method, allow sparse table, document it.

Add shadexfog.createremap() convenience function.
 
4331 2781d 15h helixhorned /polymer/eduke32/ Lunatic: in engine.savePaletteDat(), open file in binary mode. BUILD_LUNATIC.  
4329 2782d 10h helixhorned /polymer/eduke32/ Lunatic: disallow saving map-text files in Mapster32 for now.  
4328 2782d 10h helixhorned /polymer/eduke32/ Amend r4318: Lunatic doesn't need the safety check.  
4327 2783d 13h terminx /polymer/eduke32/ Support "r_windowpositioning" in SDL builds.  
4326 2783d 23h hendricks266 /polymer/eduke32/ MSVC: Set up support for SDL2. DONT_BUILD.  
4325 2784d 0h terminx /polymer/eduke32/ Fix 64-bit MSVC builds. DONT_BUILD.  
4324 2784d 1h hendricks266 /polymer/eduke32/ Fix 32-bit MSVC builds. DONT_BUILD.  
4322 2784d 20h hendricks266 /polymer/eduke32/ Networking updates.
- Added preprocessor value NETVERSION, to be incremented in the source whenever changes are made to the network protocol.
- Implemented proper server-side version verification of all clients upon connection.
- Implemented connection refusal when we reach MAXPLAYERS. (Should be expanded to implement server player caps.)
- Protected against OOB array accesses if an invalid player id is received.
- Renamed all "Recieve" to "Receive".
 
4321 2784d 20h hendricks266 /polymer/eduke32/ Fix warnings when building in C++11 mode, i.e. with CPLUSPLUS=1 CUSTOMOPT="--std=gnu++11".  

Show All