Skip to content

feat: add save file task example code#63

Open
dbwodlf3 wants to merge 7 commits intocheahjs:mainfrom
dbwodlf3:features/add-task-basecode
Open

feat: add save file task example code#63
dbwodlf3 wants to merge 7 commits intocheahjs:mainfrom
dbwodlf3:features/add-task-basecode

Conversation

@dbwodlf3
Copy link
Copy Markdown

I have added some type parsing as Python types and written some tasks.
I will add test code and refactor the codebase.
If you have any suggestions to improve this project, please advise me. Your input would be greatly appreciated.

Comment thread lib/sav_types/CharacterSaveParameterMap.py Outdated
Comment thread init_player_points.py Outdated
from lib.utils.level_util import loadSavJson, dumpSavJson
from lib.utils.charactersave_util import getRawPlayers

file_path = os.path.join(os.path.dirname(__file__), "Level.sav.json")
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I hope that someone will change this part to a normalized form, similar to a save tool task template.
(I will do it, not now, but in a week)

Comment thread lib/sav_types/GroupSaveDataMapType.py Outdated
Comment thread lib/sav_types/utilType.py
@@ -0,0 +1,9 @@
from dataclasses import dataclass, fields

class Null:
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in json file have null and "NoneType". but python doesn't know what is null or None.

Comment thread lib/sav_types/utilType.py Outdated
Comment thread lib/utils/charactersave_util.py Outdated
Comment thread lib/utils/level_util.py Outdated
Comment thread lib/utils/level_util.py Outdated
Comment thread remove_all_pal_beacon.py
from lib.utils.mapobjectsave_util import getRawMapObjectData, removeRawMapObjectById
from lib.utils.basecampsave_util import getRawBaseCampSaveData

file_path = os.path.join(os.path.dirname(__file__), "initedPlayersPoint.json")
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normalization

@dbwodlf3
Copy link
Copy Markdown
Author

And, add Test code.

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