Jump to content

[mod] C0ffee's Lazy Installer and Updater for RJW and Submods


Recommended Posts

Posted (edited)

C0ffee's Lazy Installer and Updater for RJW and Submods

View File


Lazy Installer is outdated. I might update in the future, but for now use other mod installers instead, or manually change the mod list in the file to updated mods.

---

Now for 1.5!

So many mods! How to install them all quickly? How to make sure your mods are updated easily?

Lazy Installer and Updater for RJW and Submods [1.5+]

 

How to use:

1. Make sure you have Git installed https://git-scm.com/downloads 

2. Place C0ffees-Lazy-Installer-Updater.bat in /RimWorld/mods/ folder

3. Double-click to run; all outdated mods will update!
 

Optional: open C0ffees-Lazy-Installer-Updater.bat with a text editor for more options (notepad works fine).

___________
 

Direct link to repo: https://gitgud.io/c0ffeeeeeeee/c0ffees-lazy-installer-and-updater

 

Credit to XenoMorphie for the Linux/SteamDeck Lazy Installer

 

Fancy Alternatives

NPM solution by @Lughir 

Bash solution for Linux by @HurfDurr 

Python Auto-Updating Solution by @Techno665

Lazy Installer with GUI by @beastie

 

5/27 Added bash version of Lazy Installer for Linux and Steam Deck, credit to XenoMorphie

 

Some mods won't work because they don't have a git repository, but this should make things a little more convenient for the many that do.

If there's any mods with Git version control that you think I should add or was recently added to a Git repository, let me know!


 

Edited by c0ffeeeee
Posted

Note: You may need to delete and reinstall these mods to get the 1.5 version with the Lazy Installer:

Rimworld-Animations
rjw_menstruation
s16-extentions-1.5
rjw-brothel-colony

  • c0ffeeeee changed the title to [1.5] C0ffee's Lazy Installer and Updater for RJW and Submods
Posted

There appears to be an issue with what line endings that are being used, causing some lines to be randomly skipped (it skipped from events to hawk_anims for me). Switching from unix line endings to windows line endings appears to resolve the issue.

Posted
5 hours ago, Temp106 said:

There appears to be an issue with what line endings that are being used, causing some lines to be randomly skipped (it skipped from events to hawk_anims for me). Switching from unix line endings to windows line endings appears to resolve the issue.

I added a .gitattributes that sets it to always use CRLF. Let me know if that fixes the issue for you

Posted

The downloader stops after downloading Privacy Please, removing all lines before rjw-events and then running the program has it stop after rjw-master. 

 

It's pretty reliably everything in the list from this point down that gets skipped for me, no matter how I tweak the Bat. I have no idea how line endings work so not even sure where to start with that.

CALL :GitUpdate rjw-events https://gitgud.io/c0ffeeeeeeee/rjw-events.git
CALL :GitUpdate rjw-milkable-colonists-biotech https://gitgud.io/Onslort/rjw-milkable-colonists-biotech.git
CALL :GitUpdate rjw-sexperience https://gitgud.io/amevarashi/rjw-sexperience.git

::Body Mods and Textures
CALL :GitUpdate sized-apparel-zero https://gitgud.io/ll.mirrors/sized-apparel-zero.git

::Animation Mods
CALL :GitUpdateBranch Rimworld-Animations https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git 1.5
CALL :GitUpdate RJWAnimAddons-SeXtra2 https://gitgud.io/Tory/rjwanimaddons-sextra2.git
CALL :GitUpdate Hawk_Anims https://github.com/Hawkeye32/Hawk_Anims.git

 

Posted (edited)

I see the same as @bcw81 above me, skips everything after privacy please and ends.

If I comment out milkable colonists, then it will proceed but it still skips sized apparel.  It will try to update events, sexperience, animations, sextra2, and hawk.

Edited by Raiven
Posted
7 hours ago, Raiven said:

I see the same as @bcw81 above me, skips everything after privacy please and ends.

If I comment out milkable colonists, then it will proceed but it still skips sized apparel.  It will try to update events, sexperience, animations, sextra2, and hawk.

I config'd it to use CRLF line endings, and resaved it with CRLF line endings. Let me know if you still have any issues with it

Posted

Thanks for this, it's much more convenient than manually updating mods.

 

However, I can confirm that it still has the line ending issue. Gitgud is also not showing any changes to the batch file, so it's possible that git didn't sync that change to the server.

