Subversion Repositories eduke32

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
4977 2285d 21h hendricks266 /polymer/eduke32/source/lunatic/dynsymlist CON: Add undefinevolume, undefineskill, and undefinelevel.  
4972 2286d 8h helixhorned /polymer/eduke32/source/lunatic/dynsymlist CON: Amend retrieval of STR_*TIME for qgetsysstr, fixing LunaCON and possible oob.

- Add declarations of C functions to defs.ilua, names to dynsymlist,
fix typo in con_lang.lua, ffi.string() calls in control.lua
- Assert that G_LastMapInfoIndex() is always called with ud.last_level >= 1.
(A stricter requirement than necessary to prevent follow-up oob accesses, but
logically the most meaningful.)
- In G_PrintParTime() and G_PrintDesignerTime(), return "<invalid>" if the above
does not hold. This can happen from EVENT_NEWGAME, for example. Add a test to
lunatic/test/qgetsysstr.con. DONT_BUILD.
 
4928 2309d 3h hendricks266 /polymer/eduke32/source/lunatic/dynsymlist CON: Add new commands "getmusicposition" and "setmusicposition" that operate on the playback position of the current music track.

// Example: Switch between tracks like radio stations.
getmusicposition temp
starttrackvar next_music_track
setmusicposition temp

Only implemented for Ogg Vorbis, FLAC, and XA. Consult the devs before using these commands.
 
4814 2343d 5h helixhorned /polymer/eduke32/source/lunatic/dynsymlist LunaCON: expose more members, properly handle setting ud.screen_size.

BUILD_LUNATIC.
 
4731 2379d 5h helixhorned /polymer/eduke32/source/lunatic/dynsymlist LunaCON: fix tilesizx[] and tilesizy[] system gamearrays.  
4710 2387d 5h helixhorned /polymer/eduke32/source/lunatic/dynsymlist Lunatic: fix building and startup up to tilesizx[] failure. DONT_BUILD.

- Needed to rip out enum GameEvent_t into own header file to prevent what
would be a circular #include otherwise
- Added some forgotten #ifdef LUNATIC
- updated structure and function declarations on the Lua FFI side
 
4590 2440d 9h helixhorned /polymer/eduke32/source/lunatic/dynsymlist Lunatic: add actor.move() static function and documentation stub.  
4475 2552d 17h helixhorned /polymer/eduke32/source/lunatic/dynsymlist LunaCON: add read-only variable 'Numsprites', r/w userdef member .mouseaiming.  
4419 2594d 5h helixhorned /polymer/eduke32/source/lunatic/dynsymlist Mapster32/Lunatic: add functionality to connect Lua funcs to s.bar menu [;]+[F].

Hook up those from test/shadexfog.lua and some debugging ones from engine.lua.
 
4370 2616d 13h helixhorned /polymer/eduke32/source/lunatic/dynsymlist Lunatic: implement passing string label to 'spawn' OSD command.

Unlike in C-CON, it only tries an exact match with the given and uppercased
label, not "full" case-insensitive search.
 
4336 2643d 8h helixhorned /polymer/eduke32/source/lunatic/dynsymlist 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.
 
4309 2651d 13h helixhorned /polymer/eduke32/source/lunatic/dynsymlist Lunatic: update dynsymlists. Move blendtable[] from build.h to engine.c.

BUILD_LUNATIC.
 
4285 2659d 6h helixhorned /polymer/eduke32/source/lunatic/dynsymlist LunaCON: error on userdefs accesses with non-local current player.

Add lunatic/test/getuserdef.con.
 
4236 2690d 15h helixhorned /polymer/eduke32/source/lunatic/dynsymlist 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!
 
4147 2740d 10h helixhorned /polymer/eduke32/source/lunatic/dynsymlist Lunatic: add 'fs' module containing 'listpath' function, 'd' in global env.

See the updated documentation for (ATM sparse) details.
 
4145 2743d 9h helixhorned /polymer/eduke32/source/lunatic/dynsymlist Lunatic: add two names forgotten for dynsymlist.

Let's BUILD_LUNATIC to see whether it still works...
 
4118 2755d 6h helixhorned /polymer/eduke32/source/lunatic/dynsymlist LunaCON: in {save,load}mapstate, warn that saving/restoring gamevars is NYI.  
4112 2762d 15h helixhorned /polymer/eduke32/source/lunatic/dynsymlist 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.
 
4092 2771d 13h helixhorned /polymer/eduke32/source/lunatic/dynsymlist Lunatic: add forgotten g_argv to dynsymlist_m32.  
3961 2856d 9h helixhorned /polymer/eduke32/source/lunatic/dynsymlist Retire global 'lastvisinc'.

It was only ever used as upper bound to the time that a visibility change
decays, but since it does that in an exponential fashion, there's really
no point.
 

Show All