Unable to convert scenarios to FOG Unity

Tech support for PC & Mac. Please post your OS and version number when reporting bugs.

Moderators: Slitherine Core, FoG PC Moderator, NewRoSoft

Post Reply
stockwellpete
Field of Glory Moderator
Field of Glory Moderator
Posts: 14501
Joined: Fri Oct 01, 2010 2:50 pm

Unable to convert scenarios to FOG Unity

Post by stockwellpete »

I have created a _Convert folder and put it in FOG_Unity_Data. I have copied all my scenarios into _Convert and they are sitting there as "File folder(s)". I then boot up the game and press Alt Gr and the F5 key. Nothing happens. There is no _OUT folder in my _Convert folder. Please advise.
IainMcNeil
Site Admin
Site Admin
Posts: 13558
Joined: Fri Apr 01, 2005 10:19 am

Re: Unable to convert scenarios to FOG Unity

Post by IainMcNeil »

This is one for Dan - I don't know enough about how this works to help unfortunately.
cothyso
NewRoSoft
NewRoSoft
Posts: 1213
Joined: Tue Sep 13, 2005 7:32 pm

Re: Unable to convert scenarios to FOG Unity

Post by cothyso »

Hello Pete,

Please get in touh with me on email, and send me a scenario or two which you were not able to convert, to see what'sgoing on in there.
kilroy1
Sergeant First Class - Elite Panzer IIIL
Sergeant First Class - Elite Panzer IIIL
Posts: 416
Joined: Thu Nov 19, 2009 2:46 am

Re: Unable to convert scenarios to FOG Unity

Post by kilroy1 »

I had no trouble converting any of his scenarios.

kilroy
stockwellpete
Field of Glory Moderator
Field of Glory Moderator
Posts: 14501
Joined: Fri Oct 01, 2010 2:50 pm

Re: Unable to convert scenarios to FOG Unity

Post by stockwellpete »

I just wonder if it is something to do with the way my computer is set up. I really don't have very good computer skills either which doesn't help.
stockwellpete
Field of Glory Moderator
Field of Glory Moderator
Posts: 14501
Joined: Fri Oct 01, 2010 2:50 pm

Re: Unable to convert scenarios to FOG Unity

Post by stockwellpete »

Yippee! The old boy has finally managed to do it. Thanks to Kilroy for his patience. :D
KhanDam2
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 43
Joined: Sun May 11, 2014 4:17 pm

Re: Unable to convert scenarios to FOG Unity

Post by KhanDam2 »

Already post in Scenario Design forum, sorry i don't know where i must post it

Hi,

I upgrade my Fog to Fog (U) without trouble.

I try to convert a lot of scenarii from v1 to V2(U), i follow your exelent instruction but i have a comment and an issue with convert process

the comment is there more easy if the converter display the progresion of convert process and if it can display there was and error occured and tell when it's finish.

