[Developer Tools] ModUpdater (Less tedium when updating mods!)

SatanicSanta

New Member
Jul 29, 2019
4,849
-3
0
ModUpdater
(Alpha)
(GitHub repository)​
ModUpdater is a developer tool created by yours truly. This tool is used to help reduce the tedium involved with updating mods. This includes, and is completely limited to: Uploading the file to CurseForge, Twitter announcements, and wiki changelog updates.

To use it, you must install my wikiutils.rb script and place it in src/libs (eventually I'll get around to making wikiutils.rb installed somehow with Gemfile or something). Then, run the gemfile and cpanfile to install all of the dependencies.

It currently works in the command line only, but I am working on getting a proper GUI to make it even easier. To run it, simply do ruby base.rb while in the src dir, then follow the on-screen instructions. A JSON example and XML example is provided in the GitHub repository.

The wiki feature currently does not work exactly how I want it to, but it *works*.
I take that above comment back, it works exactly how I want it to now.

Bugs and feature requests can be reported here or on the issue tracker
 
Last edited:

SatanicSanta

New Member
Jul 29, 2019
4,849
-3
0
XML is now supported in the following format
Code:
<?xml version="1.0" encoding="UTF-8"?>
<modupdater>
  <cf_settings>
    <api_key>jhdfjhdfghjdfghjdfghjgdf</api_key>
    <file_dir>elifoster/dev/fsp/build/lib/Flaxbeards-Steam-Power-1.7.10-0.29.0.jar</file_dir>
    <file_name>Flaxbeard's-Steam-Power-1.7.10-0.29.0.jar</file_name>
    <game_versions>[&quot;1.7.10&quot;, &quot;1.6.4&quot;]</game_versions>
    <project>9769283495845</project>
    <type>b</type>
  </cf_settings>
  <changelog changes="Fixed the bug" issue="69" type="FIX" />
  <changelog changes="Added the feature" issue="42" type="NEW" />
  <issues_bool>true</issues_bool>
  <issues_url>http://github.com/esteemed-innovation/flaxbeards-steam-power/issues</issues_url>
  <mod_name>Flaxbeard's Steam Power</mod_name>
  <new_vers>0.29.0</new_vers>
  <tweet_custom>Updated FSP to 0.29.0!!!!! GET IT AT CURSEFORGE!</tweet_custom>
  <twitter_bool>true</twitter_bool>
  <twitter_un>SatanNicholas</twitter_un>
  <wiki_settings>
    <section_size>2</section_size>
    <wiki_bool>true</wiki_bool>
    <wiki_page>Flaxbeard's Steam Power/Changelog</wiki_page>
    <wiki_un>TheSatanicSanta</wiki_un>
  </wiki_settings>
</modupdater>
The unicode quotation marks are required around the game versions, otherwise it will crash. This is due to the way Ruby JSON parsing works (I have to parse that string you provide in game_versions as a JSON value because XML does not support arrays).
 
  • Like
Reactions: Type1Ninja