Commit graph

6156 commits

Author SHA1 Message Date
Lukas Aldershaab
a7f3724dd1 Handle MatrixF default values 2020-11-15 21:32:29 +01:00
Lukas
47411e2d3a Properly mark Parent class of DebugDrawer for Console hierarchy 2020-11-15 21:30:45 +01:00
Lukas
90d460d9a4 Remove object and function namespace from argument list 2020-11-15 21:30:45 +01:00
Lukas
e69c4f0f6a Remove typename from ArgumentToValue specifier in MethodTrampoline 2020-11-15 21:30:45 +01:00
Lukas
42ca155301 Fix non-mvc compilation in EngineDefaultArguments 2020-11-15 21:30:45 +01:00
Lukas
bcb75e21ac Remove typename from ArgumentToValue specifier 2020-11-15 21:30:45 +01:00
Lukas Joergensen
c9609fbdbf CInterface integration in CodeInterpreter null ptr fix
mNSEntry can be null if there is no TorqueScript defintion, but there could still be a result from an externally defined source.
´
Furthermore fixes an issue where StringStackConsoleWrapper would die before the value was read.
2020-11-15 21:30:45 +01:00
Lukas Joergensen
d567bc9735 Improve Engine API export, robust Default Value logic and allow _ in arg 2020-11-15 21:30:45 +01:00
Lukas Joergensen
8bede52d3b Comment out unused Call Ins for setting SFXSource transform 2020-11-15 21:30:45 +01:00
Lukas Joergensen
6dae9981b5 Remove double quotes inside string definition in UndoManagerpushCompound 2020-11-15 21:30:45 +01:00
Lukas Joergensen
c0eec93d55 Avoid nameclash in guiScriptNotifyControl fields 2020-11-15 21:30:45 +01:00
Lukas Joergensen
84960633b3 Fix typo in reverbModDepth field name 2020-11-15 21:30:45 +01:00
Lukas Joergensen
b76a3fa508 Correct name of EaseF param in struct EngineAPI export 2020-11-15 21:30:45 +01:00
Lukas Joergensen
03769bb79d Remove superfluous Get/SetField API methods 2020-11-15 21:30:45 +01:00
Lukas Joergensen
e95a5bf139 Expose SimPersistID to EngineAPI 2020-11-15 21:30:45 +01:00
Lukas Joergensen
fe09d6e125 ModuleSystem: Lookup CInterface methods when calling module create func 2020-11-15 21:30:45 +01:00
Lukas Joergensen
68b6884665 EngineAPI: Expose strings as UTF8 instead of UTF16 2020-11-15 21:30:45 +01:00
Lukas Joergensen
0b5fd8db6e Engine API: Pass structs by reference 2020-11-15 21:30:45 +01:00
Lukas Joergensen
6a9c09f145 Update EngineAPI, use fixed_tuple as main underlying data structure
This also fixes a few issues related to type conversions before data is sent to the engine function.
Squash
2020-11-15 21:30:45 +01:00
Lukas Joergensen
4eabbd5bb0 GuiFilterCtrl: Rename identity function to resetFiltering to avoid clash
The field "identity" previously clashed with the method "identity"
2020-11-15 21:30:45 +01:00
Lukas Joergensen
a069496ad3 ModuleDefinition: Remove duplicate addProtectedField for ModuleId 2020-11-15 21:30:45 +01:00
Lukas Joergensen
e1a6fa01ca PostEffect: Rename isEnabled field to enabled, to fix name clash 2020-11-15 21:30:45 +01:00
Lukas Joergensen
5a994bdddc Rename GuiSpeedometer::mColor to mNeedleColor to avoid clash with parent 2020-11-15 21:30:45 +01:00
Lukas Joergensen
a241d27b58 Expand EngineAPI type definitions 2020-11-15 21:30:45 +01:00
AzaezelX
39574e7fee clamp factor entriely for getXXXLight calcs, and take metalness into account for reducing direct light diffusion imact (while this seems to make it match the tooling, I can't say I've seen this exact approach used, so might want to re-review the methodology) 2020-11-13 15:24:12 -06:00
AzaezelX
c0b6007b9f undefined preprocessors on some machines eval to true. given this is purely a bool anyway, might as well stick to ifdef 2020-11-13 15:19:50 -06:00
AzaezelX
2d18d5b280 clamp borghtpass filter return values to smooth out bloom 2020-11-13 15:18:20 -06:00
Brian Roberts
f5f0eb2bb4
Merge pull request #378 from Azaezel/alpha40MacCompilePreprocessor
shader preprocessor fixes
2020-11-11 12:20:33 -06:00
Brian Roberts
b96d342960
Merge pull request #376 from Azaezel/alpha40_FixPrefLookup
be sure to executte defaults prior to clientprefs
2020-11-11 12:20:23 -06:00
AzaezelX
d76a76a1c4 shader preprocessor fixes
some hardware/apis do not evalueate 'not defined' as '0', so always ensure there's *some* value when doing macro value comparisons
2020-11-10 13:57:26 -06:00
Brian Roberts
e2cb62e252
Merge pull request #377 from Azaezel/alpha40_macCompile
mac compile fixes
2020-11-07 23:03:41 -06:00
AzaezelX
c746871b0a zlib - remove modified mini variant from assimp. we're using the big one elsewhere 2020-11-07 22:03:04 -06:00
AzaezelX
5de19404d9 mac compile fixes
1) `/` not `\` for includes
2) had to clean up a few extra ## bits that work fine winside, but trip up macs (only needed when stitching, had 5 spots where that was pointless)
2020-11-06 02:11:13 -06:00
AzaezelX
eb365fc866 be sure to executte defaults prior to clientprefs to ensure nothing gets missed 2020-11-04 16:31:17 -06:00
Brian Roberts
e3b8c7b001
Merge pull request #373 from Azaezel/alpha40_HDRfixes
get gl side HDR compiling, attempt clamp to keep bloom in range
2020-11-03 21:28:19 -06:00
Areloch
0a962342ac Adds handling to the path manager so it can deal with both looping and non-looping paths 2020-11-02 23:26:50 -06:00
Areloch
388a700a53 Implements material asset handling for GroundPlane object
Adds handling for finding material asset akin to shape and image assets
Updates the material asset inspector field to follow the current standard
Updates prototyping material assets to correctly have materialDefinitionName assigned
Fixed material asset import step to properly assign materialDefinitionName
Fixed typo in material editor icon name
Added logic to editAsset function call so it can also parse assetIds
Changed DefaultEditorLevel to utilize FloorGray material
Adds proper NoMaterial asset for fallback purposes
2020-11-01 23:32:34 -06:00
AzaezelX
be8988b1a3 remove gl side TORQUE_HDR_RGB16 macros. doesn't exist DX side, and seemed to be causing issues 2020-11-01 20:19:49 -06:00
Brian Roberts
036c7c2c75
Merge pull request #374 from Areloch/PostFXSaveLoadEditFixup
Misc fixes to ensure that the default postFX save, load and editing process is valid
2020-11-01 15:50:52 -06:00
Areloch
9ca276fef0 Misc fixes to ensure that the default postFX save, load and editing process is valid
Also fixes it so if a level asset doesn't point to a valid postfx preset file, it'll generate a clean one on save
2020-11-01 15:39:30 -06:00
AzaezelX
5be1b77791 get gl side HDR compiling, attempt clamp to keep bloom in range 2020-10-30 00:15:08 -05:00
Brian Roberts
302a64edd1
Merge pull request #372 from Areloch/MiscProbeLoadingFixups
Misc. probe bake/load fixups
2020-10-29 23:30:45 -05:00
Areloch
94e6d19fb2 Ensures that baking is consistently set to use HDR formats or not which avoids an occasional mismatch crash
Also corrected a string formatting issue with loading static cubemaps on probes that could lead to a crash
Fixed the resources loaded handling so it would correctly initialize the probe's cubemaps even if the initial ghost network packet assigned a cubemap before we fully init'd the client object
2020-10-29 23:27:07 -05:00
Brian Roberts
0e2fff00d2
Merge pull request #339 from lukaspj/fix/forcefov-on-guitscontrol
ForceFOV is not working on GuiTSControl.
2020-10-28 20:38:25 -05:00
Brian Roberts
72ee2260ca
Merge pull request #370 from Areloch/MiscBaseGameUIFixes
Misc. BaseGame UI fixes
2020-10-28 20:24:33 -05:00
Areloch
d83fc0b232 Adds check so we only do the pausing of the audio/sim when opening the pause menu when it's single player 2020-10-25 14:40:32 -05:00
Brian Roberts
1e9df5f415
Merge pull request #371 from Areloch/AssetNameSanityCheck
Adds a sanity check so asset names cannot start with a number
2020-10-25 13:04:35 -05:00
Areloch
f47e3f395a Adds a sanity check so asset names cannot start with a number, which would be an invalid object name, 2020-10-25 12:26:42 -05:00
Areloch
db6c63d424 Adjusts guiGameListMenuCtrl.cpp to handle Left and Right keys to adjust options, which simultaneously fixes the 'jiggle' issue on the options menu of the BaseGame base UI
Per Steve's suggestion, put a pause on gameplay sounds alongside the game sim being paused when the pause menu is opened.
Nudges the keybind preview image for guiGameListMenuCtrl to be better centered
2020-10-25 02:51:52 -05:00
Brian Roberts
443ca32a1d
Merge pull request #369 from zfbx/RealTimestamps
Added date/timestamp option to console log
2020-10-24 19:55:14 -05:00