Commit graph

667 commits

Author SHA1 Message Date
marauder2k7 50f74368b3 various fixes around preview assets and imageassets text field
Imageasset text field now displays correctly in inspector
previews now use assets again
assetBrowser hides previewCache folder
2025-06-15 22:07:12 +01:00
AzaezelX 76b33ab57b unintialized variable cleanups 2025-05-26 15:16:48 -05: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
AzaezelX 391de9f62c use the stringtable to hold generated docstrings
among other things it removes doubles
2025-05-18 13:34:08 -05:00
marauder2k7 ecd8102688 Update consoleFunctions.cpp
add isPlayerBuild functon to see if this is a playback only build of torque.
2025-05-18 13:23:45 +01:00
marauder2k7 fb1840ab1d Update console.h 2025-05-12 21:17:26 +01:00
marauder2k7 2207ae4a65 Update console.h 2025-05-12 16:35:08 +01:00
marauder2k7 41c3f610be remove free from scripting lanugage
was causing issues with foreach
2025-05-12 12:50:49 +01:00
marauder2k7 b54ed77f7a Update console.h 2025-05-12 11:50:57 +01:00
marauder2k7 c6e0eade04 az changes 2025-05-12 11:50:53 +01:00
marauder2k7 1ddc7219a5 Update console.h 2025-05-12 11:50:52 +01:00
marauder2k7 954c3b03db Revert "Update console.h"
This reverts commit 76c17179e695df08466c34bf334c1e819ad59c76.
2025-05-12 11:50:51 +01:00
marauder2k7 8fc91bbc1e Revert "Update console.h"
This reverts commit ffac34b2d3eb24ec6a460f2cf77e172543c15772.
2025-05-12 11:50:47 +01:00
marauder2k7 0df6e99a75 Revert "Update console.h"
This reverts commit f10080489995570036e2e5ba762357559a0abd34.
2025-05-12 11:50:46 +01:00
marauder2k7 2b14e5448e Revert "update"
This reverts commit 7ac9c55bf1efa23db674dba4f2c7ada7ca344d7d.
2025-05-12 11:50:45 +01:00
marauder2k7 5cc2abc9ae update
revert console.h to best working version
wrap includes around the TORQUE_DISABLE_MEMORY_MANAGER macro
in torqueConfig.h.in add check for whether we are in release and make sure TORQUE_DISABLE_MEMORY_MANAGER is defined.
2025-05-12 11:50:44 +01:00
marauder2k7 cb7dab4052 Update console.h 2025-05-12 11:50:42 +01:00
marauder2k7 656a8ac0bd Update console.h 2025-05-12 11:50:41 +01:00
marauder2k7 338eaea786 Update console.h
az: stringtable insert for stentry
2025-05-12 11:50:35 +01:00
marauder2k7 dc16c50e4e Update console.h 2025-05-12 11:50:33 +01: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 5fc9da789b changes from az
leak damn near fixed with these changes
2025-05-12 11:50:30 +01:00
marauder2k7 ee0cf872a0 moar leak plug attempts 2025-05-12 11:50:29 +01:00
marauder2k7 ea39c83afd Update console.h
might not fix the leak we were having around callbacks, but it really slows down the upcreep of memory
2025-05-12 11:50:28 +01:00
marauder2k7 bab75a3a46 clang-tidy complained about std::moves 2025-05-12 11:50:26 +01:00
marauder2k7 d93f094cf5 Update console.cpp
move shutdown function to after PathExpandos is defined and clear it to remove it from memlog
2025-05-12 11:50:24 +01:00
marauder2k7 e2c4f88faf plugging moar leaks
Namespace Leaks: these leaks would have been freed on app kill but they were still contaminating the log so free em.
Con::shutdown: gGlobablVars again another leak that would of been freed on app kill
AssetManager onRemove should be clearing its lists
Scripting language needs a free for its strings these destructors free after the rule is executed so the data is cached internally and then freed. This may be needed for other types in the union (should not be used on nodes just raw data)
2025-05-12 11:50:20 +01:00
marauder2k7 15ff382469 plugging found leaks
LEAK from G:\GameDev\GithubRepo\Torque3D\Engine\source\console/consoleObject.h:686
- leak around props remaining after the const_cast free it up

