Subversion Repositories eduke32


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/control.lua CON: Add "resetplayerflags". Flag 1 means "don't ask the user if they want to load".  
4972 2209d 2h helixhorned /polymer/eduke32/source/lunatic/control.lua 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.
4969 2209d 13h hendricks266 /polymer/eduke32/source/lunatic/control.lua CON: Add STR_YOURTIME, STR_PARTIME, STR_DESIGNERTIME, and STR_BESTTIME to qgetsysstr.  
4957 2212d 4h helixhorned /polymer/eduke32/source/lunatic/control.lua Lunatic: fix typos in control.lua (get/setmusicposition).  
4928 2231d 20h hendricks266 /polymer/eduke32/source/lunatic/control.lua 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.
4878 2242d 23h helixhorned /polymer/eduke32/source/lunatic/control.lua Lunatic: in control/lua, sync ALLOWED_VIEWTYPE with change from r4814 (allow 2).

4874 2244d 2h helixhorned /polymer/eduke32/source/lunatic/control.lua CON: always return non-negative values from 'clipmove' and related.

Previously, the C function clipmove() returned negative values when hit a
wall (32768+wallnum) or sprite (49152+spritenum) because internally,
these values were encoded into a *signed* 16-bit integer. This made no
difference to C code using it, since it always proceeded by bit checks,
but was inconsistent with documentation on CON 'clipmove' on the wiki.

The following commands are affected too, since they use the value returned
by clipmove(): 'clipmovenoslide', 'movesprite'. Also, the value of
actor[].movflag ('htmovflag' from CON).

Also, fix 'clipmove*' in LunaCON and add lunatic/test/checknearwall.con
as an example of how to implement a being-close-to-a-wall checker as
requested in
4816 2265d 0h helixhorned /polymer/eduke32/source/lunatic/control.lua Lunatic: for '(display)rand*', use math.floor(); correct create_additive_trans() help.

4815 2265d 6h helixhorned /polymer/eduke32/source/lunatic/control.lua Lunatic: show on-screen errors even in passive menu; fix '(display)rand*' for large values.

Also, some minor style cleanup in game.c. DONT_BUILD.
4795 2273d 22h helixhorned /polymer/eduke32/source/lunatic/control.lua LunaCON: implement 'qstrncat' command.  
4732 2301d 23h helixhorned /polymer/eduke32/source/lunatic/control.lua LunaCON: player[].loogcnt, userdef[].color, minor fixes.  
4590 2363d 3h helixhorned /polymer/eduke32/source/lunatic/control.lua Lunatic: add actor.move() static function and documentation stub.  
4583 2370d 10h helixhorned /polymer/eduke32/source/lunatic/control.lua LunaCON: implement 'qsubstr' command. Add source/lunatic/test/qsubstr.con.

In C-CON's qsubstr, error if <start> is not in [0 .. MAXQUOTELEN-1]
or <length> is negative.
4428 2514d 2h helixhorned /polymer/eduke32/source/lunatic/control.lua 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).

4427 2514d 2h helixhorned /polymer/eduke32/source/lunatic/control.lua LunaCON: fix 'screentext' command.  
4379 2538d 6h helixhorned /polymer/eduke32/source/lunatic/control.lua LunaCON: qgetsysstr/STR_MAP*NAME: add informative err. msg. for void vol/lev.  
4362 2549d 0h helixhorned /polymer/eduke32/source/lunatic/control.lua LunaCON: fix 'getincangle'.  
4360 2549d 0h helixhorned /polymer/eduke32/source/lunatic/control.lua Propagate 'blend' to rotatesprite_(), but don't hook it up to scripting yet.  
4356 2554d 0h helixhorned /polymer/eduke32/source/lunatic/control.lua LunaCON: add and document option -ferror-negative-tag-write.  
4290 2581d 5h helixhorned /polymer/eduke32/source/lunatic/control.lua LunaCON: add option -ferror-nonlocal-userdef, on by default.


Show All