Raised This Month: $51 Target: $400
 12% 

Sm_Skinchooser


Post New Thread Reply   
 
Thread Tools Display Modes
.Richter
Junior Member
Join Date: Apr 2016
Old 01-20-2017 , 12:19   Re: Sm_Skinchooser
Reply With Quote #2471

Yup, it works great in CS:GO, although custom arms are a bit buggy after the gloves update.
.Richter is offline
trofimos
Junior Member
Join Date: Oct 2011
Location: localhost, Greece
Old 01-22-2017 , 06:25   Re: Sm_Skinchooser
Reply With Quote #2472

I am having the same issue with .Richer, everytghing works like a charm exept the arms.
trofimos is offline
moqwai2017
Junior Member
Join Date: Jan 2017
Old 01-28-2017 , 09:12   Re: Sm_Skinchooser
Reply With Quote #2473

Hello guys! First let me say, great work with this plugin! Its awesome.
Unfortinetly it gives me some troubles.

I installed the Plugin on my Server and Configured everything as it says in the description.

I could make 11 Models to work for me. I could connect to the server, choose models. Everything fine.
The problem was, nobody else could connect on the Server. They downloaded the files when they connect and then the screen freeze while "Initiliasing world...". I couldnt find a solution to fix it.
So I decided to disable the plugin first.
That didnt work, so I deinstalled it again and voila. People can connect to the server.
I thought I did a mistake and reinstalled it.
And now I constantly see a Error in the logs. And I dont know if I should continue configering the models again if it will not work again.

AND I read through some posts and saw that the people get a sm_skinchooser.cfg which is generated by sm. I dont get this either.

Here is my Error-Code. I hope someone can help me.
Code:
L 01/28/2017 - 14:39:26: SourceMod error session started

L 01/28/2017 - 14:39:26: Info (map "de_dust") (file "errors_20170128.log")

L 01/28/2017 - 14:39:26: [SM] Exception reported: Invalid key value handle 0 (error 4)

L 01/28/2017 - 14:39:26: [SM] Blaming: sm_skinchooser.smx

L 01/28/2017 - 14:39:26: [SM] Call stack trace:

L 01/28/2017 - 14:39:26: [SM]   [0] KeyValuesToFile

L 01/28/2017 - 14:39:26: [SM]   [1] Line 409, D:\csgo\csgo\addons\sourcemod\scripting\sm_skinchooser4.0.sp::OnMapEnd

L 01/28/2017 - 14:39:27: Error log file session closed.

L 01/28/2017 - 14:51:18: SourceMod error session started

L 01/28/2017 - 14:51:18: Info (map "de_dust") (file "errors_20170128.log")
L 01/28/2017 - 14:51:18: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/28/2017 - 14:51:18: [SM] Blaming: sm_skinchooser.smx
L 01/28/2017 - 14:51:18: [SM] Call stack trace:
L 01/28/2017 - 14:51:18: [SM]   [0] KeyValuesToFile
L 01/28/2017 - 14:51:18: [SM]   [1] Line 409, D:\csgo\csgo\addons\sourcemod\scripting\sm_skinchooser4.0.sp::OnMapEnd
L 01/28/2017 - 14:51:19: Error log file session closed.
L 01/28/2017 - 14:59:57: SourceMod error session started
L 01/28/2017 - 14:59:57: Info (map "workshop/653558170/ttt_minecraftcity") (file "errors_20170128.log")
L 01/28/2017 - 14:59:57: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/28/2017 - 14:59:57: [SM] Blaming: sm_skinchooser.smx
L 01/28/2017 - 14:59:57: [SM] Call stack trace:
L 01/28/2017 - 14:59:57: [SM]   [0] KeyValuesToFile
L 01/28/2017 - 14:59:57: [SM]   [1] Line 403, D:\csgo\csgo\addons\sourcemod\scripting\sm_skinchooser4.0.sp::OnMapEnd
L 01/28/2017 - 14:59:57: Error log file session closed.

Last edited by moqwai2017; 01-28-2017 at 09:16.
moqwai2017 is offline
moqwai2017
Junior Member
Join Date: Jan 2017
Old 01-29-2017 , 04:35   Re: Sm_Skinchooser
Reply With Quote #2474

Hello again. I switched to version 4.2 now but it still doesnt work as intended.

The server crashes when people connect to it. Even for me.

I configured as it is said and the models are uploaded to the Gameserver.
I just chose 1 Model to test, and the paths are right, but the server just crash as soon as I connect to it.

Cant find the reason why. It doesnt make sense to me... Please help me, I really want this to work

