View Single Post
Old 08-28-2009, 04:22 PM   #4 (permalink)
Kendo
Lurker
 
Kendo's Avatar
 
Join Date: May 2009
Location: Virginia
Age: 33
Posts: 8
Thumbs up

Great program Nerun! You're the best.

Just one problem that I noticed with using the Static Exporter.

When copying teleporters, if the teleporters do not have a map destination, it will crash the server on the [Decroate command.

Example:

I created an area to use for a Halloween Fun Area and I had several teleporters set up. While creating the teleporters, I was lazy and didn't put the map destinations in, just the coords. After exporting the area to the cfg file and then testing it by using the decorate command, the server crashed. After investigating the .cfg file, I found this...

Code:
Teleporter 7107 (PointDest=(5460, 499, 0); MapDestination=)
5462 497 0

Teleporter 7107 (PointDest=(5443, 499, 0); MapDestination=)
5453 502 0

Teleporter 7107 (PointDest=(5480, 499, 0); MapDestination=)
5476 495 0
So, when the server crashed, the log stated:

Code:
System.Exception: Invalid map name
   at Server.Map.Parse(String value)
   at Server.Commands.DecorationList.Construct()
   at Server.Commands.DecorationList.Generate(Map[] maps)
   at Server.Commands.Decorate.Generate(String folder, Map[] maps)
   at Server.Commands.Decorate.Decorate_OnCommand(CommandEventArgs e)
   at Server.Commands.CommandSystem.Handle(Mobile from, String text, MessageType type)
   at Server.Mobile.DoSpeech(String text, Int32[] keywords, MessageType type, Int32 hue)
   at Server.Mobiles.PlayerMobile.DoSpeech(String text, Int32[] keywords, MessageType type, Int32 hue)
   at Server.Network.PacketHandlers.UnicodeSpeech(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)
Of course, I didn't know where the problem was right away, but after finding out the file had those entries, I corrected them using the Find/Replace and change the Mapdestinations=0 for Felucca.

Code:
Teleporter 7107 (PointDest=(5460, 499, 0); MapDestination=0)
5462 497 0

Teleporter 7107 (PointDest=(5443, 499, 0); MapDestination=0)
5453 502 0

Teleporter 7107 (PointDest=(5480, 499, 0); MapDestination=0)
5476 495 0
Decorate command worked great after that.

I have a test server and this will greatly help copying decorations and other files over. I just wanted to share my experience. I wouldn't know where to look to correct this in the .cs file, but if you update it, I'll make sure to download the new version.

Thanks again!
Kendo is offline   Reply With Quote