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.

Newcomers DBPro Corner / Naming Files Without Numbers EX. texture object g22_mdl, g22_tex

Author
Message
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 19th Apr 2010 04:37
As the titles reads, I have seen programs name objects and such with name, like g22_mdl instead of a number after "LOAD OBJECT "path", g22_mdl", but i did it, and it throws and illegal name error. Could a kind person help with my noobishness to dbpro?
Jaeg
18
Years of Service
User Offline
Joined: 16th Mar 2006
Location: Indiana
Posted: 19th Apr 2010 04:44
You could do something like this.



If you get mad and want to type something nasty about another person do this-Type what you want to say in the box then press ctrl-a and hit delete then type what you should say.
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 19th Apr 2010 04:45 Edited at: 19th Apr 2010 05:01
It still won't work, i need the object to be g22_mdl, if it is g22_mdl = 1, it is 1, not g22_mdl.

I am not making much sense am I.
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 19th Apr 2010 14:03 Edited at: 19th Apr 2010 14:10
Try this,


Quote: "
It still won't work, i need the object to be g22_mdl, if it is g22_mdl = 1, it is 1, not g22_mdl.

I am not making much sense am I. "


You don`t have full understanding of this that`s because you are not making much sense.You want your object to be g22_mdl and if you call "load object" properly the object you want is loaded.You also point that object number is not equal "g22_mdl", and there is no need to be, and it can`t be.Because there must be assigned number and not a name, so you get the error in the first place.

EDIT: I forget to answer your question.The only way to use a name instead of number for your object is to assign the number to a proper variable and use it`s name instead,in your case you need integer variable with name g22_mdl, as Jaeg showed in his snipet.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 19th Apr 2010 16:17
Okay, thanks, I got it to work using jaeg's snippet.

Login to post a reply

Server time is: 2024-11-23 17:04:15
Your offset time is: 2024-11-23 17:04:15