Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Fri Apr 30, 2010 3:03 pm   

Map Just Vanished
 
I'm not sure what happened. I don't use the mapper much but thought I would start mapping. So I do. I spent at least 8 hours mapping tons of zones. But what happens? Cmud just closes out when I click on the map trying to link two rooms and EVERYTHING vanished. Nothing even saved. There is absolutely nothing in the map database. I am sure it must be something I did, and I know this is beta, but my god all the work just gone. Sad Why would it not save anything as it is created?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Apr 30, 2010 5:03 pm   
 
Check for any other mapper files that might be stored somewhere else before you panic. What you describe is really impossible. The mapper information is stored in an SQLite database and there is simply no way to delete all records in a database like that. Unlike the *.pkg settings file which is mostly cached into memory and only updated on disk every few minutes, the mapper directly updates the map database whenever a change is made to the map. So the *.dbm map file is always up-to-date.

So there isn't any sort of "save" operation. The map database can't just be empty.

It's possible this is related to the bug reported by MattLofton that causes rooms to disappear on the map *display*. But the room data is still stored in the database file. So when you say
Quote:
There is absolutely nothing in the map database.

are you talking about that nothing is being displayed or that you have actually looked into the *.dbm database file and there is really nothing in the file itself?

As I said, the usual cause of this kind of confusion is that your map database file was actually being written to in a different directory from what you think, so check your system for other places this map file might be hiding.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Fri Apr 30, 2010 7:56 pm   
 
Hi Zugg,

Well when the map loads there is absolutely nothing showing on the map and no zones. The map database file is only 60 KB.


Edit: Hmm well this is weird. I have two dbm files. Ones is in the session folder and the other in the packages folder with the same exact name. The one in the packages folder is over 1 MB. You were right. Thank goodness it is all there! Every time I tried to load the map it would try to load the one in the session folder.

Should I delete the one in the session folder? It shows two maps in my package editor too...
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Apr 30, 2010 8:05 pm   
 
The correct location for your map file is in the session folder, not the packages folder. I have no idea how the one in the packages folder got created.

Go into the package editor and remove the map object that refers to the packages folder. Then exit CMUD and copy the 1MB file from the packages directory into your session folder. Then when you run CMUD again it should be loading the correct file.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Fri Apr 30, 2010 8:42 pm   
 
Thanks Zugg.

Btw I cannot get "in" and "out" exits to work correctly. On the properties for the links it will show the direction in Dir and DirTo but it doesn't record anything for i and o or in and out. I have in and out on the Name. I just can't seem to figure out how you do in and out exits.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Apr 30, 2010 10:34 pm   
 
The Dir and Dir To fields only accept the compass directions (n,s,e,w,ne,nw,sw,se,u,d). To handle non-standard exits, use the OTHER COM textbox (in the exits list, it's the Name column). The Dir and DirTo fields basically determine what direction to draw the link in.

If you want to do this as you make new rooms, you can use the MapDir character:

>command>direction
>in>w
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net