SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-05-10, 04:37 PM   #1
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default [TEC] How not to have the double same name folder when zipping

How not to have the double same name folder when zipping .
When zipping up your folder do not zip the main folder .

Instead zip up the folders inside the main one.
THE_MASK is offline   Reply With Quote
Old 03-05-10, 05:41 PM   #2
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Thanks. If modders took just 5 seconds to test their zipped files before releasing them, users wouldn't be tearing their hair out anywhere near as much.
JScones is offline   Reply With Quote
Old 03-05-10, 07:19 PM   #3
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

Hmmmmm I find its on extraction
FE
Just right clicked on a folder - A and clicked on add to " A.7z"
So I get my 7z folder called A
Now If I click on Extract to " A\" then will get the double folder
But if click extract here will just get the one main folder with the correct directory set up

Have always used the above method for JSGME

Etther way is good as long as has the desired end effect
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly is offline   Reply With Quote
Old 03-05-10, 07:38 PM   #4
Fincuan
Admiral
 
Join Date: Aug 2007
Location: Suomi, sauna, puukko, perkele
Posts: 2,346
Downloads: 39
Uploads: 0
Default

Quote:
Originally Posted by bigboywooly View Post
Have always used the above method for JSGMEt
Your method seems to be the most common one modders currently use, at least on the SH4 side, and imho should be made the "standard". Either way isn't a good practice because in that case the user will have to know which way to original packager used before doing anything, and that isn't very convenient.
Fincuan is offline   Reply With Quote
Old 03-05-10, 07:42 PM   #5
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default

A certain supermodder who has been around for years still has double folders LOL .
THE_MASK is offline   Reply With Quote
Old 03-05-10, 09:10 PM   #6
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Yeah yeah i know your talking about me. lol.
It might be in extraction. I honestly don't know what the deal is for some people. Ive extracted my own 7zip files all the time, and ive never had double folders. I zip up the directory, and the file structure is intact. I then uncompress the directory straight into the mod folder and have never had a problem. So.. i honestly don't have a clue as to what the issue is. Maybe i have some older version of winRAR that does things differently. *shrug*

Edit: It also occurs to me, that if i directly compressed the data file, then when i uncompress it, the parent directory wont be right for JSGME.

For example
if i compressed data and documents directly, then i have a zip file with just those two directories. That means that when you go to unzip it in your mod directory, it will uncompress as data and document. Try enabeling that in JSGME. It won't work right, the pathing will be off.

edit 2:
Oh, and version 0.2 of that WIP is up. lol

Last edited by Ducimus; 03-05-10 at 09:21 PM.
Ducimus is offline   Reply With Quote
Old 03-05-10, 10:05 PM   #7
Fincuan
Admiral
 
Join Date: Aug 2007
Location: Suomi, sauna, puukko, perkele
Posts: 2,346
Downloads: 39
Uploads: 0
Default

Ducimus, the issue your talking about is as follows, at least when using 7-zip:

If you choose "Extract here" or "Extract to ..." it'll extract the contents of archive as such, without any extra folder creation or anything else. If such archive was packed using the "sober"-method it's contents will now be spilled into the folder that was chosen above, while "bigboywooly"-method works correctly.

HOWEVER....

If you choose "Extract to 'NameOfArchive'" it'll first create a folder with the same name as the archive, then extract the contents of the archive into that folder. If the archive was packed using "sober"-method it works correctly, however if "bigboywooly"-method was used the result is double-folders.
Fincuan is offline   Reply With Quote
Old 03-05-10, 10:08 PM   #8
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

I too like to drag the folder from the archive straight to the MODS folder, instead of extracting it. Usually, when I download a mod, I put it on the Desktop and delete immediately after. If one can't extract a file properly or read the JSGME readme, they shouldn't bother with mods, really...
karamazovnew is offline   Reply With Quote
Old 03-05-10, 10:24 PM   #9
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Ok i think i see. Usually what i do, is open the 7zip file. Select the mods named directory within the archieve, and extract it directly to the SH/MODS directory. OR, ill just drag and drop if im too lazy to search out the path to extract to. Been doing that for so long now, it's never really occured to me people might go about it differently. Never gave it any thought, and don't see any reason to change.
Ducimus is offline   Reply With Quote
Old 03-05-10, 11:11 PM   #10
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Hmmm...I might start a JSGME tutorial thread here (and hope it gets stickied) to explain some of this stuff.

I am working on an updated manual for JSGME, but there's a point where it has to assume some user knowledge in computing, lol.
JScones is offline   Reply With Quote
Old 03-05-10, 11:46 PM   #11
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
Default

I just drag and drop the root folder of the mod into my MODS folder.
gutted is offline   Reply With Quote
Old 03-29-10, 01:27 AM   #12
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

I'm adding the following paragraph to my JSGME User Guide...

Quote:
There are many file archivers/compression utilities out in the market. Most provide “Extract to” and “Extract here” options. The correct extraction method for users of your mod will depend on how you zipped it up to begin with. Using the wrong method to extract your mod may result in a “double folder” error, where instead of the intended folder structure, an extra “layer” has been added. For example, “C:\Games\My Game\MODS\Cool Mod\Cool Mod\data” instead of “C:\Games\My Game\MODS\Cool Mod\ data”. This “double folder” error is the second largest cause of mod problems (behind Vista/Win7 UAC problems). To avoid users encountering this problem, you may want to stipulate the appropriate extraction method in your installation instructions.
Recognising that modders do things differently, this may be better than trying to force a standard.

There'll also be a sentence or two dedicated to this problem under the "Adding a mod" section, aimed at users (essentially getting them to check the folder structure).

Comments?
JScones is offline   Reply With Quote
Old 03-29-10, 03:43 AM   #13
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
Default

The preferred method as far as I am concerned is to open the archive, see what's in there and then decide if and how to unpack. Anyone stupid enough to not look first, and read the readme (or JSGME's readme for that matter) should just play stock.
skwasjer is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.