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

[ANY] VDFtoJSON (items_game.txt | csgo_english.txt)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Plugin ID:
8427
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 03-21-2023 , 14:02   [ANY] VDFtoJSON (items_game.txt | csgo_english.txt)
    Reply With Quote #1

    Hello, a fast plugin that parses VDF to JSON

    Requires: https://github.com/ErikMinekus/sm-ri...eleases/latest

    Usage:
    PHP Code:
    #include <vdftojson>

    //param1 origin    addons/sourcemod/
    //param2 origin    addons/sourcemod/data/
    //param3 encoding  VDFType_8,VDFType_16
    VDFReturn c VDFtoJSON("../../scripts/items/items_game.txt","test.json"VDFType_8); 
    Command:
    PHP Code:
    sm_vdf2json <path>   //output addons/sourcemod/data/output.json
    sm_vdf2json16 <path//output addons/sourcemod/data/output.json 
    Convar:
    PHP Code:
    sm_vdftojson_enabled 1 //set to 0 to disable in-game command 
    https://github.com/oscar-wos/VDFtoJSON

    __________________
    SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS

    Last edited by OSWO; 03-24-2023 at 13:59.
    OSWO is offline
    OSWO
    Senior Member
    Join Date: Jul 2015
    Location: United Kingdom, London
    Old 03-24-2023 , 13:41   Re: [ANY] VDFtoJSON (items_game.txt)
    Reply With Quote #2

    1.10
    - Added utf16 support

    PHP Code:
    #include <vdftojson>
    VDFReturn utf8 VDFtoJSON("../../scripts/items/items_game.txt""items_game.json"VDFType_8);
    VDFReturn utf16 VDFtoJSON("../../resource/csgo_english.txt""csgo_english.json"VDFType_16); 
    __________________
    SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
    OSWO 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 04:11.


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