Commit graph

576 commits

Author SHA1 Message Date
marauder2k7 4f3a1f395c Merge remote-tracking branch 'upstream/development' into torquescript-generateCompiler 2024-04-20 06:21:05 +01:00
Areloch 51c1ab6b83 Adds a sanity check to SimObject's setFieldValue console method so if you pass in a blank field name it doesn't crash, instead asserting in debug, and logging the error in release 2024-04-19 00:00:37 -05:00
marauder2k7 587f80da91 Update bison.bat
make it output the header file, this way the linkage should always work..... "should"
2024-04-15 00:33:04 +01:00
marauder2k7 77eec75bed Update astNodes.cpp
typo
2024-04-14 22:52:32 +01:00
marauder2k7 856d3bc901 fix for linux
linux case sensitivity
2024-04-14 22:47:55 +01:00
marauder2k7 83b3f01928 update bison flex
-Updated bison flex exe files to the latest windows version i could find
-Regenned the compiler..... alot of changes.....
2024-04-14 22:17:41 +01:00
marauder2k7 0954b081d0 GenerateCompiler
-ReAdded generateCompiler.bat
-Fixed paths in bat filse
-Fixed paths for includes
2024-04-14 07:08:17 +01:00
Triston a2cdbebfa1 removes a use after freed in consoleInternal 2024-03-24 18:36:42 -05:00
marauder2k7 f00d53f1d4 Revert "Update engineAPI.h"
This reverts commit a3742d26fb.
2024-03-19 22:32:25 +00:00
marauder2k7 a3742d26fb Update engineAPI.h
remove static inline and replace for static.

