Raised This Month: $ Target: $400
 0% 

Sm_Skinchooser


Post New Thread Reply   
 
Thread Tools Display Modes
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 11-28-2012 , 05:10   Re: Invisible Players
Reply With Quote #1351

Quote:
Originally Posted by c1yd3i View Post
Hello!
First of all, let me introduce my self as this is my first time posting on the AlliedModders community! Although, I have tabs from you open on my computer for years, never have needed to ask a question or had anything to contribute.

Anyway, I am having problems with sm_skinchooser. I've followed ALL documentation on the wiki, but still no success.

My skin.ini is setup so only ranks with certain flags can access it. They don't have a problem. But, if you don't select a skin or have a player that doesn't have access.... your model is invisible!

Help would be thanked (thanksgiving get it? hahaha)
- c1yd3i

EDIT: the cvar for adminonly skins is set. Hence, "" for Diplomat.

Code:
//Configure your menu here
"Models"
{
"Admin Models"
{
"Admin" "t"
"Team1"
{
"Skull Admin"
{
"path" "models/player/ics/skull_admin_v2/skull.mdl"
}
"Max"
{
"path" "models/player/slow/sam_and_max/max/slow_v2.mdl"
}
"Steve"
{
"path" "models/player/knifelemon/blockdude.mdl"
} 
}

"Team2"
{
"Urban Admin"
{
"path" "models/player/ics/fin_m91_v2/urban.mdl"
}
"Max"
{
"path" "models/player/slow/sam_and_max/max/slow_v2.mdl"
}
"Steve"
{
"path" "models/player/knifelemon/blockdude.mdl"
}
}
}

"Diplomat"
{
"Admin" ""
"Team1"
{
"Desert Arctic"
{
"path" "models/player/ics/t_desert_arctic/t_arctic.mdl"
}
"Homer"
{
"path" "models/player/slow/homer_v2/sheiks_homer.mdl"
}
"Eli"
{
"path" "models/player/slow/eli/eli.mdl"
}
"Female T"
{
"path" "models/player/ics/t_female/t_phoenix.mdl"
}
"Zombie Guerilla"
{
"path" "models\player\ics\t_guerilla_z\t_guerilla.mdl"
}
"Niko Bellic"
{
"path" "models/player/slow/niko_bellic/slow.mdl"
}
}


"Team2"
{
"SAS Victor"
{
"path" "models/player/ics/ct_sas_victor/ct_sas.mdl"
}
"Fin"
{
"path" "models/player/ics/ct_fin_05/urban.mdl"
}
"Desert Urban"
{
"path" "models/player/ics/ct_desert_urban/urban.mdl"
}
"Urban Frogman"
{
"path" "models/player/ics/ct_urban_frogman/urban.mdl"
}
"Gman"
{
"path" "models/player/slow/vip/slow_vip.mdl"
}
"Mario"
{
"path" "models/player/slow/mario/mario.mdl"
}
}
}
}


//If you use Fastdownload make sure all your model and material files are on your webserver!!!
Hi mate,

I already answered to that:

You have to either disable the sm_skinchooser_forceplayerskin cvar, OR you have to add default CS:S models in your forceskinsplayer_team2.ini and forceskinsplayer_team3.ini files, like this:

forceskinsplayer_team2.ini :

models/player/t_phoenix.mdl
models/player/t_leet.mdl
models/player/t_arctic.mdl
models/player/t_guerilla.mdl

forceskinsplayer_team3.ini :

models/player/ct_urban.mdl
models/player/ct_gsg9.mdl
models/player/ct_sas.mdl
models/player/ct_gign.mdl

Same thing in forceskinsbots_team2.ini and forceskinsbots_team3.ini if you let sm_skinchooser_skinbots to "1" by the way...
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 03-23-2013 at 10:35.
St00ne is offline
thenumb3rguy
Senior Member
Join Date: Oct 2012
Location: Hong Kong
Old 11-29-2012 , 07:05   Re: Sm_Skinchooser
Reply With Quote #1352

Plugin dont work in CSGO

clienets crashing

disappearing T models

forceskinplayer_team2.ini
Code:
models/player/t_phoenix.mdl
forceskinplayer_team3.ini
Code:
models/player/mapeadores/kaem/police/police.mdl
skinchooserdownloads.ini
Code:
 
