|
D_Master Beginner
Joined: 05 Jun 2003 Posts: 17
|
Posted: 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! |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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. |
|
|
|
D_Master Beginner
Joined: 05 Jun 2003 Posts: 17
|
Posted: 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.
|
|
|
|
D_Master Beginner
Joined: 05 Jun 2003 Posts: 17
|
Posted: Fri Jul 11, 2003 11:31 pm |
Anyone else have any other ideas? (Just wondering)
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Jul 13, 2003 12:23 am |
I posted the script in the Finished Scripts Forum. See if that is what you need.
|
|
|
|
D_Master Beginner
Joined: 05 Jun 2003 Posts: 17
|
Posted: Sun Jul 13, 2003 1:10 pm |
woohoo! ::runs and goes to check::
|
|
|
|
D_Master Beginner
Joined: 05 Jun 2003 Posts: 17
|
Posted: 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!)
|
|
|
|
D_Master Beginner
Joined: 05 Jun 2003 Posts: 17
|
Posted: 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? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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.
|
|
|
|
D_Master Beginner
Joined: 05 Jun 2003 Posts: 17
|
Posted: Mon Jul 14, 2003 3:23 pm |
Ahh...got it to work. Sorry about that. That was stupid of me.
|
|
|
|
|
|