Code Monkey home page Code Monkey logo

Comments (5)

henck avatar henck commented on August 11, 2024

That looks like a bug, because Trizbort.io does support up/down directions. It's exporting them wrong. You're welcome to contribute (see also issue #12).

from trizbort.

henck avatar henck commented on August 11, 2024

I can see that Trizbort at this point does not export up/down directions to quest. However, this information is available to export. If I could have a sample Quest XML snippet that shows what the code should look like, I can add the export.

from trizbort.

Happy-Ferret avatar Happy-Ferret commented on August 11, 2024

I'd be interested in the "secret sauce" to that myself.
I was unable to get "up/down" exports working in general.

Am I right to assume CodeGenerator.dirToStr(dir: Direction) has to be extended to also accept ConnectorType for this to work properly?

from trizbort.

henck avatar henck commented on August 11, 2024

@Happy-Ferret Yes. dirToStr should probably be moved out of CodeGenerator, since it might be pretty specific per adventuring system. Indeed, the trick is to find the Direction, and also look at the ConnectorType to see if it's a special case.

Trizbort thinks in terms of 16 directions. The cardinal ones (N,NE,E, ...) and also (NNE, NSE, ...). Any direction may be marked as special. That is, up/down or in/out or even something custom.

For Tads 3 code generation, the Tads generator should have its own dirToStr that performs this check and generate the correct code. For Quest, similar, although I just looked into that and couldn't (quickly) find what Quest expects to find in its XML.

from trizbort.

henck avatar henck commented on August 11, 2024

Up/down and in/out support is now available for all generators. dirToStr now takes ConnectorType to make this possible.

from trizbort.

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.