models/player/mapeadores/kaem/police/police.mdl
models/player/mapeadores/kaem/police/police.phy
models/player/mapeadores/kaem/police/police.dx90.vtx
models/player/mapeadores/kaem/police/police.vvd
materials/models/player/mapeadores/kaem/police/chp_coat.vtf
materials/models/player/mapeadores/kaem/police/chp_coat.vmt
materials/models/player/mapeadores/kaem/police/chp_coat_n.vtf
materials/models/player/mapeadores/kaem/police/chp_hands_m.vmt
materials/models/player/mapeadores/kaem/police/chp_hands_m.vtf
materials/models/player/mapeadores/kaem/police/chp_hands_m_n.vtf
materials/models/player/mapeadores/kaem/police/chp_holster.vtf
materials/models/player/mapeadores/kaem/police/chp_holster.vmt
materials/models/player/mapeadores/kaem/police/chp_male_face.vmt
materials/models/player/mapeadores/kaem/police/chp_male_face.vtf
materials/models/player/mapeadores/kaem/police/chp_male_face_n.vtf
materials/models/player/mapeadores/kaem/police/chp_pants.vmt
materials/models/player/mapeadores/kaem/police/chp_pants.vtf
materials/models/player/mapeadores/kaem/police/chp_pants_n.vtf
sm_skinchooser.cfg

Code:
// This file was auto-generated by SourceMod (v1.5.0-dev+3665)
// ConVars for plugin "sm_skinchooser.smx"

// -
// Default: "1"
sm_skinchooser_admingroup "0"
// -
// Default: "0"
sm_skinchooser_adminonly "0"
// -
// Default: "1"
sm_skinchooser_autodisplay "0"
// -
// Default: "0"
sm_skinchooser_displaytimer "0"
// -
// Default: "1"
sm_skinchooser_enabled "1"
// -
// Default: "1"
sm_skinchooser_forceplayerskin "1"
// -
// Default: "5.0"
sm_skinchooser_menustarttime "5.0"
// -
// Default: "1"
sm_skinchooser_playerspawntimer "1"
// -
// Default: "1"
sm_skinchooser_skinbots "0"
// SM SKINCHOOSER VERSION
// -
// Default: "2.3"
sm_skinchooser_version "2.3"
thenumb3rguy is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 11-30-2012 , 10:15   Re: Sm_Skinchooser
Reply With Quote #1353

Quote:
Originally Posted by 456 View Post
HTML Code:
L 11/28/2012 - 02:47:20: Info (map "de_dust2") (file "errors_20121128.log")
L 11/28/2012 - 02:47:20: [SM] Native "ReadFileLine" reported: Invalid file handle 0 (error 4)
L 11/28/2012 - 02:47:20: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 11/28/2012 - 02:47:20: [SM]   [0]  Line 897, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::LoadModels()
L 11/28/2012 - 02:47:20: [SM]   [1]  Line 190, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::OnMapStart()
L 11/28/2012 - 02:47:21: [SM] Native "KvGotoFirstSubKey" reported: Invalid key value handle 0 (error 4)
L 11/28/2012 - 02:47:21: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 11/28/2012 - 02:47:21: [SM]   [0]  Line 257, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::BuildMainMenu()
L 11/28/2012 - 02:47:21: [SM]   [1]  Line 733, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Command_Model()
L 11/28/2012 - 02:47:21: [SM]   [2]  Line 776, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Event_PlayerTeam()
L 11/28/2012 - 02:47:21: [SM] Native "KvGotoFirstSubKey" reported: Invalid key value handle 0 (error 4)
L 11/28/2012 - 02:47:21: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 11/28/2012 - 02:47:21: [SM]   [0]  Line 257, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::BuildMainMenu()
L 11/28/2012 - 02:47:21: [SM]   [1]  Line 733, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Command_Model()
L 11/28/2012 - 02:47:21: [SM]   [2]  Line 776, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Event_PlayerTeam()
L 11/28/2012 - 02:47:21: [SM] Native "KvGotoFirstSubKey" reported: Invalid key value handle 0 (error 4)
L 11/28/2012 - 02:47:21: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 11/28/2012 - 02:47:21: [SM]   [0]  Line 257, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::BuildMainMenu()
L 11/28/2012 - 02:47:21: [SM]   [1]  Line 733, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Command_Model()
L 11/28/2012 - 02:47:21: [SM]   [2]  Line 776, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Event_PlayerTeam()
L 11/28/2012 - 02:47:21: [SM] Native "KvGotoFirstSubKey" reported: Invalid key value handle 0 (error 4)
L 11/28/2012 - 02:47:21: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 11/28/2012 - 02:47:21: [SM]   [0]  Line 257, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::BuildMainMenu()
L 11/28/2012 - 02:47:21: [SM]   [1]  Line 733, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Command_Model()
L 11/28/2012 - 02:47:21: [SM]   [2]  Line 776, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Event_PlayerTeam()
L 11/28/2012 - 02:47:51: [SM] Native "KvGotoFirstSubKey" reported: Invalid key value handle 0 (error 4)
L 11/28/2012 - 02:47:51: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 11/28/2012 - 02:47:51: [SM]   [0]  Line 257, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::BuildMainMenu()
L 11/28/2012 - 02:47:51: [SM]   [1]  Line 733, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Command_Model()
L 11/28/2012 - 02:47:51: [SM]   [2]  Line 776, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Event_PlayerTeam()
L 11/28/2012 - 02:49:22: [SM] Native "KvGotoFirstSubKey" reported: Invalid key value handle 0 (error 4)
L 11/28/2012 - 02:49:22: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 11/28/2012 - 02:49:22: [SM]   [0]  Line 257, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::BuildMainMenu()
L 11/28/2012 - 02:49:22: [SM]   [1]  Line 733, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Command_Model()
L 11/28/2012 - 02:50:49: [SM] Native "KvGotoFirstSubKey" reported: Invalid key value handle 0 (error 4)
L 11/28/2012 - 02:50:49: [SM] Displaying call stack trace for plugin "sm_skinchooser.smx":
L 11/28/2012 - 02:50:49: [SM]   [0]  Line 257, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::BuildMainMenu()
L 11/28/2012 - 02:50:49: [SM]   [1]  Line 733, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Command_Model()
L 11/28/2012 - 02:50:49: [SM]   [2]  Line 776, /home/groups/sourcemod/upload_tmp/phpyJ6BFC.sp::Event_PlayerTeam()
PLUGINS NOT WORK. SM last snapshot plugin on plugins list enabled, but !models not work (say unknown command) All files download FIX PLUGIN FOR CSS PLEASE!
Please check the rights of your sourcemod folders and files if you are using a linux server... and check if you have clientprefs.smx enabled.
__________________

