dev

textPage 42 of 208
50 messages on this page
Thursday, July 22, 2021
Avatar for 42795ae8775f87b323ddccb47ea216e4840f87d53be277b09bb9f80f82ed9fc3
User 42795a
I would implement some type of typing, probably strict typing
Avatar for 42795ae8775f87b323ddccb47ea216e4840f87d53be277b09bb9f80f82ed9fc3
User 42795a
Just starting to look through this, but I would definitely implement some Try-Catch for security reasons
Wednesday, July 21, 2021
Avatar for bc43431b65cc8f7fb88ae66e5cfbe175a39472cbc3db92f842c7a016ee80c451
User bc4343
So are these docs the chicken or the egg, I'm confused πŸ˜† I'll take a look today
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Mind taking a look at this and give some thoughts? I'm trying this crazy thing where I write docs first before I make the feature πŸ˜„
Think about what you want to use persistent variables for and if this would work? Anything missing from implementation? Also thoughts on the last section pls, how to prevent DB from growing infinitely
Avatar for 42795ae8775f87b323ddccb47ea216e4840f87d53be277b09bb9f80f82ed9fc3
User 42795a
...persistent variables...
This is why I am lurking in this channel right now. >:)
Tuesday, July 13, 2021
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
This is how I want teleporting to work like other games have
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
What about a friends-only and online-only teleport?
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
Honestly, still not seeing why you have allies who don't trust each other
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
If we get persistent variables then probably
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
It can't be done currently, there's no way for the system to wait for input halfway through
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
Got one for you guys, this will definitely need regex but it will be super advanced. Player types /tpr {player.name} (but only needs part of the name) the script will then guess which player to tp to, sends them a pm saying {player.name} wants to tp to them. The receiver then types /tpa {player.name} (part of name} then the script runs a teleportplayer and player 1 gets sent to player 2
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
<:bob:683552201498689536>
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
couldnt help but make the joke
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
#forgiveme
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
No content
unknown.png

unknown.png

PNG β€’ 35.0 KB

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah, that ones described in one of the advanced examples
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
\d{17} or something
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
Pretty sure I already did that
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Eg 'how to extract a steam ID from a log line'
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
Hmm πŸ€”
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I was thinking more examples of regex, no? Like building blocks you can stack together to achieve what you want
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
  1. Dunno if that info is accesible right now
  2. It's viewable on the website already, but could be a command aswell. Likely something built in is easiest here
  3. Check your the
    $who
    command πŸ˜‰
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
They are already in built commands in botman but I know it's something csmm can do
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
and then there is vanilla logging
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
thats a good starting point to start making examples around those
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
A custom command to list player beds/lcb/home with player.name and location
Command to list players set teleports
Command to figure out the last time any/specific player was in this location
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
i will add a section to cpm docu to describe all possible logging from within cpm (mostly event based)
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Could you list some of the examples you're looking for? I can make the regexes for that
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
I think the guide is a good idea with some more basic copy paste examples
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah that is a good point Peter
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
πŸ˜„
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
Also cata I suggest removing the link to the regex Wikipedia page, I took one look at that and nearly fell out of my seat
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah, regexr is so good for that. Maybe we just need a 'getting started with regexr' guide? :P
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
No content
unknown.png

unknown.png

PNG β€’ 10.8 KB

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
No content
unknown.png

unknown.png

PNG β€’ 3.4 KB

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
will immedeately change the explenation
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
realtime so changing \w to \s
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
No content
unknown.png

unknown.png

PNG β€’ 45.2 KB

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
No content
unknown.png

unknown.png

PNG β€’ 3.7 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah true!
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
so if someone copy pastes a big regex chunk into regexr
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
in detail
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
that is also in the bottom pane
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
could you incorporate that into the docs?
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
thats what I was talking about earlier
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
Yep that
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
(from regexr)