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

Question SerializableWeb

Discussion in 'Developer Support' started by Savior, Feb 12, 2016.

  1. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    I saved a web as a .nav file using the byte array FileWeb#toByteArray() returned.
    This web cannot be loaded by SerializableWeb.deserialize(byte[]).

    Code (Text):
    1. java.lang.RuntimeException: The SerializableWeb being loaded is not supported by the parser.
    2.     at com.runemate.game.api.hybrid.location.navigation.web.SerializableWeb.readExternal(icc:267)
    3.     at com.runemate.game.api.hybrid.location.navigation.web.SerializableWeb.deserialize(icc:134)
    4.     at productions.celestial.bots.winegrabber.Wine.onStart(Wine.java:73)
    5.     at com.runemate.game.api.script.framework.AbstractScript.start(kob:111)
    6.     at nul.IiiIiIiiiIII.run(fec:161)
    @Cloud is that intended?
     
  2. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    They use different serialization protocols so it's entirely possible. They are slightly backwards compatible but depending on the features that were being serialized it's likely just incompatible. You can easily convert between the two by loading the old file as a FileWeb, then adding its vertices to a SerializableWeb and reserialize. The new format is more robust and can support features that the old format couldn't.
     
    Savior likes this.

Share This Page

Loading...