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
AzaezelX
962202cd91
resolve scripttest name conflicts
2023-07-11 23:23:41 -05:00
AzaezelX
52093cbde5
Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into alpha41/cmake_adjustments
2023-06-08 13:31:34 -05:00
Brian Roberts
06e4ce01a9
Merge pull request #1024 from Azaezel/alpha41/TypeHints
...
add TypeHints for scenetree viewing
2023-06-02 10:46:33 -05:00
AzaezelX
a5f3e70653
further conflict resolutions
2023-05-27 19:57:51 -05:00
AzaezelX
c61439c2f9
Merge branch 'cmake_adjustments' of https://github.com/Ragora/Torque3D into alpha41/cmake_adjustments
...
# Conflicts:
# Engine/lib/assimp/INSTALL
# Engine/source/console/fileSystemFunctions.cpp
# Tools/CMake/basics.cmake
# Tools/CMake/modules/module_testing.cmake
2023-05-27 18:18:17 -05:00
AzaezelX
f79c6280b3
fix strrepeat <0
2023-05-25 18:38:45 -05:00
AzaezelX
b1f118898e
add TypeHints for inspector viewing
...
typehints operate as an additional label for a given class in the inspector, allowing one to specify what class-entry to use as a tag
examples: Prefab displays prefab filename
TSStatic displays the used shape asset name
SFXEmitter displays the played sound asset
GameBase derivatives display the datablock used
2023-05-23 12:35:07 -05:00
Brian Roberts
0d981b62cf
Merge pull request #1015 from Azaezel/alpha41/consoleCleanups
...
fix warn reports for buffer over-runs
2023-05-09 14:44:01 -05:00
AzaezelX
b86716c670
further console cleanups. mostly of the form of correcting uninitialized values. some arithmatic sizes
...
(cherry picked from commit 833149e962d165aa4c10e6c760bb1a1116d1baf8)
2023-05-01 10:41:33 -05:00
AzaezelX
fed381c945
more console cleanups
...
(cherry picked from commit a66ff6407cdcdf233996f49c74d7a42537314562)
2023-04-28 17:16:48 -05:00
AzaezelX
0ce2da3a23
clean up math varsize complaints
2023-04-27 16:10:04 -05:00
AzaezelX
339393aa85
adress https://github.com/TorqueGameEngines/Torque3D/pull/1015#discussion_r1179352178
...
docs for CodeBlock::calcBreakList() sizing
2023-04-27 11:12:24 -05:00
AzaezelX
9e036f142b
fix warn reports for buffer oveeruns
...
also misc uninitialized vars
2023-04-26 22:29:32 -05:00
Brian Roberts
43b38bb8fb
Merge pull request #1007 from Azaezel/alpha41/miscFixes08-04-2023
...
misc warn fixes
2023-04-08 14:19:35 -05:00
AzaezelX
a956264bbc
misc warn fixes
...
parser had a few spots where it was throwing int compares to ints instead of bools for logical and/ors. not bitwise ones.
_dumpDirectories had a stray itterator dupe
2023-04-08 12:39:09 -05:00
Lukas Aldershaab
0550eb3109
Cleanup
2023-04-08 01:02:23 +02:00