Mike Klaas
b9936e10ff
PR
2026-03-31 11:51:16 -07:00
Mike Klaas
6bd1daae0b
include
2026-03-31 11:30:47 -07:00
Mike Klaas
d8336761cc
fixes
2026-03-31 11:25:08 -07:00
Mike Klaas
5055e2b0d4
Path normalization fixex
2026-03-31 10:09:44 -07:00
Mike Klaas
a0954c8df7
cleanup
2026-03-31 10:09:44 -07:00
Mike Klaas
7abab85e0a
Normalize global script archive paths
2026-03-31 10:09:44 -07:00
Vlad K
511d53a615
fix set_proto_data leftover value on stack in case of invalid args + use programPrintError ( #344 )
2026-03-31 17:03:50 +02:00
Mike Klaas
f17dd19116
Fix parameter order in metarules set_flags and set_outline. ( #341 )
...
* Fix parameter order in metarules set_flags and set_outline.
Also fix missing return val in message_box error path
2026-03-30 08:35:35 -07:00
Mike Klaas
c28c62727f
Implement sfall animation opcodes and metarule ( #326 )
2026-03-30 08:24:57 -07:00
Mike Klaas
b14f518714
Comment out hires_stencil debug logs ( #339 )
...
These are a bit too much when debugging other features. Could make this controlled by a bool too if people prefer
2026-03-30 07:53:57 -07:00
Vlad K
6a0bed4433
Death Anim script hook + fall anim fix + related refactoring ( #336 )
...
* actions: refactor code around death anim selection
* add Death Anim hook from sfall
* AI review fixes
* Rename constants for force field PID/FID
2026-03-30 00:23:53 +02:00
Mike Klaas
c240657d0d
Fix two metarule argument popping order errors ( #335 )
...
* Fix two metarule argument popping order errors
Also, backfill all errorReturn and argument type validation for metarules
2026-03-29 13:26:34 -07:00
Vlad K and github-actions[bot]
0a73abe67d
Barter hook refactoring and Keypress hook repeat fix ( #333 )
...
* Barter hook refactor: weight compute in separate fn, names and comments for related vars, consistent value args
* Hook scripts: use initializer_list for defining args
* Keypress Hook: don't trigger on repeat, to match sfall
* chore: auto-format with clang-format
* Attempt to fix formatting after clang-format
* Don't use references for return values, for better readability
* chore: auto-format with clang-format
* Code review fixes
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-29 13:57:30 +02:00
Vlad K
54228248ef
Add barter hook from sfall ( #331 )
...
* Add barter hook from sfall
* Code review fixes
2026-03-28 10:43:47 +01:00
Mike Klaas
4eba423399
Use GameMode::getCurrentGameMode() instead of custom game mode detection ( #328 )
...
* Use `GameMode::getCurrentGameMode()` instead of custom game mode detection
2026-03-28 00:41:33 -07:00
Mike Klaas
de98136699
Implement sfall tile/path opcodes ( #330 )
...
* Implementation of tile and path opcodes
2026-03-27 22:58:29 -07:00
Mike Klaas
b27b0f03fc
Fix get_ini_setting ( #329 )
...
Previously it was returning `0` if the key is missing from the ini file, but the spec is to return -1: https://sfall-team.github.io/sfall/ini-settings/#get_ini_setting
Note that if the key _exists_, but is the value is empty (`key=`), sfall returns `0`.
2026-03-26 07:51:00 -07:00
Mike Klaas
9d6f86424e
Implement sfall add_extra_message_file ( #327 )
...
https://sfall-team.github.io/sfall/sfall-funcx-macros/#add_extra_msg_file
For now we're choosing to not support the 2-arg form. We could return `-1` if the script tries to do this, but if so and it doesn't check for an error, that's likely worse than just crashing at this point. It's essentially an unimplemented opcode.
2026-03-25 21:19:35 -07:00
Mike Klaas
bb65d8d32a
sfall opcode refresh_pc_art ( #324 )
...
Needed for RPU
2026-03-24 05:30:08 +00:00
Mike Klaas
c9139f762d
Deobfuscate scripts.cc/h ( #323 )
...
* Deobfuscate `scripts.cc/h`
Mostly renaming, but also includes:
* Some straightforward uninling
* Function extraction of a pretty large chunk (elevators)
* Simplification of the script loading loop
Tested manually
2026-03-22 04:25:46 +00:00
Mike Klaas
beb3c537a4
Fix several compile warnings ( #316 )
...
* Fix several compile warnings
Main change is making display functions accept const char* instead of mutating their arguments.
2026-03-21 21:42:15 +00:00
NovaRain
b71f1e7d18
Merge pull request #313 from NovaRain/wmenc_table_fix
...
Fix crash/glitched map when the encounter table has no available entries
2026-03-21 18:33:15 +08:00
Vlad K
b7f2b32b92
Debug window size setting, start debug output earlier and log number of loaded mods ( #321 )
...
* Debug window size setting, start debug output earlier and log total number of mods loaded
* Code review fixes
2026-03-21 10:54:32 +01:00
Vlad K
75776e4b5b
HOOK_COMBATDAMAGE ( #322 )
...
* HOOK_COMBATDAMAGE
* Fix compilation on 64bit systems
* Fix incorrect hit location var
2026-03-20 10:53:03 -07:00
Mike Klaas
5304823f8f
Fix argument order in mapper: mapSetEnteringLocation ( #315 )
...
Mapper's call of this function uses the wrong order compared to all other uses
Fixes #294
2026-03-20 13:08:09 +01:00