Generator UI Public Beta

JochenL

CL Byte Sprite
Staff member
CL Add-on Dev
Wizard of Adventure
#1

mKlaumann

New member
CL Add-on Dev
#2
Small update:

In preparation to give you the ability to share generators with others we implemented some new functionality.

It is now possible to create Execution Tokens for you generators. This means, that you can allow others to run your generator without sharing your source.

There is a new button in the card view (as of now only there, will probably be made available to list view on Monday)
to create execution tokens. As it is a WIP right now, you need to send a POST HTTP request to the server right now to execute this but this will change in the near future.

Check it out if you wish to.
 

JochenL

CL Byte Sprite
Staff member
CL Add-on Dev
Wizard of Adventure
#4
Post an empty body to that link and receive a JSON body containing the result.
You can easily do this with jQuery's ajax() Method for example.
 

ELF

Generator Sage
Staff member
CL Add-on Dev
#6
Currently the generator UI (and the generator tokens) allow calling only the generator's main table (resultPattern). Most of the library generators produce vastly different results depending on which subtable is called - try for example {lib:color} vs. {lib:color#yellow} vs. {lib:color#eye} vs. {lib:color#hair} vs. {lib:color#toned} vs. {lib:color#metallic} vs. {lib:color#modern}, etc.

Please add the possibility to pass also the subtable parameter to the call (like {lib:color#word}, not just {lib:color}.

Perhaps the token generator dialog could allow specifying also an optional subtable, and support multiple tokens per generator (each for a different subtable)?
 

JochenL

CL Byte Sprite
Staff member
CL Add-on Dev
Wizard of Adventure
#7
This could be done but it is low prio as you can easily work around this by creating a custom generator with a result pattern equal to your sub table.
 

ELF

Generator Sage
Staff member
CL Add-on Dev
#8
This could be done but it is low prio as you can easily work around this by creating a custom generator with a result pattern equal to your sub table.
A fully implemented library generator would have 19 standardized entry points (plus likely some custom entry points on top of those). It would not be a very handy workaround to fill most of the generator lists with (almost alike) wrappers. :(

Would it be more viable to continue using just a single token per generator, but also pass an optional table name as a call parameter (which could be null)? This would also be more flexible at least for the user.
 

ELF

Generator Sage
Staff member
CL Add-on Dev
#9
There is a new button in the card view (as of now only there, will probably be made available to list view on Monday)
to create execution tokens. As it is a WIP right now, you need to send a POST HTTP request to the server right now to execute this but this will change in the near future.
It seems that the option to generate execution tokens has disappeared. Is that intentional?
 

ELF

Generator Sage
Staff member
CL Add-on Dev
#14
No need for that - the system had logged me out in the meantime, and after I logged in, the token links were back.

But the weird part is that I saw this issue yesterday on a fresh laptop which had not accessed the Generator UI site before. Can this be some Azure strangeness?
 

JochenL

CL Byte Sprite
Staff member
CL Add-on Dev
Wizard of Adventure
#15
I cannot imagine how. The files are up to date and I doubt that Azure changes them randomly. Also there was no service problem notification. Do you use a proxy? Maybe a caching issue on that side?
 

ELF

Generator Sage
Staff member
CL Add-on Dev
#16
As far as I'm aware, there is no proxy in either location that I witnessed this issue on (not in my settings anyway). Yesterday I saw this on a new laptop that could not have cached anything from Campaign-Logger.com, and today on my home PC on which I had previously seen (and used) the token generation links. Strange.

But thanks for checking this!
 
Top