Lukas Aldershaab
5615cc33d8
Remove CInterface script hooks, superseded by console refactor
2023-09-27 14:11:13 -05: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
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
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
Johan Mattsson
518f2c6a27
Release memory
2023-03-04 21:51:56 +01:00
Jeff Hutchinson
3988e7baee
Better allocator for TorqueScript temp conversions used during interpretation
...
instead of using a Vector<> that never frees and grows for torquescript temporaries created when doing type conversions)
2022-05-21 21:55:44 -04:00
Jeff Hutchinson
7ac62f42a3
Fixed a leak with console stack in the interpreter.
...
Issue was pushing a new frame in the global scope. Everytime a global scope was called, 1 ConsoleValue got allocated that was never freed. After 4096 'global scope' function calls, the engine would blow. Also cleans up an extra rogue usage of push/pop with the saver helper.
2021-11-20 19:08:02 -05:00
Jeff Hutchinson
2e03108856
Optionally allow to treat script assert as warning
...
This commit allows us to treat variable use before assign errors and local variables inside of the global scope as warnings instead of asserts. This will allow for easier porting of legacy scripts. It is highly recommended use this as an aid to port scripts, but can be used in production if needbe.
2021-11-17 18:01:35 -05:00
Robert MacGregor
2b53c065ce
* BugFix: Correct an invalid memory access error caused by the tab autocomplete in the console when attempting to tab complete at the start of the input while there is text to the right.
2021-11-02 13:55:57 -04:00
Jeff Hutchinson
4af4d90f4a
Get rid of setLocalVariable entirely.
2021-10-19 20:38:13 -04:00
Jeff Hutchinson
a7db690b59
Reimplement object copy failures.
2021-09-13 19:46:21 -04:00
Jeff Hutchinson
35b33f1864
various fixes and memory corruption bug.
2021-09-09 19:30:32 -04:00
Jeff Hutchinson
c16b88d709
Fix temporary buffer for scripting conversions.
2021-09-04 21:25:11 -04:00
Jeff Hutchinson
1b54162580
cleanup todos
2021-08-19 22:25:11 -04:00
Jeff Hutchinson
59312d7d52
debugger support
2021-08-19 22:05:43 -04:00
Jeff Hutchinson
717c7acca9
Merge remote-tracking branch 'devhead/Preview4_0' into tsneo
...
# Conflicts:
# Templates/BaseGame/game/data/ui/guis/loadingGui.gui
# Templates/BaseGame/game/data/ui/guis/mainMenu.gui
# Templates/BaseGame/game/tools/MainEditor/guis/MainEditorWindow.gui
# Templates/BaseGame/game/tools/assetBrowser/guis/assetPreviewButtonsTemplate.gui
# Templates/BaseGame/game/tools/forestEditor/brushes.tscript
2021-08-13 20:14:39 -04:00
Areloch
4d40e3cab5
Merge pull request #449 from OTHGMars/Zip_Test2
...
Loading from zipped game directories.
2021-07-17 11:03:19 -05:00
Jeff Hutchinson
55b0ecb487
optimizations
2021-04-30 01:20:01 -04:00
Jeff Hutchinson
f056e181b7
remove unused code.
2021-04-20 19:55:35 -04:00
Jeff Hutchinson
bfc0109485
fixes and some minor bc adjustment.
2021-04-16 23:21:39 -04:00
Jeff Hutchinson
93500b6ac4
more changes.
2021-04-12 21:26:26 -04:00
Jeff Hutchinson
f776e73b04
cleanup
2021-04-02 00:57:49 -04:00
Jeff Hutchinson
02447f0996
compile fixes.
2021-03-31 22:12:58 -04:00
Jeff Hutchinson
50df52ecfc
more console refactor.
2021-03-31 21:09:23 -04:00
Jeff Hutchinson
5e81c021f5
start cleaning up ConsoleValueRef's
2021-03-30 23:58:07 -04:00
Jeff Hutchinson
35500a87c6
initial port of the new interpreter
2021-03-30 19:33:19 -04:00
Lukas Aldershaab
9ccaa6d3ea
Improve handling of non-default script filenames
2021-01-19 21:32:31 +01:00
Lukas Aldershaab
099dd4f1f3
Parametrize script extension, default to 'tscript'
2021-01-19 21:32:31 +01:00
OTHGMars
8765d3a46e
Con::isBasePath() performs the same path expansion on both input paths.
2021-01-11 04:54:41 -05:00
Tony
a5b31a3cef
Added space to append to timestamps if they're used
2020-10-24 20:39:27 -04:00
Tony
f7a0047391
Fixed date order to be YYYY/MM/DD
2020-10-24 20:34:03 -04:00
Tony
afa8124301
Added date/time stamps option to console log
2020-10-24 05:41:18 -04:00
Lukas Aldershaab
c999baf7ed
Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense.
2020-10-03 14:37:55 +02:00
AzaezelX
1d71ee70e8
memleak fix
2020-09-25 12:25:35 -05:00
Areloch
8956559bfd
Various misc. tweaks and fixes based on static code analysis to minimize/fix memleaks, crashes, or other performance impacting code.
2020-09-19 18:25:10 -05:00
Areloch
cbc09534e4
Merge pull request #2248 from lukaspj/new-cinterface
...
New cinterface
2018-12-09 15:28:22 -06:00
Areloch
6cf0c9e360
Merge branch 'development' into EngineAPI-Refactor
2018-12-09 14:48:50 -06:00
Lukas Joergensen
870ee9fb5b
Integrate new CInterface into the engine-console
2018-04-21 12:04:15 +02:00
Lukas Joergensen
e718841467
Eliminate DefineConsoleFunction
2018-04-17 20:54:08 +02:00
Azaezel
cbce2ee805
Merge branch 'development' of https://github.com/GarageGames/Torque3D into memberMess
...
# Conflicts:
# Engine/source/console/consoleFunctions.cpp
2018-03-28 15:42:34 -05:00
Azaezel
9b8c950701
console membervar cleanup
2018-03-16 20:05:47 -05:00
Azaezel
46ac677906
local 'duplicates' of scratchbuffer global shifted to varBuffer
2018-03-15 15:36:38 -05:00
Glenn Smith
47d5b6ead7
As suggested, extract strlen calls from sizes into variables so it isn't called twice
2018-03-08 20:59:40 -05:00
Glenn Smith
e6e97e660c
Missed a couple +1s here and there
2018-03-07 00:44:46 -05:00
Glenn Smith
79c34c68db
Use strncpy instead of strcpy because again, buffer overflows
2018-03-06 02:35:33 -05:00
Glenn Smith
7769da9434
Use strncat instead of strcat to prevent some buffer overflows
2018-03-06 00:48:44 -05:00