dev

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

unknown.png

PNG โ€ข 18.5 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Practically, it's probably easiest to just store numbers and strings
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yep for sure ๐Ÿ˜„
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
I'll think about it and come up with something ๐Ÿ˜›
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
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.
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
nah. I was thinking about overflowing it, but if that's the case.. ๐Ÿ˜›
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Bad examples from me haha
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Not just numbers :p
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
ohh
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Oh it's just JSON serializable data
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
are they stored on 32-bit?
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
Sure thing ๐Ÿ˜„
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
So please try and make some crazy shit and let me know if something breaks haha
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yep indeed :p
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
Like. possible quests, admin command states, whatever. That'll be Huge ๐Ÿ˜„
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
Great ideas. That's neat actually, it opens up so much serverwise.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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 ๐Ÿ˜„
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
loool
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
now :p
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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.
I'll probably make a more public announcement tomorrow but first some zzz's ๐Ÿ˜„
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
when'll that be testable? ๐Ÿ‘€
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It's live ^^
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Oh hehe indeed, it's working already!! ๐Ÿ˜„
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
CI jobs are running
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
Well it worked, showed me what I was missing ๐Ÿ˜
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It's going live in just a little bit on that new instance
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Just showing off the new execution logging hehe :p
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
It's looping through all players, so one command per player
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
Oh of course
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
๐Ÿ˜
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
Expected 2, got 3
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
Wrong number of parameters
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
๐Ÿ‘€
unknown.png

unknown.png

PNG โ€ข 259.3 KB

Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
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
.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Not redis :P but can't fault you for thinking that, the API looks similar
Avatar for 8a7f5b86afa6034d1308678c8bf79546b2ee3866bf474332df429e70599b6ffc
User 8a7f5b
nah, I'm dumb lmao