dev
textPage 5 of 208
50 messages on this page
Saturday, March 25, 2023
User bddf69
It's possible somewhere along the line that number becomes a string, javascript do be javascript :p
User bddf69
Does it error when you set nothing or only when you fill in 0?
User a12f6e
if a number 0 returns false in a conditional, but if a string, it returns true
User a12f6e
i guess it depends if item.quality is a number or a string
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?)
User bddf69
So might have something more going on..
User bddf69
That's weird, the code does a check to see if quality is 0 and omits it if so
https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/blob/master/worker/processors/sdtdCommands/commands/claim.js#L61
https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/blob/master/worker/processors/sdtdCommands/commands/claim.js#L61
User 374c5d
imho i'd leave it at quality 1
User a12f6e
Yep either is acceptable but error is definitely not ideal ๐
User 374c5d
probably should set a random between 1 and 6 or just make that item just a qual 1 item
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
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.
Thanks for your help.
Saturday, February 11, 2023
User bddf69
maybe maybe got a fix for event duplication :o
Thursday, February 9, 2023
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
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
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
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
But those are beyond me.
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?
What do you think?
Sunday, February 5, 2023
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
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
User 23fa64
But, I just found out if you tap that little button with 4 squares on it, the name popped up.
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
PNG โข 136.9 KB
Sunday, January 29, 2023
User 23fa64
Works great, thanks!
User 6ceaf4
<:facepalm:364780978067210241>
User bddf69
Ahh my bad, I said I would merge to main but I let it sit in development and forgot about it <.<
Incoming...
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
User 23fa64
I have the new home page look.
Just not the ticket option.
User e5e1a1
Not enough of a git-wizard to know how to update when the update didn't come in a new version, sorry :/
User 23fa64
Yeah, I just updated it.
User e5e1a1
Oh yeah self hosting
User 23fa64
I no gots it.
Last one I have is Rate Limit.
User e5e1a1
Settings > Discord > Notifications - scroll to the bottom

image0.jpg
JPG โข 21.3 KB
User 23fa64
Where would this be?
User 23fa64
Wow, awesome!
User bddf69
Wont make a new version for it but I'll push to main
User 23fa64
Maybe next time!
User bddf69
Ah gotcha, forgot about that one
User 23fa64
Yeah, just saw that. Sorry.
There is no way to set a discord channel for the admin tickets to go to.
User bddf69
And I don't really know what needs to be fixed there?
User bddf69
Nope, you can check the changelog to know that :)
User 23fa64
Is there a fix for the admin tickets?
User bddf69
I had to split it up in two separate helpers for reasons
User bddf69
Added in 2.1.1 ^^
Friday, January 27, 2023
User 2bffa0
Agreed
User 23fa64
So many possibilities for this.
User 6ceaf4
Other than that, seems to work for me
User 6ceaf4
Call it 'string' instead of pretty, maybe?
User bddf69
Cool! I've got some stuff but not ready yet.
I've gone with a little different approach; one helper called
timeDiffUsage is something like
{{ timeDiff 2023-01-28T00:00:00.000Z}} -> returns seconds until that dateWould 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 agoThoughts? ๐