Posted

It might be necessary to make the change in your local and then update the bat like that, since the file is unchanged on the repo. Or make a small change and reupload since the current version hasn't filtered through the gitattributes

Posted
1 hour ago, Temp106 said:

It might be necessary to make the change in your local and then update the bat like that, since the file is unchanged on the repo. Or make a small change and reupload since the current version hasn't filtered through the gitattributes

alright, I changed it and it should be fine now. Let me know if there's still any issues

Posted (edited)

Seems like it only installs these mods:

rjw
rjw_menstruation

s16-extentions-1.5

rjw-brothel-colony

privacy-please

 

Others are skipped for some reason.

EDIT:
I think I fixed it by changing GitUpdate to GitUpdateBranch and adding branch name at the end based on github links (updated all mods).
OP can you check this to make sure?

C0ffees-Lazy-Installer-Updater.bat

Edited by RareAlexDev
Maybe fixed?
Posted (edited)
13 hours ago, c0ffeeeee said:

alright, I changed it and it should be fine now. Let me know if there's still any issues

 

I'm still seeing the same issues.

 

Downloaded the bat from your repo just now, ran it untouched and it skips everything after privacy please.

When I edit the bat and comment (::) out milkable colonists (which I did at first just because I don't personally use it), then everything runs except for sized apparel zero.  Right around the section for SAZ this is what I see

 

Updating rjw-sexperience...
Already up to date.
The system cannot find the batch label specified - GitUpdate

Updating Rimworld-Animations...
Already up to date.

 

As an additional note, I was using your older version, pre 1.5, without issues (as far as I know).

Edited by Raiven
Posted (edited)
58 minutes ago, Raiven said:

 

I'm still seeing the same issues.

 

Downloaded the bat from your repo just now, ran it untouched and it skips everything after privacy please.

When I edit the bat and comment (::) out milkable colonists (which I did at first just because I don't personally use it), then everything runs except for sized apparel zero.  Right around the section for SAZ this is what I see

 

Updating rjw-sexperience...
Already up to date.
The system cannot find the batch label specified - GitUpdate

Updating Rimworld-Animations...
Already up to date.

 

As an additional note, I was using your older version, pre 1.5, without issues (as far as I know).

I switched the download to the entire .zip of the repo. Apparently direct file downloads ignore .gitattributes which is annoying.

 

Alternatively, you could just have the git repo cloned in your mods folder as well. The lazy installer automatically CDs into the Mods folder from there.

Edited by c0ffeeeee
Posted
3 hours ago, c0ffeeeee said:

I switched the download to the entire .zip of the repo. Apparently direct file downloads ignore .gitattributes which is annoying.

 

Alternatively, you could just have the git repo cloned in your mods folder as well. The lazy installer automatically CDs into the Mods folder from there.

Works a treat now!  Thank you for making this and taking the time to work out the bugs, much appreciated.

 

For reference, I was actually just downloading the code as a zip before and having the bat and the .gitattributes in the folder.  It didn't seem to matter before but with this last update its fully functional, SAZ is working as well.

 

Cheers!

Posted

Excellent bat file but the new version does weird things for me.

If i run it in the empty Mods folder, the first runt completes without issues. Things get installed and everything looks perfect.

If i run it again it detects a bunch of false positive duplicates in milkable colonists and s16- extension then quits after getting to the sized-apperel-zero

No prompt to exit this go around. I run windows 11 and the previous versions of the script from 7-19-2023 to 4-15-2024 worked without issues.

Posted
3 hours ago, vempare said:

Excellent bat file but the new version does weird things for me.

If i run it in the empty Mods folder, the first runt completes without issues. Things get installed and everything looks perfect.

If i run it again it detects a bunch of false positive duplicates in milkable colonists and s16- extension then quits after getting to the sized-apperel-zero

No prompt to exit this go around. I run windows 11 and the previous versions of the script from 7-19-2023 to 4-15-2024 worked without issues.

 

Same, something seems to be off with sized-apparel-zero. Git just exits.

Posted (edited)
1 hour ago, Skömer said:

Yours gave me more information on where it found duplicate files and i was able to remove the offending folders. Unfortunately it still fails when it gets to zero. Looks like it attempts to download something and crashes.

EDIT: It maybe just after zero, i think i saw it complete and try to do the next process, not sure its just to fast to see.

Edited by vempare
more information found

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...