I'm having the same issue as krakonHUN, it gives the TypeError: __init__() missing 1 required positional argument: 'writing' . Does anyone know how to fix this problem?
Mods are in the 'mods' folder as .pak extensions. They do work in game, I just don't have the load order file. Specifically what I was trying to do was load KCD Combat Rebalance for the greatly reduced weapon damages with 'Dark Times - A Difficulty and Balance Overhaul'. Both edit the same files but change different things (I believe). But I digress!
Loading it as administrator brings up a CMD that just shows the updated exe path for KCD with a blinking cursor. Is anything else supposed to be there?
Dark Times - A Difficulty and Balance Overhaul unfortunately adds lines to the rpg_param.xml file and therefore is not currently supported by Ghetto Mod Loader. I am looking into this issue though; so keep an eye out for the next release. :)
Okay, thanks for letting me know! I'll keep my eye on it. I'm still not sure why load_order isn't being generated since it's a separate issue, but maybe I won't have that issue in future versions
Very promising start already. Kudos. If you want inspiration for further developing this, especially with the GUI, check out the Witcher 3 Script Merger, which does the same thing as this basically, using KDiff to compare xml and script files, except that it's a completely mature tool now. Good luck, hopefully this can become as powerful and useable as Witcher 3 Script Merger.
Here's the Witcher 3 Script Merger if you want to have a look: https://www.nexusmods.com/witcher3/mods/484/ And here's the GitHub page for the source so you can tear it down and have a real look: https://github.com/AnotherSymbiote/WitcherScriptMerger It's licensed under GPL so there shouldn't be any issue with salvaging code from it.
Ty, I will have a look at it...unfortunately it's written in C# so I probably won't be able to use much of it unless they have a DLL kicking around.
That being said; the library they use 'KDiff' sounds interesting. I like the idea; I am looking into it now and seeing how that might work with python. No promises though. :)
Silly me, i downloaded it from your git, not this site. So after downloading the right stuff, did all the steps, changed the directory, ran the exe as admin, but its kinda freezes my pc, this takes me about 5 min to write, instead of a couple of seconds. This is normal?
well...depending on how many mods you are trying to load I believe it can...if you are loading that many mods though; you should probably be aware they may not all be compatible with the mod loader
Okay just for clarification, do i run the loader and close it? Or do i run it, and let it run?
When i run it, it eats away 8GB of ram, fully overloading my ram, and nothing really happens..... I have the folder on my desktop, not in the data folder or game folder, does this make a difference? Could i be doing something wrong?
You do not run it while the game it running. You run it, let it run, and it should close on it's own when it's finished. How many mods do you have in the folder? At the moment it loads all the mods into ram at one time...this is something I need to look into in the future.
I was using the loader to fix up 7 mods. Bianka's Ring Capons bow cheat version Cheat console richer merchants unlimited savings no helmet vision perkaholic
Mine, meanwhile, is eating up a good 16GB of RAM with a similar number of mods (total size of all .pak files: 26.4 MB), which suggests to me that it's using all RAM available, not just RAM needed.
First, thanks for your job, although it doesn't work for me. It generates a load order file but not the omni mod. This is the trace that the cmd shows:
C:\Users\josek\Desktop\Ghetto_Mod_Loader>"Ghetto Mod Loader.exe" ['exe_path', 'C:\\Program Files (x86)\\Kingdom Come Deliverance\\Bin\\Win64\\Kin gdomCome.exe'] Warning! Mod in load order file but not in mods folder. (Repeated a lot of lines) Traceback (most recent call last): File "Ghetto Mod Loader.py", line 327, in <module> File "Ghetto Mod Loader.py", line 247, in make_omnipak File "Ghetto Mod Loader.py", line 258, in _merge_files IndexError: list index out of range [1628] Failed to execute script Ghetto Mod Loader
How did u get it to work? For me it eats all my ram and freezes my pc up like crazy. How long did it take for you to get anything at all? Did u disable anti virus? Did u have the folder on the same drive as the game?
Same here, tried with multiple combinations with all mods that change rpg file settings, I get this error every time. load order is generated.
Edit: I got new error. check it out here https://imgur.com/a/V3QTo Edit: this error was possibly provoked by a broken .pak file. Now it just giving me error from originel thread by josek5494
Aaah, so this is the line that is throwing the error;
for i in range( len( mod_file.contents ) ): if mod_file.contents[i] != original_game_file.contents[i]:
specifically ' original_game_file.contents[i] ' it means that the mod xml file has more lines than the original game's xml file.
if you are having this issue; it means you are trying to load a mod that added or removed lines from the file...At the moment; there isn't a quick fix for this, but the good news is; I am working on a solution.
It probably wouldn't be a good idea to load those mods together even if I did stop it from crashing as it could lead to unexpected errors in the game.
That being said, in the meantime; there is nothing stopping you from loading in mods that conflict the old fashion way; it just means they won't be merged but will instead over-write the file.
I am not sure what is causing your error; does it do it will all mods or just the ones you are trying to load? Have you tried re-downloading the mod loader?
I did. Not sure bu I read few posts above that rpg_param.xml is not currently supported(your answer to Veralie about Dark times)? Maybe that;s the catch. Anyway, you'll gonna find it, im sure of that.
Well...rpg_param.xml IS supported BUT Dark - Times adds lines to the rpg_param.xml file...modified lines the modloader can handler...but brand new lines trip it up...
72 comments
Do all the mods have a .pak extension?
Did you run it as administrator?
What mods are you trying to load?
What does it say when you launch it from a command prompt?
Loading it as administrator brings up a CMD that just shows the updated exe path for KCD with a blinking cursor. Is anything else supposed to be there?
Here's the Witcher 3 Script Merger if you want to have a look: https://www.nexusmods.com/witcher3/mods/484/
And here's the GitHub page for the source so you can tear it down and have a real look: https://github.com/AnotherSymbiote/WitcherScriptMerger
It's licensed under GPL so there shouldn't be any issue with salvaging code from it.
That being said; the library they use 'KDiff' sounds interesting. I like the idea; I am looking into it now and seeing how that might work with python. No promises though. :)
When i run it, it eats away 8GB of ram, fully overloading my ram, and nothing really happens.....
I have the folder on my desktop, not in the data folder or game folder, does this make a difference?
Could i be doing something wrong?
Bianka's Ring
Capons bow cheat version
Cheat console
richer merchants
unlimited savings
no helmet vision
perkaholic
C:\Users\josek\Desktop\Ghetto_Mod_Loader>"Ghetto Mod Loader.exe"
['exe_path', 'C:\\Program Files (x86)\\Kingdom Come Deliverance\\Bin\\Win64\\Kin
gdomCome.exe']
Warning! Mod in load order file but not in mods folder. (Repeated a lot of lines)
Traceback (most recent call last):
File "Ghetto Mod Loader.py", line 327, in <module>
File "Ghetto Mod Loader.py", line 247, in make_omnipak
File "Ghetto Mod Loader.py", line 258, in _merge_files
IndexError: list index out of range
[1628] Failed to execute script Ghetto Mod Loader
How long did it take for you to get anything at all? Did u disable anti virus?
Did u have the folder on the same drive as the game?
Edit: I got new error. check it out here https://imgur.com/a/V3QTo
Edit: this error was possibly provoked by a broken .pak file. Now it just giving me error from originel thread by josek5494
for i in range( len( mod_file.contents ) ):
if mod_file.contents[i] != original_game_file.contents[i]:
specifically ' original_game_file.contents[i] ' it means that the mod xml file has more lines than the original game's xml file.
if you are having this issue; it means you are trying to load a mod that added or removed lines from the file...At the moment; there isn't a quick fix for this, but the good news is; I am working on a solution.
It probably wouldn't be a good idea to load those mods together even if I did stop it from crashing as it could lead to unexpected errors in the game.
That being said, in the meantime; there is nothing stopping you from loading in mods that conflict the old fashion way; it just means they won't be merged but will instead over-write the file.
I am not sure what is causing your error; does it do it will all mods or just the ones you are trying to load? Have you tried re-downloading the mod loader?