Th Issue is i convert 265 Scen found on the Forun the converion make the job for 263 but hang with 2 ( without any message but break the conversion process and i must remove from convert dir to rerun the conversion.

The Scen are :

- Alternative Battle of Toro -> found here in version 1.1
- The Battle of Toro 1476AD -> found here in version 2.1

I can send zip file if you want to test conversion

Thanks in advance

Regards from France

Cheers
Semper Fi - Sicut Aquila
cothyso
NewRoSoft
NewRoSoft
Posts: 1213
Joined: Tue Sep 13, 2005 7:32 pm

Re: Unable to convert scenarios to FOG Unity

Post by cothyso »

You can see the conversion process'es feedback in the console log. Either by opening the console via the ~ keyboard shortcut, or by reading the <install_path>/FoG_Unity_Data/console_log.txt file's content.

It seems there are some older FoG(RB) legacy scenarios which are failing to convert, probably due to an older legacy format than the converted one. Please send me the files to <dan dot antonescu at newrosoft dot com> to see if there's anything I can do about them.
KhanDam2
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 43
Joined: Sun May 11, 2014 4:17 pm

Re: Unable to convert scenarios to FOG Unity

Post by KhanDam2 »

Thanks I Can't access to console with my french keyboard when i hit ~ nothing appear i send you the 2 Scen by mail

Thanks by advance

Cheers
Semper Fi - Sicut Aquila
cothyso
NewRoSoft
NewRoSoft
Posts: 1213
Joined: Tue Sep 13, 2005 7:32 pm

_[BUG] rev 1042 [Editor] Problem converting some legacy scen

Post by cothyso »

Modified for rev 1043+.

The problem was an unusual </side> end element which never appeared in any of the legacy FoG(RB) scenarios, nor in any custom legacy FoG(RB) scenarios I've converted.

Uncommon side entry: <side name="Castilian-Aragonese" namesingle="Castilian-Aragonese">War of the Castilian Succession</side>
Usual side entry format: <side name="Castilian-Aragonese" namesingle="Castilian-Aragonese">War of the Castilian Succession />

The code will account from now on for this unusual format too.
dundas61
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 36
Joined: Fri Aug 31, 2012 10:07 am
Location: NE England

Re: Unable to convert scenarios to FOG Unity

Post by dundas61 »

Hi there,
I have quite a few of the older scenarios as well, which won't convert. Comparing these to ones which have converted fine, I've spotted the presence of multiple "uniquename" fields alongside all the fields shown below in the more recent scenarios. My question therefore is - how do I go about converting these very old scenarios please?

EXAMPLE OF NON-CONVERTABLE GAME FILE:
<?xml version="1.0" encoding="UTF-8"?>
<game title="Untitled">
<side name="Romans" namesingle="Roman"/>
<side name="Britons" namesingle="Celtic"/>
<nation name="Rome"/>
<nation name="Cantii"/>
<scenario name="Historical" firstside="1" secondside="2" startturn="1" endturn="20"/>
<scenario name="Free Deployment" firstside="1" secondside="2" startturn="0" endturn="20"/>
<hexterrains>
<hexterrain name="Clear" movecost="1" combatname="" combatvalue="1"/>
<hexterrain name="(Unused-1)" movecost="2" combatname="" combatvalue="2"/>
<hexterrain name="(Unused-2)" movecost="2" combatname="" combatvalue="2"/>
<hexterrain name="Woods" movecost="1.5" combatname="" combatvalue="2"/>
<hexterrain name="Woods" movecost="1.5" combatname="" combatvalue="2"/>
<hexterrain name="Ditch" movecost="1.5" combatname="" combatvalue="2"/>
<hexterrain name="Gully" movecost="1.5" combatname="" combatvalue="2"/>
<hexterrain name="Water" movecost="999999" combatname="" combatvalue="1"/>
<hexterrain name="Scrub" movecost="1.5" combatname="" combatvalue="2"/>
<hexterrain name="Marsh" movecost="1.5" combatname="" combatvalue="2"/>
</hexterrains>
<hexsideterrains>
<hexsideterrain name="Blocked" movecost="999999"/>
<hexsideterrain name="Road" movecost="1"/>
<hexsideterrain name="Stream" movecost="1.5" combatname="" combatvalue="1"/>
<hexsideterrain name="Ford" movecost="1.5" combatname="" combatvalue="1"/>
</hexsideterrains>
<map cols="40" rows="50" oddcolsstarthigher="1" oddcolsendlower="0" side1edge="3" side2edge="1" deployzonesize1="5"
cothyso
NewRoSoft
NewRoSoft
Posts: 1213
Joined: Tue Sep 13, 2005 7:32 pm

Re: Unable to convert scenarios to FOG Unity

Post by cothyso »

Hand them to me at <dan dot antonescu at newrosoft dot com> and make a post in here about it (to know that you've sent them to me, in case you've send them to a wrong email address) and I will have a look at them to see what the problem is.
dundas61
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 36
Joined: Fri Aug 31, 2012 10:07 am
Location: NE England

Re: Unable to convert scenarios to FOG Unity

Post by dundas61 »

Hi cothyso,
Many thanks for offering to look at these. I've just emailed you a sample of 7 VERY OLD scenarios which I'm struggling to convert.
All the best.
Mike
cothyso
NewRoSoft
NewRoSoft
Posts: 1213
Joined: Tue Sep 13, 2005 7:32 pm

Re: Unable to convert scenarios to FOG Unity

Post by cothyso »

Modified for rev 1043+.

There were 2 problems: a missing <year>0</year> element in 5 of the legacy scenarios and a missing nation attribute to all the <unit></unit> elements in another legacy scenario, situations which never appeared in any of the legacy FoG(RB) scenarios, nor in any custom legacy FoG(RB) scenarios I've converted.

Missing year element: <year>0</year>

Missing unit element's nation attribute: <unit side="1" imageid="macedonian-Cav-general-a" name="Macedonian General" retreatdirection="0" training="1" armour="2" rangedweapon="0" impactweapon="7" meleeweapon="5" experience="2" histstrength="500" commandradius="5" leaderrank="1" leaderprofile="3" trooptype="1"/>

Usual unit element format: <unit side="1" nation=1" imageid="macedonian-Cav-general-a" name="Macedonian General" retreatdirection="0" training="1" armour="2" rangedweapon="0" impactweapon="7" meleeweapon="5" experience="2" histstrength="500" commandradius="5" leaderrank="1" leaderprofile="3" trooptype="1"/>

The code will account from now on for this unusual formats too.

I've also changed all code's int.Parse() into int.TryParse() calls, just to make the code more stable in case of different unaccounted legacy scenarios format exceptions.
Lysimachos
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1368
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Unable to convert scenarios to FOG Unity

Post by Lysimachos »

Hi all!
I've updated my Fog to Fog(U) maintaining also the older version and would like to covert my many scenarios but i?m unable to find the folder where they are lodged.
Anyone may explain me where to look?
Moreover, I thought the two games would have retained separate folders for each one, while it seems they now share the same.
Is it ok?
And I haven't also understood which is the way to make the conversion.
Thank's for the help.

P.S.
I was also looking for finding the folder where the DAG custom armies are lodged but wasn't able to do it ..
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
Post Reply

Return to “Field of Glory : Tech Support”