ieeemma / srprogression

Speedrunners Progression Store file editor
4 stars 0 forks source link

Help Wanted #1

Open MrWithrow opened 8 months ago

MrWithrow commented 8 months ago

I am new to python and am not sure how to use this code. Would you mind helping me?

TDW300 commented 7 months ago

Hey! here's what you need to do with this code:

  1. Install Python:

    • If you don't have Python, download and install it from python.org.
  2. Save the Code:

    • Copy the Python script and save it as a file, maybe name it progression_script.py.
  3. Understand the Classes:

    • Check out the three classes: Unlock, StoryChapter, and ProgressionStore. They manage game progression data.
  4. Load Existing Data:

    • Open the script, create a ProgressionStore instance, and load existing data:
      se = ProgressionStore()
      se.load("path/to/your/existing/file.dat")  # Replace with your file path
  5. Make Changes (Optional):

    • If you want to modify the data, this is the step to do it.
  6. Save Modified Data:

    • Save the changes back to the file:
      se.save("path/to/save/your/file.dat")  # Replace with your desired save path
  7. Debug Prints (Optional):

    • Uncomment debug prints at the end if you want more detailed insights.
attasityao commented 7 months ago

NameError: name 'ProgressionStore' is not defined

Kishlay-notabot commented 4 months ago

import the script in your .py file