Edit: When I put in the original default_arms and default_skins then I can connect again and its not crashing. But what is wrong with my files???

Still the same Error logs:
Code:
L 01/29/2017 - 10:21:43: SourceMod error session started
L 01/29/2017 - 10:21:43: Info (map "workshop/653558170/ttt_minecraftcity") (file "errors_20170129.log")
L 01/29/2017 - 10:21:43: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/29/2017 - 10:21:43: [SM] Blaming: sm_skinchooser.smx
L 01/29/2017 - 10:21:43: [SM] Call stack trace:
L 01/29/2017 - 10:21:43: [SM]   [0] KeyValuesToFile
L 01/29/2017 - 10:21:43: [SM]   [1] Line 338, sm_skinchooser.sp::OnMapEnd
L 01/29/2017 - 10:21:43: Error log file session closed.
L 01/29/2017 - 10:21:55: SourceMod error session started
L 01/29/2017 - 10:21:55: Info (map "de_dust") (file "errors_20170129.log")
L 01/29/2017 - 10:21:55: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/29/2017 - 10:21:55: [SM] Blaming: sm_skinchooser.smx
L 01/29/2017 - 10:21:55: [SM] Call stack trace:
L 01/29/2017 - 10:21:55: [SM]   [0] KeyValuesToFile
L 01/29/2017 - 10:21:55: [SM]   [1] Line 338, sm_skinchooser.sp::OnMapEnd
L 01/29/2017 - 10:21:56: Error log file session closed.
L 01/29/2017 - 10:23:13: SourceMod error session started
L 01/29/2017 - 10:23:13: Info (map "workshop/653558170/ttt_minecraftcity") (file "errors_20170129.log")
L 01/29/2017 - 10:23:13: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/29/2017 - 10:23:13: [SM] Blaming: sm_skinchooser.smx
L 01/29/2017 - 10:23:13: [SM] Call stack trace:
L 01/29/2017 - 10:23:13: [SM]   [0] KeyValuesToFile
L 01/29/2017 - 10:23:13: [SM]   [1] Line 338, sm_skinchooser.sp::OnMapEnd
L 01/29/2017 - 10:23:13: Error log file session closed.
L 01/29/2017 - 10:24:00: SourceMod error session started
L 01/29/2017 - 10:24:00: Info (map "de_dust") (file "errors_20170129.log")
L 01/29/2017 - 10:24:00: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/29/2017 - 10:24:00: [SM] Blaming: sm_skinchooser.smx
L 01/29/2017 - 10:24:00: [SM] Call stack trace:
L 01/29/2017 - 10:24:00: [SM]   [0] KeyValuesToFile
L 01/29/2017 - 10:24:00: [SM]   [1] Line 338, sm_skinchooser.sp::OnMapEnd
L 01/29/2017 - 10:24:00: Error log file session closed.
default_skins.ini
Code:
//Configure your menu here
"Models"
{
	"Public Models"
	{
		"Admin" ""
		"Team1"
		{
			"Batman"
			{
				"path" "models/player/custom_player/kuristaja/ak/batman/batmanv2.mdl"
			}
		}

		"Team2"
		{
			"Revenant"
			{
				"path" "models/player/custom_player/zombie/revenant/revenant_v2.mdl"
			}
		}
	}
	"Admin Models"
	{
		"Admin" "t"
		"Team1"
		{
			"Revenant"
			{
				"path" "models/player/custom_player/zombie/revenant/revenant_v2.mdl"
			}
		}

		"Team2"
		{
			"Revenant"
			{
				"path" "models/player/custom_player/zombie/revenant/revenant_v2.mdl"
			}
		}
	}
	"VIP Models"
	{
		"Admin" "Member"
		"Team1"
		{
			"Revenant"
			{
				"path" "models/player/custom_player/zombie/revenant/revenant_v2.mdl"
			}
		}

		"Team2"
		{
			"Revenant"
			{
				"path" "models/player/custom_player/zombie/revenant/revenant_v2.mdl"
			}
		}
	}
}


//If you use Fastdownload make sure all your path and material files are on your webserver!!!
default_arms.ini
Code:
//Configure your menu here
"Arms"
{
	"Public Models"
	{
		"Admin" ""
		"Team1"
		{
			"Batman"
			{
				"path" "models/player/custom_player/kuristaja/ak/batman/batman_arms.mdl"
			}
		}

		"Team2"
		{
			"Revenant"
			{
				"arms" "models/player/custom_player/zombie/revenant/revenant_arms.mdl"
			}
		}
	}
	"Admin Models"
	{
		"Admin" "t"
		"Team1"
		{
			"Revenant"
			{
				"arms" "models/player/custom_player/zombie/revenant/revenant_arms.mdl"
			} 
		}

		"Team2"
		{
			"Revenant"
			{
				"arms" "models/player/custom_player/zombie/revenant/revenant_arms.mdl"
			} 
		}
	}
	"VIP Models"
	{
		"Admin" "Member"
		"Team1"
		{
			"Revenant"
			{
				"arms" "models/player/custom_player/zombie/revenant/revenant_arms.mdl"
			} 
		}

		"Team2"
		{
			"Revenant"
			{
				"arms" "models/player/custom_player/zombie/revenant/revenant_arms.mdl"
			} 
		}
	}
}


