Do you need help installing or using ZunTzu? Would you like to report a bug?
Moderators: Ichibrothers , Cambronne
stevecq
Posts: 10 Joined: 23 Feb 2008, 19:41
Post
by stevecq » 25 Feb 2010, 17:26
Error of type XmlException: Data at the root level is invalid. Line 1, position 1.
I have no idea what is causing the error. Code follows. Any help is appreciated.
Code: Select all
<?xml version="1.0" encoding="windows-1252"?>
<game-box
name="Island of Death"
description="Avalanche"
copyright="Avalanche, 2009"
startup-scenario="Basic.zts">
<map name="Iodmap" image-file="Islandofdeathmap.jpg" resolution="150 dpi" />
<map name="Turnchart" image-file="Turnchart.jpg" resolution="150 dpi" />
<map name="CRT" image-file="Crt.jpg" resolution="150 dpi" />
<map name="CRT Artillery" image-file="Crtart.jpg" resolution="150 dpi" />
<map name="TEC" image-file="Tec.jpg" resolution="150 dpi" />
<map name="Planning map" image-file="Planningmap.jpg" resolution="150 dpi" />
<map name="Drop Landing Charts" image-file="Droplanding.jpg" resolution="150 dpi" />
<dice-hand type="D6">
<dice count="3" color="ffffff" pips="000000" />
</dice-hand>
<counter-sheet name="Islandofdeath1" front-image-file="Counters1.jpg" front-resolution="150 dpi" back-image-file="Counters12.jpg" back-resolution="150 dpi">
<counter-section rows="2" columns="10"
front-left="9" front-top="14" front-right="384" front-bottom="88" back-left="422" back-top="14" back-right="797" back-bottom="90" />
<counter-section rows="2" columns="10"
front-left="9" front-top="98" front-right="384" front-bottom="172" back-left="422" back-top="100" back-right="797" back-bottom="172" />
<counter-section rows="2" columns="10"
front-left="9" front-top="184" front-right="384" front-bottom="258" back-left="422" back-top="184" back-right="797" back-bottom="258" />
<counter-section rows="2" columns="10"
front-left="9" front-top="270" front-right="384" front-bottom="342" back-left="422" back-top="268" back-right="797" back-bottom="342" />
<counter-section rows="2" columns="10"
front-left="9" front-top="352" front-right="384" front-bottom="426" back-left="422" back-top="353" back-right="797" back-bottom="426" />
<counter-section rows="2" columns="10"
front-left="9" front-top="436" front-right="384" front-bottom="509" back-left="422" back-top="436" back-right="797" back-bottom="512" />
<counter-section rows="2" columns="10"
front-left="9" front-top="522" front-right="384" front-bottom="595" back-left="422" back-top="522" back-right="797" back-bottom="596" />
<counter-section rows="2" columns="10"
front-left="421" front-top="14" front-right="796" front-bottom="88" back-left="12" back-top="14" back-right="386" back-bottom="90" />
<counter-section rows="2" columns="10"
front-left="421" front-top="98" front-right="796" front-bottom="172" back-left="12" back-top="100" back-right="386" back-bottom="172" />
<counter-section rows="2" columns="10"
front-left="421" front-top="194" front-right="796" front-bottom="258" back-left="12" back-top="184" back-right="386" back-bottom="258" />
<counter-section rows="2" columns="10"
front-left="421" front-top="270" front-right="796" front-bottom="342" back-left="12" back-top="268" back-right="386" back-bottom="342" />
<counter-section rows="2" columns="10"
front-left="421" front-top="352" front-right="796" front-bottom="426" back-left="12" back-top="353" back-right="386" back-bottom="426" />
<counter-section rows="2" columns="10"
front-left="421" front-top="436" front-right="796" front-bottom="509" back-left="12" back-top="436" back-right="386" back-bottom="512" />
<counter-section rows="2" columns="10"
front-left="421" front-top="522" front-right="796" front-bottom="595" back-left="12" back-top="522" back-right="386" back-bottom="596" />
</counter-sheet>
<counter-sheet name="Islandofdeath2" front-image-file="Counters2.jpg" front-resolution="150 dpi" back-image-file="Counters22.jpg" back-resolution="150 dpi">
<counter-section rows="2" columns="10"
front-left="18" front-top="2" front-right="394" front-bottom="76" back-left="20" back-top="1" back-right="396" back-bottom="70" />
<counter-section rows="2" columns="10"
front-left="18" front-top="86" front-right="394" front-bottom="160" back-left="20" back-top="86" back-right="396" back-bottom="154" />
<counter-section rows="2" columns="10"
front-left="18" front-top="170" front-right="394" front-bottom="243" back-left="20" back-top="169" back-right="396" back-bottom="238" />
<counter-section rows="2" columns="10"
front-left="18" front-top="254" front-right="394" front-bottom="327" back-left="20" back-top="256" back-right="396" back-bottom="322" />
<counter-section rows="2" columns="10"
front-left="18" front-top="338" front-right="394" front-bottom="411" back-left="20" back-top="337" back-right="396" back-bottom="407" />
</counter-sheet>
</game-box>
Bill Barrett
231
Posts: 351 Joined: 25 May 2008, 13:25
Post
by Bill Barrett » 25 Feb 2010, 22:04
Steve,
There's not enough to go on here (your code seems sound).
I'd need to see your .zts file too, but it might be a problem with your graphics files...
Have you checked that they're all named and referenced consistently? Don't forget about capitalization.
Regards, Bill.
stevecq
Posts: 10 Joined: 23 Feb 2008, 19:41
Post
by stevecq » 27 Feb 2010, 02:20
Bill,
Thanks for the help. Hereis the scenaro file.
Code: Select all
<?xml version="1.0" encoding="windows-1252"?>
<game-box name="Island of Death" description="Avalanche" copyright="Avalanche, 2009" >
<Layout board="Iodmap" image-file="Islandofdeathmap150b.jpg" resolution="150 dpi" />
<Layout board="Turnchart" image-file="Turnchart.jpg" resolution="150 dpi" />
<Layout board="CRT" image-file="Crt.jpg" resolution="150 dpi" />
<Layout board="CRT Artillery" image-file="Crtart.jpg" resolution="150 dpi" />
<Layout board="TEC" image-file="Tec.jpg" resolution="150 dpi" />
<Layout board="Planning map" image-file="Planningmap.jpg" resolution="150 dpi" />
<Layout board="Drop Landing Charts" image-file="Droplanding.jpg" resolution="150 dpi" />
</game>
Bill Barrett
231
Posts: 351 Joined: 25 May 2008, 13:25
Post
by Bill Barrett » 27 Feb 2010, 02:40
Steve,
For one thing your .zts file shouldn't have image-file declarations (they're handled solely in the game-box.xml file).
It should look something like this:
Code: Select all
<?xml version="1.0" encoding="Windows-1252" standalone="yes"?>
<game
game-box="Island of Death"
scenario-name="Avalanche"
scenario-description="Setup"
scenario-copyright="Avalanche, 2009">
<Layout board="Iodmap" />
<Layout board="Turnchart" />
<Layout board="CRT" />
<Layout board="CRT Artillery" />
<Layout board="TEC" />
<Layout board="Planning map" />
<Layout board="Drop Landing Charts" />
</game>
Also in your game box, is the file named - "Islandofdeathmap150b.jpg" or "Islandofdeathmap.jpg", because that could be a problem as well (they have to be consistent)?
Regards, Bill.
stevecq
Posts: 10 Joined: 23 Feb 2008, 19:41
Post
by stevecq » 09 Mar 2010, 19:37
Bill,
Redid the naming of my files. Made it simpler. Corrected the scenario file, went brain dead on that one. But still getting the error. The files follow.
Steve
Code: Select all
<?xml version="1.0" encoding="windows-1252"?>
<game-box
name="Island of Death"
description="Avalanche"
copyright="Avalanche, 2009"
startup-scenario="Basic.zts">
<map name="Iodmap" image-file="Mapiod.jpg" resolution="150 dpi" />
<map name="Turnchart" image-file="Turnchart.jpg" resolution="150 dpi" />
<map name="CRT" image-file="Crt.jpg" resolution="150 dpi" />
<map name="Artillery CRT" image-file="Artcrt.jpg" resolution="150 dpi" />
<map name="TEC" image-file="Tec.jpg" resolution="150 dpi" />
<map name="Planning map" image-file="Planmap.jpg" resolution="150 dpi" />
<map name="Drop Landing Charts" image-file="Dropl.jpg" resolution="150 dpi" />
<dice-hand type="D6">
<dice count="3" color="ffffff" pips="000000" />
</dice-hand>
<counter-sheet name="Sheet1" front-image-file="Counters1.jpg" front-resolution="150 dpi" back-image-file="Counters12.jpg" back-resolution="150 dpi">
<counter-section rows="2" columns="10"
front-left="9" front-top="14" front-right="384" front-bottom="88" back-left="422" back-top="14" back-right="797" back-bottom="90" />
<counter-section rows="2" columns="10"
front-left="9" front-top="98" front-right="384" front-bottom="172" back-left="422" back-top="100" back-right="797" back-bottom="172" />
<counter-section rows="2" columns="10"
front-left="9" front-top="184" front-right="384" front-bottom="258" back-left="422" back-top="184" back-right="797" back-bottom="258" />
<counter-section rows="2" columns="10"
front-left="9" front-top="270" front-right="384" front-bottom="342" back-left="422" back-top="268" back-right="797" back-bottom="342" />
<counter-section rows="2" columns="10"
front-left="9" front-top="352" front-right="384" front-bottom="426" back-left="422" back-top="353" back-right="797" back-bottom="426" />
<counter-section rows="2" columns="10"
front-left="9" front-top="436" front-right="384" front-bottom="509" back-left="422" back-top="436" back-right="797" back-bottom="512" />
<counter-section rows="2" columns="10"
front-left="9" front-top="522" front-right="384" front-bottom="595" back-left="422" back-top="522" back-right="797" back-bottom="596" />
<counter-section rows="2" columns="10"
front-left="421" front-top="14" front-right="796" front-bottom="88" back-left="12" back-top="14" back-right="386" back-bottom="90" />
<counter-section rows="2" columns="10"
front-left="421" front-top="98" front-right="796" front-bottom="172" back-left="12" back-top="100" back-right="386" back-bottom="172" />
<counter-section rows="2" columns="10"
front-left="421" front-top="194" front-right="796" front-bottom="258" back-left="12" back-top="184" back-right="386" back-bottom="258" />
<counter-section rows="2" columns="10"
front-left="421" front-top="270" front-right="796" front-bottom="342" back-left="12" back-top="268" back-right="386" back-bottom="342" />
<counter-section rows="2" columns="10"
front-left="421" front-top="352" front-right="796" front-bottom="426" back-left="12" back-top="353" back-right="386" back-bottom="426" />
<counter-section rows="2" columns="10"
front-left="421" front-top="436" front-right="796" front-bottom="509" back-left="12" back-top="436" back-right="386" back-bottom="512" />
<counter-section rows="2" columns="10"
front-left="421" front-top="522" front-right="796" front-bottom="595" back-left="12" back-top="522" back-right="386" back-bottom="596" />
</counter-sheet>
<counter-sheet name="Sheet2" front-image-file="Counters2.jpg" front-resolution="150 dpi" back-image-file="Counters22.jpg" back-resolution="150 dpi">
<counter-section rows="2" columns="10"
front-left="18" front-top="2" front-right="394" front-bottom="76" back-left="20" back-top="1" back-right="396" back-bottom="70" />
<counter-section rows="2" columns="10"
front-left="18" front-top="86" front-right="394" front-bottom="160" back-left="20" back-top="86" back-right="396" back-bottom="154" />
<counter-section rows="2" columns="10"
front-left="18" front-top="170" front-right="394" front-bottom="243" back-left="20" back-top="169" back-right="396" back-bottom="238" />
<counter-section rows="2" columns="10"
front-left="18" front-top="254" front-right="394" front-bottom="327" back-left="20" back-top="256" back-right="396" back-bottom="322" />
<counter-section rows="2" columns="10"
front-left="18" front-top="338" front-right="394" front-bottom="411" back-left="20" back-top="337" back-right="396" back-bottom="407" />
</counter-sheet>
</game-box>
Code: Select all
<?xml version="1.0" encoding="windows-1252" standalone="yes"?>
<game
game-box name="Island of Death"
scenario-name="Avalanche"
scenario-description="Setup"
scenario-copyright="Avalanche, 2009">
<Layout board="Iodmap" />
<Layout board="Turnchart" />
<Layout board="CRT" " />
<Layout board="Artillery CRT" />
<Layout board="TEC" />
<Layout board="Planning map" />
<Layout board="Drop Landing Charts" />
</game>
Bill Barrett
231
Posts: 351 Joined: 25 May 2008, 13:25
Post
by Bill Barrett » 09 Mar 2010, 19:57
Steve,
You haven't declared layout tabs for your two counter sheets in the .zts file...
Regards, Bill.
stevecq
Posts: 10 Joined: 23 Feb 2008, 19:41
Post
by stevecq » 18 Mar 2010, 01:14
Making some progress! I have a new error message. What does it refer to?
Code: Select all
Error of type IndexOutOfRamgeException: Index was outside the bounds of the array.
Thanks,
Steve
stevecq
Posts: 10 Joined: 23 Feb 2008, 19:41
Post
by stevecq » 24 Mar 2010, 15:28
Here is the current code.
Code: Select all
<?xml version="1.0" encoding="Windows-1252"?>
<game-box name="Island of Death" description="Invasion of Malta" copyright="Avalanche, 2009" startup-scenario="Basic.zts">
<dice-hand type="D6">
<dice count="3" color="ffffff" pips="000000" />
</dice-hand>
<map name="Iodmap" image-file="Mapiod.jpg" resolution="300 dpi" />
<map name="Turnchart" image-file="Turnc.jpg" resolution="150 dpi" />
<map name="Combat RT" image-file="Crt.jpg" resolution="150 dpi" />
<map name="Artillery CRT" image-file="Artcrt.jpg" resolution="150 dpi" />
<map name="TEC" image-file="Tecs.jpg" resolution="150 dpi" />
<map name="Planning map" image-file="Planmap.jpg" resolution="150 dpi" />
<map name="Drop Landing Charts" image-file="Dropl.jpg" resolution="150 dpi" />
<counter-sheet name="Sheet-1" front-image-file="Counters1.jpg" front-resolution="150 dpi" back-image-file="Counters-12.jpg" back-resolution="150 dpi">
<counter-section rows="2" columns="10" front-left="9" front-top="14" front-right="384" front-bottom="88" back-left="422" back-top="14" back-right="797" back-bottom="90" />
<counter-section rows="2" columns="10" front-left="9" front-top="98" front-right="384" front-bottom="172" back-left="422" back-top="100" back-right="797" back-bottom="172" />
<counter-section rows="2" columns="10" front-left="9" front-top="184" front-right="384" front-bottom="258" back-left="422" back-top="184" back-right="797" back-bottom="258" />
<counter-section rows="2" columns="10" front-left="9" front-top="270" front-right="384" front-bottom="342" back-left="422" back-top="268" back-right="797" back-bottom="342" />
<counter-section rows="2" columns="10" front-left="9" front-top="352" front-right="384" front-bottom="426" back-left="422" back-top="353" back-right="797" back-bottom="426" />
<counter-section rows="2" columns="10" front-left="9" front-top="436" front-right="384" front-bottom="509" back-left="422" back-top="436" back-right="797" back-bottom="512" />
<counter-section rows="2" columns="10" front-left="9" front-top="522" front-right="384" front-bottom="595" back-left="422" back-top="522" back-right="797" back-bottom="596" />
<counter-section rows="2" columns="10" front-left="421" front-top="14" front-right="796" front-bottom="88" back-left="12" back-top="14" back-right="386" back-bottom="90" />
<counter-section rows="2" columns="10" front-left="421" front-top="98" front-right="796" front-bottom="172" back-left="12" back-top="100" back-right="386" back-bottom="172" />
<counter-section rows="2" columns="10" front-left="421" front-top="194" front-right="796" front-bottom="258" back-left="12" back-top="184" back-right="386" back-bottom="258" />
<counter-section rows="2" columns="10" front-left="421" front-top="270" front-right="796" front-bottom="342" back-left="12" back-top="268" back-right="386" back-bottom="342" />
<counter-section rows="2" columns="10" front-left="421" front-top="352" front-right="796" front-bottom="426" back-left="12" back-top="353" back-right="386" back-bottom="426" />
<counter-section rows="2" columns="10" front-left="421" front-top="436" front-right="796" front-bottom="509" back-left="12" back-top="436" back-right="386" back-bottom="512" />
<counter-section rows="2" columns="10" front-left="421" front-top="522" front-right="796" front-bottom="595" back-left="12" back-top="522" back-right="386" back-bottom="596" />
</counter-sheet>
<counter-sheet name="Sheet-2" front-image-file="Counters2.jpg" front-resolution="150 dpi" back-image-file="Counters-22.jpg" back-resolution="150 dpi">
<counter-section rows="2" columns="10" front-left="18" front-top="2" front-right="394" front-bottom="76" back-left="20" back-top="1" back-right="396" back-bottom="70" />
<counter-section rows="2" columns="10" front-left="18" front-top="86" front-right="394" front-bottom="160" back-left="20" back-top="86" back-right="396" back-bottom="154" />
<counter-section rows="2" columns="10" front-left="18" front-top="170" front-right="394" front-bottom="243" back-left="20" back-top="169" back-right="396" back-bottom="238" />
<counter-section rows="2" columns="10" front-left="18" front-top="254" front-right="394" front-bottom="327" back-left="20" back-top="256" back-right="396" back-bottom="322" />
<counter-section rows="2" columns="10" front-left="18" front-top="338" front-right="394" front-bottom="411" back-left="20" back-top="337" back-right="396" back-bottom="407" />
</counter-sheet>
</game-box>
Code: Select all
<?xml version="1.0" encoding="windows-1252" standalone="yes"?>
<game
game-box="Island of Death"
scenario-name="Campaign"
scenario-description="Setup"
scenario-copyright="Avalanche, 2009">
<Layout board="Iodmap" />
<Layout board="Turnchart" />
<Layout board="Combat RT" />
<Layout board="Artillery CRT" />
<Layout board="TEC" />
<Layout board="Planning map" />
<Layout board="Drop Landing Charts" />
<Layout board="Sheet-1" />
<Layout board="Sheet-2" />
</game>
Thanks for the help,
Steve
Bill Barrett
231
Posts: 351 Joined: 25 May 2008, 13:25
Post
by Bill Barrett » 24 Mar 2010, 22:00
Steve,
I'm not sure what's going wrong for you here, it may be something to do with the resolution (or perhaps the declared resolution) of your files.
One thing's certain, your counter sizes seem way out - only 37 pixels by 37 (?). I'd expect them to be at least double that size...
Regards, Bill.
stevecq
Posts: 10 Joined: 23 Feb 2008, 19:41
Post
by stevecq » 07 Aug 2010, 00:20
Afther a long break decided to try and finish my box. I have a new error.
"Index out of range exception: Index was outside the bounds of the array"
Also when using Notepad to exit what encoding should I choose, I currently use "ansi"
Code follows;
Code: Select all
<?xml version="1.0" encoding="Windows-1252" ?>
<game-box
name="Island of Death"
description="Invasion of Malta"
copyright="Avalanche, 2009"
startup-scenario="Basic.zts">
<dice-hand type="D6">
<dice count="3" color="ffffff" pips="000000" />
</dice-hand>
<map name="Iodmap" image-file="Mapiod.jpg" resolution="300 dpi" />
<counter-sheet name="Sheet-1"
front-image-file="Counters1.jpg" front-resolution="300 dpi"
back-image-file="Counters-12.jpg" back-resolution="300 dpi" >
<counter-section rows="2" columns="10" front-left="34" front-top="52" front-right="1534" front-bottom="352"
back-left="1686" back-top="56" back-right="3184" back-bottom="361" />
<counter-section rows="2" columns="10" front-left="34" front-top="392" front-right="1534" front-bottom="688"
back-left="1687" back-top="398" back-right="3180" back-bottom="693" />
<counter-section rows="2" columns="10" front-left="34" front-top="730" front-right="1534" front-bottom="1030"
back-left="1682" back-top="734" back-right="3180" back-bottom="1034" />
<counter-section rows="2" columns="10" front-left="34" front-top="1070" front-right="1534" front-bottom="1366"
back-left="1682" back-top="1070" back-right="3180" back-bottom="1368" />
<counter-section rows="2" columns="10" front-left="32" front-top="1408" front-right="1532" front-bottom="1706"
back-left="1684" back-top="1408" back-right="3178" back-bottom="1706" />
<counter-section rows="2" columns="10" front-left="30" front-top="1744" front-right="1532" front-bottom="2042"
back-left="1682" back-top="1746" back-right="3178" back-bottom="2048" />
<counter-section rows="2" columns="10" front-left="36" front-top="2086" front-right="1530" front-bottom="2384"
back-left="1678" back-top="2086" back-right="3178" back-bottom="2390" />
<counter-section rows="2" columns="10" front-left="1682" front-top="58" front-right="3180" front-bottom="356"
back-left="38" back-top="46" back-right="1534" back-bottom="348" />
<counter-section rows="2" columns="10" front-left="1682" front-top="400" front-right="3188" front-bottom="692"
back-left="34" back-top="388" back-right="1534" back-bottom="686" />
<counter-section rows="2" columns="10" front-left="1682" front-top="736" front-right="3184" front-bottom="1028"
back-left="34" back-top="732" back-right="1534" back-bottom="1030" />
<counter-section rows="2" columns="10" front-left="1682" front-top="1072" front-right="3180" front-bottom="1372"
back-left="34" back-top="1072" back-right="1534" back-bottom="1364" />
<counter-section rows="2" columns="10" front-left="1682" front-top="1410" front-right="3180" front-bottom="1708"
back-left="28" back-top="1402" back-right="1528" back-bottom="1704" />
<counter-section rows="2" columns="10" front-left="1682" front-top="1750" front-right="3180" front-bottom="2048"
back-left="28" back-top="1742" back-right="1532" back-bottom="2042" />
<counter-section rows="2" columns="10" front-left="1682" front-top="2090" front-right="3176" front-bottom="2388"
back-left="30" back-top="2087" back-right="1532" back-bottom="2382" />
</counter-sheet>
<counter-sheet name="Sheet-2"
front-image-file="Counters2.jpg" front-resolution="300 dpi"
back-image-file="Counters-22.jpg" back-resolution="300 dpi" >
<counter-section rows="2" columns="10" front-left="57" front-top="20" front-right="1556" front-bottom="324"
back-left="52" back-top="28" back-right="1550" back-bottom="318" />
<counter-section rows="2" columns="10" front-left="56" front-top="356" front-right="1552" front-bottom="662"
back-left="54" back-top="369" back-right="1550" back-bottom="654" />
<counter-section rows="2" columns="10" front-left="52" front-top="692" front-right="1548" front-bottom="998"
back-left="54" back-top="702" back-right="1552" back-bottom="992" />
<counter-section rows="2" columns="10" front-left="50" front-top="1028" front-right="1544" front-bottom="1332"
back-left="54" back-top="1036" back-right="1554" back-bottom="1326" />
<counter-section rows="2" columns="10" front-left="46" front-top="1365" front-right="1540" front-bottom="1670"
back-left="57" back-top="1370" back-right="1554" back-bottom="1670" />
</counter-sheet>
<map name="Turnchart" image-file="Turnc.jpg" resolution="150 dpi" />
<map name="Combat RT" image-file="Crt.jpg" resolution="150 dpi" />
<map name="Artillery CRT" image-file="Artcrt.jpg" resolution="150 dpi" />
<map name="TEC" image-file="Tecs.jpg" resolution="150 dpi" />
<map name="Planning map" image-file="Planmap.jpg" resolution="150 dpi" />
<map name="Drop Landing Charts" image-file="Dropl.jpg" resolution="150 dpi" />
</game-box>
Code: Select all
<?xml version="1.0" encoding="windows-1252" ?>
<game
game-box="Island of Death"
scenario-name="Campaign"
scenario-description="Invasion of Malta"
scenario-copyright="Avalanche, 2009">
<Layout board="Iodmap" />
<Layout board="Turnchart" />
<Layout board="Combat RT" />
<Layout board="Artillery CRT" />
<Layout board="TEC" />
<Layout board="Planning map" />
<Layout board="Drop Landing Charts" />
<Layout board="Sheet-1" />
<Layout board="Sheet-2" />
</game>
Bill Barrett
231
Posts: 351 Joined: 25 May 2008, 13:25
Post
by Bill Barrett » 07 Aug 2010, 00:47
Steve,
Just email me your game box (or send a link) and I'll have a look at it.
That's the simplest way to figure out what's going wrong...
Regards, Bill.
Jerome
Site Admin
Posts: 974 Joined: 22 Jun 2006, 21:31
Location: France
Contact:
Post
by Jerome » 08 Aug 2010, 08:37
stevecq wrote: Also when using Notepad to exit what encoding should I choose, I currently use "ansi"
Hi Steve!
Regarding the encoding: it is the set of rules that tell a computer program how to translate sequences of zeros or ones to text characters - such as 10000001 stands for "A".
Simple text editors like Notepad usually save files in the default encoding of Windows, which is Windows-1252 in English, French and some other western languages. This encoding is sometimes called OEM, ANSI or Latin-1.
Just make sure the encoding statement at the begining of the ZunTzu file is consistent with the encoding chosen when the file is saved.
For instance, if you wrote this:
then ZunTzu will assume the file was saved with a Latin encoding.
For files containing non-Latin characters - such as Russian or Japanese characters - I recommend using a text editor capable of saving the files in the UTF-8 encoding. In that case you'll write this in the ZunTzu files:
Jerome, ZunTzu developer.