1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

start from scrach but add old saves

Discussion in 'Script Support' started by stacey, Feb 15, 2014.

  1. stacey
    Offline

    stacey Member

    Joined:
    Mar 20, 2013
    Messages:
    95
    Likes Received:
    2
    Publish Number:
    54
    Code (C#):
    1.  
    2. ----------------------------------------------------------------------------
    3. ServUO - [http://www.servuo.com] Version 0.5, Build 5160.4708
    4. Publish 54
    5. Core: Optimizing for 4 64-bit processors
    6. RandomImpl: CSPRandom (Software)
    7. Scripts: Compiling C# scripts...done (cached)
    8. Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
    9. Scripts: Verifying...
    10. Finished (4123 items, 1023 mobiles, 11 customs) (0.56 seconds)
    11. Regions: Loading...done
    12. World: Loading...failed
    13. Error: Type 'Server.Mobiles.FireDragon' was not found. Delete all of those types
    14. ? (y/n)
    15. World: Loading...failed
    16. Error: Type 'Server.Mobiles.AnimalBreeder' was not found. Delete all of those ty
    17. pes? (y/n)
    18. World: Loading...failed
    19. Error: Type 'Server.Mobiles.EvilDruidLord' was not found. Delete all of those ty
    20. pes? (y/n)
    21. World: Loading...failed
    22. Error: Type 'Server.Mobiles.EvilGenetecist' was not found. Delete all of those t
    23. ypes? (y/n)
    24. World: Loading...failed
    25. Error: Type 'Server.Mobiles.EvilDruid' was not found. Delete all of those types?
    26.  (y/n)
    27. World: Loading...failed
    28. Error: Type 'Server.Mobiles.Abomination' was not found. Delete all of those type
    29. s? (y/n)
    30. World: Loading...failed
    31. Error: Type 'Server.Mobiles.GeneticFailure' was not found. Delete all of those t
    32. ypes? (y/n)
    33. World: Loading...failed
    34. Error: Type 'Server.Mobiles.EvilBioEngineer' was not found. Delete all of those
    35. types? (y/n)
    36. World: Loading...failed
    37. Error: Type 'Server.Mobiles.ThePickyBeetle' was not found. Delete all of those t
    38. ypes? (y/n)
    39. World: Loading...failed
    40. Error: Type 'Server.Items.SpringWater' was not found. Delete all of those types?
    41.  (y/n)
    42. World: Loading...failed
    43. Error: Type 'Server.Items.DestroyingAngel' was not found. Delete all of those ty
    44. pes? (y/n)
    45. World: Loading...failed
    46. Error: Type 'Server.Items.Organics' was not found. Delete all of those types? (y
    47. /n)
    48. World: Loading...failed
    49. Error: Type 'Server.Items.ShrinkItem' was not found. Delete all of those types?
    50. (y/n)
    51. World: Loading...failed
    52. Error: Type 'Server.Items.PetLeash' was not found. Delete all of those types? (y
    53. /n)
    54. World: Loading...failed
    55. Error: Type 'Server.Items.PetrafiedWood' was not found. Delete all of those type
    56. s? (y/n)
    57. World: Loading...failed
    58. Error: Type 'Server.Items.EmptyDNAVialSet' was not found. Delete all of those ty
    59. pes? (y/n)
    60. World: Loading...failed
    61. Error: Type 'Server.Items.EmptyDNAVial' was not found. Delete all of those types
    62. ? (y/n)
    63. World: Loading...failed
    64. Error: Type 'Server.Items.CurePotionPet' was not found. Delete all of those type
    65. s? (y/n)
    66. World: Loading...failed
    67. Error: Type 'Server.Items.GreaterCurePotionPet' was not found. Delete all of tho
    68. se types? (y/n)
    69. World: Loading...failed
    70. Error: Type 'Server.Items.HealPotionPet' was not found. Delete all of those type
    71. s? (y/n)
    72. World: Loading...failed
    73. Error: Type 'Server.Items.GreaterHealPotionPet' was not found. Delete all of tho
    74. se types? (y/n)
    75. World: Loading...failed
    76. Error: Type 'Server.Items.PetResurrectPotion' was not found. Delete all of those
    77.  types? (y/n)
    78. World: Loading...failed
    79. Error: Type 'Server.Items.PetShrinkPotion' was not found. Delete all of those ty
    80. pes? (y/n)
    81. World: Loading...An error was encountered while loading a saved object
    82.  - Type: Server.Mobiles.FireGargoyle
    83.  - Serial: 0x000024D1
    84. Delete the object? (y/n)
    85. Delete all objects of that type? (y/n)
    86. After pressing return an exception will be thrown and the server will terminate.
    87.  
    88. Error:
    89. System.FormatException: Index (zero based) must be greater than or equal to zero
    90.  and less than the size of the argument list.
    91.   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String fo
    92. rmat, Object[] args)
    93.   at System.String.Format(IFormatProvider provider, String format, Object[] arg
    94. s)
    95.   at Server.World.Load() in c:\UO SERVER\ServUO\Server\World.cs:line 844
    96.   at Server.Core.Main(String[] args) in c:\UO SERVER\ServUO\Server\Main.cs:line
    97.  590
    98. This exception is fatal, press return to exit
    99.  
    100. i y to delete but got this error
     
  2. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    Looks like you are missing lots of scripts. Looks like FS animal taming system.
     
  3. stacey
    Offline

    stacey Member

    Joined:
    Mar 20, 2013
    Messages:
    95
    Likes Received:
    2
    i haven got fs animal taming system
     
  4. stacey
    Offline

    stacey Member

    Joined:
    Mar 20, 2013
    Messages:
    95
    Likes Received:
    2
    i have started again but put old saves in from old server what had fs but this one has not
     
  5. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    Why don't you have fire gargoyles? They are part of the distro.
     
    • Two Thumbs Up Two Thumbs Up x 1
  6. stacey
    Offline

    stacey Member

    Joined:
    Mar 20, 2013
    Messages:
    95
    Likes Received:
    2
  7. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    Ohh sorry you are right that's a problem with serialisation. I am still learning that myself.

    Chances are it's the same with a ton of other scripts too but you can try remove the fire gargoyle script and the server will ask you to remove them and then add it back if the server boots. just make sure to save
     
  8. stacey
    Offline

    stacey Member

    Joined:
    Mar 20, 2013
    Messages:
    95
    Likes Received:
    2
    nope didnt work still same
     
  9. Kalamus
    Offline

    Kalamus Active Member

    Joined:
    Apr 24, 2013
    Messages:
    282
    Likes Received:
    32
    Serialization is like someone in a bad mood, it doesn't like to listen. Removing a ton of scripts and reverting back custom ones is a sure fire way to get the serialization in a bad mood. The Core can only recover your saves so much by trying to delete items and sometimes you can get lucky restarting it over and over and delete until it will finally load. One way to achieve what you are trying to do would be to load the scripts back in, wipe out all items in question you'll be removing and reverting then try saving the world. Depending on how much you have changed you might end up wiping most of your world and if that's the case then starting with fresh saves would be a better option.

    If you truly wanted to convert your old saves and you have knowledge of both serialization and coding then you could load all the scripts back in that you took out. Leave the Deserialize methods intact to allow you to load the world like it was but change you Serialize methods to all save back to the same format a fresh install state would be in. Save the world and shut down the server, then change out your Deserialize methods to match back up with the fresh install state that you did with Serialize. World should now load up and save normally again. This would be the only method I would recommend but like I said it would take both knowledge in coding and serialization and plenty of backups.
     
  10. Marcis
    Offline

    Marcis Member

    Joined:
    Feb 1, 2014
    Messages:
    49
    Likes Received:
    5
    I've looked your errors up, like what scripts you were missing and find out that some Pet system has a lot of what you are supposed to. https://code.google.com/p/aedilis2server/source/browse/trunk/Scripts/Custom/?r=57#Custom/Pets

    There's also the FireGargoyle https://code.google.com/p/aedilis2s.../Monsters/Humanoid/Magic/FireGargoyle.cs?r=57

    Can you post your FireGargoyle script please? Here's where it should be - > Scripts/ Mobiles/ Monsters/ Humanoid/ Magic

    It still doesn't work cause you can press y on all of the erros but the FireGargoyle as it's Deserialize function is bugged .

    You can either fix it or just delete the script.
     
  11. stacey
    Offline

    stacey Member

    Joined:
    Mar 20, 2013
    Messages:
    95
    Likes Received:
    2
    i have delete the scripts but i have got the error
     
  12. Marcis
    Offline

    Marcis Member

    Joined:
    Feb 1, 2014
    Messages:
    49
    Likes Received:
    5
    Which scripts have you deleted? As the one that is actually causing problem is the FireGargoyle.
     
  13. stacey
    Offline

    stacey Member

    Joined:
    Mar 20, 2013
    Messages:
    95
    Likes Received:
    2
    i have started the server from scrach and just added my saves from old server my old server had fs where my new one hasent because i didnt put fs in me old server got it http://www.servuo.com/threads/animal.84/ but it want update so have to start ago but with no fs
     
  14. m309
    Offline

    Admin Moderator ServUO Developer

    Joined:
    Mar 3, 2013
    Messages:
    1,243
    Likes Received:
    130
    You can't just add in saves from an old server if the server files are different. It will -not- work. I'm pretty sure that's what everyone else has previously stated in one way or another.

    You have 2 options:

    1. You either need to add in the exact same scripts you had, and also make allllll of the exact same file edits, and then add your old saves in. (Theres still no guarantee the server will recognize the old saves, especially if theres one tiny variance in a serialize/deserialize edit)

    -OR-

    2. Don't use your old saves, and start completely over with a fresh server. I would personally recommend this for you.
     
    • Agree Agree x 1
  15. Marcis
    Offline

    Marcis Member

    Joined:
    Feb 1, 2014
    Messages:
    49
    Likes Received:
    5
    Okay so you are using ServUO, right? What server did you previously have? RunUO 1? Runuo2? Meaning the server you are taking your saves from.
     
  16. stacey
    Offline

    stacey Member

    Joined:
    Mar 20, 2013
    Messages:
    95
    Likes Received:
    2
    servuo i have added the fs but got error line 17
    Errors:
    + Items/Talismans/TalismanSummons.cs:
    CS0115: Line 30: 'Server.Mobiles.BaseTalismanSummon.IsInvulnerable': no suit
    able method found to override
    Code (C#):
    1.  
    2. namespace
    3. Server.Mobiles
    4. {
    5. publicclassBaseTalismanSummon : BaseCreature
    6.     {
    7. public BaseTalismanSummon()
    8.             :
    9. base(AIType.AI_Melee, FightMode.None, 10, 1, 0.2, 0.4)
    10.         { }
    11. public BaseTalismanSummon(Serial serial)
    12.             :
    13. base(serial)
    14.         { }
    15. publicoverridebool Commandable { get { returnfalse; } }
    16. publicoverridebool InitialInnocent { get { returntrue; } }
    17. publicoverridebool IsInvulnerable { get { returntrue; } }
     
  17. Marcis
    Offline

    Marcis Member

    Joined:
    Feb 1, 2014
    Messages:
    49
    Likes Received:
    5
    Okay, the issue is that BaseCreature doesn't have the property . Which means to fix it something simple as changing
      1. public override bool IsInvulnerable { get { return true; } }

    to
      1. public virtual bool IsInvulnerable { get { return true; } }

    Should fix the problem. Try that and see what happens.
     
  18. stacey
    Offline

    stacey Member

    Joined:
    Mar 20, 2013
    Messages:
    95
    Likes Received:
    2
    change that and now got
    Code (C#):
    1.  
    2. Errors:
    3.  + Mobiles/PlayerMobile.cs:
    4.   CS0506: Line 1809: 'Server.Mobiles.PlayerMobile.Hidden.get': cannot override
    5.  inherited member 'Server.Mobile.Hidden.get' because it is not marked virtual, a
    6. bstract, or override
    7.   CS0506: Line 1813: 'Server.Mobiles.PlayerMobile.Hidden.set': cannot override
    8.  inherited member 'Server.Mobile.Hidden.set' because it is not marked virtual, a
    9. bstract, or override
    10.   CS0508: Line 5009: 'Server.Mobiles.PlayerMobile.ComputeMovementSpeed(Server.
    11. Direction, bool)': return type must be 'int' to match overridden member 'Server.
    12. Mobile.ComputeMovementSpeed(Server.Direction, bool)'
    13. Scripts: One or more scripts failed to compile or no script files were found.
     
  19. Marcis
    Offline

    Marcis Member

    Joined:
    Feb 1, 2014
    Messages:
    49
    Likes Received:
    5
    I need to see the script, is this like a fresh servuo install? Cause it appears to be modified.
     
  20. Marcis
    Offline

    Marcis Member

    Joined:
    Feb 1, 2014
    Messages:
    49
    Likes Received:
    5
    Okay I think I know where are the issues coming from, you are using ServUO core with your old scripts, is that correct?

    replace the could you would have defined with
    public override TimeSpan ComputeMovementSpeed(Direction dir, bool checkTurning)

    to

    public override int ComputeMovementSpeed(Direction dir, bool checkTurning)
    {
    if (checkTurning && (dir & Direction.Mask) != (Direction & Direction.Mask))
    {
    return RunMount; // We are NOT actually moving (just a direction change)
    }
    TransformContext context = TransformationSpellHelper.GetContext(this);
    if (context != null && context.Type == typeof(ReaperFormSpell))
    {
    return WalkFoot;
    }
    bool running = ((dir & Direction.Running) != 0);
    bool onHorse = (Mount != null);
    AnimalFormContext animalContext = AnimalForm.GetContext(this);
    if (onHorse || (animalContext != null && animalContext.SpeedBoost))
    {
    return (running ? RunMount : WalkMount);
    }
    return (running ? RunFoot : WalkFoot);
    }

    The hidden I need to see the code to help out cause, the issue is that in core they've changed so that you can no longer, override the method, which means basically implement your own changes of how things work, instead there's OnHiddenChanged() method in which you could put stuff from Hidden
     
    #20 Marcis, Feb 16, 2014
    Last edited: Feb 16, 2014
Similar Threads: start scrach
Forum Title Date
Script Support Server restarts on character creation Sep 30, 2017
The Back Room starting C# help wanted Sep 28, 2017
Archived Bug Reports new player starts in New Haven loc Sep 27, 2017
Script Support Crash at Start Sep 12, 2017
ServUO Discussion Server restarted....lost accts and builds Aug 8, 2017
ServUO Discussion How to get out of starting area + reagent spawns Aug 7, 2017
General Discussion i AlNew Player Start Aug 3, 2017