dev

textPage 5 of 208
50 messages on this page
Saturday, March 25, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It's possible somewhere along the line that number becomes a string, javascript do be javascript :p
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
if a number 0 returns false in a conditional, but if a string, it returns true
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
i guess it depends if item.quality is a number or a string
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
is item.quality a boolean? under what circumstances does it evaluate to false? (i.e., equal to 0 or null or only when equal to null?)
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
So might have something more going on..
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
imho i'd leave it at quality 1
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
Yep either is acceptable but error is definitely not ideal ๐Ÿ™‚
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
probably should set a random between 1 and 6 or just make that item just a qual 1 item
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
Where's the code behind Economy? The shop is doing a bizarro thing where when an admin adds a new item and sets 0 for the quality, it causes 7 Days to actually try to spawn a quality 0 item (not possible) that leads to an error. This is made extra confusing because if the player leaves quality blank, the UI displays... 0.
Monday, March 20, 2023
Avatar for 7dde3a6349e05398b1f922c198c870bf886f0f1570665c28c3d7436d86380041
User 7dde3a
@User 22055452 Hi buddy, could you please switch our 1943 instance from my account to the account of Igory as per his request? We do have 2 patreon accounts at the minute but it's a mess to maintain ;-).
Thanks for your help.
Saturday, February 11, 2023
Thursday, February 9, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Its a looooong story but essentially; not really. The xbl auth only meant for ingame authentication. No real web way logging in :(
Wednesday, February 8, 2023
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Dumb question. Can't you make them login with steam as usual, and when they reach the profile page, have in there a login with xbl thing? Not sure how the link discord part works... https://xbl.io/getting-started
Monday, February 6, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Something like this could work but it still needs some way for XBL players to link a steam account to their profile somehow. That's a tricky one as it would need to happen securely (as in you cannot claim someone elses Steam account of vice versa). It should not be the server admin doing this but should be the player themselves if we want to do this properly.
Sooo that means making some sort of alternative login flow for CSMM to link these two, and that's a pretty big job :p
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Back to the XBL voting players @User 22055452
I can think of changing every reference to
player.steamId
in vote.js to
voteId
and adding this:
    if (_.isEmpty(player.xblVoteId)) {
      const voteId = player.steamId;
    } else {
      const voteId = player.xblVoteId;
    }
In my head next steps would be adding a button named
Set XBL Vote Id
in the player profile, that could be disabled if the steam Id does not start with XBL, and adding the xblVoteId field in the database.
But those are beyond me.
That code could be wrong, as I'm really guessing there, lol.
What do you think?
Sunday, February 5, 2023
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
I figured out what happened.
When trying to swipe to go down the page, if you start the swipe on the header of the table, it removes that column.
Friday, February 3, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
The table is editable, you probably accidentally deleted the name column. The button you pressed resets the table to it's original state :)
Thursday, February 2, 2023
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
But, I just found out if you tap that little button with 4 squares on it, the name popped up.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
For some reason on mobile, the player name isn't showed on the dashboard tab.
This is scrolled all the way to the left.
Screenshot_20230201-081028.png

Screenshot_20230201-081028.png

PNG โ€ข 136.9 KB

Sunday, January 29, 2023
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Works great, thanks!
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
<:facepalm:364780978067210241>
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Sure thing, occurrences ๐Ÿ˜„
image.png

image.png

PNG โ€ข 7.4 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ahh my bad, I said I would merge to main but I let it sit in development and forgot about it <.<
Incoming...
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
pushing my luck a bit...
Missing helper: "ocurrences"
from https://github.com/Budibase/handlebars-helpers#occurrences can we have this? ๐Ÿ˜…
Saturday, January 28, 2023
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
I have the new home page look.
Just not the ticket option.
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
Not enough of a git-wizard to know how to update when the update didn't come in a new version, sorry :/
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Yeah, I just updated it.
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
Oh yeah self hosting
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
I no gots it.
Last one I have is Rate Limit.
Avatar for e5e1a1e030d906e6b0758aa714298a47ac1eb96bd571c5acc968a191bb9574fb
User e5e1a1
Settings > Discord > Notifications - scroll to the bottom
image0.jpg

image0.jpg

JPG โ€ข 21.3 KB

Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Where would this be?
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Wow, awesome!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Wont make a new version for it but I'll push to main
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Maybe next time!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ah gotcha, forgot about that one
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Yeah, just saw that. Sorry.
There is no way to set a discord channel for the admin tickets to go to.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
And I don't really know what needs to be fixed there?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Nope, you can check the changelog to know that :)
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Is there a fix for the admin tickets?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I had to split it up in two separate helpers for reasons
Friday, January 27, 2023
Avatar for 2bffa0f5cab2a92d04b2e63aae81661c79638a7959c6e2f44f576d976e0aa78a
User 2bffa0
Agreed
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
So many possibilities for this.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Other than that, seems to work for me
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Call it 'string' instead of pretty, maybe?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Cool! I've got some stuff but not ready yet.
I've gone with a little different approach; one helper called
timeDiff
Usage is something like
{{ timeDiff  2023-01-28T00:00:00.000Z}}
-> returns seconds until that date
Would also work for dates in the past (returns a negative number then)
I'm debating whether or not to add 'pretty print' functionality.
eg
{{ timeDiff  2023-01-28T00:00:00.000Z pretty}}
->
One day

{{ timeDiff  2023-01-26T00:00:00.000Z pretty}}
->
One day ago
Thoughts? ๐Ÿ˜„