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

Issues with old runuo 2.0 rc1

Discussion in 'General Discussion' started by chris1212, Feb 7, 2017.

  1. chris1212
    Offline

    chris1212 New Member

    Joined:
    Jan 9, 2017
    Messages:
    25
    Likes Received:
    0
    Hey guys, I have a pretty old server of mine I'm trying to revive, it runs with no issue and I've had a few friends on but it is so outdated I feel its time to breath some new life into it.. I can't find any information about updating from runuo 2.0 rc1 to any other version "newest being 2.7" and I already tried pushing my scripts over to Servuo but 90% of them have script errors and it would take forever to clean it all up.. I have years and years worth of work and custom wrote scripts.. not sure what to do.
     
  2. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    992
    Likes Received:
    123
    Unfortunately, if you want a more upgraded shard, you'll have to bite the bullet and merge your scripts into ServUO. Worry not though, the community is here to help! Just post any errors you're getting, along with scripts if needed ;)
     
  3. chris1212
    Offline

    chris1212 New Member

    Joined:
    Jan 9, 2017
    Messages:
    25
    Likes Received:
    0
    How would I go about merging them? a simple drag and drop or is there something I am missing haha
     
  4. Tasanar
    Offline

    Platinum Donator

    Joined:
    Oct 16, 2014
    Messages:
    1,953
    Likes Received:
    64
    You need to merge all your code to comply with the new core. It will take hours of edits and even longer if little or no knowledge of C++. I couldn't do it on my own either.
     
  5. PyrO
    Offline

    PyrO Active Member

    Joined:
    Jan 27, 2015
    Messages:
    593
    Likes Received:
    28
    C# :)

    But I think winmerge could help you, if your custom code is tied right into the runuo core. If they are seperate files it will make it mostly drag and drop (at least on those files)
     
  6. chris1212
    Offline

    chris1212 New Member

    Joined:
    Jan 9, 2017
    Messages:
    25
    Likes Received:
    0
    I tried drag and drop for my mob scripts and it throws tons of errors like:
    public override void GetDamageTypes( Mobile wielder, out int phys, out int fire, out int cold, out int pois, out int nrgy )
    {
    phys = 1;
    fire = 0;
    pois = 0;
    nrgy = 0;
    cold = 99;
    will throw an error " CS0115: Line 21: 'Server.Items.SilenceStrike.GetDamageTypes(Server.Mobile, out int, out int, out int, out int, out int)': no suitable method found to override"
    and public override void OnHit( Mobile attacker, Mobile defender )
    also throws errors saying "no suitable method found to override"

    -edit sorry not just mob scripts but weapon scripts
     
  7. PyrO
    Offline

    PyrO Active Member

    Joined:
    Jan 27, 2015
    Messages:
    593
    Likes Received:
    28
    there was a change in the core, change Mobile wielder for example to IDamageable, you may need to add in a check if it is a mobile though and then you can cast it back to Mobile.
     
  8. Hammerhand
    Offline

    Hammerhand Active Member

    Joined:
    Mar 26, 2013
    Messages:
    722
    Likes Received:
    72
    That changed with Mondains Legacy. It now has 7 different damage types, added in Chaos & Direct. This is from the ArcticDeathDealer
    Code (C#):
    1.         public override void GetDamageTypes(Mobile wielder, out int phys, out int fire, out int cold, out int pois, out int nrgy, out int chaos, out int direct)
    2.         {
    3.             cold = 50;
    4.             phys = 50;
    5.  
    6.             pois = fire = nrgy = chaos = direct = 0;
    7.         }
    You would need to make sure all your weapons were set up this way.
     
  9. PyrO
    Offline

    PyrO Active Member

    Joined:
    Jan 27, 2015
    Messages:
    593
    Likes Received:
    28
    Hammerhand is right, that place only added more parameters, my bad. But in some cases you will come across the IDamageable :p
     
  10. chris1212
    Offline

    chris1212 New Member

    Joined:
    Jan 9, 2017
    Messages:
    25
    Likes Received:
    0
    Oh boy.. This could take a very long time
     
  11. Hammerhand
    Offline

    Hammerhand Active Member

    Joined:
    Mar 26, 2013
    Messages:
    722
    Likes Received:
    72
    If it took no time at all, it wouldn't be worth it. And it makes for a good learning experience. ;) Plus there are people around here that might help, ya' never know. :D
     
  12. chris1212
    Offline

    chris1212 New Member

    Joined:
    Jan 9, 2017
    Messages:
    25
    Likes Received:
    0
    Well what i've tried so far is beyond compare 4 to merge but it does not really do anything and I mean I can drag and drop the scripts into the folder myself so I do not know what the merge program is even for. What I'm seeing right now is I will have to modify all the weapons to use that specific line of code which I mean is not terrible just time consuming. I wonder if there is anyway to streamline this process
     
  13. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    992
    Likes Received:
    123
    When you use a program like Winmerge, you are comparing two "of the same" files (one on the left, and one on the right). An example would be BaseCreature.cs. You could compare your BaseCreature.cs to the BaseCreature.cs in ServUO (or whatever the core is you're going for). You would then do that for all the "common" files that are throwing errors (BaseCreature, BaseWeapon, PlayerMobile, etc).
     
  14. chris1212
    Offline

    chris1212 New Member

    Joined:
    Jan 9, 2017
    Messages:
    25
    Likes Received:
    0
    I guess its just more confusing to me than it should be lol
     
Similar Threads: Issues old
Forum Title Date
The Back Room Git issues behind firewall(?) Mar 25, 2017
General Discussion City Loyalty System Issues Mar 11, 2017
Script Support Script item drop rate change issues Mar 4, 2017
Archived Bug Reports summon familiar issues Feb 20, 2017
Archived Bug Reports Corpse skin issues Feb 20, 2017
Script Support IDamageable Issues Jan 19, 2017
Archived Bug Reports Ethereal Retouching Tool issues Jan 16, 2017