AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CSGO] Fixed item_games.txt (https://forums.alliedmods.net/showthread.php?t=283354)

SM9 05-31-2016 20:17

[CSGO] Fixed item_games.txt
 
Hello guys, I got really pissed off when Valve decided to start separating keys because this completely broke KV Iteration, after several attempts at writing workarounds I failed and I decided the best way to go about this would be in PHP.

This PHP renders a fixed item_games.txt file which has each occurrence of "items" , "paint_kits" and "prefabs" merged together into one.
It automatically keeps itself updated from https://raw.githubusercontent.com/St...items_game.txt when Valve pushes a game update.

Since its mostly for personal use I have only included the keys which I need, although upon request I can add any others people need.

Well, in case anyone is interested here it is: https://fragdeluxe.com/api/csgo_schema.php

You can run a Web Request or something using SteamWorks to retrieve it then do your normal KV Iteration stuff, an example of me doing it is in my CSGO Items API

Enjoy.

SM9 05-31-2016 20:31

Re: [CSGO] Fixed item_games.txt
 
Reserved.

xines 06-01-2016 11:55

Re: [CSGO] Fixed item_games.txt
 
Looks neat, good job :up:

aequabit 09-25-2016 23:42

Re: [CSGO] Fixed item_games.txt
 
For anyone who needs this, the URL changed: http://api.fragdeluxe.com/itemdata/csgo_schema.php

Neuro Toxin 09-26-2016 00:38

Re: [CSGO] Fixed item_games.txt
 
Ill throw out there that dynamic in my signature is capable of repairing the items file.

Just .ReadKeyValue and then .WriteKeyValues


All times are GMT -4. The time now is 18:56.

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