Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Dico, AndrewAMD, TipmyPip), 16,844 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Get the name of skin1,skin2...,skinn #316524
03/24/10 17:22
03/24/10 17:22
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Hello laugh

For my program, i make for school, I need to get the skinname from entitys. Not just the name of skin1, for skin2-skin8 i need that, too.

I found no function in the manual that can do that...

Any suggestions?

Thanks in advance,
rei

Re: Get the name of skin1,skin2...,skinn [Re: Rei_Ayanami] #316531
03/24/10 18:05
03/24/10 18:05
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
read from the mdl file itself, check file formant on wiki.


3333333333
Re: Get the name of skin1,skin2...,skinn [Re: Quad] #316533
03/24/10 18:13
03/24/10 18:13
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
thanks, but this doesn't really help me...

i am too stupid to understand this...

Re: Get the name of skin1,skin2...,skinn [Re: Rei_Ayanami] #316606
03/25/10 12:59
03/25/10 12:59
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
The name of the skin is stored in the MDL, but AFAIK the only engine function that can read it is c_trace. And it can only read the skin name at the hit place. Can't you work around this, using some standard skin names?

Re: Get the name of skin1,skin2...,skinn [Re: jcl] #316610
03/25/10 14:30
03/25/10 14:30
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Thanks for the reply laugh

Maybe I should clear what I want to do a bit more:

I have got 27 models. Every model has some skins(at least 2). Because I wanted to save memory I deleted everyskin the model won't need - before every model had every skin.

No I want to change the skins of the model, but since the skin "green" ist not always skin1 i need to find out which skin "green" is.

Re: Get the name of skin1,skin2...,skinn [Re: Rei_Ayanami] #316780
03/26/10 14:54
03/26/10 14:54
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
No idea?

Re: Get the name of skin1,skin2...,skinn [Re: Rei_Ayanami] #317107
03/29/10 10:52
03/29/10 10:52
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Do you have some C++ knowledge? You can then use the MDL SDK for implementing a function to read the skin names. Otherwise, we have to implement this for you. I have already put it on my list as an addendum to the ent_status function, but it may take a while.

Re: Get the name of skin1,skin2...,skinn [Re: jcl] #317112
03/29/10 11:15
03/29/10 11:15
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Thank you,
I have no C++ knowledge. So I have to wait till you have implented this for me laugh

But for the moment I made a workaround. I needed to rework all the models, but for now it is okay laugh

Re: Get the name of skin1,skin2...,skinn [Re: jcl] #379262
07/31/11 10:29
07/31/11 10:29
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
I would like to know, when will be implemented the collecting of the skin names?
I have some C++ knowledge (not too much), i can't figured out how would do this feature realize in Lite-C...

Re: Get the name of skin1,skin2...,skinn [Re: Aku_Aku] #379310
08/01/11 06:59
08/01/11 06:59
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
It was already implemented, but I see that it's not documented.

You can use ent_getskin for getting the skin name - here's the updated documentation:

http://manual.3dgamestudio.net/ent_getskin.htm


Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1