Subversion Repositories eduke32

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
5039 2185d 19h hendricks266 /polymer/eduke32/source/lunatic/lunatic_game.c CON: Add "resetplayerflags". Flag 1 means "don't ask the user if they want to load".  
4766 2283d 17h hendricks266 /polymer/eduke32/source/lunatic/lunatic_game.c Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD.  
4491 2463d 21h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Bye, bye, B*alloc(), all hail X*alloc()! Replace large portion of the calls...

... and cull code that is dead with the X*alloc() versions since they never
return NULL on requesting memory.

Use something like
git grep '[^Xx]\(m\|c\|re\)alloc *('
and
git grep '[^Xx]strdup *('
to see places where I left the B*alloc() calls intact.

BUILD_LUNATIC.
 
4286 2582d 0h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: Fix compilation of C++ build, but not starting up yet.

BUILD_LUNATIC.
 
4236 2613d 10h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: add 'engine' module, currently allowing to create custom shade tables.

Available in the game and editor. Provide test/shadexfog.lua, containing a
function to creating a set of 32 shade tables corresponding to different shades
of the same fog palookup table, together with some tests and convenience
functions.

Also,
- Add gv.LUNATIC_CLIENT{,_EDUKE32,_MAPSTER32}
- Add LUNATIC_FIRST_TIME in the global env for the game
- defs_m32.lua: add reload() convenience function
- Failed attempt at recreating the base shade table. It is NOT a linear ramp
of the base palette colors to (0,0,0). That is, it's not created by
build/util/transpal.exe!
 
4178 2646d 0h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: slightly tweak the event/actor times printout when exiting.  
4134 2669d 22h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: add 'lua' OSD command, permitting to execute arbitrary code.

That is, everything that would be possible via scripting.
 
4119 2678d 0h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c LunaCON: very primitive gamevar handling logic for {save,load}mapstate.  
4118 2678d 0h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c LunaCON: in {save,load}mapstate, warn that saving/restoring gamevars is NYI.  
4112 2685d 9h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c LunaCON: implement NODEFAULT flag (1024) as session variables.

This is in contrast to C-CON, where the implications are not clearly obvious.
See this discussion/monologue:
http://forums.duke4.net/topic/955-eduke32-scripting/page__view__findpost__p__159613

Currently not implemented for session gamevars:
- per-player, will be made a global one instead
- per-actor, will be made a plain per-actor one instead

DONT_BUILD.
 
4107 2689d 2h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: make it possible to build with LuaJIT 2.1, add -Lopts=profile there.  
4000 2755d 6h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: prepare Makefiles for synthesis build.

- libs and headers are expected in platform/Windows/* (not there yet)
- prefix Lua #includes with luajit-2.0/
- build bytecode objects with absolute path name (used for debug info)
 
3948 2784d 0h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: call G_ShowView() using the Lua C API and not through the FFI.

G_ShowView() may call events. Ouch!
 
3946 2784d 0h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: output timing results to CSV file, don't time unreg'd events/actors.

The base name is taken from the environment variable LUNATIC_TIMING_BASEFN,
which is suffixed with .actors.csv and .events.csv.
 
3932 2793d 2h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: partially fix LTO=1 build with GCC.

Having to tag these few variables and functions as ATTRIBUTE((used))
seems sensible, but what follows is just strange. OSD_Printf? headspritesect?
 
3821 2830d 2h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: add actor.delete() and various 'length' methods to geom.vec3/ivec3.  
3790 2839d 2h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c LunaCON: fix Lua->CON line translation by recreating the line info, too.  
3788 2839d 2h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: accept any number of *.lua modules on the command line.

There's no option letter for loading them, and the extension is checked
case sensitively. Lua modules are loaded after CON translated to Lua.
Also remove -testlua option.
 
3646 2883d 4h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c LunaCON: gen. cleaner code, make actor[].movflag internal, update listglobals.sh  
3629 2888d 2h helixhorned /polymer/eduke32/source/lunatic/lunatic_game.c Lunatic: chaining of actor callback functions.

For events and actors, a flag can be now passed whether to chain the new
function at the beginning or end of an already existing one, or to replace
it entirely.
Also, for the translator, add option -fno-error-nostate, disabled by default.
 

Show All