Comments (5)
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.
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.
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.
- In
≤v2.36.1
:stateUnmarshal()
, L120 - In
≥v2.37.0
:stateUnmarshal()
, L105
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.
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.
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)
- FEAT: Add more `Setting` API control types
- StoryMenu broken with new event system HOT 1
- StoryInterface and UIBar
- ariaClick always setting tabindex to 0 HOT 7
- Document Math.easeInOut? HOT 3
- Upgrade jQuery to the latest version (3.7.1) HOT 5
- Update `<Array>.delete…` methods
- Update `Dialog` API to allow multiple instances?
- Quick Accessibility option with the `<<type>>` macro speed? HOT 2
- ``` ``` seems to be discarded by 2.37.0 alpha 17 HOT 2
- Add a method to make truly modal Dialog elements HOT 3
- Unused code in develop/State.prngCreate HOT 3
- Link markup does not recognize HTML Symbol entities HOT 2
- Add setting to reduce impact of expired moments HOT 2
- Provide a way to halt future navigation HOT 6
- bookmark information missing from documentation for v2.37.0 HOT 1
- Suggestion: improve warning for Save size in 2.37.0 docs.
- Twine stacks multiple versions of file when you import to web version, export, then import to desktop version. HOT 3
- Let DOM macros fail silently as a config option HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sugarcube-2.