Subversion Repositories eduke32


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

Filtering Options

Rev Age Author Path Log message Diff
4977 2365d 13h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua CON: Add undefinevolume, undefineskill, and undefinelevel.  
4972 2366d 0h 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 2366d 11h 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 2367d 2h 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 2380d 7h 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 2380d 7h 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 2388d 19h 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 2416d 6h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: sync MAXJOYAXES, add lunatic/test/sprite_addtv.con. DONT_BUILD.  
4826 2418d 1h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua Fix the MAXJOYBUTTONS discrepancy between _control.h and gamedefs.h.  
4817 2420d 23h 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 2422d 21h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: expose more members, properly handle setting ud.screen_size.

4796 2430d 20h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: fix actor[] and player[] indexing after LuaJIT bugfix 66515a054c0826ce.  
4731 2458d 21h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: fix tilesizx[] and tilesizy[] system gamearrays.  
4710 2466d 21h 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 2520d 1h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: add actor.move() static function and documentation stub.  
4570 2549d 23h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: properly initialize values of session (NODEFAULT) gamevars.  
4567 2556d 2h 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 2602d 20h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua By request, implement EVENT_ACTIVATECHEAT.  
4472 2633d 6h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua Replace some constants with preprocessor macros.  
4428 2671d 0h 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