//If you use Fastdownload make sure all your path and material files are on your webserver!!!
sm_skinchooser.cfg
Code:
// This file was auto-generated by SourceMod (v1.8.0.5961)
// ConVars for plugin "sm_skinchooser.smx"


// 0 = Disabled , 1 = Enables the Groupsystem.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_admingroup "1"

// 0 = Disabled , 1 = Enabled for Admins only.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_adminonly "0"

// 0 = disabled , 1 = Enables the usage for Armmodels in CSGO.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_arms_enabled "1"

// 0 = Disabled , 1 = Enables Menu Auto popup.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_autodisplay "0"

// Seconds when the Menu should be closed
// -
// Default: "30"
// Minimum: "0.000000"
// Maximum: "1000.000000"
sm_skinchooser_closemenutimer "15"

// How many times users should be able to use the !models command.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1000.000000"
sm_skinchooser_commandcounts "99"

// Enables the CommandCounter.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_commandcountsenabled "1"

// 0 = Disabled , 1 = Enables the Delay when Menu should auto popup.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_displaytimer "0"

// 0 = Disabled , 1 = Enables the Plugin.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_enabled "1"

// 0 = Disabled , 1 = Enabled , should Players get automaticly a Model?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_forceplayerskin "0"

// 0 = Disabled , 1 = Enables usage of mapbased inis.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_mapbased "0"

// Time in seconds when Menu should be started
// -
// Default: "5.0"
// Minimum: "0.000000"
// Maximum: "1000.000000"
sm_skinchooser_menustarttime "0"

// 0 = Disabled , 1 = Enables the spawntimer.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_playerspawntimer "0"

// 0 = Disabled , 1 = Enabled , should Admins get automaticly a Model?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_skinadmin "0"

// 0 = Disabled , 1 = Enabled , should Bots have  a custom Model?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_skinbots "0"

// 0 = SteamId 2 , 1 = SteamId 3
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_skinchooser_steamid_format "1"

// SM SKINCHOOSER VERSION
// -
// Default: "4.0"
sm_skinchooser_version "4.0"

Last edited by moqwai2017; 01-29-2017 at 04:58. Reason: Added file code
moqwai2017 is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 01-29-2017 , 07:14   Re: Sm_Skinchooser
Reply With Quote #2475

Quote:
New version 4.2!

≡ Update info:
  • Added -N- Arms support
  • Invalid Handle fix
  • Code optimization
You should change your GetClientTeam checks to keep up compability to other games than CSGO/CSS.
Arms changing does not work immediately , only on next spawn.
I wasnīt really lucky with this method so I didnīt updated the plugin since the the method was provided in the scripting section but nevermind you did a good job.
__________________
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
Lennyface
Junior Member
Join Date: Jul 2016
Old 01-29-2017 , 08:38   Re: Sm_Skinchooser
Reply With Quote #2476

Very good plugin, but you should add (if you can) sound support, like using custom sounds with a texture set. Because that would be better like if I was changing weapons skins, I'd have a custom sound for the weapon. Not sure if possible because of sound prediction but, at least I asked. Thanks for reading

--------------------------------------------------------------------------------------------------------------------

Sorry for my English, not my native language.

Last edited by Lennyface; 01-29-2017 at 09:00.
Lennyface is offline
moqwai2017
Junior Member
Join Date: Jan 2017
Old 01-29-2017 , 10:10   Re: Sm_Skinchooser
Reply With Quote #2477

So, I found the problem. default_arms.ini made my csgo Server crash while connecting.
I disabled the function of arms and now it runs.
Still getting the error log, but well. It works.

But 1 thing bothers me, I have Baras TTT Plugin on my Server, and everyone can choose a model in the beginning. Then, after the gracetime when everybody gets their role (traitor, inno, detective), the skins get reset to the standard ones. How can I fix that? Which command do I need?
moqwai2017 is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 01-29-2017 , 10:53   Re: Sm_Skinchooser
Reply With Quote #2478

