Hi

I'm trying to get a script to work but after I merge everything I get the following message:

Code:
[VitaNexCore]:
[VitaNexCore]: Compile action started...
[VitaNexCore]: Compiling Services...
[VitaNexCore]: Compiling Modules...
[VitaNexCore]: Compile action completed in 0.01 seconds
[VitaNexCore]:
[VitaNexCore]: Configure action started...
[VitaNexCore]: Configuring Services...
[VitaNexCore]: Configuring Modules...
[World Chat]: Configuring...
[World Chat]: Done.
[VitaNexCore]: Configure action completed in 0.83 seconds
Regions: Loading...done
World: Loading...An error was encountered while loading a saved object
- Type: Server.Mobiles.Horse
- Serial: 0x00014259
Delete the object? (y/n)
After pressing return an exception will be thrown and the server will terminate.
 
You lost or changed the horse.cs script I guess, it's in ServUO-master\Scripts\Mobiles\Normal

If you put it back you won't get that error
 
This is the entire error:

Code:
ServUO - [https://www.servuo.com] Version 0.5, Build 6963.25841 - Build on 1/24/2019 2:21:22 PM UTC - Debug
Core: Optimizing for 4 64-bit processors
Core: Compiled for .NET 4.0
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (8270 items, 1499 mobiles, 11 customs) (1.28 seconds)
Searching for Ultima Online installations...
Found 1 Ultima Online installations:
C:\Methgair\Methgair
DataPath: C:\Methgair\Methgair
Config: Warning, 'System.TimeSpan' invalid value for 'PlayerCaps.PlayerStatTimeDelay'

                                                                                                                                                                                                                                                                                            **** VITA-NEX: CORE 4.0.0.0 ****                                                                                                                                                                       Root Directory:     Scripts\Custom\Vita-Nex Core 4.0.0.0\                                                               Working Directory:  C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\                                                                                                     Build Directory:    C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Build\                                                                                               Data Directory:     C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Data\                                                                                                Cache Directory:    C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Cache\                                                                                               Services Directory: C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Services\                                                                                            Modules Directory:  C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Modules\                                                                                             Backup Directory:   C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Backups\                                                                                             Saves Directory:    C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Saves\                                                                                               Logs Directory:     C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Logs\                                                                                                                                                                                                                                                                     http://core.vita-nex.com                                                                                                                                                                                                                                                                                               
[VitaNexCore]:
[VitaNexCore]: Compile action started...
[VitaNexCore]: Compiling Services...
[VitaNexCore]: Compiling Modules...
[VitaNexCore]: Compile action completed in 0.01 seconds
[VitaNexCore]:
[VitaNexCore]: Configure action started...
[VitaNexCore]: Configuring Services...
[VitaNexCore]: Configuring Modules...
[World Chat]: Configuring...
[World Chat]: Done.
[VitaNexCore]: Configure action completed in 0.66 seconds
Regions: Loading...done
World: Loading...An error was encountered while loading a saved object
- Type: Server.Mobiles.Horse
- Serial: 0x00014259
Delete the object? (y/n)
Delete all objects of that type? (y/n)
After pressing return an exception will be thrown and the server will terminate.

Error:
System.Exception: Load failed (items=False, mobiles=True, guilds=False, data=False, type=Server.Mobiles.Horse, serial=0x00014259) ---> System.Exception: ***** Bad serialize on Server.Mobiles.Horse *****
   at Server.World.Load() in c:\Users\Brittney\Desktop\Methgair Server\Server\World.cs:line 605
   --- End of inner exception stack trace ---
   at Server.World.Load() in c:\Users\Brittney\Desktop\Methgair Server\Server\World.cs:line 860
   at Server.Core.Main(String[] args) in c:\Users\Brittney\Desktop\Methgair Server\Server\Main.cs:line 630
This exception is fatal, press return to exit

And then if I delete the horse and reboot I get:
Code:
ServUO - [https://www.servuo.com] Version 0.5, Build 6963.25841 - Build on 1/24/2019 2:21:22 PM UTC - Debug
Core: Optimizing for 4 64-bit processors
Core: Compiled for .NET 4.0
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (8270 items, 1499 mobiles, 11 customs) (1.33 seconds)
Searching for Ultima Online installations...
Found 1 Ultima Online installations:
C:\Methgair\Methgair
DataPath: C:\Methgair\Methgair
Config: Warning, 'System.TimeSpan' invalid value for 'PlayerCaps.PlayerStatTimeDelay'

                                                                                                                                                                                                                                                                                            **** VITA-NEX: CORE 4.0.0.0 ****                                                                                                                                                                       Root Directory:     Scripts\Custom\Vita-Nex Core 4.0.0.0\                                                               Working Directory:  C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\                                                                                                     Build Directory:    C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Build\                                                                                               Data Directory:     C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Data\                                                                                                Cache Directory:    C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Cache\                                                                                               Services Directory: C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Services\                                                                                            Modules Directory:  C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Modules\                                                                                             Backup Directory:   C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Backups\                                                                                             Saves Directory:    C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Saves\                                                                                               Logs Directory:     C:\Users\ted_g\Desktop\Methgair Server\Methgair Server FlyingMounts\Methgair                        Server\VitaNexCore\Logs\                                                                                                                                                                                                                                                                     http://core.vita-nex.com                                                                                                                                                                                                                                                                                               
[VitaNexCore]:
[VitaNexCore]: Compile action started...
[VitaNexCore]: Compiling Services...
[VitaNexCore]: Compiling Modules...
[VitaNexCore]: Compile action completed in 0.01 seconds
[VitaNexCore]:
[VitaNexCore]: Configure action started...
[VitaNexCore]: Configuring Services...
[VitaNexCore]: Configuring Modules...
[World Chat]: Configuring...
[World Chat]: Done.
[VitaNexCore]: Configure action completed in 0.62 seconds
Regions: Loading...done
World: Loading...An error was encountered while loading a saved object
- Type: Server.Mobiles.Palomino
- Serial: 0x00000040
Delete the object? (y/n)

And so on for each mobile...
 
yes because you changed something in the serialize / deserialze methods and in a way that it will not work anymore
 
Yeah if you changed the horse script so that the horses are different, when the server loads it will not find the code for the old horses and asks you if you want to delete it/them.
When you change something like that you need to increment the serialize version for the new horse and write a new deserialize that deals with loading the old type AND the new type of horse usually in a CASE statement. Have a look at some of the other scripts to see how it is done.
 
Ugh...I didn't touch the horse script. Or the Palomino. Or the dozes of delete queries that it will ask me to destroy. There something is wrong with the serialization (probably in basecreature) and I don't know what.
 
OK so if you changed BaseCreature try putting the original script back and see what happens. If all is well then you will know that was what it was and you can look at your changes again to see what broke the serialization.
 
Back