*** *** ***
-My plugins-
St00ne is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 11-30-2012 , 12:01   Re: Sm_Skinchooser
Reply With Quote #1354

Donīt say it is not working if you donīt know what you are doing.....

read the first post and the wikipage carefully and you will know how to set up this......
__________________
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
thenumb3rguy
Senior Member
Join Date: Oct 2012
Location: Hong Kong
Old 11-30-2012 , 22:45   Re: Sm_Skinchooser
Reply With Quote #1355

I disabled skin selection because I want all the ppl in a team have the same skin for my jailbreak server. And enabled forceplayerskin. I added the default skins for T because I'm still finding a good t skin. And a police skin for CT. The problem is all the players go invisible and when they got killed, everyone in the server crashed. Sometimes my server crashed too. I am sure all the files are in the right place, people had no problems with clients downloading, because the skin worked in my zm server. With that class selection
thenumb3rguy is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 12-10-2012 , 05:16   Re: Sm_Skinchooser
Reply With Quote #1356

Can you post your skins.ini and skindownloads.ini? It is usually some typo, at least it was for me.
__________________
cw main:

cw speedruns:
vodka00 is offline
alcapone342
New Member
Join Date: Dec 2012
Old 12-11-2012 , 06:10   Re: Sm_Skinchooser
Reply With Quote #1357

Hello,

I encounter issues with the plugin: when i'm activating the skin all characters become invisible and it ends in a hl2.exe crash on client side.

Any help would be much apreciated as i have read my configurations files again and again without finding typo mistake.

Here are my skins.ini + download.ini

skins.ini:

Code:
//Configure your menu here
"Models"
	{
	"Admin Models"
		{
		"Admin" "t"
		"Team1"
			{
			"Admin terro"
				{
				"path" "models\player\kirby\admin\umbrella_leet.mdl"
				} 
			}

		"Team2"
			{
			"Admin CT"
				{
				"path" "models\player\kirby\admin\kirby_urban.mdl"
				}
			}
		}
	}


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

Code:
materials/models/player/t_arcticrobber/backpack.vmt
materials/models/player/t_arcticrobber/backpack.vtf
materials/models/player/t_arcticrobber/suit_sheet.vmt
materials/models/player/t_arcticrobber/suit_sheet.vtf
materials/models/player/t_arcticrobber/t_arctic.vmt
materials/models/player/t_arcticrobber/t_arctic.vtf
materials/models/player/t_arcticrobber/t_arctic_normal.vtf
materials/models/player/t_arcticrobber/t_leet.vmt
materials/models/player/t_arcticrobber/t_leet.vtf
materials/models/player/t_arcticrobber/t_leet_normal.vtf
models/player/t_arcticrobber.vvd
models/player/t_arcticrobber.sw.vtx
models/player/t_arcticrobber.phy
models/player/t_arcticrobber.mdl
models/player/t_arcticrobber.dx90.vtx
models/player/t_arcticrobber.dx80.vtx

