View unanswered posts | View active topics It is currently Tue Mar 19, 2024 3:45 am



Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
 How to make easy mod installers (which are just zip files)! 
Author Message
Rank 17
Rank 17
User avatar

Joined: Wed Apr 17, 2013 10:59 am
Posts: 509
Location: Cursed Pickle Jar
There is a lot of directories that a user has to navigate through in order to install your mod.

You can have them bypass this problem by putting directory files in your zip archives! If you put directories in your archive, all the end user has to do is put the zip in the root folder and extract it from there. You don't have to worry about files unrelated to your mod, because as long as they are not mentioned in your archive, they will be ignored completely by the archive manager. (At least that is how 7zip operates...)

The free program 7zip can be easily used to make archive directories.

Note that the following is what I find to be the most hassle free method of doing this in 7zip.

Step 1:
Tell 7zip to add this txt file to archive!
Attachment:
File comment: The txt file is in a zip because this text forum won't let me upload a txt file... The irony.
how to install mod.zip [1.25 KiB]
Downloaded 2533 times


Step 2:
Name the new archive what you want your mod to be identified as (I.E. "more sex banter.zip", "titty-fuck expansion.zip", "More BDSM furniture.zip" or whatever a good name would be.)

Step 3:
Copy the relevant portion of the folder's address bar and tell the 7zip file manager to "create folder" and paste that directory into the create folder dialog box.
Attachment:
File comment: Asimo, why is one of the directories called "std"?
create folder.png
create folder.png [ 18.4 KiB | Viewed 33516 times ]


Step 4:
Within the 7zip file manager, go to the end(s) of the directory that you've just created and drag and drop the relevant files into them.
Attachment:
File comment: To get your own secret porn computer. Simply buy a computer secretly, and put porn on it.
file copy.png
file copy.png [ 16.55 KiB | Viewed 33516 times ]

(If 7zip goes you an error, simply close down 7zip completely and try again.)

Step 5:
If the resulting zip file is less than 2 megabytes, you can upload it the forum without problem. If it's larger than that, you'll have to host it remote through what ever means are available to you.

-------------------------------------------------------------------------------------------------------------------------

I ask that all modders use the same common root folder for your archives to be extracted from.
I have chosen "XStoryPlayer 3\pack" as the common root folder for now, but if there is a better folder than that, now would be the time to suggest it.

_________________
Please follow me on Tumblr and Twitter.
XStoryPlayer discussion over at DigitalEro forums.
How to make easy MOD installers.
HOW TO START MODDING


Tue Dec 09, 2014 5:59 am
Profile
Rank 14
Rank 14

Joined: Thu Aug 14, 2014 7:23 pm
Posts: 156
Location: #0BADF00D - #FEED1337
If that files contain only text, maybe a diff would suit better. So more mods can be applied to one file via a merge and the filesize is also smaller. Someone can release a source patch like it is done in linux kernel dev...


Tue Dec 09, 2014 9:04 am
Profile
Rank 16
Rank 16

Joined: Thu Jul 31, 2014 2:29 pm
Posts: 351
rezzabae wrote:
If that files contain only text, maybe a diff would suit better. So more mods can be applied to one file via a merge and the filesize is also smaller. Someone can release a source patch like it is done in linux kernel dev...


Yes, I included a diff with my conversation fixes. The problem is that it's harder to install. While it's no big deal for modders to get whatever tool is needed to create their mods, requiring users to get those tools is less than optimal. That said, diff files should be included so that other modders can work together easily.


Tue Dec 09, 2014 3:00 pm
Profile
Rank 16
Rank 16

Joined: Thu Feb 13, 2014 3:54 pm
Posts: 379
Location: United States
You still have to go about unpacking the .BINs though, right?


Tue Dec 09, 2014 3:11 pm
Profile
Rank 16
Rank 16

Joined: Thu Jul 31, 2014 2:29 pm
Posts: 351
TheMohawkNinja wrote:
You still have to go about unpacking the .BINs though, right?

Right. The text files have to exist in order to change them, of course. And you can't have a folder with just the changed files, unless there's some way to reference files in other bins.


Tue Dec 09, 2014 3:38 pm
Profile
Rank 16
Rank 16

Joined: Thu Feb 13, 2014 3:54 pm
Posts: 379
Location: United States
burning wrote:
TheMohawkNinja wrote:
You still have to go about unpacking the .BINs though, right?

Right. The text files have to exist in order to change them, of course. And you can't have a folder with just the changed files, unless there's some way to reference files in other bins.


In that case, I'm going to see if I can't go about making a simple program in C++ to allow easy unpacking/repacking, so we don't have to explain to every non-code-savvy user about what block comments are and how to remove the right ones to make the whole thing work.


Tue Dec 09, 2014 3:42 pm
Profile
Rank 16
Rank 16

Joined: Thu Jul 31, 2014 2:29 pm
Posts: 351
TheMohawkNinja wrote:
burning wrote:
TheMohawkNinja wrote:
You still have to go about unpacking the .BINs though, right?

Right. The text files have to exist in order to change them, of course. And you can't have a folder with just the changed files, unless there's some way to reference files in other bins.


In that case, I'm going to see if I can't go about making a simple program in C++ to allow easy unpacking/repacking, so we don't have to explain to every non-code-savvy user about what block comments are and how to remove the right ones to make the whole thing work.

Excellent plan.


Tue Dec 09, 2014 4:53 pm
Profile
Rank 16
Rank 16
User avatar

Joined: Sat Aug 23, 2014 12:47 am
Posts: 345
This is great. I'm no coder, this will be extremely helpful when i get the game.


Tue Dec 09, 2014 6:50 pm
Profile
Rank 12
Rank 12

Joined: Fri May 30, 2014 4:27 am
Posts: 87
TheMohawkNinja wrote:
burning wrote:
TheMohawkNinja wrote:
You still have to go about unpacking the .BINs though, right?

Right. The text files have to exist in order to change them, of course. And you can't have a folder with just the changed files, unless there's some way to reference files in other bins.


In that case, I'm going to see if I can't go about making a simple program in C++ to allow easy unpacking/repacking, so we don't have to explain to every non-code-savvy user about what block comments are and how to remove the right ones to make the whole thing work.


I'm working on something like this right now, only I'm using VB, not C++.... :P....

We'll see who gets it out first I guess :P....


Tue Dec 09, 2014 9:05 pm
Profile
Rank 14
Rank 14

Joined: Thu Aug 14, 2014 7:23 pm
Posts: 156
Location: #0BADF00D - #FEED1337
Sorry for perhaps stupid question - but i do not own v3 yet.
Why does filemaker need things to be commented out? Has the filemaker a config file? Does it really need that config?
You could simply pass the args to the tool via a bash script and do not use that config at all... e.g. filemaker.exe -x blabla.bin -o ../pack/blablafolder
This way a extra programm is not needed, instead use a script or an common installer. With an installer you could also read the registry and pinpoint to correct install path.

The installer stub sources could be distributed as part of the "gamemod easy creation kit" (GECK) :D on the forum because the process is always the same.


Tue Dec 09, 2014 10:07 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group.
Designed by X-Moon Productions.