LEAK around sound asset
- assetEnumNameConcat was creating a leak.
2025-05-12 11:50:16 +01:00
marauder2k7 8f856dd7cd build fixes missed by copy over 2025-05-12 11:50:14 +01:00
AzaezelX 4ba93dafc3 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into aiSubsystem 2025-05-03 15:25:36 -05:00
AzaezelX 62aadf9114 isobject and obj.delete safties
isobject isn't actually one if it's yet to be properlyAdded, or already marked with isRemoved
likewise don't try and delete a deleted thing
2025-04-29 16:45:25 -05:00
AzaezelX 20976b485c Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into aiSubsystem 2025-04-26 10:11:13 -05:00
JeffR f31acf774e Adds handling for datablocks to be reloaded if the assets they utilize have their files directly edited. 2025-04-24 00:58:20 -05:00
AzaezelX 3210325f3f elevated mAicontroller to shapebase
aiwheeleedveiclecontrollerdata resolvespeed now only touches throttle
objects assigned aicontrollers now reflect that by thier objecttype
basic flocking
2025-04-19 04:25:36 -05:00
marauder2k7 fae5ebb9e8 null termination was wiping buffer 2025-04-10 08:55:42 +01:00
marauder2k7 ee4acc98fe Update propertyParsing.h
bahhh humbug
2025-04-09 16:29:03 +01:00
marauder2k7 cd7666bf2a rename overloaded function so linux and mac stop bitching 2025-04-09 16:05:22 +01:00
marauder2k7 7c3fbfc9d8 add getter for console get types
templated function for getting data from a field
2025-04-09 15:14:46 +01:00
AzaezelX b886cbb527 on balance we'll want to round instead of truncate 2025-04-08 16:09:54 -05:00
marauder2k7 802f90bf69 init commit
initial commit of templated ParseProperty function
TypePoint and TypeRect consoleSetTypes now use the new templated function
2025-04-08 08:16:09 +01:00
AzaezelX 2d974cebf5 add difFloatPi range validator
player:
apply to player min/max angle
allow fallingspeedthreshold to go negative
splashdata:
velocity, hieght, acceleration and startradius can all be negative
wrap material animation range from -1 to 1
2025-04-03 16:52:49 -05:00
AzaezelX 664e9db571 fix S32Percent type-o 2025-04-02 15:44:49 -05:00
AzaezelX 3d2a923a30 add 0-100 percent ranges
F32 and S32
apply to guibitmapbarctrl
2025-04-02 15:33:39 -05:00
AzaezelX fcd2d38deb further validator cleanups
bump default fidelity from 0,0001 to 0.01
fix F32Range. needs to go from - to +, not smallest to largest positive value
fix several misasigned validator ranges. most of which use some form of -1 default to do a Special Thing
2025-03-18 14:06:33 -05:00
AzaezelX 011a8906ff skip trying to be clever and just report the variable name being checked directly 2025-03-18 03:13:37 -05:00
AzaezelX 55ac453ab9 guiProfile.border has specific usage cases for -2, so use the full negative range
clarify a bit what fieldindex is being asigned
2025-03-18 01:23:33 -05:00
AzaezelX 44b0d896b8 consolidate addfieldV method contents to avoid duplication
report *what* field is an invalid console type
prune down floating point fuzzed validators to 0
default the visual fidelity to POINT_EPSILON (0.0001) rather than 1/FLT_MAX
use the bit(bitcount) macro for legibility
fix breakangle
2025-03-17 22:39:01 -05:00
AzaezelX 40b5b018c7 report what the value is that is out of range 2025-03-11 22:30:18 -05:00
AzaezelX fa760fa746 add numerous new validators
as well as inspector support to treat a significant chunk of the codebase as range-clmped values which can take a guisliderbarctrl with a configurable at the validator level fidelity variable
additionally adds a new addfieldV and addprotetedfieldV for further callback validated slider-presented variables
*also* adds an on additional callbacks to the inspector itself, like onPreinspectobject, onPostinspectObject, and onPostInspectorfieldModified
in addition to *that*, adds a new hidefield command to tag a given specific field not to show in inspector
2025-03-09 11:51:54 -05:00