Kingdom Come: Deliverance
0 of 0

File information

Last updated

Original upload

Created by

deeredman1991

Uploaded by

Deeredman1991

Virus scan

Some manually verified files

Tags for this mod

72 comments

  1. HecticWolf97
    HecticWolf97
    • supporter
    • 0 kudos
    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?
  2. SkyeFlyer
    SkyeFlyer
    • member
    • 5 kudos
    So is it supposed to just load forever? I only have 5 mods.
  3. krakonHUN
    krakonHUN
    • supporter
    • 0 kudos
    what does TypeError: __init__() missing 1 required positional argument: 'writing' mean?
  4. samidiedo
    samidiedo
    • supporter
    • 1 kudos
    I couldn't get this to work - This other merger seems to work flawlessly, however: https://www.nexusmods.com/kingdomcomedeliverance/mods/272
  5. belciu
    belciu
    • member
    • 0 kudos
    After letting it run for 50min with 7 mods I've decided to close the process. :/
  6. Veralie
    Veralie
    • member
    • 0 kudos
    I did everything as you described, but it's not generating a load_order file for me.
    1. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      Are all mods in the 'mods' (mods, plural) folder of the 'Ghetto Mod Loader' directory?

      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?
    2. Veralie
      Veralie
      • member
      • 0 kudos
      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?
    3. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      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. :)
    4. Veralie
      Veralie
      • member
      • 0 kudos
      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
    5. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      Does load_order generate if you remove "Dark Times" and have at least 2 (compatible) mods in the mods folder?
    6. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      New version may be compatible with Dark - Times
  7. vulchor
    vulchor
    • premium
    • 5 kudos
    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.
    1. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      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. :)
    2. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      New version doesn't use KDiff like you suggested but uses python's difflib library now which is very similar. :)
  8. powerzhea
    powerzhea
    • premium
    • 3 kudos
    Followed all steps, but there is no exe file for the loader?
    1. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      You are missing "Ghetto Mod Loader.exe"? Have you tried re-downloading the files?
    2. powerzhea
      powerzhea
      • premium
      • 3 kudos
      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?
    3. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      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
    4. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      The new version should be a lot quicker...many optimizations to the search algorithm.
  9. powerzhea
    powerzhea
    • premium
    • 3 kudos
    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?
    1. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      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.
    2. powerzhea
      powerzhea
      • premium
      • 3 kudos
      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

    3. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      hmm...I don't know...I don't think those few mods would cause it to eat 8GB of memory...I'll look into it and see what I can find.
    4. Magister Mundi
      Magister Mundi
      • premium
      • 0 kudos
      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.
    5. Amontadillo
      Amontadillo
      • member
      • 0 kudos
      Total size of my mods is like 300 kb, but trying to use the loader is also maxing out my RAM (8gb).
    6. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      The new version should use a LOT less RAM...many optimizations to memory.
  10. josek5494
    josek5494
    • supporter
    • 0 kudos
    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
    1. powerzhea
      powerzhea
      • premium
      • 3 kudos
      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?
    2. jccy91
      jccy91
      • member
      • 0 kudos
      I had the same issue as josek5494 too. I was trying to merge perkaholic and more perks mods.
    3. janusbouu
      janusbouu
      • premium
      • 0 kudos
      Same for me, line for line as Josek5494. i was also trying to merge perkaholic and more perks mods.
    4. deleted587707
      deleted587707
      • account closed
      • 0 kudos
      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
    5. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      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.
    6. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      @adres4t

      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?
    7. deleted587707
      deleted587707
      • account closed
      • 0 kudos
      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.

    8. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      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...
    9. deleted587707
      deleted587707
      • account closed
      • 0 kudos
      Oh I see. So my problem is that more than one file adds new lines to rpg_param.xml. Well, I continue merging them manually by now.
    10. Deeredman1991
      Deeredman1991
      • member
      • 2 kudos
      Dark - Times should be supported now...I haven't tested it but you could give it a go. :)