materials/models/player/kirby/admin/ct_urban.vmt
materials/models/player/kirby/admin/ct_urban_glass.vmt
materials/models/player/kirby/admin/kirby_urban.vtf
materials/models/player/kirby/admin/kirby_urban_normal.vtf
materials/models/player/kirby/admin/kirby_urban_glass.vtf
materials/models/player/kirby/admin/kirby_urban_glass_spec.vtf
materials/models/player/kirby/admin/kirby_urban_height.vtf
models/player/kirby/admin/kirby_urban.dx80.vtx
models/player/kirby/admin/kirby_urban.dx90.vtx
models/player/kirby/admin/kirby_urban.mdl
models/player/kirby/admin/kirby_urban.phy
models/player/kirby/admin/kirby_urban.sw.vtx
models/player/kirby/admin/kirby_urban.vvd
models/player/kirby/admin/kirby_urban.xbox.vtx

materials/models/player/kirby/admin/umbrella_leet/t_leet.vmt
materials/models/player/kirby/admin/umbrella_leet/t_leet_glass.vmt
materials/models/player/kirby/admin/umbrella_leet/umbrella_leet.vtf
materials/models/player/kirby/admin/umbrella_leet/umbrella_leet_glass.vtf
materials/models/player/kirby/admin/umbrella_leet/umbrella_leet_glass_spec.vtf
materials/models/player/kirby/admin/umbrella_leet/umbrella_leet_normal.vtf
models/player/kirby/admin/umbrella_leet.dx80.vtx
models/player/kirby/admin/umbrella_leet.dx90.vtx
models/player/kirby/admin/umbrella_leet.mdl
models/player/kirby/admin/umbrella_leet.phy
models/player/kirby/admin/umbrella_leet.sw.vtx
models/player/kirby/admin/umbrella_leet.vvd
models/player/kirby/admin/umbrella_leet.xbox.vtx
All the files from the skinchooserdownloads.ini are uploaded both on gameserver and fastDl server, they are downloaded properly when connecting to the server.

Server is running MetaMod:Source v1.9.0V, SourceMod v1.4.6 and sm_skinchooser 2.3

Thanks in advance for the help,
Regards

EDIT:
Found the issue: the issue was that i used bots and the autoskin feature for bots was activted by default pointing on non existing models on my server.

Last edited by alcapone342; 12-11-2012 at 09:39.
alcapone342 is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 12-11-2012 , 15:11   Re: Sm_Skinchooser
Reply With Quote #1358

Yes, the autoskin feature will do that if you don't have models setup for everybody.
__________________
cw main:

cw speedruns:
vodka00 is offline
renard
SourceMod Donor
Join Date: Sep 2009
Location: Paris, France
Old 12-12-2012 , 17:59   Re: Sm_Skinchooser
Reply With Quote #1359

Hi !

First, thanks for this plugin, I like a lot ;)

I think I found a bug in your plugin that allow player to use skin from the other team skin list.

Context : FFA server with team swiched all 8 rounds. Both teams have multiple skins that player can choose.

A in-game player can open the skinchooser menu a few second before team swichting, and when team switch are done, the menu still open and he can select a skin (now from opposite team) who is applied immediately.

Finally, a player can use this bug for having a wrong skin during the game and making confusion of others players.

I suppose that a solution is to close this menu when the player change team, or when round start.

Any ideas ?

Sorry for my bad english :/
__________________
renard is offline
renard
SourceMod Donor
Join Date: Sep 2009
Location: Paris, France
Old 12-13-2012 , 17:01   Re: Sm_Skinchooser
Reply With Quote #1360

For more informations, I paste here the code who switch player's team each 8 rounds. This code is called in a on_round_end event and Model_T and Model_CT are arrays of regular cstrike skins.

PHP Code:
team GetClientTeam(i);

if (
team == 3)
{
    
CS_SwitchTeam(i2);
    if (
IsPlayerAlive(i))
    {
        
SetEntityModel(iModel_T[GetRandomInt(03)][0][0]);
    }
}

if (
team == 2)
{
    
CS_SwitchTeam(i3);
    if (
IsPlayerAlive(i))
    {
        
SetEntityModel(iModel_CT[GetRandomInt(03)][0][0]);
    }

__________________
renard 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 01:29.


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