erosson / ch2plan

Clicker Heroes 2 skill tree planner
https://ch2.erosson.org
GNU General Public License v3.0
4 stars 3 forks source link

create ch2 mod for easier version updates #59

Closed erosson closed 4 years ago

erosson commented 6 years ago

hey, when did they document mod creation? https://www.clickerheroes2.com/creating_mods.php

via https://www.reddit.com/r/ClickerHeroes/comments/98aspk/not_so_random_mod/

I'm imagining a mod that writes the planner's files to disk somewhere (with no in-game effect), completely replacing yarn export:chars. this would be much easier than the stupid copy-paste dance I have to do on every version change, and I could do some simple updates entirely in windows without rebooting or starting a vm.

could also be a standalone swf that writes to disk, instead of a mod. the key is that, in windows, it writes to disk instead of requiring copy-pasting - keep the effort required for version updates to a minimum. this is possible in windows because AIR runs there, and AIR can write to disk. there is no updated AIR environment in linux, so SWFs can't write to disk. (I tried very hard.)

this is also important so other people can update the planner if I ever stop playing or get hit by a bus. Right now, requiring linux for any update is going to stop many potential contributors since it's a windows game, and it slows me down too because I don't wanna reboot.


the current update process: https://github.com/erosson/ch2plan/blob/master/CONTRIBUTING.md#updating-the-planner-for-a-new-ch2-version

erosson commented 6 years ago

got the basics of this working. it still needs some polish:

erosson commented 6 years ago

yarn dev, yarn build, yarn start, yarn export:as3, and yarn export:postchars now run in windows - that should be enough to do a complete version update from windows.

erosson commented 4 years ago

Flash doesn't seem to want to load other swfs in the browser anymore, so the exporter mod is now the only way to export data from ch2. It's easier to use anyway, so that's fine.