Get the name of skin1,skin2...,skinn

Posted By: Rei_Ayanami

Get the name of skin1,skin2...,skinn - 03/24/10 17:22

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
Posted By: Quad

Re: Get the name of skin1,skin2...,skinn - 03/24/10 18:05

read from the mdl file itself, check file formant on wiki.
Posted By: Rei_Ayanami

Re: Get the name of skin1,skin2...,skinn - 03/24/10 18:13

thanks, but this doesn't really help me...

i am too stupid to understand this...
Posted By: jcl

Re: Get the name of skin1,skin2...,skinn - 03/25/10 12:59

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?
Posted By: Rei_Ayanami

Re: Get the name of skin1,skin2...,skinn - 03/25/10 14:30

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.
Posted By: Rei_Ayanami

Re: Get the name of skin1,skin2...,skinn - 03/26/10 14:54

No idea?
Posted By: jcl

Re: Get the name of skin1,skin2...,skinn - 03/29/10 10:52

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.
Posted By: Rei_Ayanami

Re: Get the name of skin1,skin2...,skinn - 03/29/10 11:15

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
Posted By: Aku_Aku

Re: Get the name of skin1,skin2...,skinn - 07/31/11 10:29

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...
Posted By: jcl

Re: Get the name of skin1,skin2...,skinn - 08/01/11 06:59

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
© 2024 lite-C Forums