Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature for edit command to replace item IDs, small fix for meta data parsing #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

koopa
Copy link

@koopa koopa commented Dec 13, 2021

Thanks for the toolkit!
Here is a way to replace items in a blueprint.
Also I encountered some errors when I tried to load blueprints which had a "long description".
Not sure if this is new? Just picked up the game a couple of days ago. There was some issue with the b64data_hash.startswith("\"") assert.
Feel free to comment / suggest improvements :)

Update b64 data splitting (fixes comma issue when desc is not empty)
Allow json output to stdout
@koopa
Copy link
Author

koopa commented Dec 13, 2021

Example

$ ./dspbptk dump red_science.txt
Name: Red Science 2 / sec
Total building count: 867
  696  ConveyorBeltMKI
  118  SorterMKI
   24  OilRefinery
   12  MatrixLab
    9  TeslaTower
    6  Splitter
    2  StorageTank

$ ./dspbptk edit -f -s 2001 -r 2002 red_science.txt red_science_mk2.txt
696 instances of ConveyorBeltMKI replaced with ConveyorBeltMKII

$ ./dspbptk dump red_science_mk2.txt
Name: Red Science 2 / sec
Total building count: 867
  696  ConveyorBeltMKII
  118  SorterMKI
   24  OilRefinery
   12  MatrixLab
    9  TeslaTower
    6  Splitter
    2  StorageTank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant