Skip to content

[Python Tool] Pickpocket list generation

XansXans Member Posts: 4
edited May 2021 in General Modding
After starting a play through with a bard <Charname> I had difficulty finding an updated pickpocket list, so I decided to make one. This tool iterates over the game files, after extracting them with near infinity, to find all non-enemy, non-dragon(too large to pick) targets that either exist in an area or are spawned via a bcs script. Basically every item shown and the available options are dynamic based on the game install you extract from. It then checks flags for each item on each character to see if it can be picked.

This method does result in a few false positives either because of npcs that are turned hostile via a script before you can get to them or npcs that exist in the files but aren't actually created in game (EG Elminster<merlin.cre>)

This tool currently supports all IE games that use v1 cre/itm/are files. I haven't tried with Planescape Torment or non-EE versions. These pages are generated in English but the actual tool should support any language that has a dialog.tlk. Due to the use of a JS library(brython) you may need to run a local webserver for the resulting html pages to generate correctly, I use Pycharm's built in support.

Github: https://github.com/xanthics/infinity_pickpocket_list suggestions and bug reports welcome
Hosted: https://xanthics.github.io/infinity_pickpocket_list/ for iwdee/bgee/bg2ee and a couple modded installs I am trying

This tool wouldn't be possible or in the state it is in without Near Infinity and the Gibberling docs resources.

To run this tool on your personal game setup
I'd recommend modifying main in gen_list to only iterate over one game that most closely matches your setup. Then extract the appropriate files to the correct folder and manually copy your dialog.tlk. manual/area_names.py assumes the same 5 game names as gen_list so you will need to update it to support other game keys. Additionally gen_list->view_char->pick_difficulty will need to be updated if you are using a mod that changes the difficulties of pickpocketing an item slot.

[edits]
2021/23/5: Added stores you can steal from
Post edited by Xans on
Sign In or Register to comment.