Hey Guys, When I tested the BaseGame template I came across an issue that the game kept crashing when i hit the World Editor button in the GUIEditor. I think this issue may be a bug from somewhere in scripts and I'd like to demonstrate how to reproduce the issue:
Platform: windows8
Executable: game compiled with BaseGame Template without anythings else. Release Version.
Steps:
Run the game
Hit the "Launch World Editor" button in the main menu to open the WorldEditor
Hit the "Open the GUIEditor" button in the toolbar from the WorldEditor to toggle GUIEditor
In the GUIEditor hit the "WorldEditor" button in the toolbar to toggle back to the WorldEditor
the whole game crashed after step 4.
P.S.
Game does not crash in following cases:
“Launch GUI Editor”(in the main menu) -> “WorldEditor”(in the GUIEditor's toolbar) .
Game started by the torsion IDE never crashes.
console.log may help.
-------------------------- 10/6/2017 -- 17:12:14 -----
Processor Init:
Unknown x86 Compatible, ~2.60 Ghz
HT detected
MP detected [8 cores, 16 logical, 1 physical]
Math Init:
Installing Standard C extensions
Installing Assembly extensions
Initializing platform...
Input Init:
Done
SFXALProvider - No valid devices found!
DebugDrawer Enabled!
GFX Init:
Null device found
Direct 3D (version 11.x) device found
OpenGL device found
Console trace disabled.
C:/Users/Administrator/Documents
--------- Parsing Arguments ---------
Attempting to create GFX device: AMD Radeon (TM) R9 370 Series (D3D11) []
Device created, setting adapter and enumerating modes
Hardware occlusion query detected: Yes
WMIVideoInfo: DxDiag initialized
Initializing GFXCardProfiler (Direct3D11)
o Chipset : 'AMD'
o Card : 'AMD Radeon (TM) R9 370 Series'
o Version : ''
o VRAM : 4074 MB
- Scanning card capabilities...
GFXCardProfiler (Direct3D11) - Setting capability 'maxTextureWidth' to 16384.
GFXCardProfiler (Direct3D11) - Setting capability 'maxTextureHeight' to 16384.
GFXCardProfiler (Direct3D11) - Setting capability 'maxTextureSize' to 16384.
- Loading card profiles...
- No card profile core/gfxprofile/Direct3D11.cs exists
- No card profile core/gfxprofile/Direct3D11.AMD.cs exists
- No card profile core/gfxprofile/Direct3D11.AMD.AMDRadeonTMR9370Series.cs exists
- No card profile core/gfxprofile/Direct3D11.AMD.AMDRadeonTMR9370Series..cs exists
--------------
Attempting to set resolution to "1024 768 false 32 60 4"
Accepted Mode:
--Resolution : 1024 768
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--AA TypeXLevel : 4
--------------
sfxStartup...
SFXSystem::createDevice - created Null device 'SFX Null Device'
Provider: Null
Device: SFX Null Device
Hardware: No
Max Buffers: 16
UDP initialized on ipv4 IP:0.0.0.0:56604
--------------------------------------------------------------------------------
Module Manager: Started scanning 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data'...
Module Manager: Registering: 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data/clientServer/ClientServer.module' [ ID='ClientServer', VersionId='1', BuildId='0', Description='Default module for the game.' ].
Module Manager: Registering: 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data/ui/UI.module' [ ID='UI', VersionId='1', BuildId='0', Description='Module that implements the menus for the game.' ].
Module Manager: Finished scanning 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data'.
--------------------------------------------------------------------------------
Module Manager: Loading group 'Game':
Module Manager: Group 'Game' and its dependencies is comprised of the following '2' module(s):
> module Id 'ClientServer' at version Id '1':
> module Id 'UI' at version Id '1':
--------------------------------------------------------------------------------
Module Manager: Loading group 'Game' : module Id 'ClientServer' at version Id '1' in group 'Game' using the script file 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data/clientServer/ClientServer.cs'.
--------- Initializing Directory: scripts ---------
--------- Initializing T3DBaseGame: Server Scripts ---------
C:/Users/Administrator/Documents
--------- Initializing T3DBaseGame: Client Scripts ---------
C:/Users/Administrator/Documents
--------------------------------------------------------------------------------
Module Manager: Loading group 'Game' : module Id 'UI' at version Id '1' in group 'Game' using the script file 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data/ui/UI.cs'.
--------------
Attempting to set resolution to "1024 768 false 32 60 4"
Accepted Mode:
--Resolution : 1024 768
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--AA TypeXLevel : 4
--------------
--------------------------------------------------------------------------------
Module Manager: Finish loading '2' module(s) for group 'Game'.
--------------------------------------------------------------------------------
Initializing Lighting Systems
C:/Users/Administrator/Documents
--------------
Attempting to set resolution to "1024 768 false 32 60 4"
Accepted Mode:
--Resolution : 1024 768
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--AA TypeXLevel : 4
--------------
Engine initialized...
Window focus status changed: focus: 1
AntiAliasing has been disabled; it is not compatible with AdvancedLighting.
Window focus status changed: focus: 0
Using background sleep time: 200
Window focus status changed: focus: 1
% - Initializing Tools
Missing file: tools/gui/postFxManager.gui!
% - Initializing Tools Base
% - Initializing Base Editor
% - Initializing World Editor
% - Initializing Sketch Tool
- Initializing Datablock Editor
% - Initializing Debugger
% - Initializing Decal Editor
% - Initializing Forest Editor
% - Initializing Gui Editor
% - Initializing Material Editor
% - Initializing Mesh Road Editor
% - Initializing Mission Area Editor
% - Initializing Navigation Editor
SimObject::linkNamespaces -- Namespace linkage already in place NavEditorConsoleListener
% - Initializing Particle Editor
% - Initializing Physics Tools
% - Initializing River Editor
- Initializing Road and Path Editor
% - Initializing Shape Editor
C:/Users/Administrator/Documents
Exporting server prefs...
*** LOADING MISSION: tools/levels/BlankRoom.mis
*** Stage 1 load
*** Stage 2 load
*** Mission loaded
Connect request from: IP:0.0.0.0
Connection established 19984
CADD: 19985 local
*** Sending mission load to client: tools/levels/BlankRoom.mis
Mapping string: ServerMessage to index: 0
Mapping string: MsgConnectionError to index: 1
onServerMessage:
Mapping string: MsgLoadInfo to index: 2
onServerMessage:
Mapping string: MsgLoadDescripition to index: 3
onServerMessage:
Mapping string: MsgLoadInfoDone to index: 4
onServerMessage:
Mapping string: MissionStartPhase1 to index: 5
*** New Mission: tools/levels/BlankRoom.mis
*** Phase 1: Download Datablocks & Targets
% - PostFX Manager - Executing tools/levels/BlankRoom.postfxpreset.cs
% - PostFX Manager - Applying from preset
HDR FORMAT: GFXFormatR16G16B16A16F
% - PostFX Manager - PostFX enabled
Mapping string: MissionStartPhase1Ack to index: 0
Mapping string: MissionStartPhase2 to index: 6
*** Phase 2: Download Ghost Objects
Mapping string: MissionStartPhase2Ack to index: 1
[Material::mapMaterial] - Cannot map unnamed Material
[Material::mapMaterial] - Cannot map unnamed Material
Ghost Always objects received.
Mapping string: MissionStartPhase3 to index: 7
Client Replication Startup has Happened!
fxFoliageReplicator - replicated client foliage for 0 objects
*** Phase 3: Mission Lighting
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
Set::add: Object "" doesn't exist
Mapping string: MissionStart to index: 8
*** Initial Control Object
data/clientServer/scripts/client/connectionToServer.cs (47): Unable to find object: 'PlayGui' attempting to call function 'getId'
GuiCanvas::setContent - Invalid control specified')
Could not create a description for binding: +
Could not create a description for binding: +
tools/worldEditor/scripts/EditorGui.ed.cs (545): Unable to find object: 'moveMap' attempting to call function 'push'
Time spent in toggleEditor() : 1.316 s
*** Control Object Changed
data/clientServer/scripts/client/connectionToServer.cs (58): Unable to find function resetCurrentFOV
data/clientServer/scripts/client/connectionToServer.cs (60): Unable to find function turnOffZoom
GuiCanvas::setContent - Invalid control specified')
Time spent in toggleEditor() : 0.003 s
tools/worldEditor/scripts/menus.ed.cs (393): Unable to find object: '20018' attempting to call function 'removeFromCanvas'
tools/worldEditor/scripts/EditorGui.ed.cs (864): Unable to find object: '20018' attempting to call function 'remove'
tools/worldEditor/scripts/EditorGui.ed.cs (574): Unable to find object: 'moveMap' attempting to call function 'pop'
tools/worldEditor/scripts/EditorGui.ed.cs (545): Unable to find object: 'moveMap' attempting to call function 'push'
tools/worldEditor/scripts/EditorGui.ed.cs (840): Unable to find object: '20018' attempting to call function 'insert'
tools/worldEditor/scripts/undoManager.ed.cs (52): Unable to find object: '0' attempting to call function 'setItemName'
tools/worldEditor/scripts/undoManager.ed.cs (53): Unable to find object: '0' attempting to call function 'setItemName'
tools/worldEditor/scripts/undoManager.ed.cs (55): Unable to find object: '0' attempting to call function 'enableItem'
tools/worldEditor/scripts/undoManager.ed.cs (56): Unable to find object: '0' attempting to call function 'enableItem'
GFXTextureManager::_lookupTexture: Cached texture tools/worldEditor/images/lockedHandle has a different profile flag
GFXTextureManager::_lookupTexture: Cached texture tools/worldEditor/images/lockedHandle has a different profile flag
tools/worldEditor/scripts/EditorGui.ed.cs (864): Unable to find object: '20018' attempting to call function 'remove'
tools/worldEditor/scripts/EditorGui.ed.cs (574): Unable to find object: 'moveMap' attempting to call function 'pop'
tools/worldEditor/scripts/EditorGui.ed.cs (545): Unable to find object: 'moveMap' attempting to call function 'push'
Hey Guys, When I tested the BaseGame template I came across an issue that the game kept crashing when i hit the World Editor button in the GUIEditor. I think this issue may be a bug from somewhere in scripts and I'd like to demonstrate how to reproduce the issue:
Platform: windows8
Executable: game compiled with BaseGame Template without anythings else. Release Version.
Steps:
P.S. Game does not crash in following cases:
console.log may help.