Subversion Repositories eduke32

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
5029 2399d 6h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: update user_defs, CPLUSPLUS=0 in synthesis.sh, disable 'cutscene' for now.

BUILD_LUNATIC.
 
5026 2399d 6h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: fix a couple of typo-like issues found by listglobals.sh. DONT_BUILD.  
4977 2412d 19h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua CON: Add undefinevolume, undefineskill, and undefinelevel.  
4972 2413d 7h 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 2413d 17h 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 2414d 8h 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 2427d 13h 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 2427d 13h 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.

before:

onevent EVENT_DISPLAYMENUREST
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
}
endevent

after:

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
}
ends

onevent EVENT_DISPLAYMENUREST state DisplayMenuCommon endevent
onevent EVENT_DISPLAYINACTIVEMENUREST state DisplayMenuCommon endevent
 
4928 2436d 1h 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 2463d 12h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: sync MAXJOYAXES, add lunatic/test/sprite_addtv.con. DONT_BUILD.  
4826 2465d 7h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua Fix the MAXJOYBUTTONS discrepancy between _control.h and gamedefs.h.  
4817 2468d 5h 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 2470d 3h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: expose more members, properly handle setting ud.screen_size.

BUILD_LUNATIC.
 
4796 2478d 2h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: fix actor[] and player[] indexing after LuaJIT bugfix 66515a054c0826ce.  
4731 2506d 3h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: fix tilesizx[] and tilesizy[] system gamearrays.  
4710 2514d 4h 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 2567d 7h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: add actor.move() static function and documentation stub.  
4570 2597d 5h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: properly initialize values of session (NODEFAULT) gamevars.  
4567 2603d 8h 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 2650d 2h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua By request, implement EVENT_ACTIVATECHEAT.  

Show All