Returns: String - traduction if langfile initialized and key is present, key otherwise Get the lang value from valve key i18n values. Returns: boolean - True if initialized, false otherwiseĬsgoDataParser.getLangValue(keyLang) ⇒ String Returns: boolean - True if datas initialized, false otherwiseĬsgoDataParser.isLangInitialized() ⇒ boolean Returns: winston.Logger - Winston based Parser's Logger.ĬsgoDataParser.isDatasInitialized() ⇒ boolean Winston Log Level, if > info no timing data for generations.ĬsgoDataParser.getLogger() ⇒ winston.Logger New CSGODataParser(schemaFilePath, langFilePath, itemsFilePath, logLevel, logFilePath) Param new CSGODataParser(schemaFilePath, langFilePath, itemsFilePath, logLevel, logFilePath).Items File can be find both in game data files () and in Steam API (Note : You need do get the items_game_url information)Ī sample script is at example.js.Language file can be find in game data files ( steam-data/csgo/resource/csgo_ language.txt).Must pass schema file (like schema.txt), language file (like csgo_english.txt) and item file (like item_data.txt) at VDF format Var parser = require ( './csgo-data-parser' ), var schemaFilePath = './test/test-data/schema.txt', langFilePath = './test/test-data/csgo_english.txt', itemsFilePath = './test/test-data/items_game.txt', outLogFilePath = './out/logs/parser.log' var csgoDataParser = new parser ( schemaFilePath, langFilePath, itemsFilePath, 'debug', outLogFilePath )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |