Game Development Community

Accidently changed warningmaterial_mat, T3D now crashes

by David Fryklind · in Technical Issues · 02/27/2013 (8:28 am) · 5 replies

Sat around doing my thing (town) in T3D, and when i added decals with arrows on them to be applied on roads i may have accidently replaced the warningmaterial_mat with one of the arrow PNGs.. Now T3D with my project wont start, crashes as its about to go in-game after loading everything, at the STARTING MISSION message.

I might add that in this project I, a while ago, seized to get the material editor (where you add new materials), the screen just adds a transparent grey layer and i have to go ESC and it gets me in-game, then i need to push F11 again :)

Heres what my CONSOLE.txt says:

//-------------------------- 2/27/2013 -- 17:13:16 -----
Processor Init:
Intel Pentium III Xeon, ~3.29 Ghz
FPU detected
MMX detected
SSE detected
SSE2 detected
MP detected [4 cores, 4 logical, 1 physical]

Math Init:
Installing Standard C extensions
Installing Assembly extensions
Installing FPU extensions
Installing MMX extensions
Installing SSE extensions

Initializing platform...
Input Init:
keyboard0 input device created.
mouse0 input device created.
DirectInput enabled.

Done
SFXFMODProvider - Could not locate 'fmodex.dll' or 'fmodexp.dll' - FMOD not available.
GFX Init:
Direct 3D (version 9.x) device found
Null device found

DebugDrawer Enabled!
--------- Loading DIRS ---------

--------- Parsing Arguments ---------
Binding server port to default IP
UDP initialized on port 0
Attempting to create GFX device: AMD Radeon HD 7800 Series (D3D9)
Device created, setting adapter and enumerating modes
Cur. D3DDevice ref count=1
Pix version detected: 3.000000
Vert version detected: 3.000000
Maximum number of simultaneous samplers: 16
Number of simultaneous render targets: 4
Hardware occlusion query detected: Yes
Using Direct3D9Ex: No
WMIVideoInfo: DxDiag initialized
Initializing GFXCardProfiler (D3D9)
o Chipset : 'AMD Radeon Graphics Processor (0x6819)'
o Card : 'AMD Radeon HD 7800 Series'
o Version : '8.17.0010.1191'
- Scanning card capabilities...
GFXCardProfiler (D3D9) - Setting capability 'autoMipMapLevel' to 1.
GFXCardProfiler (D3D9) - Setting capability 'maxTextureWidth' to 16384.
GFXCardProfiler (D3D9) - Setting capability 'maxTextureHeight' to 16384.
GFXCardProfiler (D3D9) - Setting capability 'maxTextureSize' to 16384.
GFXCardProfiler (D3D9) - Setting capability 'lerpDetailBlend' to 1.
GFXCardProfiler (D3D9) - Setting capability 'fourStageDetailBlend' to 1.
- Loading card profiles...
- Loaded card profile core/profile/D3D9.cs
- No card profile core/profile/D3D9.AMDRadeonGraphicsProcessor0x6819.cs exists
- No card profile core/profile/D3D9.AMDRadeonGraphicsProcessor0x6819.AMDRadeonHD7800Series.cs exists
- No card profile core/profile/D3D9.AMDRadeonGraphicsProcessor0x6819.AMDRadeonHD7800Series.81700101191.cs exists
% - PostFX Manager - Executing core/scripts/client/postFx/default.postfxpreset.cs
% - PostFX Manager - Applying from preset
% - PostFX Manager - PostFX enabled
Missing file: core/art/gui/customProfiles.cs!
% - Initialized Core

--------- Initializing Directory: scripts ---------
sfxStartup...
SFXSystem::createDevice - created DirectSound device 'Primär ljuddrivrutin'
SFXDSDevice::setDistanceModel - 'linear' distance attenuation not supported by DirectSound
Provider: DirectSound
Device: Primär ljuddrivrutin
Hardware: No
Buffers: 16

--------- Initializing Countryside mellow: Server Scripts ---------

--------- Initializing Countryside mellow: Client Scripts ---------

--------- Initializing Lighting Systems ---------
Using Advanced Lighting


--------------
Attempting to set resolution to "1366 768 false 32 60 4"
Accepted Mode:
--Resolution : 1366 768
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--FSAA Level : 4
--------------
GFXPCD3D9Device::reset - depthstencil 54e4240 has 2 ref's
--- Resetting D3D Device ---
GFXPCD3D9Device::reset - depthstencil 54e4180 has 2 ref's
--- Resetting D3D Device ---
art/shapes/weapons/SwarmGun/materials.cs (23): Cannot re-declare object [w_swarmgun].
Binding server port to default IP
UDP initialized on port 0
% - Initializing Tools
tools/gui/materialSelector.ed.gui (1): Cannot re-declare object [MaterialSelector].
% - 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 Particle Editor
% - Initializing Physics Tools
% - Initializing River Editor
- Initializing Road and Path Editor
% - Initializing Shape Editor
Engine initialized...
Window focus status changed: focus: 1
AntiAliasing has been disabled; it is not compatible with AdvancedLighting.
Exporting server prefs...
ParticleData - TeleporterFlash(24) - invalid value for dragCoefficient: Must be between 0 and 5
Error: cannot change namespace parent linkage of Arrowstraightleft from Material to DecalData.
Error: cannot change namespace parent linkage of Arrowstraightright from Material to DecalData.
ParticleData(GLWaterExpDust) times[2] < times[1]
ParticleData(RLWaterExpDust) times[2] < times[1]
ParticleData - RocketLauncherfiring1Particle(158) - invalid value for dragCoefficient: Must be between 0 and 5
ParticleData - RocketLauncherfiring2Particle(160) - invalid value for dragCoefficient: Must be between 0 and 5
Warning: shape art/shapes/weapons/Turret/Turret_Legs.DAE collision detail 0 (Collision-1) bounds exceed that of shape.
Warning: shape art/shapes/weapons/Turret/Turret_Legs.DAE collision detail 0 (Collision-1) bounds exceed that of shape.
Warning: shape art/shapes/weapons/Turret/Turret_Legs.DAE collision detail 0 (Collision-1) bounds exceed that of shape.
ParticleData(LightPuff) times[2] < times[1]
*** LOADING MISSION: levels/Empty Room.mis
*** Stage 1 load
*** Stage 2 load
[MaterialList::mapMaterials] Unable to find material for texture: Reed_ground
[MaterialList::mapMaterials] Unable to find material for texture: grass1-dry
[MaterialList::mapMaterials] Unable to find material for texture: Bottom
[MaterialList::mapMaterials] Unable to find material for texture: prairie_base
[MaterialList::mapMaterials] Unable to find material for texture: prairie_base
[MaterialList::mapMaterials] Unable to find material for texture: grass1-dry
[MaterialList::mapMaterials] Unable to find material for texture: rocktest
[MaterialList::mapMaterials] Unable to find material for texture: asphalt_plane_base
tools/worldEditor/scripts/cameraBookmarks.ed.cs (53): Unable to find object: 'EditorCameraBookmarks' attempting to call function 'addItem'
tools/worldEditor/scripts/cameraBookmarks.ed.cs (53): Unable to find object: 'EditorCameraBookmarks' attempting to call function 'addItem'
tools/worldEditor/scripts/cameraBookmarks.ed.cs (53): Unable to find object: 'EditorCameraBookmarks' attempting to call function 'addItem'
Game -> activatePackages
*** Mission loaded
Connect request from:
Connection established 4383
CADD: 4384 local
*** Sending mission load to client: levels/Empty Room.mis
Mapping string: ServerMessage to index: 0
Mapping string: MsgConnectionError to index: 1
Mapping string: MsgLoadInfo to index: 2
Mapping string: MsgLoadDescripition to index: 3
Mapping string: MsgLoadInfoDone to index: 4
Mapping string: MissionStartPhase1 to index: 5
*** New Mission: levels/Empty Room.mis
*** Phase 1: Download Datablocks & Targets
% - PostFX Manager - Executing levels/Empty Room.postfxpreset.cs
% - PostFX Manager - Applying from preset
HDR FORMAT: GFXFormatR10G10B10A2
Using Advanced Lighting
% - PostFX Manager - PostFX enabled
Mapping string: MissionStartPhase1Ack to index: 0
DecalData::unpackUpdate, failed to find Material of name WarningMaterial_mat!
DecalData::unpackUpdate, failed to find Material of name WarningMaterial!
Warning: shape art/shapes/weapons/Turret/Turret_Legs.DAE collision detail 1 (Collision-1) bounds exceed that of shape.
Warning: shape art/shapes/weapons/Turret/Turret_Legs.DAE collision detail 1 (Collision-1) bounds exceed that of shape.
Warning: shape art/shapes/weapons/Turret/Turret_Legs.DAE collision detail 1 (Collision-1) bounds exceed that of shape.
[MaterialList::mapMaterials] Unable to find material for texture: base.lmale
[MaterialList::mapMaterials] Unable to find material for texture: base.lmale
Mapping string: MissionStartPhase2 to index: 6
*** Phase 2: Download Ghost Objects
Mapping string: MissionStartPhase2Ack to index: 1
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
Mapping string: MissionStart to index: 8
Mapping string: SyncClock to index: 9
Mapping string: RefreshWeaponHud to index: 10
Mapping string: SetAmmoAmountHud to index: 11
Mapping string: lurker.png to index: 12
Mapping string: MsgClientJoin to index: 13
Mapping string: Welcome to the Torque demo app %1. to index: 14
Mapping string:  Visitor to index: 15
*** Initial Control Object
Activating DirectInput...
*** Control Object Changed
Mapping string: DarkBlue to index: 16


All help appreciated since im at a dead end here :)

Dave

#1
02/27/2013 (11:21 am)
Go into your .mis file (mission file) and delete the object that replaced the warning material if that is the issue.
#2
02/27/2013 (1:01 pm)
Dont know if it was this you meant but i opened my Empty Room.mis and deleted the text taht was there and voila, its back!

Thanks for your help, now im just gonna figure out why i cant get my material editor window-ish up and running so that i can add a empty material instead of messing with my files ;)
#3
02/27/2013 (1:58 pm)
Just to make things clear, its the Material Selector window that doesnt appear, all that happens is that a grey filter is applied on the world but pressing ESC gets me in-game.
#4
02/27/2013 (3:09 pm)
You might check in the material.cs files (can be in a few places, usually in the art directories) and see if there are any messed up material datablock entries in there. Whenever I get strange issues it is usually because something got hosed in a script file somewhere.
#5
02/28/2013 (8:54 am)
Yey! Thank you so very much!

One of few places where you actually get great help.
I checked one of the material.cs, the one in /art, looked like i had managed to add a whole new GUI for the project. Deleted all newGUI entries and it worked, thanks again!