Raised This Month: $ Target: $400
 0% 

Sm Error fail? (skin)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Teigen
Senior Member
Join Date: Jun 2011
Location: Norway
Old 08-22-2011 , 14:57   Sm Error fail? (skin)
Reply With Quote #1

Hi guys.

This is about a yoda skin on my css server.

error
Code:
[zombiereloaded.smx] [Models] [Config Validation] Warning: Invalid model name/path setting at index 8. File not found: "models/player/b4p/b4p_yoda/yoda.mdl".
Playerclasses
Code:
// Model
        "model_path"            "models/player/b4p/b4p_yoda/b4p_yoda.mdl"
        "alpha_initial"         "255"
        "alpha_damaged"         "255"
        "alpha_damage"          "0"
why does the error say yoda.mdl, when playerclasses is to be b4p_yoda.mdl?
__________________
[url=steam://friends/add/76561197962940328]
Teigen is offline
Send a message via MSN to Teigen Send a message via Skype™ to Teigen
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 08-22-2011 , 15:43   Re: Sm Error fail? (skin)
Reply With Quote #2

That error message belongs to the models config validation, not class validation. Check models.txt, it's model no. 9 (starting from 1) in that list.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Teigen
Senior Member
Join Date: Jun 2011
Location: Norway
Old 08-22-2011 , 18:13   Re: Sm Error fail? (skin)
Reply With Quote #3

Code:
	"yoda"
    {
        "name"      "yoda"
        "path"      "models/player/b4p/b4p_yoda/"
        "team"      "humans"
        "access"    "admins"
        "group"     ""
    }
__________________
[url=steam://friends/add/76561197962940328]
Teigen is offline
Send a message via MSN to Teigen Send a message via Skype™ to Teigen
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-22-2011 , 18:50   Re: Sm Error fail? (skin)
Reply With Quote #4

there's your problem right thar

I think the name has to be the name of the .mdl file
TnTSCS is offline
Teigen
Senior Member
Join Date: Jun 2011
Location: Norway
Old 08-22-2011 , 19:16   Re: Sm Error fail? (skin)
Reply With Quote #5

How foolish by me, not looking on that *pointing gun towards head*

ty for reminding me about that
__________________
[url=steam://friends/add/76561197962940328]
Teigen is offline
Send a message via MSN to Teigen Send a message via Skype™ to Teigen
DJRenegade
Junior Member
Join Date: Jun 2011
Old 08-22-2011 , 21:02   Re: Sm Error fail? (skin)
Reply With Quote #6

im having the same problem - so does the name have to be "model.mdl" or just "model" where "model" is the actuall models .mdl name?
DJRenegade is offline
Teigen
Senior Member
Join Date: Jun 2011
Location: Norway
Old 08-23-2011 , 00:37   Re: Sm Error fail? (skin)
Reply With Quote #7

instead of yoda, i put the name of the mld file, withouth the .mdl extension (b4p_yoda.mdl is b4p_yoda in the title in models.txt

Code:
	"yoda"
    {
        "name"      "b4p_yoda"
        "path"      "models/player/b4p/b4p_yoda/"
        "team"      "humans"
        "access"    "admins"
        "group"     ""
    }
__________________
[url=steam://friends/add/76561197962940328]
Teigen is offline
Send a message via MSN to Teigen Send a message via Skype™ to Teigen
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 08-23-2011 , 02:16   Re: Sm Error fail? (skin)
Reply With Quote #8

ZR beta 2: It's the filename without extension in the "name" attribute. Using "name" for file name was a bad design decision by me, which is already improved for our next major release.

All these attributes are explained in the top of the config file, though. Everyone need to read a bit more, especially descriptions in top of config files.

Next major release (not entirely ready yet): There we use more descriptive attribute names. "name" is renamed to "filename", a new attribute "displayname" attribute is made for controlling the on-screen model name, and we use the section name (the name before {...}) as model identifier. Like this:

Code:
"models"
{
    // This is used as identifier in classes.
    "zh_charple001"
    {
        // General
        "displayname"           "Crispy"           // How it's displayed in menus.
        "filename"              "zh_charple001"    // Actual file name.
        "path"                  "models/player/zh/"
        "team"                  "zombies"
        
        ...
    }
}
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)

Last edited by rhelgeby; 08-23-2011 at 02:25.
rhelgeby is offline
Send a message via MSN to rhelgeby
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-23-2011 , 09:25   Re: Sm Error fail? (skin)
Reply With Quote #9

indeed - the manual has EVERYTHING you need to fully customize ZR. It's very thorough and answers 99% of the questions that come across this forum...
guys
TnTSCS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode