Mods / Mod Downloader and Updater

Category: #Other #Utility
Author: Luksor
Side: Client
Created: Apr 8th 2022 at 6:36 AM
Last modified: Nov 16th 2022 at 6:45 PM
Downloads: 2527
Follow Unfollow 29

Latest version:
vintage-story-mod-downloader_v1.1.0.zip


Hi everyone,

To run the tool, you need to execute file Mod updater.exe

Usage and functionalities:

  • Default mod path: C:\Users\%USERNAME%\AppData\Roaming\VintagestoryData\Mods you can change it after first run editing modsdir.txt file
  • You can choose if you want to search mods by manual search (y) or rather let the tool do the job for you and search according to mods' directory content (n).
  • Any downloaded files will appear in output directory.
  • If you want to update your current mods' directory just copy files from output and use them to replace old ones in your vs mod directory. 

I hope this tool will save you some time. Feel free to look through the code and modify it by yourself. 

Best regards:
Luksor

Special thanks for fixing to Stahl <3

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.1.0
1354 Nov 16th 2022 at 6:45 PM Show vintage-story-mod-downloader_v1.1.0.zip
v1.0.2
560 Apr 11th 2022 at 12:43 PM Show vintage-story-mod-downloader_v1.0.2.zip
v1.0.1
324 Apr 8th 2022 at 7:59 AM Show vintage-story-mod-downloader_v1.0.1.zip
v1.0.0
287 Apr 8th 2022 at 7:39 AM Show vintage-story-mod-downloader_v1.0.0.zip

13 Comments (oldest first | newest first)

💬 LunaGore, May 20th at 6:43 PM

MuscleLord How would this be run? I see it's a python file but when attempting to open it nothing happens.

💬 Sammy_SMD, Mar 22nd at 8:45 PM

My antivirus sais the file is infected by IGP.Generic

💬 MuscleLord, Jan 26th at 6:16 PM

KlausKlever Looks good. No problem at all. I have put in some extra in the code, but it needs some changes later on. The API for changelogs does'nt give much info on what has changed 😄

pastebin.com/ZrK9R6st

💬 KlausKlever, Jan 25th at 1:20 AM

MuscleLord  I have adapted the code a little. it was executable for me. Thanks for the template the time and effort. https://pastebin.com/0KnV2R7q

💬 MuscleLord, Jan 22nd at 7:09 PM

Now i have done some changes to this updater that uses api and info direct from modinfo.json inside every mod zipfile in your modfolder.

Here is the new code for testing pastebin.com/phpCRNXQ

💬 MuscleLord, Jan 22nd at 4:44 PM

That was a very good idé, i will take a look my self into that

💬 Sarioah, Jan 21st at 2:54 AM

If you ever come back to this, then yeah the API would be well worth investigating. A well built API with the endpoints you need will always always always be faster and more robust than trying to parse a user facing frontend.

Also worth investigating zipfile.ZipFile / zipfile.Path, with recent python versions you can directly open the modinfo.json in-place and query modid, mod versions etc. without having to extract the zip file or search for the mod by name.

💬 MuscleLord, Jan 20th at 12:34 PM

Wouldn't it be easier if you used the API instead of scraping the modlist site?
github.com/anegostudios/vsmoddb#vs-mod-db-api-docs

💬 FireFrost, Mar 18th 2023 at 6:30 AM

says the site contains malicious code , when i click continue anyway the page is blank 

💬 LuksorAuthor, Nov 14th 2022 at 9:16 PM

Really big thanks to Stahl for fixing this mod <3 . I have plans to upgrade this mod to GUI version. I can't give you exact release date yet because of much of work on studies. Anyway I'm here and I remember about this tool guys.

💬 Stahl, Sep 27th 2022 at 4:30 PM

Seems the site coding has changed; an updated working script available here.

💬 LuksorAuthor, Jun 28th 2022 at 2:17 PM

Thank you for your review, I'm glad to hear you liked it. About copying this tool to mod's folder, actually you don't have to, just copy full path to your mod folder at first time tool is starting and asking you for mods directory. Then you can also manually add or modify it by pasting/changing mod's directory path in file modsdir.txt in tool's location. 

💬 1Joachim1, May 24th 2022 at 7:03 PM

NOTE: you have to put this in the mod's folder. else it just closes.

just tested it, i thought it will bring an UI and i would have to manually select what do i want to update but... it does not, at least not in automatic and IT'S AMAAAAAZING!!! :D i just let it run by itself and it's fantastic. the only thing someone may be concerned is the fact that sometimes it doesn't "find" the right mod BUT if it finds more than one "possibility" (for example i have visible terra pretta) it will ask for which one you want (in my case it was also the visible ores option), which, again, is AMAZING.

you should update a bit the description to tell people what does it do because at first sight it may not be interesting for everyone. i closed the tab and in the last second i re-opened it and i'm glad i did it :D 

(edit comment delete)