Raised This Month: $ Target: $400
 0% 

Sm_Skinchooser


Post New Thread Reply   
 
Thread Tools Display Modes
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 08-09-2010 , 15:20   Re: Sm_Skinchooser
Reply With Quote #441

So , i have seperated your "Stock" section in the attached ini , also reformatted it , please test if this is working for you and if itīs so we can add the other sections to it.

In skinchooserdownloads.ini please add the correct paths for the mdl-files of your stockmodels.
Attached Files
File Type: ini skins.ini (3.0 KB, 325 views)
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
Nuclear_Suspect
Member
Join Date: Oct 2009
Old 08-10-2010 , 10:13   Re: Sm_Skinchooser
Reply With Quote #442

Sadly it didnt work, heres my skinchooserdownloads.cfg file:
Code:
//Model Files (Download and Precache)

models/sgrl.mdl
models/sgrl.phy
models/sgrl.sw.vtx
models/sgrl.vvd
models/sgrl.dx80.vtx
models/sgrl.dx90.vtx
materials/models/snausages

materials/models/characters/neoheavy
models/player/Neo_heavy.mdl
models/player/Neo_heavy.vvd
models/player/Neo_Heavy.dx80.vtx
models/player/Neo_Heavy.dx90.vtx
models/player/Neo_Heavy.phy
models/player/Neo_Heavy.sw.vtx
models/player/Neo_Heavy.xbox.vtx

Materials/models/SHModels
Models/characters/SH


models/player/po_hl2mp_player
materials/models/player/po_hl2mp

models/alyx.mdl
models/barney.mdl
models/breen.mdl
models/combine_super_soldier.mdl
models/combine_soldier.mdl
models/eli.mdl
models/monk.mdl
models/gman_high.mdl
models/kleiner.mdl
models/police.mdl
models\mossman.mdl
models/odessa.mdl
models/combine_soldier_prisonguard.mdl
models/soldier_stripped.mdl
models/zombie/classic.mdl
models/zombie/fast.mdl
models/zombie/poison.mdl

materials\models\player\libertyprimebody_d.vmt
materials\models\player\libertyprimebody_d.vtf
materials\models\player\libertyprimebody_n.vtf
materials\models\player\libertyprimeleg_d.vmt
materials\models\player\libertyprimeleg_d.vtf
materials\models\player\libertyprimeleg_n.vtf
models\player\Sam.dx80.vtx
models\player\Sam.dx90.vtx
models\player\sam.mdl
models\player\Sam.phy
models\player\Sam.sw.vtx
models\player\sam.vvd
models\player\sam.xbox.vtx

models\humans\Male_Crowbar.dx80.vtx
models\humans\Male_Crowbar.dx90.vtx
models\humans\male_crowbar.mdl
models\humans\Male_Crowbar.phy
models\humans\Male_Crowbar.sw.vtx
models\humans\male_crowbar.vvd
models\humans\Male_Crowbar.xbox.vtx
models\humans\group01\ronaldm.dx80.vtx
models\humans\group01\ronaldm.dx90.vtx
models\humans\group01\ronaldm.mdl
models\humans\group01\ronaldm.phy
models\humans\group01\ronaldm.sw.vtx
models\humans\group01\ronaldm.vvd
models\humans\male\group01\citizen_sheet.vtf
models\humans\male\group01\sandro_facemap.vtf
Nuclear_Suspect is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 08-10-2010 , 15:48   Re: Sm_Skinchooser
Reply With Quote #443

Well itīs very curios for me , I tested it today in dods and it worked as well ..... so here is again a skins.ini with only 2 models in , one for team1 and one for team2 , so you can try this one out and let me know if it works for you.......
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
Nuclear_Suspect
Member
Join Date: Oct 2009
Old 08-10-2010 , 21:28   Re: Sm_Skinchooser
Reply With Quote #444

Think you forgot to add the file ;)

Oh and i found this in my error logs
Code:
L 08/11/2010 - 00:22:04: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 08/11/2010 - 00:22:04: [SM]   [0]  Line 673, /home/groups/sourcemod/upload_tmp/phpDBrVfP.sp::Event_PlayerSpawn()
L 08/11/2010 - 00:22:04: [SM] Native "GetUserFlagBits" reported: Client index 0 is invalid
I was too stubborn with getting it to work with the stock models that I forgot to check error logs.

