Commit graph

12 commits

Author SHA1 Message Date
marauder2k7 b0f8a5f9bd tscript change
Adds the ability to declare defaults for function arguments

eg
function testFunc(%x = 1, %y = 1)
{
    return %x + %y;
}

can now be called as
testFunc(10) and it will return the value of 11.
2025-11-15 17:38:13 +00:00
AzaezelX cce40efd35 fix particle glow
multiple preloads were failing to return false or mesages on failure of mandatory entries.
clear out redundant isScriptFile definition
fix default order of /scripts/managedData script files
2025-11-13 14:29:25 -06:00
AzaezelX c7275300fb dial back a case of stringtable over use 2025-05-20 14:01:03 -05:00
AzaezelX 5ab2419826 more stringtable leveraging 2025-05-19 12:09:21 -05:00
marauder2k7 8176145aaa remove more std::move
std::move needs to be used with pointers, we werent doing that and so a temp var was being copied onto the heap when it should of stayed on the stack. This caused memory leaks
2025-05-12 11:50:32 +01:00
marauder2k7 fed83cdb8f naming
change enum to OP_JMPIFNOTSTRING (same name as others doing similar for different types)
place case with other ifnot statements
2024-06-18 15:15:25 +01:00
marauder2k7 0d4c335231 test
working test without scanstring changes
2024-06-16 23:05:42 +01:00
marauder2k7 e56f4cb6a6 if statements
Changed:
if check on vals now return true if the value has a string value
%val = "test me" if(%val) will now return true since %val is not null

Script side:
string checks for "true" and "false" will now be parsed as integer values of 1 and 0.

TEST VIGOUROUSLY
2024-06-16 15:04:20 +01:00
AzaezelX 1ea74bf8c6 enhanced argc reporting
in a method argc out of bounds scenario, report how many it got, and what range it expected
2024-05-01 18:20:14 -05:00
AzaezelX b366ff9b1c script stabilization tweaks
Con::EvalResult CodeBlock::exec -
 objectCreationStackIndex needs to be signed as we test if it goes sub-zero
ConsoleValue Namespace::Entry::execute -
compiler yells about returning a temp via std::move
bool TorqueScriptRuntime::executeFile -
report the name of the dso output file, not the source scxript input file
2024-01-02 18:15:21 -06:00
Lukas Aldershaab c6047b24eb Fix foreach over non-existant objects 2023-09-24 14:36:56 -05:00
Lukas Aldershaab 89b0c7f73b Console Refactor 2023-09-13 10:33:20 +02:00
Renamed from Engine/source/console/compiledEval.cpp (Browse further)