evilC Posted January 29, 2022 Share Posted January 29, 2022 I found one of these on GitHub, but it has not been touched in >5 years, and no longer did anyrhing useful. So I spent an evening writing my own There's no GUI yet, all it does is build two lists: ContainerItems: For each Container, which items could it possibly contain eg "oven": [ "toolCookingPot", "toolCookingGrill", "resourceCoal", "foodRottingFlesh", "foodCharredMeat", "foodCanChicken", "foodCanMiso", "foodCanSoup", "foodCanPears", "foodCornMeal", "foodCanCatfood", "foodShamSandwich", "foodCanBeef", "foodCanChili", "foodCanDogfood", "foodCanSham", "foodCanLamb", "foodCanPasta", "foodCanPeas", "foodCanSalmon", "foodCanStock", "foodCanTuna", "resourceCropCoffeeBeans", "resourceCropGoldenrodPlant", "resourceCropChrysanthemumPlant", "foodCropBlueberries" ], ItemContainers: For each Item, which Container could it possibly spawn in eg "foodCropBlueberries": [ "cntBackpack", "oven", "cupboard", "cooler", "shamwayCrate", "foodPileSmall", "foodPileMed", "foodPileLarge" ], No probabilities are calculated, I have not worked out how to decypher it. If anyone understands how to do this, then feel free to chip in Here are the two files that it currently spits out (As of A20 b238) : https://filebin.net/ma9dueaqfxv6xc9z Source code https://github.com/evilC/7DTD-Loot-Viewer Link to comment Share on other sites More sharing options...
evilC Posted February 1, 2022 Author Share Posted February 1, 2022 (edited) I have been doing more work on this project, and have a branch where I process loot.xml and built a tree of all the containers / lootgroups / items in it, along with the associated probability entries. Again, still no UI, but if you are familiar with Visual Studio .NET apps, you can navigate the loot table tree using the de@%$# The tree is built in such a way that you can traverse it in either direction (From a container down to an item, or from an item back up to the container) - here you can see me inspecting the ratchet - it is in two loot groups, and I have navigated up to the first one - groupToolsT2 I currently have nothing which actually calculates the probability of something dropping, but this at least paves the way to being able to process the data very quickly without having to touch the XML for each operation. The branch is here if anyone wishes to have a play Next task is to try and get it to at least gather all the data for a specific item given a specific loot level, so that I can later have a stab at trying to calculate probabilities Edited February 1, 2022 by evilC (see edit history) Link to comment Share on other sites More sharing options...
ktrain Posted February 2, 2022 Share Posted February 2, 2022 Nice job! What is the intended use for this tool? Just to make modding easier or...? Link to comment Share on other sites More sharing options...
evilC Posted February 3, 2022 Author Share Posted February 3, 2022 The initial driver is for players to be able to answer the question "I really need item X - what is the best place to focus my efforts?" ie it is intended to tell you which containers you need to be looking in to have the best chance of finding a certain item. Link to comment Share on other sites More sharing options...
evilC Posted February 5, 2022 Author Share Posted February 5, 2022 It's taken a bunch of work, but I finally think I am in a position to start trying to actually calculate probabilities I have another thread going here where I am asking about how to calculate the probabilities - if anyone is interested in helping, please feel free to chime in Link to comment Share on other sites More sharing options...
evilC Posted February 8, 2022 Author Share Posted February 8, 2022 Probabilities are calculating, UI is written 3 Link to comment Share on other sites More sharing options...
RyanFaeScotland Posted April 8, 2023 Share Posted April 8, 2023 Really like the look of this, gonna check out the source code and see if I can get it running too. I've dropped a question on the repo since it looks like you aren't too active here any more. Will chat here instead if you are though! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now