Quote:
Originally Posted by andi67 View Post
You should change your GetClientTeam checks to keep up compability to other games than CSGO/CSS.
Arms changing does not work immediately , only on next spawn.
I wasnīt really lucky with this method so I didnīt updated the plugin since the the method was provided in the scripting section but nevermind you did a good job.
OK, thanks for your ideas / suggestions.
__________________
NomisCZ is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 01-29-2017 , 11:29   Re: Sm_Skinchooser
Reply With Quote #2479

Quote:
Originally Posted by moqwai2017 View Post
Hello again. I switched to version 4.2 now but it still doesnt work as intended.

The server crashes when people connect to it. Even for me.

I configured as it is said and the models are uploaded to the Gameserver.
I just chose 1 Model to test, and the paths are right, but the server just crash as soon as I connect to it.

Cant find the reason why. It doesnt make sense to me... Please help me, I really want this to work

Edit: When I put in the original default_arms and default_skins then I can connect again and its not crashing. But what is wrong with my files???

Still the same Error logs:
Code:
L 01/29/2017 - 10:21:43: SourceMod error session started
L 01/29/2017 - 10:21:43: Info (map "workshop/653558170/ttt_minecraftcity") (file "errors_20170129.log")
L 01/29/2017 - 10:21:43: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/29/2017 - 10:21:43: [SM] Blaming: sm_skinchooser.smx
L 01/29/2017 - 10:21:43: [SM] Call stack trace:
L 01/29/2017 - 10:21:43: [SM]   [0] KeyValuesToFile
L 01/29/2017 - 10:21:43: [SM]   [1] Line 338, sm_skinchooser.sp::OnMapEnd
L 01/29/2017 - 10:21:43: Error log file session closed.
L 01/29/2017 - 10:21:55: SourceMod error session started
L 01/29/2017 - 10:21:55: Info (map "de_dust") (file "errors_20170129.log")
L 01/29/2017 - 10:21:55: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/29/2017 - 10:21:55: [SM] Blaming: sm_skinchooser.smx
L 01/29/2017 - 10:21:55: [SM] Call stack trace:
L 01/29/2017 - 10:21:55: [SM]   [0] KeyValuesToFile
L 01/29/2017 - 10:21:55: [SM]   [1] Line 338, sm_skinchooser.sp::OnMapEnd
L 01/29/2017 - 10:21:56: Error log file session closed.
L 01/29/2017 - 10:23:13: SourceMod error session started
L 01/29/2017 - 10:23:13: Info (map "workshop/653558170/ttt_minecraftcity") (file "errors_20170129.log")
L 01/29/2017 - 10:23:13: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/29/2017 - 10:23:13: [SM] Blaming: sm_skinchooser.smx
L 01/29/2017 - 10:23:13: [SM] Call stack trace:
L 01/29/2017 - 10:23:13: [SM]   [0] KeyValuesToFile
L 01/29/2017 - 10:23:13: [SM]   [1] Line 338, sm_skinchooser.sp::OnMapEnd
L 01/29/2017 - 10:23:13: Error log file session closed.
L 01/29/2017 - 10:24:00: SourceMod error session started
L 01/29/2017 - 10:24:00: Info (map "de_dust") (file "errors_20170129.log")
L 01/29/2017 - 10:24:00: [SM] Exception reported: Invalid key value handle 0 (error 4)
L 01/29/2017 - 10:24:00: [SM] Blaming: sm_skinchooser.smx
L 01/29/2017 - 10:24:00: [SM] Call stack trace:
L 01/29/2017 - 10:24:00: [SM]   [0] KeyValuesToFile
L 01/29/2017 - 10:24:00: [SM]   [1] Line 338, sm_skinchooser.sp::OnMapEnd
L 01/29/2017 - 10:24:00: Error log file session closed.
Turn off your server and delete all skinchooser files in addons/sourcemod/data/<>
__________________
NomisCZ is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 01-29-2017 , 11:31   Re: Sm_Skinchooser
Reply With Quote #2480

Quote:
Originally Posted by moqwai2017 View Post
So, I found the problem. default_arms.ini made my csgo Server crash while connecting.
I disabled the function of arms and now it runs.
Still getting the error log, but well. It works.

But 1 thing bothers me, I have Baras TTT Plugin on my Server, and everyone can choose a model in the beginning. Then, after the gracetime when everybody gets their role (traitor, inno, detective), the skins get reset to the standard ones. How can I fix that? Which command do I need?
Post here your arms config file and sm_skinchooser.cfg (use pastebin.com).
__________________

Last edited by NomisCZ; 01-29-2017 at 11:32.
NomisCZ 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 11:55.


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