GithubHelp home page GithubHelp logo

Comments (5)

tmedwards avatar tmedwards commented on September 14, 2024

You're looking at two completely different functions.

The public State.unmarshalForSave() API has never called Engine.show().

The private Save/unmarshal() API used to do so, but that did change for various reasons, yes.

Since State.unmarshalForSave() hasn't changed in this regard, and you've never been able to directly call Save/unmarshal(), what exactly is the problem?

from sugarcube-2.

SjoerdHekking avatar SjoerdHekking commented on September 14, 2024

Fair points.

I try to use State.unmarshalForSave() in 2.37.0-alpha.18. After I call this function, I expect to be forwarded to the correct passage, which doesn't happen. If you take a look at my first and second link and compare them you see in 2.36, there is Engine.show(), but in the alpha it's missing.

If you want a test case I'd happily supply one!

from sugarcube-2.

tmedwards avatar tmedwards commented on September 14, 2024

After I call this function, I expect to be forwarded to the correct passage, which doesn't happen.

The player is, just as in the current version. That's what the call to momentActivate() at the bottom does. Now, the newly active moment is not presented/shown to the player by that, but that's true of the current version as well.

 

If you take a look at my first and second link and compare them you see in 2.36, there is Engine.show(), but in the alpha it's missing.

I did look at your links. As I pointed out in my last reply, you're linking to completely different functions, from different APIs, with one not even being callable by you.

You're comparing apples to kumquats by associating a public State API with a private Save API.

The public State.unmarshalForSave() API is served by the functions.

As you can see, that particular API is essentially unchanged between versions. All calls to it and the resulting behavior will be the same.

I don't know what you think you're seeing by manually calling State.unmarshalForSave(), however, neither version updates the screen.

If you are seeing something, then it definitely should not be from calling State.unmarshalForSave().


Question: Why do you keep attempting to conflate a State API with an internal Save function?

Yes, the internal only Save unmarshal() function did change, but it calls State.unmarshalForSave() rather than the other way around. Meaning your calls to State.unmarshalForSave() are unaffected.

I really don't understand why you keep pointing at the Save function as if it proves some point wrt. the State API.

from sugarcube-2.

tmedwards avatar tmedwards commented on September 14, 2024

To be clear. The only APIs that can call Save unmarshal() are from Save because it's not public. Meaning the only public APIs affected by changes to it are Save APIs.

In other words, no State APIs have a dog in that fight, State.unmarshalForSave() or otherwise.

from sugarcube-2.

SjoerdHekking avatar SjoerdHekking commented on September 14, 2024

Excuse me for misunderstanding the two. Thanks for your time, I greatly appreciate it. Let's close this issue, for some odd reason, I saw behaviour that indeed doesn't work again after testing in both versions.

from sugarcube-2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.