Problem with loading game in Editor (No "." allowed in name)

Started by MRollins, Sat 27/09/2008 05:05:30

Previous topic - Next topic

MRollins

I have a game I have been working on and it has always loaded fine in the editor until today. I got the following error:

The '.' character, hexidecimal 0x00, cannot be included in a name. Line 4610, position 20.

Does this simply mean that I've mistyped a '.' into the name of a room or something? There is no '.' in the name of any of my files and there was no changes made to my game since the last time I loaded it.

If I did include a '.' in some name somewhere by accident- is it possible to change it?

Thanks,

Matt

Pumaman

Hmm, would you be able to upload the Game.agf file so that I can look into this?

MRollins

I have a Game.agf that has the following:

Code: ags
 <?xml version="1.0" encoding="Windows-1252"?>
<!--DO NOT EDIT THIS FILE. It is automatically generated by the AGS Editor, changing it manually could break your game-->
<AGSEditorUserData Version="3.0.2.1">
  <Component Name="SourceControl" />
</AGSEditorUserData>


and a Game.agf.bak that has over 4800 lines in it. I restarted AGS and I now get the same error but a different line number (4615). Neither lines 4610 or 4615 have a "." in it.

Do you want this .bak file?

Pumaman

That's the wrong file, that's actually Game.agf.user.

You probably have "Hide file extensions" turned on in windows, so the file will probably just appear as "Game", which is the one you need to upload.

MRollins

I think I found the problem. I have the following at the end of my Game.agf file:

Code: ags
  </Loops>
          </View>
          <View>
            <ID>9</ID>
            <Name>IntroSign</Name>
            <Loops>
              <Loop>
                <ID>0</ID>
                <Ru 


followed by a huge string of 7403 (actual count) Null characters. They appear as black bars. It looks like the null values are triggering the "." error.

Would there be any way to fix this? It looks like it shoud have the following instead:

Code: ags
 nNextLoop>False</RunNextLoop>
                <Frames />
              </Loop>
            </Loops>
          </View>
        </Views>
      </ViewFolder>
    </Views>
    <DeletedViews />
    <Scripts>
      <Script>
        <FileName>GlobalScript.ash</FileName>
        <Name />
        <Description />
        <Author />
        <Version />
        <Key>667909685</Key>
        <IsHeader>True</IsHeader>
      </Script>
      <Script>
        <FileName>GlobalScript.asc</FileName>
        <Name />
        <Description />
        <Author />
        <Version />
        <Key>667909685</Key>
        <IsHeader>False</IsHeader>
      </Script>
    </Scripts>
    <Translations />
  </Game>
  <Component Name="FileCommands" />
  <Component Name="BuildCommands" />
  <Component Name="HelpCommands" />
  <Component Name="GeneralSettings" />
  <Component Name="Palette" />
  <Component Name="SpriteManager" />
  <Component Name="TextParser" />
  <Component Name="LipSync" />
  <Component Name="GUIs" />
  <Component Name="Inventory" />
  <Component Name="Dialogs" />
  <Component Name="Views" />
  <Component Name="Characters" />
  <Component Name="Cursors" />
  <Component Name="Fonts" />
  <Component Name="GlobalVariables" />
  <Component Name="Scripts" />
  <Component Name="Plugins" />
  <Component Name="Rooms" />
  <Component Name="Translations" />
  <Component Name="MusicAndSpeech">
    <SpeechVoxFiles />
    <MusicVoxFiles />
    <PamFiles />
  </Component>
  <Component Name="SourceControl">
    <ProjectUnderControl>False</ProjectUnderControl>
  </Component>
  <Component Name="Welcome" />
</AGSEditorDocument> 


This was taken from another game I had started but never did anything with. I am guessing that there is game specific information in these elements though and my game information is corrupted for good.

Thanks,

Matt

Pumaman

Looks like the file has got corrupted somehow. Did your computer crash or did you have a power failure while saving the game?

Make a backup copy of the game folder first, but you should be able to delete the "Game.agf" file and then rename "Game.agf.bak" to "Game.agf" which should return you to the previously saved version.

I'd strongly recommend turning off "Hide file extensions" in  Windows first so that you don't accidentally change the wrong files.

MRollins

Thanks! That worked. I didn;t have any power failures or crashes so that was kind of weird. Thanks again.

SMF spam blocked by CleanTalk