Page 1 of 1

error parsing layout in 1.4

Posted: Sat Feb 11, 2006 18:15
by walaber
I have a bunch of layouts that worked with version 1.3, that no longer load with version 1.4, they all give me an "window with name xxx already exists" error. below is an example .xml that won't load:

Code: Select all

<?xml version="1.0" ?>
<GUILayout>
   <Window Type="DefaultWindow" Name="Multi_FreeJump">
      <Property Name="UnifiedAreaRect" Value="{{0.000000,0.000000},{0.000000,0.000000},{1.000000,0.000000},{1.000000,0.000000}}" />
      <Window Type="WindowsLook/Checkbox" Name="Multi_FreeJump/GlobalSettingsON">
         <Property Name="Text" Value="Use Global Settings" />
         <Property Name="UnifiedAreaRect" Value="{{0.000000,0.000000},{0.000000,0.000000},{1.000000,0.000000},{0.120000,0.000000}}" />
         </Window>
      <Window Type="WindowsLook/Slider" Name="Multi_FreeJump/GlobalSpeed">
         <Property Name="ClickStepSize" Value="0.050000" />
         <Property Name="UnifiedAreaRect" Value="{{0.100000,0.000000},{0.250000,0.000000},{0.900000,0.000000},{0.350000,0.000000}}" />
         </Window>
      <Window Type="WindowsLook/Slider" Name="Multi_FreeJump/GlobalStrictness">
         <Property Name="ClickStepSize" Value="0.050000" />
         <Property Name="UnifiedAreaRect" Value="{{0.100000,0.000000},{0.500000,0.000000},{0.900000,0.000000},{0.600000,0.000000}}" />
         </Window>
      <Window Type="WindowsLook/StaticText" Name="Multi_FreeJump/GlobalSpeedTitle">
         <Property Name="FrameEnabled" Value="False" />
         <Property Name="HorzFormatting" Value="HorzCentred" />
         <Property Name="Text" Value="Global Game Speed" />
         <Property Name="UnifiedAreaRect" Value="{{0.100000,0.000000},{0.180000,0.000000},{0.900000,0.000000},{0.280000,0.000000}}" />
         </Window>
      <Window Type="WindowsLook/StaticText" Name="Multi_FreeJump/GlobalStrictnessTitle">
         <Property Name="FrameEnabled" Value="False" />
         <Property Name="HorzFormatting" Value="HorzCentred" />
         <Property Name="Text" Value="Global Game Strictness" />
         <Property Name="UnifiedAreaRect" Value="{{0.100000,0.000000},{0.420000,0.000000},{0.900000,0.000000},{0.520000,0.000000}}" />
         </Window>
      </Window>
</GUILayout>

Posted: Mon Feb 13, 2006 13:50
by scriptkid
Hello Walaber,

thanks for posting. I'll try and debug it myself.

Bye.

Posted: Tue Feb 14, 2006 22:01
by scriptkid
Hi again,

i was perfectly able to load it. See this screenshot:
http://www.2dgame-tutorial.com/tmp/SampleLayout.PNG

Are you sure you donĀ“t load it more then once by accident?

Please let me know,

Good luck!

Posted: Tue Feb 14, 2006 23:59
by walaber
okay, I know the problem is on my side now... I'm sure I can figure out the error.

thanks for investigating!