Question SerializableWeb

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

  1. Savior

    Savior I GOT I GOT I GOT I GOT

    Joined:
    Nov 17, 2014
    Messages:
    2,914
    Likes Received:
    1,119
    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 The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,379
    Likes Received:
    783
    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...