Skip to content

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

Notifications You must be signed in to change notification settings

RatScanner/RatStash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages