Author Topic: Recovering an AGS project from a different version of the editor? (Solved)  (Read 443 times)

Ali

  • What will become of the baron?
    • Ali worked on a game that was nominated for an AGS Award!
      Ali worked on a game that won an AGS Award!
Hello!

I'm not able to load an old project in AGS 3.4.0 P4. I made the game back in 2014 using the "Custom Resolution" version of the editor Crimson Wizard was working on. It was the basis for a live comedy show which I'm doing again on Thursday. I naively hoped to update it: but I get this message.

Quote
---------------------------

Input string was not in a correct format.

If you cannot resolve the error, please post on the AGS Technical Forum for assistance.

Error details: System.FormatException: Input string was not in a correct format.

   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)

   at System.Version..ctor(String version)

   at AGS.Types.Game.SetScriptAPIForOldProjec t()

   at AGS.Editor.Tasks.SetDefaultValuesForNew Features(Game game)

   at AGS.Editor.Tasks.LoadGameFromDisk(String gameToLoad, Boolean interactive)

   at AGS.Editor.InteractiveTasks.LoadGameFro mDisk(String gameToLoad)

This is the version info from Game.agf: <AGSEditorDocument Version="3.0.3.2" VersionIndex="7" EditorVersion="3.3.0 CR">

Is there anything I can do to manually edit the Game.agf file to make it palatable to 3.4?
« Last Edit: 25 Sep 2017, 20:15 by Ali »

Gurok

  • Rottwheelers
  • When life hands you lemons, combine them with the mop
    • I can help with AGS tutoring
    •  
    • Best Innovation Award Winner 2016, for improving and extending the AGS scripting language
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
    • Gurok worked on a game that was nominated for an AGS Award!
      Gurok worked on a game that won an AGS Award!
Remove the " CR" from EditorVersion and it should open.

To clarify, change it to:

Code: Adventure Game Studio
  1. <AGSEditorDocument Version="3.0.3.2" VersionIndex="7" EditorVersion="3.3.0">

I would recommend making a backup first, just in case this pre-release version did something weird with the way it stored rooms or something.

Ali

  • What will become of the baron?
    • Ali worked on a game that was nominated for an AGS Award!
      Ali worked on a game that won an AGS Award!
That worked! That was so quick, thank you!

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Yes, this is exactly same bug with version parsing that was reported some time ago, and is going to be fixed in 3.4.1