Code Monkey home page Code Monkey logo

Comments (17)

valentine195 avatar valentine195 commented on September 24, 2024 1

Yes please

Hi, this has been added in 6.1.0. Please see Saving Results in the Readme.

from dice-roller.

umiaki avatar umiaki commented on September 24, 2024

Yes please

from dice-roller.

umiaki avatar umiaki commented on September 24, 2024

Does not seem to work :/
Tried both with global settings and dice+:

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

Can you give me more information? Did you update the plugin?

Are there any errors in the developer console (Ctrl/Shift/i or Cmd/Alt/i)?

This works for me... πŸ€”

from dice-roller.

umiaki avatar umiaki commented on September 24, 2024

Yes, both obsidian and plugin are up to date.

main.ts:173 Uncaught (in promise) TypeError: Cannot set property '28' of undefined
at DiceRollerPlugin.eval (eval at (app.js:1), :2805:52)
at Generator.next ()
at fulfilled (eval at (app.js:1), :28:58)

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

Can you try 6.2.1?

from dice-roller.

umiaki avatar umiaki commented on September 24, 2024

Well I don't get the error in console now, but it still does not work. Neither global settings or +:/

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

Hmm, really bizarre. I can't get replicate this. Can you try closing and re-opening Obsidian, and if that doesn't work, uninstalling and re-installing the plugin?
dice

from dice-roller.

umiaki avatar umiaki commented on September 24, 2024

Yeah, forgot to mention that. I've already done both of those things.
Reinstall only deleted my stored formulas but still does not work.
Testing on simple dice: 3d4 + 3 and dice+: 3d4 + 3 - switching to another note and back rerolls the dice.
You said there is a chance this does not work for you. I would pursue why this does not work, it might not work for other people more often.
I hope I'm using the plugin right, friday evening, maybe I've missed some simple step?

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

Ah, I think I may know why. Do they save if you close the note and re-open it?

from dice-roller.

umiaki avatar umiaki commented on September 24, 2024

Yes :)
Sometimes they change but that is when some popup shows preview of other page, which I guess is the same as swithing the note.

from dice-roller.

umiaki avatar umiaki commented on September 24, 2024

Btw I'm not sure how the plugins work, but can't you just store the result in the note itself?
Like 'dice: 3d6 + 10', roll -> 'dice: 3d6 + 10 = 15'?
This would be useful, because then I can just share the note with someone who would have the same result.
This approach would then be useful in statblock as well.

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

That could work for dice, but not the tag, table or block rollers. I’m also not sure I would want the plugin to modify files.

I have a fix coming soon for the issue you’re running into, though.

from dice-roller.

umiaki avatar umiaki commented on September 24, 2024

Right.
Great, many thanks!

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

Okay, I think 6.3.0 will fix these issues. Please try it out and let me know.

from dice-roller.

umiaki avatar umiaki commented on September 24, 2024

Yeah, works fine with closing the note or swithing to another and back or going to edit mode and back.
However, dice change if you go to edit mode and change something within the paragraph, like:
"Test paragraph rolling dice+: 3d4 + 3" -> "Test this paragraph rolling dice+: 3d4 + 3"
It also changes sometimes if you quickly go to anoter note, close it and open the one with dice. This is kinda random and I'm not sure why it happens.

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

Thank you! I will try to investigate. The way this feature works isn't super robust - it's hard to find the context of which roller each result is tied to, especially if changes are made quickly, unfortunately.

from dice-roller.

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.