Subversion Repositories eduke32


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/defs.ilua CON: Add undefinevolume, undefineskill, and undefinelevel.  
4972 2286d 8h helixhorned /polymer/eduke32/source/lunatic/defs.ilua 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.
4968 2286d 19h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua Factor out generation of strings for time values in the bonus screen. This involves the creation of ud.playerbest.  
4961 2287d 9h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Make g_player a +1 offset pointer into 'static g_player_s[1 + MAXPLAYER]'.

This fixes the out-of-bounds read of former g_player[] in VM_EventCommon_().
4948 2300d 15h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua Modularize .mid --> .ogg --> .flac code to apply to sounds as well, and various cleanup in music/sound filename-handling code.  
4945 2300d 15h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua Add events EVENT_DISPLAYINACTIVEMENU and EVENT_DISPLAYINACTIVEMENUREST and userdef members m_origin_x and m_origin_y.

This allows for CON screen display code to use menu animations. The following is an example of how to adapt screen features that should animate.


ifvare current_menu 0 // main menu
setvar x 1
setvar y 1
rotatesprite x y zoom ang tilenum shade pal orientation 0 0 xdim ydim


state DisplayMenuCommon
ifvare RETURN 0 // main menu
getuserdef[THISACTOR].m_origin_x x
getuserdef[THISACTOR].m_origin_y y
addvar x 65536
addvar y 65536
rotatesprite16 x y zoom ang tilenum shade pal orientation 0 0 xdim ydim

onevent EVENT_DISPLAYMENUREST state DisplayMenuCommon endevent
onevent EVENT_DISPLAYINACTIVEMENUREST state DisplayMenuCommon endevent
4928 2309d 2h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua 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.
4829 2336d 14h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: sync MAXJOYAXES, add lunatic/test/sprite_addtv.con. DONT_BUILD.  
4826 2338d 9h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua Fix the MAXJOYBUTTONS discrepancy between _control.h and gamedefs.h.  
4817 2341d 7h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Makefile.common: in non-release builds, explicitly pass -fno-omit-frame-pointer.

So that stack traces can be gotten with optimized DEBUGANYWAY builds, e.g. for
Linux's 'perf' --> flame graphs. DONT_BUILD.
4814 2343d 4h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: expose more members, properly handle setting ud.screen_size.

4796 2351d 4h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: fix actor[] and player[] indexing after LuaJIT bugfix 66515a054c0826ce.  
4731 2379d 5h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: fix tilesizx[] and tilesizy[] system gamearrays.  
4710 2387d 5h helixhorned /polymer/eduke32/source/lunatic/defs.ilua 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/defs.ilua Lunatic: add actor.move() static function and documentation stub.  
4570 2470d 7h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: properly initialize values of session (NODEFAULT) gamevars.  
4567 2476d 9h helixhorned /polymer/eduke32/source/lunatic/defs.ilua A couple of Lunatic updates. DONT_BUILD.

- LunaCON: support for setting userdef[].m_volume_number, getting .last_level
- bump con_lang.MAXEVENTS
- fix compilation of astub.c
4515 2523d 4h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua By request, implement EVENT_ACTIVATECHEAT.  
4472 2553d 14h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua Replace some constants with preprocessor macros.  
4428 2591d 8h helixhorned /polymer/eduke32/source/lunatic/defs.ilua CON: in rotatespritea and screentext, if alpha < 0, make -alpha denote blend.

For convenience, orientation gets bit 1 (translucency) set automatically.
Again, test/screentext.con is updated to show off this functionality (the
code there assumes that additive blending tables are loaded at blend
numbers 101 -- 132).


Show All