static inline is not C compliant.
2024-03-19 22:20:48 +00:00
AzaezelX 2e25059b27 fix inheritance conflict loop by declaring a singular root for class EngineObject : public StrongRefBase 2024-03-18 22:39:18 -05:00
marauder2k7 815832152d changes on macosx
mac picked up a couple of left over issues.
2024-03-18 19:58:47 +00:00
marauder2k7 2b295fb7f0 rest of virtuals removed
virtuals removed and replaced with override where necessary on the rest of the code base, clang-tidy to the rescue.
2024-03-18 18:40:22 +00:00
marauder2k7 efbe5e90f5 virtuals removed
virtuals removed and replaced with override where necessary, clang-tidy to the rescue.
2024-03-18 18:13:00 +00:00
AzaezelX 07ed59a872 TORQUE_TOOLS off compile fix
fix a cornercase for when TORQUE_TOOLS is #undef at the torqueconfig.h level
2024-03-10 14:29:17 -05:00
AzaezelX 24562e6758 aug ArrayObject to have a uniquePair command
like uniqueket and uniquevalue, removes duplicate entries, but only if *both* match
also, use that for the populateAllFonts() cache generator
2024-03-03 22:04:09 -06:00
Jeff Hutchinson 0d743c8bb9 TScript Bugfix
If the statement is a terminating statement on slot assignment (such as %var[%i]++;), the stack has to be popped everytime slot arrays are used regardless of the expression type.
2024-01-30 18:24:48 -05:00
AzaezelX 36c1e928ca don't allow setting a key or value on -1 index 2024-01-15 17:04:25 -06:00
AzaezelX 30e67694e8 arrayobject helper commands
getValueFromKey and getKeyFromValue.
both look to the left or right hand entry for the other one
example:
%array.add("startPos","0 0 0 ");
echo(">".%array.getValueFromKey("startPos"));
> 0 0 0
2024-01-10 16:20:08 -06:00
AzaezelX 2a2348b62c don't delete loaded dso code
unlike in the straight compile it now case it does in fact need to stick around. read injects the CodeBlock into a management system, so no worries about cleanup
2024-01-03 17:29:51 -06:00
AzaezelX e8210c8447 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into alpha41/scriptStability 2024-01-02 18:57:27 -06: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
AzaezelX 5791ee68a7 adds a getFieldCountNS and getFieldNS method to allow field lookup by namespace 2023-12-24 03:15:56 -06:00
AzaezelX b03cb4c49b add a getMethodSigsNS
takes a namespace as an explici value fed to it as oposed to inferring from an passed object
2023-12-24 02:46:26 -06:00
AzaezelX 428f22d728 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into classPrototypingPresenter 2023-12-23 21:29:17 -06:00
AzaezelX 78147821a0 filter inspector buttons out of the following:
PersistenceManager::updateObject
SimObject::writeFields
SimObject::assignFieldsFrom
DefineEngineMethod( SimObject, getFieldCount, S32, (),,
DefineEngineMethod( SimObject, getField, const char*, ( S32 index ),,
SimObject::writeObject

do not do so for
SimObject::setDataField
DefineEngineMethod( SimObject, dump, void, ( bool detailed ), ( false ),
2023-12-19 23:29:46 -06:00
AzaezelX 045c15fd26 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into classPrototypingPresenter 2023-11-29 14:16:37 -06:00
AzaezelX c1e81e0327 stop spamming the console every spawnObject call
assuming there was a spawnscript, the eval was also dumping that to the log
2023-11-27 21:10:39 -06:00
AzaezelX c10808873d hook PrototypeClass(%objectName) on up to inspector
fix dialog close, fix dynamic variable gui element alignment
2023-11-24 15:44:54 -06:00
AzaezelX fbcfe02098 clean up "Add" menubar categoes on the 3d object side via the following:
SceneObject now defaults to a category of "misc"
getCategoryOfClass now checks parent classes for what categories they hold so that variants can inherit
categories are in one of a few rough groups and subgroups depending on actual mapper needs/usages
2023-11-08 20:42:47 -06:00
JeffR 92743f6fd8 Adjusts the logic for when creating a simObject from a taml so that array elements(like material slots or sound asset slots) properly can handle prefixed field values, such as referencing loose asset files. 2023-10-20 17:51:49 -05:00
marauder2k7 e6ead9f268 Update console.cpp 2023-10-15 15:14:58 -05:00
Lukas Aldershaab 8748a2cac8 Expose some information in EngineFunction exports for better interop capabilities 2023-10-08 17:36:51 -05:00
Lukas Aldershaab ee93dc3b57 Ensure that getGlobalScope always returns the same object 2023-10-08 17:36:51 -05:00
Lukas Aldershaab 2c9f6a5350 Remove EngineXMLExport filtering 2023-10-08 17:36:51 -05:00
Lukas Aldershaab 27b6973da0 Reintroduce getFileLine for Console Modules 2023-09-27 14:58:44 -05:00
Lukas Aldershaab 01cfa4a604 Add sensible defaults for Console Module interface 2023-09-27 14:58:44 -05:00
Lukas Aldershaab 5615cc33d8 Remove CInterface script hooks, superseded by console refactor 2023-09-27 14:11:13 -05:00
Lukas Aldershaab c6047b24eb Fix foreach over non-existant objects 2023-09-24 14:36:56 -05:00
Lukas Aldershaab 6de2b455c4 Fix evaluatef argument handling and add regression test 2023-09-17 00:22:44 +02:00
Lukas Aldershaab e7d17e5453 Fix error in DB substitution logic and add regressiontest 2023-09-16 23:29:13 +02:00
AzaezelX a746957cd9 Merge branch 'development' into weirdtsbug 2023-09-13 08:46:47 -05:00
Lukas Aldershaab 83ea6cd0df Improvements based on experience from implementing Python runtime 2023-09-13 10:33:28 +02:00
Lukas Aldershaab e28e24a802 ConsoleValue improvements 2023-09-13 10:33:28 +02:00
Lukas Aldershaab 89b0c7f73b Console Refactor 2023-09-13 10:33:20 +02:00
Jeff Hutchinson 5d842fc79f TScript - Fix Type Bug
The compiler was found to have a bug where the variable type cannot ever change, causing issues.
2023-09-12 22:07:28 -04:00
Areloch c6f0f9cfd3 Based on Tron's suggestion, making the startTime var static to avoid possible collisions 2023-09-07 20:54:22 -05:00
Areloch 2a7965dd71 Removed the extra timestamp formatting change 2023-09-05 00:09:44 -05:00
Areloch 53869495fd From Nils' UI Update work. Tweaks some of the handling for timestamp stuff, and adds some utility console functions for getting/resetting said timestamp stuffs. 2023-09-04 22:28:49 -05:00
marauder2k7 c09f79d199 separate testing environment
-Separate main for running unit tests
-Move unit tests into testing folder
2023-07-24 12:38:36 +01:00