A simple .bat that archives all scripts into scripts.zip


Recommended Posts

make_scripts.zip

 

Requirements&How to use

  1. You need Bandizip(Link here) installed.
    Gave up due to path problems.
    Now using 7za.exe cmd prompt, so you don't have to install anything.
     
  2. You can place this batch file anywhere, provided that you modify invisibleinc_path and mod_path correctly. (right click-> Edit to modify)
    If you're using 64 bit Windows&Steam, you don't have to touch anything.
     
  3. If you're new to modding, unzip the scripts.zip - which will create scripts folder.

 

Q. So what does it do?

A. It just zips scripts folder into scripts.zip

    Thereby you don't have to unzip script.zip - just modify scripts\* files, and then execute this batch file.

    Also, thanks to HumanKirby, now this batch file makes 2 backup.

 

Q. Any requirements?
A. Nothing. Just put make_scripts.bat and 7za.exe at the same location!

 

Q. I want to restore my vanilla scripts.zip!

A. google "steam verify integrity of game cache". It will leave your scripts folder untouched, and just restores scripts.zip.

Link to comment
Share on other sites

Just a suggestion. Could you write something like this.

 

No real code

if script_2.zip exist

then delete script_2.zip

if script_1.zip exist

then backup script_1.zip as script_2.zip

if script.zip exist

then backup script.zip as script_1.zip

your code

 

 

essential, the program should be able to create up to 2 backups. I think this would be quite useful for modding. Also your now on the Master Modlist

 

Also, you pack it into an .zip or .rar to upload it.

Link to comment
Share on other sites

Just a suggestion. Could you write something like this.

 

No real code

if script_2.zip exist

then delete script_2.zip

if script_1.zip exist

then backup script_1.zip as script_2.zip

if script.zip exist

then backup script.zip as script_1.zip

your code

 

 

essential, the program should be able to create up to 2 backups. I think this would be quite useful for modding. Also your now on the Master Modlist

 

Also, you pack it into an .zip or .rar to upload it.

Thanks for the suggestion! I'm currently working on that backup system, and will edit the post when it's finished.

Link to comment
Share on other sites

UPDATE

  1. Backup system added.
  2. No more file location limitations - you can now place make_script.bat, scripts folder anywhere.
    Open make_script.bat(with notepad) and then modify invisibleinc_path, mod_path.
Link to comment
Share on other sites

Ok, some things:

1. Backup works good, but it does not archieve the files. (I have installed bandizip, but I use 32 bit, might there a problem with it(i also changed the direction, else the backup would not work, right?))

2. Ok, that halve a suggestion, but I dont know if it works with .bat:

Essentally, the only thing we need for automatic Mod installation would be a program which edits the lua files. Im not sure if it is idealy how I suggest it, but here is what I think

 

creating a normal scripts folder with clean data

//program starts

copy this folder and call it scripts_mods

Moders put there information in a .txt. It should look like this

Author: Human_Kirby

Modname: Example

Direction:

{

agent=sim/unitdefs/agentdefs.lua

itema=sim/unitdefs/itemdefs.lua

itemb=sim/unitdefs/itemdefs.lua

}

line

{

agent=276

itema=557

itemb=1090

//not a good way, but i dont know a better one

}

code:

{

agent=

itema=

itemb=

//im not in the mood to write some examples there

}

All the txt files from the mods you want to install are put into the mods folder

Then the program loads all the txt files from the mods folder in the lua files of the scripts_mod folder (of course the line system should be replaced, or there would be problem if to mods use the same line)

scripts_mod are archieved to scripts.zip

delete scripts_mod folder

 

 

 

well, this might be descripted weird, but I think this might work. The program should look a bit like the Mod installer from FTL

Link to comment
Share on other sites

Ok, some things:

1. Backup works good, but it does not archieve the files. (I have installed bandizip, but I use 32 bit, might there a problem with it(i also changed the direction, else the backup would not work, right?))

That's....weird.

Can you tell me the OS version of your windows?

I'm using 8.1, so couldn't test that on 7, etc.

Link to comment
Share on other sites

Ok, some things:

1. ...

2. Ok, that halve a suggestion, but I dont know if it works with .bat:

Essentally, the only thing we need for automatic Mod installation would be a program which edits the lua files. Im not sure if it is idealy how I suggest it, but here is what I think

 

creating a normal scripts folder with clean data

//program starts

copy this folder and call it scripts_mods

Moders put there information in a .txt. It should look like this

Author: Human_Kirby

Modname: Example

Direction:

{

agent=sim/unitdefs/agentdefs.lua

itema=sim/unitdefs/itemdefs.lua

itemb=sim/unitdefs/itemdefs.lua

}

line

{

agent=276

itema=557

itemb=1090

//not a good way, but i dont know a better one

}

code:

{

agent=

itema=

itemb=

//im not in the mood to write some examples there

}

All the txt files from the mods you want to install are put into the mods folder

Then the program loads all the txt files from the mods folder in the lua files of the scripts_mod folder (of course the line system should be replaced, or there would be problem if to mods use the same line)

scripts_mod are archieved to scripts.zip

delete scripts_mod folder

 

 

 

well, this might be descripted weird, but I think this might work. The program should look a bit like the Mod installer from FTL

I also used FTL's slipstream mod manager, so got what you mean.

Unfortunately, I'm not a skilled programmer, so I'm just using git instructions to merge multiple mods.

Link to comment
Share on other sites

I just uploaded an image of the program opend with Notepad++. It seems like it cant find the direction of Bandzip. I also looked into the %appdate% but didnt find a folder called "..." or "Bandzip"

Then we have to find it manually.

In the windows start menu, type "bandizip" and right click -> Open file location, and we can figure out where it's located.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.