dev
textPage 16 of 208
50 messages on this page
Sunday, January 2, 2022
User 8a7f5b
I'll but not today ๐
User bddf69
Let me know if anyone tests the persistent vars branch please ^^
User 8a7f5b
hmm I'll check it out
User bddf69
Anyways, I'm going to bed
User bddf69
So you can maybe reuse that data? ๐
User bddf69
A lot of metadata is loaded there too about the available helpers and the available commands
User bddf69
and has support for code completion stuff etc
User bddf69
Monaco is the open source editor that vscode uses
User bddf69
But before you do all of this, you should check out what I've done with Monaco so far
User bddf69
Yeah that'd be pretty cool
User bddf69
If you store weird JSON stuff, the variables viewer thingy is going to flip haha
User 8a7f5b
I've recently implemented easyMDE into our ticketing system. Maybe something like that but with handlebar buttons?

unknown.png
PNG โข 18.5 KB
User bddf69
Practically, it's probably easiest to just store numbers and strings
User bddf69
Yep for sure ๐
User 8a7f5b
I'll think about it and come up with something ๐
User 8a7f5b
Maybe that'll need some frontend work too, on the custom commands part. Managing those stuff can lead to some confusion on the "simple" user side.
User 8a7f5b
nah. I was thinking about overflowing it, but if that's the case.. ๐
User bddf69
Bad examples from me haha
User bddf69
Not just numbers :p
User 8a7f5b
ohh
User bddf69
Oh it's just JSON serializable data
User 8a7f5b
are they stored on 32-bit?
User 8a7f5b
Sure thing ๐
User bddf69
So please try and make some crazy shit and let me know if something breaks haha
User bddf69
Yep indeed :p
User 8a7f5b
Like. possible quests, admin command states, whatever. That'll be Huge ๐
User 8a7f5b
Great ideas. That's neat actually, it opens up so much serverwise.
User bddf69
Some more ideas I have for the playground:
- Load and save configs to CSMM. So no more clunky settings page editors
- 'Live mode' - run the commands against real data, targeting players that are currently online
- Add a console window so you can easily view logs while testing smth (will probably be on the editor page, maybe as a tab so you can switch between data and console)
Some of these are more ambitious than others ๐
User 8a7f5b
loool
User bddf69
now :p
User bddf69
@ anyone who reads this channel:
I've added persistent variables to CSMM
Supports 3 new helpers atm:
{{getVar "test"}}{{setVar "test" 1}}{{delVar "test"}}For example:
Counter is at: {{getVar "counter"}} {{setVar "counter" (add (getVar "counter") 1)}}
This also includes the new playground web app I've been showing screenshots about :p You can find a link to it on the settings page, under experiments.
I've deployed it on a new instance for beta testing. You can find it here: https://persistent-variables.csmm.app
Please feel free to add your test server to that instance and play around with it.
Please feel free to add your test server to that instance and play around with it.
I'll probably make a more public announcement tomorrow but first some zzz's ๐
User 8a7f5b
when'll that be testable? ๐
User bddf69
It's live ^^
User bddf69
Oh hehe indeed, it's working already!! ๐
User bddf69
CI jobs are running
User e5e1a1
Well it worked, showed me what I was missing ๐
User bddf69
It's going live in just a little bit on that new instance
User bddf69
Just showing off the new execution logging hehe :p
User e5e1a1
It's looping through all players, so one command per player
User e5e1a1
Oh of course
User e5e1a1
๐
User e5e1a1
Expected 2, got 3
User e5e1a1
Wrong number of parameters
User 8a7f5b
It's not a cpm function, it's built into the the CSMM Discord panel itself. As for storage, it's stored in the
sdtdconfig table under chatBridgeDCPrefix and chatBridgeDCSuffix.User 23fa64
Hi Jani, What are the CpmSettings.xml variable for this? As setting it in the CSMM panel. Do not appear to write this to this file to be loaded with the chjanged values.
Wednesday, December 29, 2021
User bddf69
Not redis :P but can't fault you for thinking that, the API looks similar
User 8a7f5b
nah, I'm dumb lmao
