• Hello game master! Welcome to our growing community. Please take a moment to Register (top right button, see how: Slides).

    If you use Campaign Logger, you can use the same login details - we've linked the app to this forum for secure and easy single sign-on for you.

    And please drop by the Introductions thread and say hi.

I am getting this when trying to add a generator

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
Cannot add/update generator.

Generator is valid JSON according to jsonformatter.curiousconcept.com
 

JochenL

CL Byte Sprite
Staff member
Adamantium WoA
Wizard of Story
Wizard of Combat
Gamer Lifestyle
Borderland Explorer
I am finding this in the logs:

Coin Glorantha (Line: 131, Col: 16, Idx: 7812) - (Line: 131, Col: 19, Idx: 7815): Exception during deserialization ---> System.OverflowException: Arithmetic operation resulted in an overflow.
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
Interesting - are you limiting my treasure sizes... :)
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
Hmmm. I have these as preliminary sizes (trying out things)

{
"name": "CoinAmount",
"entries": [
{
"m": 300,
"v": "{dice:2d6}"
},
{
"m": 200,
"v": "{dice:3d60}"
},
{
"m": 100,
"v": "{dice:5d100}"
},
{
"m": 2,
"v": "{dice:10d600}"
},
{
"m": 1,
"v": "{dice:5d18000}"
},
{
"m": 1,
"v": "{dice:6d60000}"
}
]
},
{
"name": "CoinPreciousAmount",
"entries": [
{
"m": 300,
"v": "{dice:2d6}"
},
{
"m": 50,
"v": "{dice:2d60}"
},
{
"m": 1,
"v": "{dice:4d60}"
}
]
},
 

JochenL

CL Byte Sprite
Staff member
Adamantium WoA
Wizard of Story
Wizard of Combat
Gamer Lifestyle
Borderland Explorer
Hehe, not really, at least not consciously. :)
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
Not that I would give any of the higher amounts. Small tens of thousands are likely the max I would share.
 

JochenL

CL Byte Sprite
Staff member
Adamantium WoA
Wizard of Story
Wizard of Combat
Gamer Lifestyle
Borderland Explorer
Ah, OK, m:300 might be a problem. I'll check.
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
It would be good to be able to say (dice:2d6d100} Is that possible now days
 

JochenL

CL Byte Sprite
Staff member
Adamantium WoA
Wizard of Story
Wizard of Combat
Gamer Lifestyle
Borderland Explorer
Yes, m must be: 0<= m <= 255
 

JochenL

CL Byte Sprite
Staff member
Adamantium WoA
Wizard of Story
Wizard of Combat
Gamer Lifestyle
Borderland Explorer
No. Chaining like this does not work. But you can do:
Code:
{
    "resultPattern": "{var:roll}",
    "variables": {
        "roll": "{dice:{dice:2d6}d100}"
    }
}
 

ELF

Generator Sage
Wizard of Story
Wizard of Combat
Sadly this does not work:
Code:
{math:{dice:1L/2d10}*100000}
The output is just:
{math:6*100000}

So currently you have to randomize city populations using an intermediate step:
Code:
export:
      roll: "{dice:1L/2d10}"
      population: "{math:{g:roll}*100}, 000"

I also have to have a space in the output in order to make the comma visible.

Edit: How the output mixes numeric output with a string is admittedly ugly, but since there are no numeric variables anyway, it probably does not matter.
 
Last edited:
Top