• 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.

How do I get a clickable link that reads the "Pachycephalosaurus, Young Adult" and can be clicked

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
I have forgotten the syntax...

{
"name": "aTest2",
"explanation": "want to have a clickable link",
"categories": [
"Test"
],
"resultPattern": "{aTest2}",
"tables": [
{
"name": "aTest2",
"entries": [
{
"m": 2,
"v": "{\"http://skoll.xyz/mythras_eg/enemy_template/1036/\"|\u00adPachycephalosaurus, Young Adult}"
},
]
}
]
}
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
hmm. the old link example - there seems to be a problem, probably at my understanding.

Would it be possibly for you to try the old syntax in the old Campaign logger. Using the file above as example with just the link syntax. It seems that I am typing something wrong....
 

ELF

Generator Sage
Wizard of Story
Wizard of Combat
I noticed when I paste Hannu's generator to the old Campaign Logger interface, new id, configuration and variable related lines are added:

{
"id": null,
"categories": [
"Test"
],
"explanation": "want to have a clickable link",
"name": "test_link",
"reference": null,
"resultPattern": "{aTest2}",
"tables": [
{
"set": null,
"entries": [
{
"set": null,
"export": null,
"m": 2,
"v": "{\"http://skoll.xyz/mythras_eg/enemy_template/1036/\"|Pachycephalosaurus, Young Adult}"
}
],
"explanation": null,
"export": null,
"name": "aTest2"
}
],
"variables": null,
"globals": null,
"wrapResultInCurlyBraces": false,
"folderPath": null
}

@JochenL, is this a temporary thing or a permanent change?
 

JochenL

CL Byte Sprite
Staff member
Adamantium WoA
Wizard of Story
Wizard of Combat
Gamer Lifestyle
Borderland Explorer
I noticed when I paste Hannu's generator to the old Campaign Logger interface, new id, configuration and variable related lines are added:



@JochenL, is this a temporary thing or a permanent change?

Interesting! I did not change that part directly :)
 
  • Like
Reactions: ELF

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
This is the exact correct syntax that in the production campaign logger works in case somebody wants to do this also:

Might be worth to update a cheatsheet with an exact example that works.

{
"name": "aTest2",
"explanation": "want to have a clickable link",
"categories": [
"Test"
],
"resultPattern": "{aTest2}",
"tables": [
{
"name": "aTest2",
"entries": [

{
"m": 2,
"v": "[Pachycephalosaurus, Young Adult](http://skoll.xyz/mythras_eg/enemy_template/1036/)"
},
]
}
]
}
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
Hmmm. Now the above works great on mac browsers. but on iPad Chrome or Safari it just shows Pachycephalosaurus, Young Adult](http://skoll.xyz/mythras_eg/enemy_template/1036/) instead of clickable link?
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
grr. forget it. will report again if I see it again
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
hmmm. this is quite interesting - I pasted the above code file - it used to work yesterday... no changes at all now it shows2021-02-26_21-11-17.png
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
in all the browsers. What is happening?

The above does not work - neither does the full fledged version (that has all the encounter chart beasties) . The big one worked in the morning.

Is there memory leak or something.

This is easy to try. Add the above json to campaign logger. Run the result.
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
Now i will need to find what exact syntax will work again... which was the problem originally. I havelots of these. So could you look at my example above and show the working syntax With the example file.
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
So this works now with old Campaign logger
Please note there needs to be the quote escapes in the syntax otherwise will not work

{
"id": null,
"categories": [
"Test"
],
"explanation": "",
"name": "aTest",
"reference": null,
"resultPattern": "{aTest}",
"tables": [
{
"set": null,
"entries": [
{
"set": null,
"export": null,
"m": 1,
"v": "{\"http://skoll.xyz/mythras_eg/enemy_template/122/\"|Allosaurus}"
}
],
"explanation": null,
"export": null,
"name": "aTest"
}
],
"variables": null,
"globals": null,
"wrapResultInCurlyBraces": false,
"folderPath": null
}
 
  • Like
Reactions: ELF

ELF

Generator Sage
Wizard of Story
Wizard of Combat
Now i will need to find what exact syntax will work again... which was the problem originally. I havelots of these. So could you look at my example above and show the working syntax With the example file.
Your original generator code now works fine both at https://campaign-logger.com/ and https://generator.campaign-logger.com/ (apart from Skoll's site being down at the moment) - but I predict it will stop working on next Friday, when @JochenL introduces the new syntax to production environment.

I suspect that the reason why it stopped working were the changes Jochen recently made to fix nested postprocessing directives (see post #6), but this is just a guess on my part.
 
Last edited:

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
skolls site is up again.
his backend system needs a linux upgrade and he is working on it.

regarding the syntax the escape quotes seem to be mandatory for it to work in the old. have not tried the new.
 

ELF

Generator Sage
Wizard of Story
Wizard of Combat
regarding the syntax the escape quotes seem to be mandatory for it to work in the old. have not tried the new.
Yeah, escaping the quotes indeed seems mandatory. I tried several variations and never had success without that.

Will you be able to handle the upcoming syntax change in a week's time?
 

Hannu

Mythras Guru
Gold WoA
Wizard of Story
Wizard of Combat
hmm, perhaps this should be in the cheat sheet.

So what is the syntax change and what environments. I have no knowledge and no preparation so far.
 
Top