Can't convert folder into .ztb file
Moderators: Ichibrothers, Cambronne
-
- 001
- Posts: 25
- Joined: 09 Aug 2008, 17:03
Can't convert folder into .ztb file
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?
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.
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.
Jerome, ZunTzu developer.
-
- 001
- Posts: 25
- Joined: 09 Aug 2008, 17:03
Did you right click on the files or the folder containing the files?TedTorgerson wrote:What am I doing wrong?
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.
Jerome, ZunTzu developer.
-
- 001
- Posts: 25
- Joined: 09 Aug 2008, 17:03
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?
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?
- Bill Barrett
- 231
- Posts: 351
- Joined: 25 May 2008, 13:25
-
- 001
- Posts: 25
- Joined: 09 Aug 2008, 17:03
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!
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!
- Bill Barrett
- 231
- Posts: 351
- Joined: 25 May 2008, 13:25
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
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
-
- 001
- Posts: 25
- Joined: 09 Aug 2008, 17:03
Ted, there's a display option in Windows Explorer to hide known file extensions. Uncheck it.TedTorgerson wrote:The regular game-boxes load as files, but mine is still a folder.
This is causing a lot of confusion. I'm pretty sure your "TS.ztb" file is actually named "TS.ztb.zip".
Jerome, ZunTzu developer.
-
- 001
- Posts: 25
- Joined: 09 Aug 2008, 17:03
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!
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!
What does the content of your folder look like after you compress?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.
The files must be be at the root of the archive, not in a folder (see my first comment).
Jerome, ZunTzu developer.
-
- 001
- Posts: 25
- Joined: 09 Aug 2008, 17:03
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
Got it to load though. Thanks for all the help