AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Store (https://forums.alliedmods.net/forumdisplay.php?f=157)
-   -   Release Weapon Colors (https://forums.alliedmods.net/showthread.php?t=210283)

Phault 03-08-2013 17:00

Weapon Colors
 
1 Attachment(s)
[Store] Weapon Colors (1.1-alpha)


Description:Requirements:Acknowledgements:
  • The player using the weapon color do not see the change in color (unless in thirdperson), but other players do.
Features:
  • Customizable - You can have any amount of weapon colors you want.
Installation:

Download the attached store-weaponcolors.zip archive and extract to your sourcemod folder intact. Then open your store web panel, navigate to Import/Export System under the Tools menu, and import configs/store/json-import/weaponcolors.json

Adding more colors:

You can use the web panel to add weapon colors. Open the web panel, navigate to Add New Item under the Items menu. In type and loadout_slot, type weaponcolors. Change name, display_name, description and attrs to customize the new color.

The attrs field should look like:

Code:

{
        "color": [255, 0, 0, 255]
}

Values are RGBA, for example the above makes the weapon red and fully visible.

serpentine 03-08-2013 22:19

Re: Weapon Colors
 
Cool stuff. I love releases that don't require clients to download custom files. Will test and post with any issues.

edit: Works with TF2. Only issue I've run into is the colors go away when you touch the resupply cabinet. Other than that, cool! It even recolors the guitar during the shred alert taunt :D.

http://cloud-2.steampowered.com/ugc/...8.resizedimage

eXemplar 03-09-2013 00:55

Re: Weapon Colors
 
Great addition, be fantastic if you could specify slots/all slots (from GetPlayerWeaponSlot ?)

mickael002 03-09-2013 03:50

Re: Weapon Colors
 
Thanks

Phault 03-09-2013 06:09

Re: Weapon Colors
 
2 Attachment(s)
Quote:

Originally Posted by serpentine (Post 1909245)
Cool stuff. I love releases that don't require clients to download custom files. Will test and post with any issues.

edit: Works with TF2. Only issue I've run into is the colors go away when you touch the resupply cabinet. Other than that, cool! It even recolors the guitar during the shred alert taunt :D.

Would you mind testing to see if this .smx fixes the issue?

serpentine 03-09-2013 07:27

Re: Weapon Colors
 
Quote:

Originally Posted by Phault (Post 1909342)
Would you mind testing to see if this .smx fixes the issue?

I will later today. You may want to attach the souce with it though, one of the mods here will probably delete the attachment without it.

Phault 03-09-2013 07:43

Re: Weapon Colors
 
Quote:

Originally Posted by serpentine (Post 1909376)
I will later today. You may want to attach the souce with it though, one of the mods here will probably delete the attachment without it.

Thanks, I added the source file.

serpentine 03-09-2013 16:50

Re: Weapon Colors
 
Tested the attached version, seems to have fixed the resupply locker issue. Thanks.

Phault 03-09-2013 19:30

Re: Weapon Colors
 
Quote:

Originally Posted by serpentine (Post 1909686)
Tested the attached version, seems to have fixed the resupply locker issue. Thanks.

Good to hear! Thanks for help testing it.

naldecon 03-18-2013 12:33

Re: Weapon Colors
 
Hello,

Found the following errors on CSGO:

Code:

L 03/18/2013 - 02:24:20: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 03/18/2013 - 02:24:20: [SM]  [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM]  [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 03/18/2013 - 02:24:20: [SM]  [0]  Line 153, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnItemPickup()

L 03/18/2013 - 02:24:20: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 03/18/2013 - 02:24:20: [SM]  [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM]  [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 03/18/2013 - 02:24:20: [SM]  [0]  Line 162, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnPlayerSpawn()

Any ideas?

Phault 03-18-2013 12:52

Re: Weapon Colors
 
Quote:

Originally Posted by naldecon (Post 1915053)
Hello,

Found the following errors on CSGO:

Code:

L 03/18/2013 - 02:24:20: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 03/18/2013 - 02:24:20: [SM]  [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM]  [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 03/18/2013 - 02:24:20: [SM]  [0]  Line 153, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnItemPickup()

L 03/18/2013 - 02:24:20: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 03/18/2013 - 02:24:20: [SM]  [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM]  [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 03/18/2013 - 02:24:20: [SM]  [0]  Line 162, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnPlayerSpawn()

Any ideas?

Looks like Store can't connect to your database, I might be wrong though. Does it only happen with this module?

naldecon 03-18-2013 12:58

Re: Weapon Colors
 
Quote:

Originally Posted by Phault (Post 1915068)
Looks like Store can't connect to your database, I might be wrong though. Does it only happen with this module?

Yes, based on the error logs.

FYI - running ZombieReloaded
If a player is tagged by a zombie, the weapons are dropped.
What happen when another player picks up the dropped weapon?

Phault 03-18-2013 13:56

Re: Weapon Colors
 
Quote:

Originally Posted by naldecon (Post 1915075)
Yes, based on the error logs.

FYI - running ZombieReloaded
If a player is tagged by a zombie, the weapons are dropped.
What happen when another player picks up the dropped weapon?

The module colors the weapon once it's picked up again, based on the new player's weapon color item/setting.

I'm pretty sure the error is because store can't connect to the database. What version of sourcemod are you running?

If the mysql server is on the same machine as the server, try changing "localhost" to "127.0.01" in the databases config file.

naldecon 03-18-2013 15:00

Re: Weapon Colors
 
Quote:

Originally Posted by Phault (Post 1915112)
The module colors the weapon once it's picked up again, based on the new player's weapon color item/setting.

I'm pretty sure the error is because store can't connect to the database. What version of sourcemod are you running?

If the mysql server is on the same machine as the server, try changing "localhost" to "127.0.01" in the databases config file.

The sourcemod version is 1.5.0 build 3786 and connected to remote SQL server.

Happy DODs player 03-28-2013 16:47

Re: Weapon Colors
 
Is there a standalone version of this plugin. So a player with flag a can get these colors,? ( I appriciate the help out )

serpentine 04-01-2013 13:25

Re: Weapon Colors
 
Found perhaps another bug. When I add a bot to my server their weapons are colored what mine are. Not a big issue since I don't use bots other than to test things.

vodka00 04-03-2013 15:32

Re: Weapon Colors
 
It would be amazing if along with weapon colors there would be same color weapon glow. If that's possible (for CS:S).

Franc1sco 04-03-2013 16:15

Re: Weapon Colors
 
Quote:

Originally Posted by vodka00 (Post 1925707)
It would be amazing if along with weapon colors there would be same color weapon glow. If that's possible (for CS:S).


attaching a light entity with a color maybe will be do it possible

friagram 05-24-2013 21:18

Re: Weapon Colors
 
Quote:

Originally Posted by Franc1sco (Post 1925743)
attaching a light entity with a color maybe will be do it possible

light_dynamic will drop fps like crazy.
even if you set it to light models only...

scorpadorp 07-10-2013 14:23

Re: Weapon Colors
 
First time getting this error. It's spammed in my console but with different Entity numbers.

Code:

L 07/10/2013 - 14:19:57: [SM] Native "GetEntDataEnt2" reported: Entity 9 (9) is invalid
L 07/10/2013 - 14:19:57: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 07/10/2013 - 14:19:57: [SM]  [0]  Line 210, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::SetWeaponColors()
L 07/10/2013 - 14:19:57: [SM]  [1]  Line 191, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnGetPlayerWeaponColor()


nass95100 08-19-2013 16:32

Re: Weapon Colors
 
I've a problem issue about Weapon Color
This plugin work fine, and load correclty in sm plugins
But when i set a color, example red, green or blue
Its no visible... i dont see any color in this weapon.

thetwistedpanda 08-21-2013 13:09

Re: Weapon Colors
 
If memory serves you can't see your own weapon color, are you able to see it on others?

ozgaming 08-22-2013 07:13

Re: Weapon Colors
 
I can see it fine if taunting.

Arrow768 10-04-2013 11:27

Re: Weapon Colors
 
Quote:

Originally Posted by Dkmuniz (Post 2045028)
can someone answer me, works in csgo?

You have decided to wait more then a month for a answer instead of trying it out ?

Dkmuniz 10-04-2013 13:44

Re: Weapon Colors
 
No, my Inglês is very bad sorry, the right question -> how to put to work in csgo? In my server not worked

wtfaatp 01-18-2014 13:48

Re: Weapon Colors
 
For some reason the wepon_color menu is showing up twice (only the second one works) along with that im getting this error..

Code:

L 01/18/2014 - 12:14:30: Info (map "gg_corner_v7_ko") (file "errors_20140118.log")
L 01/18/2014 - 12:14:30: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 01/18/2014 - 12:14:30: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 01/18/2014 - 12:14:30: [SM]  [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 01/18/2014 - 12:14:30: [SM]  [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 01/18/2014 - 12:14:30: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 01/18/2014 - 12:14:30: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 01/18/2014 - 12:14:30: [SM]  [0]  Line 162, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnPlayerSpawn()
L 01/18/2014 - 12:14:31: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 01/18/2014 - 12:14:31: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 01/18/2014 - 12:14:31: [SM]  [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 01/18/2014 - 12:14:31: [SM]  [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 01/18/2014 - 12:14:31: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 01/18/2014 - 12:14:31: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 01/18/2014 - 12:14:31: [SM]  [0]  Line 153, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnItemPickup()
L 01/18/2014 - 12:14:31: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 01/18/2014 - 12:14:31: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 01/18/2014 - 12:14:31: [SM]  [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 01/18/2014 - 12:14:31: [SM]  [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 01/18/2014 - 12:14:31: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 01/18/2014 - 12:14:31: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 01/18/2014 - 12:14:31: [SM]  [0]  Line 153, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnItemPickup()
L 01/18/2014 - 12:14:31: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 01/18/2014 - 12:14:31: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 01/18/2014 - 12:14:31: [SM]  [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 01/18/2014 - 12:14:31: [SM]  [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 01/18/2014 - 12:14:31: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 01/18/2014 - 12:14:31: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 01/18/2014 - 12:14:31: [SM]  [0]  Line 162, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnPlayerSpawn()
L 01/18/2014 - 12:14:31: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 01/18/2014 - 12:14:31: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 01/18/2014 - 12:14:31: [SM]  [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 01/18/2014 - 12:14:31: [SM]  [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 01/18/2014 - 12:14:31: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 01/18/2014 - 12:14:31: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 01/18/2014 - 12:14:31: [SM]  [0]  Line 162, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnPlayerSpawn()

This is not the only one im using and it connects to the DB fine (other things are working) the wepon color do change this error only happens on server load..

Robin955 11-23-2014 19:46

Re: Weapon Colors
 
white not possible? the last 255 is the alpha right?

Robin955 06-03-2015 12:44

Re: Weapon Colors
 
hm investigating :3

PHP Code:

L 06/03/2015 12:36:45World triggered "Round_Start"
L 06/03/2015 12:36:46: [SMNative "GetEntDataEnt2" reportedEntity 2 (2is invalid
L 06
/03/2015 12:36:46: [SMDisplaying call stack trace for plugin "store\store-weaponcolors.smx":
L 06/03/2015 12:36:46: [SM]   [0]  Line 210D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::SetWeaponColors()
L 06/03/2015 12:36:46: [SM]   [1]  Line 191D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnGetPlayerWeaponColor()
L 06/03/2015 12:36:46: [SMNative "GetEntDataEnt2" reportedEntity 3 (3is invalid 


nguyenbaodanh 07-03-2015 02:16

Re: Weapon Colors
 
PHP Code:

L 07/02/2015 21:19:28SourceMod error session started
L 07
/02/2015 21:19:28Info (map "ze_dangerous_waters_v1h_03_b") (file "errors_20150702.log")
L 07/02/2015 21:19:28: [SMPlugin encountered error 7Invalid index or index not found
L 07
/02/2015 21:19:28: [SMNative "Store_GetClientAccountID" reportedError retrieving client Steam Account ID Pheonix<4><BOT><>.
L 07/02/2015 21:19:28: [SMDisplaying call stack trace for plugin "store/store-chatcolor.smx":
L 07/02/2015 21:19:28: [SM]   [0]  Line 86C:\sourcemod-projects\store\store-chatcolor.sp::Store_OnClientLoadoutChanged()
L 07/02/2015 21:39:27: [SMNative "GetEntDataEnt2" reportedEntity 2 (2is invalid
L 07
/02/2015 21:39:27: [SMDisplaying call stack trace for plugin "store/store-weaponcolors.smx":
L 07/02/2015 21:39:27: [SM]   [0]  Line 210D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::SetWeaponColors()
L 07/02/2015 21:39:27: [SM]   [1]  Line 191D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnGetPlayerWeaponColor()
L 07/02/2015 21:39:27: [SMNative "GetEntDataEnt2" reportedEntity 2 (2is invalid
L 07
/02/2015 21:39:27: [SMDisplaying call stack trace for plugin "store/store-weaponcolors.smx":
L 07/02/2015 21:39:27: [SM]   [0]  Line 210D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::SetWeaponColors()
L 07/02/2015 21:39:27: [SM]   [1]  Line 191D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnGetPlayerWeaponColor()
L 07/02/2015 21:39:27: [SMNative "GetEntDataEnt2" reportedEntity 2 (2is invalid 

Not work in csgo ... latest sourcemod and metamod

behrentzs 12-11-2015 06:39

Re: Weapon Colors
 
Quote:

Originally Posted by nguyenbaodanh (Post 2314883)

Not work in csgo ... latest sourcemod and metamod


easono 12-20-2015 13:44

Re: Weapon Colors
 
how come we can not see it on our own weapons? surely buy this in the store would be to se it on your screen.

PS I got told by someone who could see it that it changes the colour of the guns (secondary and primary), Nades, Knife, and for some reason the bomb??

Can this not be set per weapon?


All times are GMT -4. The time now is 19:33.

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