GetSkinName

Started by Milos, Apr 01, 2016, 09:58 PM

Previous topic - Next topic

Milos

Is there any way to get the name of a skin mod using GetSkinName function?
e.g. I use some skins mods as:


But when I use GetSkinName in some skin mod returns me a null string: (null : 0x(nil))
But along with the skins have the name in XML:

<?xml version="1.0" encoding="ASCII"?>
<skin>
 <basic>
  <name>Amanda</name>
  <animgroup>busywoman</animgroup>
  <animfile>null</animfile>
 </basic>
</skin>
My solution was to create my own function. But there how to use XML to get this information?

MacTavish

can you please just search before posting? here is a snippet that could solve your problem and a bug, just replace Custom Skin names with your skin names and copy paste code and use this function instead of default GetSkinName

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Milos

I've done a function that takes the names. What I asked was that you have to get these names from within the XML.

MacTavish

you cant get names from xml you have to implement them in your script

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

KAKAN

I can't understand what's so hard in copy pasting a snippet and then copy-pasting a string from a XML file or a .7z
oh no