Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question SerializableWeb

Java Warlord
Joined
Nov 17, 2014
Messages
4,906
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:
java.lang.RuntimeException: The SerializableWeb being loaded is not supported by the parser.
    at com.runemate.game.api.hybrid.location.navigation.web.SerializableWeb.readExternal(icc:267)
    at com.runemate.game.api.hybrid.location.navigation.web.SerializableWeb.deserialize(icc:134)
    at productions.celestial.bots.winegrabber.Wine.onStart(Wine.java:73)
    at com.runemate.game.api.script.framework.AbstractScript.start(kob:111)
    at nul.IiiIiIiiiIII.run(fec:161)

@Cloud is that intended?
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
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.
 
Top