Author Topic: Map path errors  (Read 5412 times)

Dr Obvious

  • Regular
  • **
  • Posts: 53
    • View Profile
    • http://www.drobvious.net
Map path errors
« on: 2005-08-30, 12:08:34 PM »
First, a bit of history of the major changes I made:
1. Last night I added a sprite that was 256x256 and it seemed to work fine, I didn't have any errors with it.

2. Last night I added various special functions that just worked with variables and some sprite switching

3. This morning I worked with some more special functions involving variables

4. I added a 96x96 sprite and it seemed to work fine.

5. Made some special functions on my collision layer map involving the 96x96 sprite

6. Created a new map in the project and worked in the collision layer in the map

7.  Tried to add a sprite with initial instance to the new map

About the time of #7 is when I started having all the problems.  When I start up the project, I get the following errors: "Error loading map: Path not found" and then I get "Run-time error '91': Object variable or With block variable not set" and then the program exits.  I was able to get into the project earlier and I would try to load some of the tilesets while others I wasn't able to load or even reload.  The first problem I remember having was when making a sprite, I had some problem with a template, got the runtime error '91' and then this all started happening.  I've looked over my current project .gdp and a backup in wordpad and the map files look pretty close except for where I've added variables and tilesets and can't figure out where I went wrong.  I'm using version 1.4.5 (and that's the version I'm required to use unfortunately).

Dr Obvious

  • Regular
  • **
  • Posts: 53
    • View Profile
    • http://www.drobvious.net
Map path errors
« Reply #1 on: 2005-08-30, 12:18:33 PM »
Forgot to add two things:

1. I was able to delete the new map, but that didn't seem to get me anywhere

2. I went and made a copy of my .gdp file and went in and just changed my map name in the file and I can actually open my project if I need to

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Map path errors
« Reply #2 on: 2005-08-30, 05:14:08 PM »
Did you delete or rename anything other than the map at a time that might have caused the problem?  1.4.5 had some problems with renaming and deleting layers in particular.

I'm not sure what to suggest short of sending your project or a piece of it that reproduces the problem you want to fix.  I'm not sure if you're trying to fix your current project or update an old version of the project without introducing the error.  You could try exporting various versions of the project as XML.  XML is a better format to use if you want to edit the project in notepad or compare it to another version because it includes all the data in the MAP files in addition to the content of the GDP file.

Note that deleting a map from a project might have some lingering problems too, for example if you have tile animations, they might hang around even after a map is deleted, but have problems if they can't find their map.  I don't think Sprites or paths would have a problem though because those are stored within the map and would get deleted along with the map.  If your startup map was set to a map that you deleted, you might have to fix that too.

The first error message you mentioned about a Path not found has me thinking that you might have moved your project file(s) around or renamed a folder so that it can't find the folder that your map file or a tileset graphic was in.  Of course that could be a pretty serious problem from the software's perspective too.  Missing files or folders is a problem that's hard to recover from.  Check the paths of all the files in the GDP file to see if they make sense.  They should all be valid paths relative to the location of the GDP file.

That's about all I can think of given the information provided.  Is there any other kind of help you'd like?

Dr Obvious

  • Regular
  • **
  • Posts: 53
    • View Profile
    • http://www.drobvious.net
Map path errors
« Reply #3 on: 2005-08-30, 08:21:49 PM »
Thanks for all the help and I fiddled with it some more  this afternoon but didn't have much luck so I just went back to one of my backups.  It wasn't too bad, I just had to rewrite A LOT of special function.  Thanks for all the help though!