Jump to content

Libidinous Loader - RJW mod loader and providers list (100+ mods supported)


Recommended Posts

Posted
30 minutes ago, Thorman said:

How do I make it use my own providers.toml file instead of overwriting my file when I make changes to it?

Just make a copy of the original providers.toml? Duplicate it then rename one to something safe like providers.bak.

Posted
On 6/4/2024 at 9:56 PM, XenoMorphie said:

Just make a copy of the original providers.toml? Duplicate it then rename one to something safe like providers.bak.

well the problem I am having is I edit the providers.toml  and then I run python make_json.py. Then I run the program again and for some reason when I rerun the program it reverts my providers.toml and my providers.json file back to the default. Unless I am mistaken it seems like the program is redownloading the file and overwriting what is already there.

Posted
On 6/6/2024 at 4:10 AM, Thorman said:

well the problem I am having is I edit the providers.toml  and then I run python make_json.py. Then I run the program again and for some reason when I rerun the program it reverts my providers.toml and my providers.json file back to the default. Unless I am mistaken it seems like the program is redownloading the file and overwriting what is already there.

Yes, the loader always checks out the newest revision from the provider repository currently.

I guess at some point I could add support for a supplementary, user-defined providers file.

 

The make_json.py is just a helper script to keep the JSON and TOML file in sync.

 

Until there is a different solution, you can go into the providers directory and run

git remote remove origin

 

If you want it to update again, run

git remote add origin https://gitgud.io/AblativeAbsolute/libidinous_loader_providers.git
git branch --set-upstream-to=origin/main main

 

Posted

I am getting this error:

fatal: could not create leading directories of ''C:\Steam\steamapps\common\RimWorld\Mods\mod loader\providers'': Invalid argument
Command '['d:\\programme\\git\\cmd\\git.EXE', 'clone', 'https://gitgud.io/AblativeAbsolute/libidinous_loader_providers.git', "'C:\\Steam\\steamapps\\common\\RimWorld\\Mods\\mod loader\\providers'"]' returned non-zero exit status 128.
urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gitgud.io'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gitgud.io'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
 

Posted (edited)
1 hour ago, CumFactory111 said:

I am getting this error:

fatal: could not create leading directories of ''C:\Steam\steamapps\common\RimWorld\Mods\mod loader\providers'': Invalid argument
Command '['d:\\programme\\git\\cmd\\git.EXE', 'clone', 'https://gitgud.io/AblativeAbsolute/libidinous_loader_providers.git', "'C:\\Steam\\steamapps\\common\\RimWorld\\Mods\\mod loader\\providers'"]' returned non-zero exit status 128.
urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gitgud.io'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gitgud.io'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
 

Thanks for the report!

 

The two lines about the Unverified HTTPS are remnants of the fallback attempt after git itself fails (It was created in case the program git either could not be found on the system or git is having issues finding the system certificates). They should not be related.

 

The line about being unable to create leading directories is interesting.

Here are some things you could check:

  1. Did the application open despite of this error? If yes, then the fallback option succeeded and you can ignore it.
  2. Does the error disappear if you rename the directory 'mod loader' to 'mod_loader' (i.e. no spaces)
  3. Does the user account which is running this loader have access to this path?
Edited by AblativeAbsolute
Posted

1. Yes
3. Yes

2. I didn't knew where to put your file, so I saved and run it again in the mod folder.
When starting I get: 
fatal: cannot change to ''C:\Steam\steamapps\common\RimWorld\Mods\providers'': Invalid argument
Command '['d:\\programme\\git\\cmd\\git.EXE', '-C', "'C:\\Steam\\steamapps\\common\\RimWorld\\Mods\\providers'", 'pull']' returned non-zero exit status 128.


but the Loader Software is starting.

When I select the Mod folder I get:
 

Exception:
Error:     [1005]
Command:   set_value
Item:      0
Label:     Not found
Item Type: Unknown
Message:   Item not found: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "__init__.py", line 90, in mod_folder_select
  File "__init__.py", line 104, in only_select_existing
  File "dearpygui\dearpygui.py", line 9157, in set_value
SystemError: <built-in function set_value> returned a result with an exception set

 

Posted
11 hours ago, CumFactory111 said:

1. Yes
3. Yes

2. I didn't knew where to put your file, so I saved and run it again in the mod folder.
When starting I get: 
fatal: cannot change to ''C:\Steam\steamapps\common\RimWorld\Mods\providers'': Invalid argument
Command '['d:\\programme\\git\\cmd\\git.EXE', '-C', "'C:\\Steam\\steamapps\\common\\RimWorld\\Mods\\providers'", 'pull']' returned non-zero exit status 128.


but the Loader Software is starting.

When I select the Mod folder I get:
 

Exception:
Error:     [1005]
Command:   set_value
Item:      0
Label:     Not found
Item Type: Unknown
Message:   Item not found: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "__init__.py", line 90, in mod_folder_select
  File "__init__.py", line 104, in only_select_existing
  File "dearpygui\dearpygui.py", line 9157, in set_value
SystemError: <built-in function set_value> returned a result with an exception set

 

 

The intention is that you place the executable in an arbitrary empty directory anywhere on your system.

This is just a precaution because the loader writes to some hardcoded paths (a file called last which stores the last selected path and the providers directory) and might otherwise overwrite existing files.

 

But to your error, it crashed when you tried to select the Mods folder?

Very strange, I have not been able to reproduce this.

 

Anyhow, I have pushed a new version which might be able to deal with the errors git is having on Windows.

You could try it if you find the time.

Posted (edited)
25 minutes ago, thisischrys said:

Can I make it install only 1.5 compatible mods?

 

So far, all the mods on offer should be marked as compatible with 1.5.

Have you found one that is not?

Edited by AblativeAbsolute
Posted

Please understand that I am not trying to be confrontational, this question may be the result of frustration, but I'm trying to honestly understand. Why do all the RJW installers require "git"? Why can't they just be an .exe like normal installers usually are?

Posted (edited)

Well, for one, RimWorld mods aren't executables, so it would be pointless and unnecessary to package them in that way. Also dangerous, since it's a lot easier to hide malicious code in an .exe.

For two, Git is the installer. Git handles the downloading and updating of the mods that use it. This program is kinda-sorta a frontend for Git. You don't need Git, strictly speaking - you can download and install the mods manually without it - but it makes things very much easier.

For three... well, why does it matter and why do you care? Git is free and open source. It's not going to hurt anything, cause any problems, or take up much space.

Edited by catapsis
Posted
10 hours ago, Kannyui said:

Please understand that I am not trying to be confrontational, this question may be the result of frustration, but I'm trying to honestly understand. Why do all the RJW installers require "git"? Why can't they just be an .exe like normal installers usually are?

 

@catapsis has already provided some very good points, so I will just add a few details:

I obviously can't answer for all other devs that have made rjw installers, but since most mods are already tracking changes in a git repository, it makes sense that we would use it to fetch the mods as well.

Additionally, my tool uses git to only pull new changes instead of downloading the entire content of the repository again.

 

That being said, it should be capable of running without installing git because there is a fallback option using a different software library.

Posted
On 6/15/2024 at 1:33 PM, Spiral111 said:

Sorry to be a bother but might someone be able to give me a screenshot of the load order for all these?

 

The mods themselves indicate their dependencies in the in-game mod interface.

Apart from this it is generally recommended to load RJW and its submods after other content mods.

Posted
On 7/24/2024 at 1:48 AM, Huruck3 said:

the antivirus detects it

 

Unfortunately, a lot of antivirus software falsely flag python applications such as these as malware, even though they only superficially detect that it was created with PyInstaller.

I have made some adjustments to make it less likely to be detected, but I can't change the spasms of antivirus.

Thanks for your feedback, though.

 

17 hours ago, Quim69 said:

Can you update the Licentia Labs repo on the providers list to the currently maintained for 1.5? The one on the list isn't maintained anymore and is only 1.4.
This is the more up to date one: https://gitgud.io/Jaaldabaoth/licentia-labs.git 
Thanks for making the loader!

 

Done. Thanks!

  • AblativeAbsolute changed the title to Libidinous Loader - RJW mod loader and providers list (50+ mods supported)
Posted
11 minutes ago, winstonlin01 said:

I installed git and put it in a empty directory and executed it ,but it immidiently crash

 

Sorry to hear that. I assume you are on Windows?

 

Could you start Powershell / cmd session and run the executable (type the filename and press Enter).

It should output more information about what is happening.

Posted

WARNING:__main__:Unable to load state file. [Errno 2] No such file or directory: 'D:\\libidinous_loader\\state.json'
Exception: Error: [1000] Message:       Font file could not be found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "__init__.py", line 272, in <module>
  File "dearpygui\dearpygui.py", line 4341, in add_font
SystemError: <built-in function add_font> returned a result with an exception set
[24740] Failed to execute script '__init__' due to unhandled exception!

 

this is what i get

Posted
1 minute ago, winstonlin01 said:

WARNING:__main__:Unable to load state file. [Errno 2] No such file or directory: 'D:\\libidinous_loader\\state.json'
Exception: Error: [1000] Message:       Font file could not be found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "__init__.py", line 272, in <module>
  File "dearpygui\dearpygui.py", line 4341, in add_font
SystemError: <built-in function add_font> returned a result with an exception set
[24740] Failed to execute script '__init__' due to unhandled exception!

 

this is what i get

 

Hm, interesting. The first line is normal at first start, it just creates a state file if it doesn't exist.

 

The real error happens when my application cannot find a font file to load.

Which doesn't make much sense because it is packaged in the executable...

 

I have pushed a new version which now logs the resource path.

Could you re-download the executable and run it again with powershell/cmd?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...