• GoldenForge - Hat and Trail store addon
    181 replies, posted
  • Avatar of Chewgum
  • [h2]GoldenForge[/h2] So, i'm releasing this store addon. I made the hat/trail/item system similar to Pointshop because I wanted to port the stuff from there, and it had a pretty nice setup system for categories. But take note, currently the system isn't made to easily add your own categories, so unless you know Lua, don't complain here. I will make it easier soon though. You can add your own hats and trails with ease though, just look at the others. I do not have any documentation on creating hats/trails/categories as of now, but I'll add it someday. [B]Screenshots [/B] [B]Hats[/B] [thumb]http://puu.sh/5byi[/thumb] [B]Trails[/B] [thumb]http://puu.sh/5bye[/thumb] [B][U]Settings[/U][/B] [thumb]http://puu.sh/5bvZ[/thumb] [B]Chat Commands[/B] /givescrapmetal - Brings up a menu with options. /admingivemetal - Brings up a menu for SUPERADMINS to give scrap metal to a player. [B]Instructions[/B] Press [B][U]F4[/U][/B] to open the menu. Place the addon in your addons folder. [B]Changelog[/B] [code] -------------------------------------------------------------------------- - Version 1.1 -------------------------------------------------------------------------- Fixed scrapMetal/player not loading. Fixed loading in singleplayer. Fixed admin give scrap metal menu amount option. Cleaning up clientside hat entities better now, hopefully fixed a Opaque render crash. Added trail color option. Added "GoldenForge <version>" tags to sv_tags ConVar. Added a info message when player spawns. [/code] [B]Download[/B] [URL]http://steamcommunity.com/sharedfiles/filedetails/?id=104466381[/URL] [B]Documentation - How to create stuff[/B] - Will do this sometime :P
  • Avatar of Chewgum
  • Forgot to add the hotkey for the menu, added it to OP, it's F4. Anyway, i'm going to add power-ups and other categories soon, also complete that todo list. Report any problems please.
  • Avatar of Conely
  • [QUOTE=R@Rdeathmatch;31914698]It look great but I don't understand what you realease it?[/QUOTE] Player customization, I'd imagine.
  • how would i make it give all players 5 scrap metal every minuet or something?
  • Avatar of Chewgum
  • [QUOTE=Metaork2;31915076]how would i make it give all players 5 scrap metal every minuet or something?[/QUOTE] I added functions similar to Pointshop. Player.GiveScrapMetal(amount, <optional> reason) Player.RemoveScrapMetal(amount, <optional> reason)
  • so rather like this then? [code] timer.Create( "gsmem", 60, 0, function() for k, v in pairs(GF.GrtPlayers()) do if ply:IsAdmin() or ply:IsSuperAdmin() then Player.GiveScrapMeatal(10, Thanks For Donating to the server, you get 10 more metal in 1 min) else Player.GiveScrapMetal(2, Thanks for playing on the server, you recieve mroe metal in 1 min) end end end)[/code]
  • Avatar of Chewgum
  • [QUOTE=Metaork2;31915204]so rather like this then? [code] timer.Create( "gsmem", 60, 0, function() for k, v in pairs(GF.GrtPlayers()) do if ply:IsAdmin() or ply:IsSuperAdmin() then Player.GiveScrapMeatal(10, Thanks For Donating to the server, you get 10 more metal in 1 min) else Player.GiveScrapMetal(2, Thanks for playing on the server, you recieve mroe metal in 1 min) end end end)[/code][/QUOTE] [lua] timer.Create( "gsmem", 60, 0, function() for k, v in pairs(GF.GetPlayers()) do if v:IsAdmin() or v:IsSuperAdmin() then v:GiveScrapMeatal(10, "Thanks For Donating to the server, you get 10 more metal in 1 min") else v:GiveScrapMetal(2, "Thanks for playing on the server, you recieve mroe metal in 1 min") end end end) [/lua]
  • can you tell me the commands that i need my gamemode to run to remove all hats/trails?
  • [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value)
  • Avatar of Chewgum
  • [QUOTE=Metaork2;31918405]can you tell me the commands that i need my gamemode to run to remove all hats/trails?[/QUOTE] What? If you want to remove player data, just go to the data folder and remove the GoldenForge folder. [QUOTE=CaMoTraX;31918503][gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value) [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value)[/QUOTE] Another addon is returning something in the OnEntityCreated hook. Use SE if you own the server. Silly hook system, i'll probably change how I set it up.
  • [quote] Metaork2 posted: can you tell me the commands that i need my gamemode to run to remove all hats/trails? What? If you want to remove player data, just go to the data folder and remove the GoldenForge folder.[/quote] no i was meaning at the end of a round
  • @ Use SE if you own the server. Silly hook system, i'll probably change how I set it up. What is SE
  • Avatar of King Penisless
  • [QUOTE=CaMoTraX;31919777]@ Use SE if you own the server. Silly hook system, i'll probably change how I set it up. What is SE[/QUOTE] Script-enforcer
  • I see this right after I pay to get a custom store done. This looks so sleek and awesome, good job!
  • i use this on my Jailbreak server becausa its so awesome, i just got to create a script to remove the hats/trails when a players changes teams/dies. another great mod that is free and doesn't require an off server MySql database. Also could you make it log the players steamname/id in the data/goldenforge/<random numbers>.txt?
  • Avatar of RikohZX
  • I saw this on a Jailbreak server, dunno which one; they were still working the kinks out. Seems to be spreading fast.
  • Avatar of Chewgum
  • [QUOTE=Metaork2;31922069]i use this on my Jailbreak server becausa its so awesome, i just got to create a script to remove the hats/trails when a players changes teams/dies. another great mod that is free and doesn't require an off server MySql database. Also could you make it log the players steamname/id in the data/goldenforge/<random numbers>.txt?[/QUOTE] The number for the name of the text file is the players steamid just without the STEAM_0:X:
  • Avatar of werewolf0020
  • So far what i have done with this Its just awesome!!!!!!!... and easy to use [IMG]http://cloud.steampowered.com/ugc/559791921106919488/BE787D66DE6E89AC3A7B707ACBD6A830BB41A0D1/[/IMG] Custom category where the player can buy weapon attachments Now to do the Owned Attachments part
  • Avatar of Zombie man70
  • [QUOTE=_Chewgum;31915234][lua] timer.Create( "gsmem", 60, 0, function() for k, v in pairs(GF.GetPlayers()) do if v:IsAdmin() or v:IsSuperAdmin() then v:GiveScrapMeatal(10, "Thanks For Donating to the server, you get 10 more metal in 1 min") else v:GiveScrapMetal(2, "Thanks for playing on the server, you recieve mroe metal in 1 min") end end end) [/lua][/QUOTE] That gives me this error [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value)
  • Avatar of Chewgum
  • [QUOTE=Zombie man70;31955352]That gives me this error [gf_client.lua:961] attempt to concatenate field 'scrapMetal' (a nil value)[/QUOTE] That's because you have another addon that is overriding a hook that I use. I'll fix that error and singleplayer loading in the next version. Will also include a weapon category pack and more stuff.