Commit graph

3424 commits

Author SHA1 Message Date
AzaezelX
cf0c7a2d11 particle emitter bounds box fix
take the distance particles can move over thier lifetime into account for emitter bounds.
in addition, don't zero out the y axis
2021-06-19 15:15:12 -05:00
Jeff Hutchinson
464cb7ae29 Better error messages when compiling script. 2021-06-19 13:48:32 -04:00
Jeff Hutchinson
085af8e762 fix %obj.field op assign. 2021-06-19 12:28:32 -04:00
Jeff Hutchinson
acde0c3f0b Merge branch 'Preview4_0_DevHead' into tsneo
# Conflicts:
#	Engine/source/console/consoleInternal.cpp
2021-06-18 21:13:49 -04:00
Jeff Hutchinson
2e8a0185b3 Fix buffer overflow issue in StringUnit::getWords.
getWords("a b c d", 2); // "c d"

that turns into this inside the engine:

getWords("a b c d", 2, 1000000);

that code after parsing d goes string++ which passes over the null character. This now enforces that check. Found this with the new script interpreter...how this wasn't blowing up before is beyond me.
2021-06-18 21:08:03 -04:00
Jeff Hutchinson
8fc0db21c1 Small fixes for the script interpreter. 2021-06-18 18:52:41 -04:00
bank
5d1c29f54b
Fix return value conversion when using SimObject::call() method from scripts. 2021-06-15 19:03:43 +03:00
AzaezelX
8f713d93f3 shadowmap validator tweaks
set the minimum range to draw a shadow to 25 units, and the max to 10k (context, default draw distance is 1k)
'double' the max texture size allowed to 8192^2 (was 4096^2) to allow folks to throw more machine at it if they really *really* wish to
2021-06-11 00:02:52 -05:00
AzaezelX
3caa83284c report simset names for add/remove errors 2021-06-07 17:34:38 -05:00
AzaezelX
1da711dc4f augment bitstream write error reporting 2021-06-07 15:07:54 -05:00
AzaezelX
e3e2de7f7b connects staticshape::unmount to the parent chain so it can actually do so 2021-06-07 15:03:23 -05:00
AzaezelX
a34aea55f7 expose a zip file password cmake config option 2021-06-02 16:08:51 -05:00
OTHGMars
9539a4a055 Adds comment explaining window position change in GuiCanvas. 2021-05-14 17:30:23 -04:00
OTHGMars
1ba7070bb6 Maintains window position when updating video mode for LightManager compatibility. 2021-05-14 03:52:43 -04:00
OTHGMars
de1e6df64b Removes redundant ScreenResChangeSignal trigger. 2021-05-14 03:50:28 -04:00
Jeff Hutchinson
c7711f633b some font changes for the macos platform. 2021-05-10 21:08:23 -04:00
Jeff Hutchinson
e981fd2cc3 Add support for aarch64 / apple silicon 2021-05-10 15:55:56 -04:00
Jeff Hutchinson
69d7a2f4a1 Merge remote-tracking branch 'devhead/Preview4_0' into tsneo
# Conflicts:
#	Engine/source/console/test/ScriptTest.cpp
#	Engine/source/console/test/consoleTest.cpp
2021-05-06 21:08:53 -04:00
Jeff Hutchinson
6f7fdca87d lotsa fixes. 2021-05-04 21:18:15 -04:00
Jeff Hutchinson
db047275f1 add fast int to object lookup. 2021-05-01 02:55:24 -04:00
Jeff Hutchinson
ab4c0f0361 Add fast math optimization 2021-05-01 02:07:54 -04:00
Jeff Hutchinson
55b0ecb487 optimizations 2021-04-30 01:20:01 -04:00
Jeff Hutchinson
dcd01e1231 move parameters instead of copying. 2021-04-30 00:24:03 -04:00
Jeff Hutchinson
964fde8f09 Goodbye String Stack! 2021-04-29 23:11:49 -04:00
Joseph
6f52b87360 Update TORQUE_GAME_ENGINE version number to reflect current version 4.0 2021-04-23 07:05:09 +01:00
Brian Roberts
2a2987869b
Merge pull request #478 from Bloodknight/SDL_OpenGL_BPP_Fix
Fixes a resolution switching issue when the game uses **only** OpenGL…
2021-04-22 19:51:14 -05:00
Brian Roberts
357abb3292
Merge pull request #480 from Azaezel/alpha40/bintoDec
adds binary to decimal and vice versa methods
2021-04-22 19:34:25 -05:00
Brian Roberts
369c06c24c
Merge pull request #485 from Azaezel/alpha40/stringtoChar
make string to char* conversion automatic
2021-04-22 19:34:05 -05:00
AzaezelX
2e3e4228b2 make string to char* conversion automatic 2021-04-21 14:45:10 -05:00
Jeff Hutchinson
f056e181b7 remove unused code. 2021-04-20 19:55:35 -04:00
Jeff Hutchinson
bb12638ea5 Added error checking for using a local variable in global scope, and added optimization to method object parameter. 2021-04-17 14:31:27 -04:00
Jeff Hutchinson
bfc0109485 fixes and some minor bc adjustment. 2021-04-16 23:21:39 -04:00
Jeff Hutchinson
bc0f5bd3a3 combine numeric stacks into one common stack. 2021-04-16 19:20:15 -04:00
Jeff Hutchinson
c19bb29a16
Merge pull request #481 from Azaezel/alpha40/profileconflictreport
report which profile usages are conflicting (was,is)
2021-04-12 21:48:38 -04:00
Jeff Hutchinson
481c900d77
Merge pull request #482 from Azaezel/alpha40/sanitizerAug
add additional chars to the flatfile->asset->objectID name santizatio…
2021-04-12 21:46:22 -04:00
Jeff Hutchinson
ef34210fef Implement Unit Test Suite for TorqueScript. 2021-04-12 21:43:57 -04:00
Jeff Hutchinson
a2dea07d8b fixed internal types. 2021-04-12 21:42:18 -04:00
Jeff Hutchinson
93500b6ac4 more changes. 2021-04-12 21:26:26 -04:00
Jeff Hutchinson
960db74733 small fix. 2021-04-10 15:52:53 -04:00
AzaezelX
ab1661a851 add additional chars to the flatfile->asset->objectID name santization chain 2021-04-06 15:17:06 -05:00
AzaezelX
ab878eb312 report which profile usages are conflicting (was,is) 2021-04-06 14:54:53 -05:00
Jeff Hutchinson
4e678292e1 fix foreach/foreach$ loops. 2021-04-04 00:50:37 -04:00
Jeff Hutchinson
3e04196a53 make tests pass. 2021-04-03 01:53:40 -04:00
AzaezelX
b7b4ced8d6 adds binary to decimal and vice versa methods 2021-04-02 14:08:26 -05: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
Jeff Hutchinson
5d2654b1ba Implement Unit Test Suite for TorqueScript. 2021-03-23 21:35:25 -04:00