SilentNightSound / GI-Model-Importer

Tools and instructions for importing custom models into a certain anime game
https://discord.gg/agmg
GNU General Public License v3.0
2.34k stars 339 forks source link

error on merging mod files - genshin_merge_mods.py #220

Closed SuperPhenotype closed 4 months ago

SuperPhenotype commented 4 months ago

Parsing ini sections Calculating overrides and resources Traceback (most recent call last): File "/var/home/superphenotype/Downloads/test/genshin_merge_mods.py", line 261, in main() File "/var/home/superphenotype/Downloads/test/genshin_merge_mods.py", line 125, in main with open(f"{all_mod_data[i]['location']}\{all_mod_data[i][command]}", "rb") as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: './tester\TravelerGirlPosition.buf'

Genshin Impact: Error presents itself no matter which mods are present prior to merge attempt. Always the same .buf file.

fails to output a merged .ini file after complaining about not being able to locate the .buf file.

I've tried merge scripts supplied from other mods, from this git repo, at different times, written differently than the same script found on Main branch, it's always the same problem.


Merge-Error

SuperPhenotype commented 4 months ago

I've adjusted some of the python script in the Merge Utility. The utility now correctly parses ini files, and won't get hungup on complaining about missing files. The specific lines are line # 114 & line # 176. It's working for me.

SS_INI_Parsing-Edits

SS_file_resource_adjust

leotorrez commented 4 months ago

The complaining is somewhat intended. Merge script was designed to merge mods created with the blender export. If a mod maker edits their mod after it was generated, the script will likely fail at merging it.