Skip to content

Instantly share code, notes, and snippets.

@mrowrpurr
Created July 6, 2022 22:07
Show Gist options
  • Save mrowrpurr/0ae00b6059536d6938a816d7f9e95f0e to your computer and use it in GitHub Desktop.
Save mrowrpurr/0ae00b6059536d6938a816d7f9e95f0e to your computer and use it in GitHub Desktop.
:: Create a mods\ folder to add to .zip
mkdir mods
:: Go into folder with scripts
cd data\scripts
:: Add our global script(s) to a .dat file
dat2 a -t scripts Ouchie.dat gl_ouchie_ouch.int
:: dat2 a -t scripts Ouchie.dat gl_second.int
:: dat2 a -t scripts Ouchie.dat gl_third.int
:: Move created .dat into mods\ folder
move Ouchie.dat ..\..\mods
:: Go to the root folder
cd ..\..
:: Copy .ini into mods\ folder
copy Ouchie.ini mods\
:: Add mods\ folder to .zip
7z a Ouchie.zip mods\
:: Wait a moment before deleting otherwise 7z might still be archiving...
timeout /t 1
:: Delete the mods\ folder
rmdir /S /Q mods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment