Page 1 of 1
Can't convert folder into .ztb file
Posted: 10 Aug 2008, 02:30
by TedTorgerson
I am using VISTA. I was able to create a folder for my game-box, add the image for the map and front and back of countersheet and the icon. I think I got all the columns and rows for punching the counters right (well within a pixel I won't worry). i created my dummy scenario. Then I made the folder into a .zip by using the Send To command. I renamed as a .zbt. ZunTsu does not recognize it. What am I missing?
Posted: 10 Aug 2008, 08:43
by Jerome
Ted, I suppose what you have is a Zip archive containing a folder which contains the files.
What you need is a Zip archive that contains the files directly - without a folder in between.
You can do it this way:
1 - in Windows Explorer create a compressed folder (that's XP terminology, I don't know what it's called in Vista)
2 - move each file to the compressed folder
3 - finally rename the compressed folder with a .ztb extension.
Posted: 10 Aug 2008, 13:49
by TedTorgerson
Here is a screen shot of the files in the folder.
Then I right click and choose Send To command and create a compressed folder. Then I rename it with a ztb extension. It looks like this:
What am I doing wrong?
Posted: 10 Aug 2008, 14:08
by Jerome
TedTorgerson wrote:What am I doing wrong?
Did you right click on the files or the folder containing the files?
To get a report of all errors found, first launch ZunTzu then use the Add button in the Game Library panel. You don't get error diagnostics if you launch ZunTzu by double clicking on the game box.
Posted: 10 Aug 2008, 15:21
by TedTorgerson
OK thanks.
When I used Add File it says: Error type XmlException: Data at the root level is invalid. Line 1, position 1.
xml file looks like this.
<?xml version="1.0" encoding="windows-1252" ?>
<game-box name="1989" description="The Democratic Revolutions in Eastern Europe" copyright="Ted Torgerson 2008" startup-scenario="Campaign.zts">
<map name="1989" image-file="PoG_alt_map2.jpg" resolution="150 dpi" />
<dice-hand type="D6">
<dice count="2" color="ffffff" pips="000000" />
</dice-hand>
<dice-hand type="D6">
<dice color="0000a0" pips="ffffff" />
<dice color="a00000" pips="ffffff" />
</dice-hand>
<counter-sheet name="1989 counters"
front-image-file="countersheet1_front.jpg" front-resolution="150 dpi"
back-image-file="countersheet1_back.jpg" back-resolution="150 dpi">
<counter-section rows="2" columns="9"
front-left="12" front-top="18" front-right="499" front-bottom="126"
back-left="528" back-top="25" back-right="1010" back-bottom="130" />
<counter-section rows="2" columns="9"
front-left="12" front-top="138" front-right="499" front-bottom="246"
back-left="528" back-top="145" back-right="1010" back-bottom="130" />
<counter-section rows="2" columns="9"
front-left="12" front-top="258" front-right="499" front-bottom="366"
back-left="528" back-top="265" back-right="1010" back-bottom="130" />
<counter-section rows="2" columns="9"
front-left="12" front-top="378" front-right="499" front-bottom="486"
back-left="528" back-top="385" back-right="1010" back-bottom="130" />
<counter-section rows="2" columns="9"
front-left="12" front-top="498" front-right="499" front-bottom="606"
back-left="528" back-top="505" back-right="1010" back-bottom="130" />
<counter-section rows="2" columns="9"
front-left="532" front-top="18" front-right="1018" front-bottom="126"
back-left="18" back-top="25" back-right="492" back-bottom="133" />
<counter-section rows="2" columns="9"
front-left="532" front-top="138" front-right="1018" front-bottom="246"
back-left="18" back-top="145" back-right="492" back-bottom="253" />
<counter-section rows="2" columns="9"
front-left="532" front-top="258" front-right="1018" front-bottom="366"
back-left="18" back-top="265" back-right="492" back-bottom="373" />
<counter-section rows="2" columns="9"
front-left="532" front-top="378" front-right="1018" front-bottom="486"
back-left="18" back-top="385" back-right="492" back-bottom="493" />
<counter-section rows="2" columns="9"
front-left="532" front-top="498" front-right="1018" front-bottom="606"
back-left="18" back-top="505" back-right="492" back-bottom="613" />
</counter-sheet>
</game-box>
See anything obvious that is wrong?
Posted: 10 Aug 2008, 17:58
by Jerome
TedTorgerson wrote:See anything obvious that is wrong?
The XML content looks OK.
You must have saved the file in
Rich Text format instead of
Plain Text.
Posted: 10 Aug 2008, 18:15
by Bill Barrett
See anything obvious that is wrong?
Hi Ted, one thing that is definitely wrong is that your start up scenario file is called "scenario.zts", whereas your game box is looking for "Campaign.zts".
Either change the name of your scenario file or the pointer to it.
Regards, Bill
Posted: 10 Aug 2008, 22:01
by TedTorgerson
Okay I changed the name of the dummy scenario in the .xml file to match the name of the scenario file.
I am definitely missing a step.
The regular game-boxes load as files, but mine is still a folder.
What do I need to do after I compress the folder and change the extension to .ztb?
Thanks for the help!
Posted: 10 Aug 2008, 23:00
by Bill Barrett
Ok - you're obviously in some weird Twilight Zone of Vista/XP compatability issues (I'm still on XP and letting guys like you debug the new operating system before I upgrade

)
If you can download other game boxes without problem, perhaps the best thing to do is upload your game box (maybe just as a .zip file and not a .ztb) to somewhere like mediafire, and give us the address, and hopefully one of us will be able to figure it out.
Regards, Bill
Posted: 11 Aug 2008, 00:00
by TedTorgerson
Awesome. I just have to finish it. This one was a learning experiment.
Posted: 11 Aug 2008, 08:39
by Jerome
TedTorgerson wrote:The regular game-boxes load as files, but mine is still a folder.
Ted, there's a display option in Windows Explorer to hide known file extensions. Uncheck it.
This is causing a lot of confusion. I'm pretty sure your "TS.ztb" file is actually named "TS.ztb.zip".
Posted: 11 Aug 2008, 12:45
by TedTorgerson
Yes that was it. I did that also with my scenario and game-box files, which had the .txt extensions still. I think I almost have this. When I tried to load the game in ZunTsu it says. Error of type f: file "game-box.xml" not found in archive. Before I compress and change the name the folder looks like this:
Is this a problem with my code? Since it says file not found I think it is a problem with how I am saving the file.
I'd like to learn to do this myself as I will have to make changes to my game-box as the game design progresses. Thanks for the help!
Posted: 11 Aug 2008, 13:52
by Jerome
TedTorgerson wrote:When I tried to load the game in ZunTsu it says. Error of type f: file "game-box.xml" not found in archive.
What does the content of your folder look like
after you compress?
The files must be be at the root of the archive, not in a folder (see my first comment).
Posted: 11 Aug 2008, 17:40
by TedTorgerson
Yes that was it. After compressing the folder there was another folder of the same name created inside. The files were in this folder instead of the root directory. In VISTA it would not let me compress an empty folder, so i had to put a file in there, compress the folder, copy the Zunztu files into the compressed folder, open the folder and remove the folder with the file i had put in to allow me to compress in the first place.
Got it to load though. Thanks for all the help