Christoph Oelckers
eb07b8e543
- scriptified the AltHUD's inventory drawer and fixed the InvPrev CCMD.
2019-04-16 19:01:51 +02:00
Christoph Oelckers
e0915877b4
- scriptified the AltHUD's weapon drawer.
2019-04-16 19:01:50 +02:00
Christoph Oelckers
045d6d4355
- added the missing TNT1A0 check for icon-less keys.
...
Since it tries to get the icon from the spawn state it also has to check if that actually has a valid sprite.
2019-04-16 19:01:48 +02:00
Christoph Oelckers
437c72a089
- AltHUD ammo drawer scriptified.
2019-04-16 19:01:46 +02:00
Christoph Oelckers
cbb92af1db
- allow %*d etc. format specifiers in ZScript, but only for numeric types.
2019-04-16 19:01:45 +02:00
Christoph Oelckers
1033dc3b10
- Alt HUD scriptification, part 1.
2019-04-16 19:01:43 +02:00
Magnus Norddahl
08f415bad9
- don't use SSE for integer min/max
2019-04-16 18:46:09 +02:00
Magnus Norddahl
1e533d726c
- Use SSE2 for min/max instead
2019-04-16 18:46:07 +02:00
Major Cooke
7ff76366ef
Fixed A_JumpIfNoAmmo not working.
2019-04-16 18:46:06 +02:00
Christoph Oelckers
1b55e708bc
- fixed the AngleToVector calls in stateprovider.txt.
...
This looks like a search & replace gone wrong.
2019-04-16 18:46:04 +02:00
Christoph Oelckers
ca67327d1c
- this was wrong...
2019-04-16 18:46:01 +02:00
Major Cooke
4ae14c402b
- Restored A_SpawnItemEx's "chance" to "failchance" to prevent mod breakage from named parameters.
2019-04-16 18:46:00 +02:00
Christoph Oelckers
ff9eaed1ba
- fixed script call in PickNewWeapon.
2019-04-16 18:45:58 +02:00
Christoph Oelckers
53c1614a51
- fixed: P_Massacre without a class restriction no longer worked.
2019-04-16 18:45:56 +02:00
Christoph Oelckers
d18ed18d2e
- scriptified invnext and invprev CCMDs.
2019-04-16 18:45:54 +02:00
Christoph Oelckers
081d0bbcca
- moved ValidateInvFirst to the script side because this was one of the major functions that directly reference AInventory.
2019-04-16 18:45:52 +02:00
Christoph Oelckers
d021d63d33
- moved AInventory::DoRespawn fully to the script side.
2019-04-16 18:45:49 +02:00
Christoph Oelckers
a7909c16e5
- made CallTryPickup a global function.
...
This one still gets called in too many places but stands in the way of moving Inventory fully to the script side.
2019-04-16 18:45:47 +02:00
Christoph Oelckers
9981674a27
- re-fixed the massacre fix for Dehacked-modified inventory items.
...
Instead of overriding the Massacre method it is preferable to clear the flags causing the bad behavior, most notably ISMONSTER.
# Conflicts:
# src/g_inventory/a_pickups.cpp
# src/g_inventory/a_pickups.h
2019-04-16 18:45:43 +02:00
Christoph Oelckers
be8d1c950d
- scriptified GiveAmmo and the one remaining piece of native code still using it.
2019-04-16 18:45:41 +02:00
Christoph Oelckers
f1bf1cc44e
- scriptified DropInventory.
2019-04-16 18:45:38 +02:00
Christoph Oelckers
a614f2a81e
- scriptified UseInventory and several functions using the already scriptified ones,
...
# Conflicts:
# src/g_statusbar/sbar.h
2019-04-16 18:45:36 +02:00
Christoph Oelckers
e7c798f58f
- scriptified TakeInventory, including the ACS/FS interfaces.
2019-04-16 18:45:03 +02:00
Christoph Oelckers
390f8ef209
- code consolidation in invnext and invprev.
2019-04-16 18:45:01 +02:00
Christoph Oelckers
d2741813ab
- scriptified RemoveInventory and Inventory.OnDestroy.
2019-04-16 18:44:59 +02:00
Christoph Oelckers
8609e2ba68
- scriptified GiveInventory and made the interface a bit more configurable by mods.
...
Now a child type can decide for itself how to treat 'amount'.
The scripting interfaces to this function in ACS and FraggleScript have been consolidated and also scriptified.
2019-04-16 18:44:56 +02:00
Christoph Oelckers
2a192cde92
- scriptified AddInventory.
2019-04-16 18:44:53 +02:00
Christoph Oelckers
de6916756b
- disabled direct native functions for now until the problems with string arguments are fixed.
2019-04-16 18:44:50 +02:00
Christoph Oelckers
057604a7b1
- added direct native variants to nearly all status bar function.
...
I skipped ValidateInvFirst because that one will have to be scriptified soon.
2019-04-16 18:44:49 +02:00
drfrag
e3ce680ec9
- Removed duplicate definition of DTA_Internal3.
2019-04-16 18:40:25 +02:00
Magnus Norddahl
b6737c0cd3
- minor code cleanup now that it is working
2019-04-16 18:18:30 +02:00
Christoph Oelckers
712b85fc61
- removed the no longer needed exception prevention hack.
...
# Conflicts:
# src/scripting/vm/vmframe.cpp
# Conflicts:
# src/scripting/vm/vmframe.cpp
2019-04-16 18:18:16 +02:00
Christoph Oelckers
fc4b757b17
- fixed: V_FindFontColor is not suitable for direct calls from JIT code, thanks to its FName parameter.
2019-04-16 18:17:32 +02:00
Christoph Oelckers
4049b56d50
- a bit of code reordering for adding direct native entry points.
...
- offloaded key list generation for alternative HUD to non-UI parts.
This change also revealed a problem with handling empty sprites in the key list so this got fixed, too.
# Conflicts:
# src/g_shared/shared_hud.cpp
2019-04-16 18:17:05 +02:00
Magnus Norddahl
c84f13829f
- fix augmentation length bug
2019-04-16 18:14:40 +02:00
Magnus Norddahl
4393684831
- unwind data is now working on macOS
2019-04-16 18:14:39 +02:00
Christoph Oelckers
56228a853b
- moved all exports from class Font to vmthunks.cpp and gave them direct native entrypoints.
...
- changed PARAM_STRING to use the passed string by reference instead of by value. The 3 instances where passing by value was needed now use PARAM_STRING_VAL.
# Conflicts:
# src/v_video.h
2019-04-16 18:14:09 +02:00
Christoph Oelckers
4080bfd3cf
- seems there are two versions of Hacx's MAP05.
...
# Conflicts:
# wadsrc/static/zscript/base.txt
# wadsrc/static/zscript/level_compatibility.txt
2019-04-16 17:47:42 +02:00
Christoph Oelckers
798cebf891
- fixed character to int conversion for UTF8-characters.
2019-04-16 17:43:33 +02:00
alexey.lysiuk
e9daf31b23
- previous fix attempts done right
...
# Conflicts:
# src/m_cheat.cpp
2019-04-16 17:43:23 +02:00
SanyaWaffles
a00a567532
Attempts to fix errors introduced by merging of asmjit branch and wea… ( #649 )
...
* Attempts to fix errors introduced by merging of asmjit branch and weapons scripting branch
* This didn't work. The others should work though.
* fix scriptutil.cpp:(.text+0x18d): undefined reference to `PClass::FindActor(FName)'
* Attempt to fix compilation on macOS
# Conflicts:
# src/m_cheat.cpp
2019-04-16 17:42:13 +02:00
Magnus Norddahl
0746784965
- implemented unwind data on Unix - does it work? no idea, there's no easy way to tell when the debugger doesn't support the interface..
2019-04-16 17:40:48 +02:00
Christoph Oelckers
f2ac0f4c53
- removed the longjmp based exception catch/rethrow mechanism and instead force-terminate in case a user exception is thrown while the VM is executing JITed code on a non-Windows system
...
On Windows none of this is needed, because we can generate a proper unwind frame for the JITed functions, but even on Linux, it would require manual additions to each single piece of native code that ever gets called from inside a JIT compiled function.
This is an utterly prohibitive proposition because it makes direct native calls a virtual impossibility
So, in order to get the thrown error properly presented both I_Error and ThrowAbortException will now forward to I_FatalError if it is called from inside a JIT context.
# Conflicts:
# src/scripting/vm/vmframe.cpp
2019-04-16 17:32:32 +02:00
Christoph Oelckers
bd4e41d6cb
-add a dummy definition for vm_jit in 32 bit.
2019-04-16 17:28:36 +02:00
Christoph Oelckers
a7913e9ba9
- fixed: the direct native GetTextureSize used the wrong calling convention.
2019-04-16 17:28:35 +02:00
Player701
e5fa48ae79
- Added a flag to make bouncing objects disappear when hitting sky surfaces
2019-04-16 17:28:33 +02:00
Christoph Oelckers
5c91df5c73
- let FOBJModel::ParseVector actually use its templated size parameter
...
In this setup the array can be statically updated because the size is always constant per instantiation
2019-04-16 17:28:31 +02:00
Christoph Oelckers
94424aeed8
- Changed a few allocations into usin TArrays
...
S_SoundCurve in particular looked like a candidate for leaking memory.
2019-04-16 17:28:30 +02:00
drfrag
999f6f6920
- Fixed warning.
2019-04-16 17:25:08 +02:00
Magnus Norddahl
7c1730f221
- fix native call crash and assertion error
2019-04-16 17:14:31 +02:00