Skip to content

Library for parsing and using item data from Escape from Tarkov.

Notifications You must be signed in to change notification settings

Xerxes-17/RatStash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rat Stash

Rat Stash is a open source library for parsing and using item data from Escape from Tarkov.


How to use

The fast way: Finding a item by it's Id

Database database = Database.FromFile("items.json");
Item item = database.GetItem("5644bd2b4bdc2d3b4c8b4572");
Console.WriteLine(item.Name);   // > "AK-74N 5.45x39 assault rifle"

Finding a item by any other property

Database database = Database.FromFile("items.json");
IEnumerable<Item> items = database.GetItems(item => item.ShortName == "MRE");
Item firstFoundItem = items.FirstOrDefault();   // First item matching our query
Console.WriteLine(firstFoundItem.Name);         // > "MRE lunch box"

Getting all items in the database to perform custom operations

Database database = Database.FromFile("items.json");
IEnumerable<Item> items = database.GetItems();
Console.WriteLine(items.Count());   // > 2245

Parsing the item cache index

Database database = Database.FromFile("items.json");
Dictionary<int, (Item, ItemExtraInfo)> cacheIndex = database.ParseItemCacheHashIndex("index.json");
Console.WriteLine(cacheIndex[14].item.ShortName);

Support the project


Patreon PayPal

About

Library for parsing and using item data from Escape from Tarkov.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%