Full Version : Ankh changed from 72 to 73 a crash
xmlspawner >>Scripting Support >>Ankh changed from 72 to 73 a crash
<< Prev | Next >>
Erica- 08-19-2006
Hi for some reason the server crashed when i said command [decorate since ankh was changed heres the crash any ideas .

CODE
System.ArgumentException: Type not found for header: 'AnkhEast 0x0004' at Server.Commands.DecorationList.Read(StreamReader ip) at Server.Commands.DecorationList.ReadAll(String path) 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)

ArteGordon- 08-19-2006
looks like they removed the definition for AnkhEast from Ankhs.cs and replaced it with a typealias for AnkhNorth. The ScriptCompiler.FindTypeByName appears unable to find typealiases so it fails.
You could go into the decoration .cfg files in the various Data/Decoration folders and change the AnkhEast references to AnkhNorth
Erica- 08-19-2006
Tell me if this is good as well what i did was i put the ankh and the decorate and the ethic scripts back from 72 and said the command decorate to test again and no crash since those 3 scripts changed the ankh as well would that be good thing if i did that as well.
ArteGordon- 08-19-2006
that should be fine. I didnt actually compare the new and old ankhs.cs but I doubt that they changed anything other than using a typealias to streamline the script.
Erica- 09-01-2006
Hey ArteGordon what is causeing this crash is the maps in data i think.which ever maps has AnkhEast in them should be changed to AnkhNorth is there any fast way to change all this maps that has the AnkhEast to AnkhNorth in those data file decoration map cause looking at those map one by one will take forever.But i could be wrong.
ArteGordon- 09-02-2006
there are only 8 .cfg files to change with a couple of ankheast references. I would just edit them and do a string search/replace.
Erica- 09-02-2006
Which eight cause i changed emino's undertaking quest.cfg, luna.cfg, shrines.cfg, yew.cfg, haochi's trials quest.cfg, i am missing 3 not sure which one i changed theses 5 to AnkhNorth 0x0004 and still got that crash i showed above so meaning i am missing 3 cfg to change have any clue which ones i missed.
Erica- 09-02-2006
Never mind found the cfg ones i was missing to change the ankhs no more crashes.