etreit
etreit
CC#
Created by Sheik on 12/23/2023 in #help
Windows Defender trojan alert after publish
We are disabling that detection and the change should be rolling out soon. Thanks a ton for sharing with us!
33 replies
CC#
Created by Sheik on 12/23/2023 in #help
Windows Defender trojan alert after publish
Thank so much for giving us the submission number, I took a look at what was detecting it and it seems a bit wonky so putting some stuff into motion for someone to re-examine that. Sorry about this!
33 replies
CC#
Created by Sheik on 12/23/2023 in #help
Windows Defender trojan alert after publish
I’m afk but should be back home soon and can take a look, might be worth seeing if you can do an update, I think I remember something about a meterpreter detection that was having some false positives that was removed, but might still be on your machine. I can verify if that might be the case in a bit.
33 replies
CC#
Created by Sheik on 12/23/2023 in #help
Windows Defender trojan alert after publish
You should get a submission number back, if you toss it here we can take a look more easily
33 replies
CC#
Created by 🎃Spoopy Dami🎃 on 5/10/2023 in #help
❔ How would I implement a toroidal universe?
Because you are taking the remainder, even if, say, column + 1 is outside the range of the board, it will "reset" the value, effectively "wrapping" it over to the other end. So if you were in a 10x10 grid (which means we will mod by 10), numbered 0-9, and your column value is 9, then (column + 1) mod 10 = 10 mod 10 = 0
24 replies
CC#
Created by 🎃Spoopy Dami🎃 on 5/10/2023 in #help
❔ How would I implement a toroidal universe?
You could just check and see if gameboard[(row - 1) % settings.defaultGridSize][(column + 1) % settings.defaultGridSize] exists, and then increment the total (I think this is how you use modulo in c++, I'm not really a dev so please take any random code snippets with a grain of salt)
24 replies
CC#
Created by 🎃Spoopy Dami🎃 on 5/10/2023 in #help
❔ How would I implement a toroidal universe?
Honestly, most of the time working in this sort of space makes code a bit simpler. You can reduce a lot of your checks because you don't ever need to worry about a "surrounding square" being out of bounds. So, for example, taking
if (column + 1 < settings.defaultGridSize)
{
if (gameBoard[row - 1][column + 1])
{
total++;
}
}
if (column + 1 < settings.defaultGridSize)
{
if (gameBoard[row - 1][column + 1])
{
total++;
}
}
24 replies
CC#
Created by 🎃Spoopy Dami🎃 on 5/10/2023 in #help
❔ How would I implement a toroidal universe?
In your case, it looks like you have a grid of size settings.defaultGridSize and it is a square, yay! That means we have less numbers to keep track of.
24 replies
CC#
Created by 🎃Spoopy Dami🎃 on 5/10/2023 in #help
❔ How would I implement a toroidal universe?
Basically, if I'm understand correctly, the main thing you are trying to do is get the count of all live squares near a coordinate, including wrapping around to the other side of the board. The concepts behind modular arithmetic are pretty simple, you just keep counting and reset to 0 every time you hit, very similar to if you were counting on a clock which is the same as mod 12.
24 replies
CC#
Created by 🎃Spoopy Dami🎃 on 5/10/2023 in #help
❔ How would I implement a toroidal universe?
Haha yeah same for me. But insomnia so I figured I’d at least take a look and jot down some stuff
24 replies
CC#
Created by 🎃Spoopy Dami🎃 on 5/10/2023 in #help
❔ How would I implement a toroidal universe?
24 replies
CC#
Created by 🎃Spoopy Dami🎃 on 5/10/2023 in #help
❔ How would I implement a toroidal universe?
Do you understand the basics of modular arithmetic? If not, that’s totally alright, we can go through it! (If you want)
24 replies
CC#
Created by 🎃Spoopy Dami🎃 on 5/10/2023 in #help
❔ How would I implement a toroidal universe?
Did you get this (besides the C#/C++ divide) figured out? If you still have questions about the actual implementation, happy to talk about it (though maybe tomorrow lol)
24 replies