Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Limb texture name reporting wrong texture

Author
Message
pdq
19
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 25th Mar 2011 18:51
I had spent a couple hours trying to debug a problem and discovered that when using "limb texture name" I sometimes get just the short filename (example.jpg) or the complete relative path and name (media/textures/example.jpg).

So I started experimenting with the code below and a model. I noticed that when I print the "limb texture name" I get the complete filename with a path that does not even exist. The object is loaded completely textured so my assumption is that DPro defaults to the immediate folder if the file does not exist in the reported path. I am just wondering if using "limb texture name" reports both at random some how. The code is below with attachment.
I have not yet reproduced the randomness since I am testing on a different computer that does not have all the plugins I've been using. But the problem does happen, I have ran into it over and over again. When I get home, I'll try to repeat the randomness on the other machine, but in the meantime has anyone else discovered this?

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 25th Mar 2011 20:36
I've tested your code but can only get the absolute filename specified in the DBO file (which of course doesn't exist on my machine).
Scorpyo
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 26th Mar 2011 11:17
this little utility i made allows you to load a model and and scroll through the limbs, check their appearance one by one, and check limb name and related texture name (and other stuff). A 6 limb cube model is enclosed in the program directory as an example.

put your model folder (model + textures) in the program folder and see what you get (you can either run the dbpro or the exe itself)

Hope it helps figuring out your problem

cheers

Login to post a reply

Server time is: 2026-07-17 13:56:50
Your offset time is: 2026-07-17 13:56:50