Commit graph

314 commits

Author SHA1 Message Date
Magnus Norddahl
1471eea6e5 Fix compile error and the backtrace (sorta, still sucks) for Linux 2025-04-21 00:01:42 +02:00
Magnus Norddahl
4e78ba469c Add VMCallScript template for calling ZScript functions with type checking 2025-03-19 22:15:29 +01:00
Magnus Norddahl
cc8681a9aa Fix memory leak in mixins 2025-03-16 18:54:35 +01:00
nashmuhandes
799011d327 Merge branch '4.14.1' of https://github.com/ZDoom/gzdoom 2025-03-13 03:00:11 +08:00
marrub
dcbd66a528
add default cvar getters 2025-02-21 07:18:03 -05:00
Boondorl
5a5bed5c31
Added FindClass
Allows for classes to be looked up during run time without having to use string casting.
2025-02-21 07:17:49 -05:00
Chronos Ouroboros
7d180069e3 Fix FxExpression::EmitCompare not properly handling constant registers. 2025-02-17 07:53:27 -03:00
Ricardo Luís Vaz Silva
bfd9b6f720 add static function to convert ints to names 2025-02-08 16:49:00 -03:00
Ricardo Luís Vaz Silva
fcc2fc65de change id type fixes version from 4.15 to 4.14.1 2025-02-08 10:56:55 -05:00
Ricardo Luís Vaz Silva
e543e26bdc expand deprecation allowance for gzdoom.pk3 2025-01-30 13:34:25 -03:00
Ricardo Luís Vaz Silva
61df13306f fix DScriptScanner 2025-01-11 09:31:20 -03:00
Ricardo Luís Vaz Silva
57f4fb1d37 force zengine to be linked as a whole 2025-01-10 13:45:50 -05:00
Magnus Norddahl
c7e1eb5f78 Force linking of .obj files not directly referenced 2025-01-08 23:29:00 +01:00
Rachael Alexanderson
f3b0c3ac5e
- Roll back filesystem changes. These were causing instabilities in the master branch that were interfering with development. 2025-01-04 11:27:21 -05:00
Ricardo Luís Vaz Silva
bdddfcc80a allow nullptr with spriteid/textureid/translationid (for default parameters/etc) 2024-12-21 04:33:25 -05:00
Ricardo Luís Vaz Silva
d36fa3c36b add helper methods to Sound/SpriteID/TranslationID 2024-12-21 04:33:25 -05:00
Ricardo Luís Vaz Silva
eefad0764e fix TranslationID casting 2024-12-21 04:33:25 -05:00
Rachael Alexanderson
b85b7c18da
Merge branch '4.14' of c:/projects/gzdoom into gzd4-14-merge 2024-12-18 10:23:00 -05:00
Ricardo Luís Vaz Silva
b5b3fe1b5e
remove "DECORATE" from error string
* print warning count as well
* allow treating warnings as errors
2024-12-16 04:36:48 -05:00
Ricardo Luís Vaz Silva
e82c7d2428 remove "DECORATE" from error string
* print warning count as well
* allow treating warnings as errors
2024-12-13 16:46:48 -03:00
Ricardo Luís Vaz Silva
7fed2b85f6
remove version check for array type fix, to prevent crashes/etc with bad types 2024-12-12 15:19:18 -05:00
Ricardo Luís Vaz Silva
325817afdf remove version check for array type fix, to prevent crashes/etc with bad types 2024-12-12 15:18:53 -05:00
Christoph Oelckers
d1abc3eb8c renamed things in file system to reduce Doom specific terminology. 2024-11-24 18:05:11 +01:00
Christoph Oelckers
634a646c2d take namespace enum out of namespace and added CheckNumForAnyName and CheckNumForFullNameInFile to clarify the meaning of CheckNumForFullName.
This is to take some renaming noise out of the upcoming refactoring.
2024-11-24 17:59:16 +01:00
Christoph Oelckers
ba2800d698 renamed GetFileFullName to GetFileName 2024-11-24 17:59:15 +01:00
Christoph Oelckers
e0778e23eb M_SaveDefaults is also not part of the common engine backend. 2024-11-23 20:39:23 +01:00
nashmuhandes
2e09abc4e8 Merge branch 'master' of https://github.com/ZDoom/gzdoom into gzd-master-experimental 2024-11-16 13:16:21 +08:00
Boondorl
597b06ae52 Added CRandom functions
Unique RNG namespace for client-side effects and HUDs. Identifiers for these cannot clash with identifiers that affect the playsim making them completely safe to use in HUD elements. They also won't be saved.
2024-11-15 23:56:23 -03:00
nashmuhandes
5464090800 Merge branch 'post-4.13' of https://github.com/madame-rachelle/gzdoom into gzd-master-experimental 2024-11-05 21:51:43 +08:00
Boondorl
d85d04f421 Fixed crash on functions with missing return values 2024-11-05 01:02:19 -05:00
nashmuhandes
2c45d9aa99 Merge remote-tracking branch 'remotes/ZDoom/gzdoom/4.13' 2024-11-01 21:17:09 +08:00
Christoph Oelckers
2cbb980388
Check array size for overflow.
Since ZScript is a 32 bit VM, the largest safe value for an array's physical size is 2GB. Any larger value will be destroyed by the compiler which relies on signed 32 bit values too much.
2024-10-28 12:07:15 -04:00
Christoph Oelckers
adeb48d598
Do a check if a local variable exceeds the available stack space.
Windows stack is 1 MB so play it safe and allow 512 kb as max. stack space for a single function.
2024-10-28 12:07:10 -04:00
Christoph Oelckers
a14bba3561 Check array size for overflow.
Since ZScript is a 32 bit VM, the largest safe value for an array's physical size is 2GB. Any larger value will be destroyed by the compiler which relies on signed 32 bit values too much.
2024-10-25 08:47:19 +02:00
Christoph Oelckers
ee6991e6d8 Do a check if a local variable exceeds the available stack space.
Windows stack is 1 MB so play it safe and allow 512 kb as max. stack space for a single function.
2024-10-25 07:55:17 +02:00
Kaelan
81f2bef4ac Further cleanup as per recommendations 2024-10-16 00:39:32 -03:00
Kaelan
b4d214a0cf add PARAM_PROLOGUE 2024-10-16 00:39:32 -03:00
Kaelan
9d725276ac Add manual config saving to CVar struct
Allows for calling to save custom cvars manually to ensure they're reliably stored. As is, the only way to ensure that cvars are saved is to safely/manually close out GZDoom, meaning if a crash occurs, that data is lost.

