Full Version : Ohh my another sever crash :(
xmlspawner >>Scripting Support >>Ohh my another sever crash :(
<< Prev | Next >>
ArteGordon- 07-16-2006
this suggests that you first did the government system and then taming

CODE
case 28: { m_TamingBOBFilter = new Engines.BulkOrders.TamingBOBFilter(reader); goto case 27; }
case 27:
{
m_Bioenginer = reader.ReadBool();
NextTamingBulkOrder = reader.ReadTimeSpan();
goto case 26;
}
case 26:
{
m_City = (CityManagementStone)reader.ReadItem();
m_CityTitle = reader.ReadString();
m_ShowCityTitle = reader.ReadBool();
m_OwesBackTaxes = reader.ReadBool();
m_BackTaxesAmount = reader.ReadInt();
goto case 25;
}

Either way, it sounds like you are going to need to go back to an old save made before you installed these systems.
I suggested reinstalling them one at a time, because the crash you are getting with
m_TamingBOBFilter being null, suggests that the taming system is broken and just fixing the Ser/Deser isnt going to change that.
Crystal Jem- 07-16-2006
is there a player folder in the automatic save file? or char folder?
I have:
Account
Attchments
Chat
Commands
Guilds
Gumps
Items
Jailings
Mobiles
in Mobiles ther's
Mobiles
Mobiles.idx
mobiles.tdb
Crystal Jem- 07-16-2006

QUOTE (ArteGordon @ July 16, 2006 07:31 pm)
this suggests that you first did the government system and then taming

CODE
case 28: { m_TamingBOBFilter = new Engines.BulkOrders.TamingBOBFilter(reader); goto case 27; }
case 27:
{
m_Bioenginer = reader.ReadBool();
NextTamingBulkOrder = reader.ReadTimeSpan();
goto case 26;
}
case 26:
{
m_City = (CityManagementStone)reader.ReadItem();
m_CityTitle = reader.ReadString();
m_ShowCityTitle = reader.ReadBool();
m_OwesBackTaxes = reader.ReadBool();
m_BackTaxesAmount = reader.ReadInt();
goto case 25;
}

Either way, it sounds like you are going to need to go back to an old save made before you installed these systems.
I suggested reinstalling them one at a time, because the crash you are getting with
m_TamingBOBFilter being null, suggests that the taming system is broken and just fixing the Ser/Deser isnt going to change that.
ohh well mrgeing i toook from tthe tameing one and put it to the gov one . I didn't know the order had to be how i added it to the system. i had the taming one up and runing with saves for over a day before i added the gov. do i need to change those around?
ArteGordon- 07-16-2006
the order is absolutely critical. If you change the order, you will not be able to load.
If you had the taming system in first, then when you add the additional things for the gov system, they have to be added with a later version # and the order of the previous stuff that you had in the ser/deser cannot be changed.
(edit)
the most important thing to understand about Serialization/Deserialization is that the saves have no idea what the variables are that you are writing out. It just dumps out the bytes in a stream in the order that you write them, so the save file is just a stream of bytes.
When you go to read them back in, if you dont know exactly what the variables were, and in what order they were written out, you have no way of reading them back in correctly.
There is no special information that lets you ask to read back a particular variable and then the reader somehow finds it in the save file.
Crystal Jem- 07-19-2006
ahh i see so this time i should add the goverment onto the tameing so it's inthe right order. I deleated it all and started from a fresh runuo 2.0. for some reasion it was saying runuo2.0.exe.exe when there is to only be one exe so i started it all new. all the saves were bad so i have my work cut out for me. thanks for exspaining this to me Arte. i'm thinking of not adding the goverment again and adding your seage in insted. that looked fun
ArteGordon- 07-19-2006
any of the xmlspawner addons like the siege addon are easy because they dont require any serialization changes, so it isnt possible to mess up your saves. You can add them and remove them as you like.
Crystal Jem- 07-20-2006

QUOTE (ArteGordon @ July 19, 2006 07:58 pm)
any of the xmlspawner addons like the siege addon are easy because they dont require any serialization changes, so it isnt possible to mess up your saves. You can add them and remove them as you like.

YEs i seen that thank you and everyone that has helped to make them that way now if more addons can be made that way it would be wonderfully easy