Commit graph

5618 commits

Author SHA1 Message Date
Robert MacGregor 1cd2b3ead9 * BugFix: Correct a small typo in the script function 'compareFileTimes'. 2022-06-13 11:45:05 -04:00
Robert MacGregor a390e0d8d5 * BugFix: Correct script function 'compareFileTimes' not going through the VFS when making the comparisons. 2022-06-13 11:43:43 -04:00
Robert MacGregor 3dafdef5da * BugFix: Mount home:/ to refer to Torque's original Documents/<APPNAME> output for eg. prefs while leaving data:/ as an option for those that may want it. 2022-06-13 10:53:01 -04:00
Robert MacGregor 59cf242a7a * BugFix: Fix the data:/ VFS not being mounted if the root directory didn't already exist. 2022-06-13 10:32:39 -04:00
Robert MacGregor 93a4f8780c * BugFix: Correct simple incorrect references after changing Platform::isFile to Torque::FS::isFile in the asset importer. 2022-06-13 08:20:46 -04:00
Robert MacGregor ba07e6c6d7 * Cleanup: Remove the partial editor tools integration from the TORQUE_SECURE_VFS implementation in preference for developers building mod tools builds instead. 2022-06-13 08:08:43 -04:00
Robert MacGregor 161ffc62fe Merge branch 'Preview4_0' into feature-vfs-security 2022-06-13 08:05:26 -04:00
Brian Roberts 9836f6eb30
Merge pull request #814 from Azaezel/alpha40/vectorlightvisfix
fix vectorlight visualizer varnames
2022-06-12 15:24:16 -05:00
AzaezelX e60927f2f7 opengl does *not* like casting floats to vec#s as a general rule. 2022-06-12 15:08:00 -05:00
AzaezelX 01ba199dc7 fix vectorlight visualizer varnames 2022-06-12 14:43:26 -05:00
Brian Roberts 607f62bf03
Merge pull request #812 from Ragora/str_cpp_memory_experiment
BugFix: Remove the GCC Workaround
2022-06-09 22:49:59 -05:00
Robert MacGregor 4ef3f89280 * BugFix: Correct a minor post-merge typo. 2022-06-09 23:10:13 -04:00
Robert MacGregor 1e9aa8b86f Merge branch 'Preview4_0' into str_cpp_memory_experiment 2022-06-09 22:49:43 -04:00
Robert MacGregor 704113577b * Cleanup: Remove leftover comments from str.cpp. 2022-06-09 19:30:25 -04:00
Robert MacGregor 6d0e81763b * BugFix: Correct not setting the string to interned when allocating a StringData with a DataChunker in str.cpp. 2022-06-09 19:26:39 -04:00
Brian Roberts 3e709328a9
Merge pull request #811 from Areloch/MiscFixes20220609
Misc Fixes 2022/06/09
2022-06-09 17:29:55 -05:00
JeffR 67d8448915 Fixes cleanup handling on guiBitmapButtonCtrl and guiGameSettingsCtrl to release the bound textures like other GUI controls when they sleep, avoiding a texture object leak.
Fixes a call for UINavigation to getPageCount that was erroneously referencing the pageStack
Fixes fetch and binding of the image for display when using the uvEditor
2022-06-09 16:29:32 -05:00
Robert MacGregor 2cdfe70e50 * Experiment: Change the way StringData is allocated in the code, experimentally. 2022-06-08 11:27:16 -04:00
Brian Roberts 53aea82614
Merge pull request #809 from Azaezel/alpha40/ambientAug
allow ambient light injection into ibl
2022-06-07 22:12:24 -05:00
AzaezelX 66820fee90 let me underscore this is painfully incorrect and we'll want to revisit it when we have more time, but... this seems to fix mangled decal and decalroad rendering 2022-06-07 22:06:48 -05:00
AzaezelX de6ee93159 slim ambient down to vec3, default to premul for translucency 2022-06-07 22:05:47 -05:00
AzaezelX 0e0088cab9 forward lit ambient application. fix GL side IBL overwriting forward lit color.a 2022-06-07 11:18:53 -05:00
AzaezelX 5be18a4638 allow ambient light injection into ibl 2022-06-06 17:50:34 -05:00
Brian Roberts 82119ea2df
Merge pull request #808 from Areloch/MiscFixes20220605
Misc Fixes 2022/06/05
2022-06-05 16:28:05 -05:00
JeffR f4ca9c5202 Adds sanity check on UINavigation to avoid crashes if there are no pages in the stack.
Removes button to fill import terrain images temporarily to contend with limitations in asset creation workflow
Adds sanity check to saving terrain material that obligates setting of diffuse and detail maps so everything displays and blends properly
2022-06-05 15:35:20 -05:00
Brian Roberts a73695a01a
Merge pull request #807 from Areloch/DisconnectAndCleanupFix
Disconnect and Shutdown fixes
2022-06-05 01:26:42 -05:00
JeffR 1acf4b2dae Adjusts engine cleanup ordering on shaderFeatureMgr to avoid periodic crashes on Mac ARM machines
Adds missing disconnect/timeout handling callbacks to the clientServer core module
Adds page refresh function to UINavigation to be able to selectively nudge the current page to refresh its contents if needbe
2022-06-05 01:21:38 -05:00
Brian Roberts 34d109d45e
Merge pull request #806 from Areloch/ClientParticleFix
Uncomments networking lines that ensure client has the particle's textures
2022-06-04 21:57:43 -05:00
JeffR 834116c513 Uncomments networking lines that ensure client has the particle's textures 2022-06-04 21:53:12 -05:00
Brian Roberts dc6eba0519
Merge pull request #805 from Areloch/SoundFixRandD
Sound Networking Fixes
2022-06-04 15:52:55 -05:00
Areloch d778f370fe
Merge branch 'TorqueGameEngines:Preview4_0' into SoundFixRandD 2022-06-04 11:02:57 -05:00
JeffR 7efab038d1 Adjusts handling for special-case networking of sound assets where we may need to account for stuff like SFXPlaylists. DB names aren't transported, so we need to do Id lookups 2022-06-04 00:59:06 -05:00
JeffR 448a453e51 Fixes logic check for sound asset macros so if the defined field value is an object, we consider it valid, as it's almost certainly an SFXPlaylist or track. This removes some unneeded error spam 2022-06-03 03:23:27 -05:00
Brian Roberts d8694f42d8
Merge pull request #804 from Areloch/MiscFIxes20220601
Misc Fixes 2022/06/01
2022-06-03 03:13:42 -05:00
JeffR 943cf8351b Adds safety check to SoundAsset's playSound so if we don't have a source, it doesn't crash
Adds logic to SoundAsset's load sound to 'nudge' the SFX system to load the required data for first use
Shifts SimSoundAssetEvent constructor to utilize assetId instead of raw asset so we can safely fail if for whatever reason we end up default constructor'ing blanks
Standardizes the shapeImage playList lookup a bit into a common function and ensures that on packet receive we force an update of the state's sound
2022-06-03 02:04:39 -05:00
JeffR c7763fe3ec Added cleanup of exec stack for module when it's finished to avoid duplicate executions
Added proper container bracketing for the main menu buttons and made that the main navigation target
Added logic to UINav to prevent needlessly re-setting the root page if it already is the root page, which would break the navigation stack
Added logic to UINav toprevent needlessly adding duplicate pages whicn would break the navigation stack
Added logic to close the chooseLevelDlg page when the level is loaded to avoid the page being left hanging on the nav stack
Fixed assetId for no preview image fallback on the chooseLevelDlg page
Fixed display of icons in the shape editor shape helper section
Fixed name lookup on terrain material editor dialogue which would break saving of terrain materials
Disables TORQUE_SFX_DirectX which is currently not in use and nonfunctional
2022-06-02 20:17:23 -05:00
Brian Roberts 956bd51d6d
Merge pull request #802 from Azaezel/alpha40/playerClampProper
proper player head rot clamp
2022-06-01 10:31:07 -05:00
AzaezelX bba3b1a8d6 proper player head rot clamp 2022-06-01 10:30:45 -05:00
Brian Roberts 35e946e627
Merge pull request #800 from Azaezel/alpha40/constraintConsternation
constrain player mRot.z reguardless of translation
2022-06-01 09:24:34 -05:00
AzaezelX c3eb5e028b constrain player mRot.z reguardless of translation 2022-05-31 22:00:15 -05:00
Brian Roberts d9361a0128
Merge pull request #799 from Areloch/MiscFixes20220530
Misc Fixes for 2022/05/30
2022-05-31 14:33:59 -05:00
JeffR d56a05c314 Trim unneeded input commands 2022-05-31 01:12:02 -05:00
JeffR 27b20c14d7 Cleans up the ExampleModule to have up-to-date examples of module init'ing, game modes, levels and basic input logic
Cleans up prototyping module to trim unneeded extra scripts and files
Adds PlayerBot model to Prototyping module
Adds metalGray material to Prototyping module
Fixes issue where logic wasn't changed for forcing AB preview images to regenerate
Removes unneeded legacy lines from editor template level
Removes unneeded extra asset import config
Disables terrain material name field from editing in terrain material editor for now to prevent bad behavior
Adds mapTo line to newly created material asset definitions to ensure shapes doing mapTo lookups can properly utilize the materials
2022-05-31 00:26:20 -05:00
Brian Roberts 9486587014
Merge pull request #795 from Azaezel/alpha40/forrestfunteims
lower min brushsize for forest to sub-meter levels
2022-05-30 16:35:35 -05:00
Brian Roberts 8e15369db9
Merge pull request #796 from Azaezel/alpha40/particlePlop
fix particle emitter asset browser spawning
2022-05-30 16:35:28 -05:00
Brian Roberts 5b9c080aef
Merge pull request #798 from dottools/fix/mouseCoordSpace
Use screen space coordinates for mouse pointer position
2022-05-30 16:35:19 -05:00
Brian Roberts e0550c6aac
Merge pull request #797 from dottools/fix/optsAssertOnCancel
BaseGame Template: Fix script assert on canceling game options changes
2022-05-30 16:35:01 -05:00
dottools 0f81ececae Engine SDL: Use screen space coordinates for both mouse pointer set and get position
Changed mouse pointer coordinates from client to screen space. Done in order to be consistent with existing engine comments, API help doc string, and how it used to work in Win32 window management code.
2022-05-30 16:14:18 -05:00
dottools 01a3163d40 Engine GUI: Don't translate mouse coordinates in GuiCanvas::setCursorPos()
Removed translating passed mouse pointer coordinates from client to screen space. Source comments and exposed canvas script API help doc line for the same function states that passed mouse pointer coordinates are supposed to already be in screen space.
2022-05-30 16:09:48 -05:00
dottools 8267c13696 BaseGame Template: Fix script assert on canceling game options changes 2022-05-30 15:54:32 -05:00