THis is very detrimental to mods/standalone projects that rely on CVars for storing custom data, and or data that transcends save games.
2024-10-16 00:39:32 -03:00
nashmuhandes
58ddcd4806 Merge commit '6b5be653dc' 2024-10-06 21:29:38 +08:00
Christoph Oelckers
f0676cdf01 fixed a few memory leaks 2024-10-05 10:22:05 +02:00
Christoph Oelckers
3798fd815f the MISSILE(EVEN)MORE flags still need to be accessible by ZScript for backwards compatibility.
Since these do not exist anymore an internal interface to Handle/CheckDeprecatedFlags was added.
2024-10-03 12:32:09 +02:00
Boondorl
1e96ed31aa Exported DPrintf
Allows for custom debug message handling using the built-in
2024-09-29 17:56:16 -04:00
nashmuhandes
1fae4b9d4a Merge branch 'master' of https://github.com/ZDoom/gzdoom 2024-09-24 15:31:08 +08:00
Rachael Alexanderson
3524d06813 - export FFont::GetChar() to ZScript 2024-09-20 20:00:01 +02:00
Magnus Norddahl
bde15af593 Merge remote-tracking branch 'gzdoom/master' 2024-07-23 19:23:26 +02:00
Ricardo Luís Vaz Silva
461c2f77b7 restrict new relaxed named arguments to zscript >= 4.13 2024-06-03 10:52:07 -03:00
Ricardo Luís Vaz Silva
20cf8befbf Rework named arguments
Now allows arguments to be in any arbitrary position, and allows required arguments to be named
2024-06-03 10:52:07 -03:00
Rachael Alexanderson
112c6cbccf
Merge branch 'master' of https://github.com/ZDoom/gzdoom into gzdoom-update-4-12-1 2024-04-21 11:05:59 -04:00
Christoph Oelckers
ebd4ebf298 StringTable cleanup and improvements
cleaned up function interface to avoid referencing the file system in the worker functions.
replaced StringTable's operators with functions.. The main reason is that these are far easier to look up when browsing the source.
This also fixes a premature translation in SBARINFO that was done in the parsing stage, not the printing stage.
2024-04-21 10:34:44 +02:00
Ricardo Luís Vaz Silva
949cd5b746 Fix let ignoring const-ness 2024-04-19 13:28:18 -03:00