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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
D_Master
Beginner


Joined: 05 Jun 2003
Posts: 17

PostPosted: Fri Jul 11, 2003 9:53 pm   

Scripting/Export
 
Is there anyway to export Map data out to a text file? I know that the maps are saved as a Microsoft Access Database, but since the keyID is not the same as the Vnum (nomally) It's almost useless to attempt an export from there. This is what I would like to try and do:

#66 VNUM
Dock Road~ Room Name
The docks rest at the bottom of cliffs on a narrow sandy strip of land. The buildings are mostly wooden and sit slightly askew from one another because the whole (small) dsitrict is built upon slowly sinking sand. Even the streets are sand. A dozen ships moor in the deep waters here at any given time - sometimes far more than a dozen. This is a particularly rough area of town, because of the influx of sailors and because it is inconvenient for the city guard to get down to patrol very often. ~ Description
0 1 Room Flags (can be exported as [0 1])
D0 Direction 0 (north)
~ Blank Data Not used
~
0 -1 67 Door Flags and linked room Vnum
S Stop (end of room file)

Here is another example...this room with two exits.

#67
Sandy Road~
This road leads down to the docks. You feel like you are being watched.~
128 1
D0
~
~
0 -1 68
D2 Direction 2 (south)
~
~
0 -1 66
S


Is there anyway I can do this? Any help would be welcome. Thanks!
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jul 11, 2003 10:21 pm   
 
I'm working on a script that does precisely this for Envy formats. I'll also try to later include other area formats too. When I'm finished, I'll post it in the Finished Script section.

If you want to try to do it yourself, try reading the articles in the Support Library that have to do with COM progamming in zMUD and ADO programming in zMUD. You'll also have to explore the structure of the map database to know what is stored where.
Reply with quote
D_Master
Beginner


Joined: 05 Jun 2003
Posts: 17

PostPosted: Fri Jul 11, 2003 11:04 pm   
 
cool I will check those out. I basically know what table infomation I need from the Access database, but like I said, exporting it from there simply will not work due to the fact that the mapper creates its own room IDs does not use the Vnums from the Mud.
Reply with quote
D_Master
Beginner


Joined: 05 Jun 2003
Posts: 17

PostPosted: Fri Jul 11, 2003 11:31 pm   
 
Anyone else have any other ideas? (Just wondering)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jul 13, 2003 12:23 am   
 
I posted the script in the Finished Scripts Forum. See if that is what you need.
Reply with quote
D_Master
Beginner


Joined: 05 Jun 2003
Posts: 17

PostPosted: Sun Jul 13, 2003 1:10 pm   
 
woohoo! ::runs and goes to check::
Reply with quote
D_Master
Beginner


Joined: 05 Jun 2003
Posts: 17

PostPosted: Sun Jul 13, 2003 1:15 pm   
 
I think it will work! Looking at it I might need to make some changes but on the whole its a great start. Thanks so much! I will post the final for ACK!muds when I am done (and its working!)
Reply with quote
D_Master
Beginner


Joined: 05 Jun 2003
Posts: 17

PostPosted: Sun Jul 13, 2003 2:10 pm   
 
hum...All I seem to get when exporting is this:

#AREA the docks of Freemont~

#MOBILES
#0

#OBJECTS
#0

#ROOMS
#0

#RESETS
S

#$

No rooms. Any ideas what this could be caused by?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jul 14, 2003 1:50 pm   
 
Be sure to specify the name of the area exactly as it appears in the mapper. If the area is not found, the file you posted will be produced.
Reply with quote
D_Master
Beginner


Joined: 05 Jun 2003
Posts: 17

PostPosted: Mon Jul 14, 2003 3:23 pm   
 
Ahh...got it to work. Sorry about that. That was stupid of me.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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