That error comes at what seems like random intervals (Or maybe its when a player is 'spawned' by using the sm_team command from sm_supercommands) and the server we're running is a Zombie Master server.
Nuclear_Suspect is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 08-10-2010 , 21:47   Re: Sm_Skinchooser
Reply With Quote #445

LOL......
Attached Files
File Type: ini skins.ini (342 Bytes, 265 views)
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
raBBish
New Member
Join Date: Jul 2009
Old 08-10-2010 , 22:07   Re: Sm_Skinchooser
Reply With Quote #446

The solution to stock models is adding true as the second argument in FileExists calls. That makes it check the GCFs and game cache too, where the stock models are by default.

Like FileExists(path, true)
raBBish is offline
Nuclear_Suspect
Member
Join Date: Oct 2009
Old 08-10-2010 , 22:19   Re: Sm_Skinchooser
Reply With Quote #447

I hate to admit it but raBBish' solution worked, I bet he's sitting stroking his beard and laughing at my feeble attempts to dive into the world of coding, he he (We're from the same community so kicked him a bit when I noticed that the stock models didnt have any 'physical' files in the folders it was directed to)

But andi67, I tip my hat to you, your plugin has a LOT of freedom and a lot of possibilities and the whole community have been VERY pleased with it, even if the stock models were bugged for the time being, so thank you.

Last edited by Nuclear_Suspect; 08-10-2010 at 22:20. Reason: Punctuation, my old nemesis
Nuclear_Suspect is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 08-11-2010 , 08:16   Re: Sm_Skinchooser
Reply With Quote #448

Well if he means this
Quote:
if (FileExists(path))
PrecacheModel(path,true);
that is already done in this plugin .....
nevermind THX for response and hopefully other people who have probs learned a little bit about this plugin......
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
Nuclear_Suspect
Member
Join Date: Oct 2009
Old 08-12-2010 , 02:46   Re: Sm_Skinchooser
Reply With Quote #449

I believe he means
Quote:
if (FileExists(path))
PrecacheModel(path,true);
Was changed to:
Quote:
if (FileExists(path, true))
PrecacheModel(path,true);
And it was changed on 3 lines I believe, i added the modified .sp to this post.

Other than that its been running like a dream, there is an error in our errorlog though, but I'm guessing its how Zombie Master handles spectators thats causing it.

Quote:
L 08/11/2010 - 21:21:24: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 08/11/2010 - 21:21:24: [SM] [0] Line 673, sm_skinchooser.sp::Event_PlayerSpawn()
L 08/11/2010 - 21:21:24: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
I've seen it on some other plugins as well and its not affecting the fine quality of the plugin so its a bit minor.
Attached Files
File Type: sp Get Plugin or Get Source (sm_skinchooser.sp - 483 views - 16.8 KB)
Nuclear_Suspect is offline
SumoCow
Member
Join Date: Aug 2010
Location: Richardson, TX
Old 08-14-2010 , 01:08   Re: Sm_Skinchooser
Reply With Quote #450

I am trying to install the skins on my server, but keep getting the models with no textures and/or giant ERROR signs instead of the models... what do i do to fix this?

here is my skins.ini file
Code:
//Configure your menu here
"Models"
{
    "Admin Models"
    {
        "Admin" "b"
        "Team1"
        {
            "Brown Bandit"
            {
                "path" "models\player\csctm\bandit\brown.mdl"
            }
            "Black Bandit"
            {
                "path" "models\player\csctm\bandit\black.mdl"
            }
            "Freedom"
            {
                "path" "models\player\freedom.mdl"
            }
        }

        "Team2"
        {
            "Loner"
            {
                "path" "models\player\loner.mdl"
            }
            "Mercs"
            {
                "path" "models\player\mercs.mdl"
            }
            "Duty"
            {
                "path" "models\player\duty.mdl"
            }
            "Monolith"
            {
                "path" "models\player\monolith.mdl"
            }    

        }
    }

"Public Models"
{
        "Admin" ""
        "Team1"
        {
            "Brown Bandit"
            {
                "path" "models\player\csctm\bandit\brown.mdl"
            }
            "Black Bandit"
            {
                "path" "models\player\csctm\bandit\black.mdl"
            }
            "Freedom"
            {
                "path" "models\player\freedom.mdl"
            }
        }

        "Team2"
        {
            "Loner"
            {
                "path" "models\player\loner.mdl"
            }
            "Mercs"
            {
                "path" "models\player\mercs.mdl"
            }
            "Duty"
            {
                "path" "models\player\duty.mdl"
            }
            "Monolith"
            {
                "path" "models\player\monolith.mdl"
            }    

        }
}

//"Reserved Models"
//{
//"Group" "Member"
//"Team1"
//{
//"Yoda"
//{
//"path" "models\player\b4p\b4p_yoda\b4p_yoda.mdl"
//}
//}

//"Team2"
//{
//"Darth Vader"
//{
//"path" "models\player\b4p\b4p_vader\b4p_vader.mdl"
//}
//}
//}
}


//If you use Fastdownload make sure all your model and material files are on your webserver!!!
and here is my skinchooserdownloads.ini file

Code:
//Model Files (Download and Precache)
"models\player\duty.mdl"
"models\player\duty.dx80.vtx"
"models\player\duty.dx90.vtx"
"models\player\duty.phy"
"models\player\duty.sw.vtx"
"models\player\duty.vvd"
"models\player\duty.xbox.vtx"
"models\player\freedom.mdl"
"models\player\freedom.dx80.vtx
"models\player\freedom.dx90.vtx"
"models\player\freedom.phy"
"models\player\freedom.sw.vtx"
"models\player\freedom.vvd"
"models\player\freedom.xbox.vtx"
"models\player\mercs.mdl"
"models\player\mercs.dx80.vtx"
"models\player\mercs.dx90.vtx"
"models\player\mercs.phy"
"models\player\mercs.sw.vtx"
"models\player\mercs.vvd"
"models\player\mercs.xbox.vtx"
"models\player\loner.mdl"
"models\player\loner.dx80.vtx"
"models\player\loner.dx90.vtx"
"models\player\loner.phy"
"models\player\loner.sw.vtx"
"models\player\loner.vvd"
"models\player\loner.xbox.vtx"
"models\player\monolith.mdl"
"models\player\monolith.dx80.vtx"
"models\player\monolith.dx90.vtx"
"models\player\monolith.phy"
"models\player\monolith.sw.vtx"
"models\player\monolith.vvd"
"models\player\monolith.xbox.vtx"
"materials\models\player\csctm_stalker_exo\act_st_exoskel_tank_monolit.vmt"
"materials\models\player\csctm_stalker_exo\act_st_exoskel_tank_monolit.vtf"
"materials\models\player\csctm_stalker_exo\act_st_exoskelet_loner_tank.vmt"
"materials\models\player\csctm_stalker_exo\act_st_exoskelet_loner_tank.vtf"
"materials\models\player\csctm_stalker_exo\act_st_exoskel_tank_ex_dolg.vmt"
"materials\models\player\csctm_stalker_exo\act_st_exoskel_tank_ex_dolg.vtf"
"materials\models\player\csctm_stalker_exo\act_st_exoskel_tank_specnaz.vmt"
"materials\models\player\csctm_stalker_exo\act_st_exoskel_tank_specnaz.vtf"
"materials\models\player\csctm_stalker_exo\act_st_exoskel_tank_svoboda.vmt"
"materials\models\player\csctm_stalker_exo\act_st_exoskel_tank_svoboda.vtf"
"models\player\csctm\bandit\black.dx80.vtx"
"models\player\csctm\bandit\black.dx90.vtx"
"models\player\csctm\bandit\black.mdl"
"models\player\csctm\bandit\black.phy"
"models\player\csctm\bandit\black.sw.vtx"
"models\player\csctm\bandit\black.vvd"
"models\player\csctm\bandit\black.xbox.vtx"
"models\player\csctm\bandit\brown.dx80.vtx"
"models\player\csctm\bandit\brown.dx90.vtx"
"models\player\csctm\bandit\brown.mdl"
"models\player\csctm\bandit\brown.phy"
"models\player\csctm\bandit\brown.sw.vtx"
"models\player\csctm\bandit\brown.vvd"
"models\player\csctm\bandit\brown.xbox.vtx"
"materials\models\csctm\bandit\csctm_bandit_01.vmt"
"materials\models\csctm\bandit\csctm_bandit_01.vtf"
"materials\models\csctm\bandit\csctm_bandit_01_normal.vtf"
"materials\models\csctm\bandit\csctm_bandit_02.vmt"
"materials\models\csctm\bandit\csctm_bandit_02.vtf"
"materials\models\csctm\bandit\csctm_bandit_02_normal.vtf"

what am i doing wrong? I am using the most current version of SM, by the way.
SumoCow 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 08:27.


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