About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Esenthel material locating.
Author Message
scotty1121 Offline
Member

Post: #1
Esenthel material locating.
Is it possible to locate a certain material in the editor? I need to do this as i can not find this material that is erroring out my game. There is no way i can find it, i even try making it pure white, but the texture is no where to be seen in the scene, so i can't locate it.

Is there anyway to find a material by the path below in the editor? thank you.


---------------------------
Error
---------------------------
Can't load "H:\Users\Scott\Desktop\Models\32-39-ST\StaticMesh\ne.mtrl"
---------------------------
OK
---------------------------
02-08-2013 03:16 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Esenthel material locating.
You can try running your game in debug mode, once the error occurs, browse the callstack, you will see what is loading what, which may help.
02-08-2013 03:18 PM
Find all posts by this user Quote this message in a reply
scotty1121 Offline
Member

Post: #3
RE: Esenthel material locating.
thank you, i will try this.
02-08-2013 03:28 PM
Find all posts by this user Quote this message in a reply
scotty1121 Offline
Member

Post: #4
RE: Esenthel material locating.
the call stack shows it's from the heightmap, but it's impossible to find this missing .mtrl, is there no way to actually search for the mtrl names that have been applied to the heightmap? and where*
thanks.
(This post was last modified: 02-08-2013 08:37 PM by scotty1121.)
02-08-2013 08:36 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Esenthel material locating.
Hi,

You can set small Game.World.active range and iterate through all areas in the game code, or manually load/unload specified areas using WORLD_MANUAL.

Once the app crashes you can check the state of your currently loaded area coordinates, and you will know which area needs reapplying materials.

Alternative is to:
set Materials.mode(CACHE_DUMMY); // disable calling Exit, but return empty data
Then check for Game.Area.Data.mshg materials to find the material
02-12-2013 01:14 PM
Find all posts by this user Quote this message in a reply
scotty1121 Offline
Member

Post: #6
RE: Esenthel material locating.
thank you very much, this helped, and i fixed it.
02-13-2013 12:51 AM
Find all posts by this user Quote this message in a reply
Post Reply