JayMeazy
Member
- Joined
- Sep 7, 2020
- Messages
- 92
- Solutions
- 2
- Reaction score
- 24
Hello, I tried to add login Protection for 10 seconds via condition, just a generic condition, the same as CONDITION_MUTED, but it's crashing the server, even if no one logs on and receives the condition which is what struck me as strange, which is why I initially didn't think this was the problem, but after learning a small amount about how to use a debugger, I can see that isSuprress, which returns
is crashing the server, because CONDITION_LOGINPROTECTION says in debugger the value is CONDITION_LOGINPROTECTION (-2147483648)
does being the 32nd value in the ConditionType_t table have something to do with the bitset crashing?
CONDITION_LOGINPROTECTION = 1 << 31,
this is the only thing I can think of because I've added already added a few custom conditions and they never caused this problem. The worst part of it is on Ubuntu it didn't crash right away for whatever reason, only sometimes I guess it would crash it, I'm not 100% sure, I'll test this further so that I can be sure that this was the crash I was experiencing, but on Windows it crashes often, without any players, not long after it goes online.
If so I guess I'll have to start setting up another condition similar to CONDITION_ATTRIBUTES.
Code:
return hasBitSet(static_cast<uint32_t>(type), getConditionSuppressions());
does being the 32nd value in the ConditionType_t table have something to do with the bitset crashing?
CONDITION_LOGINPROTECTION = 1 << 31,
this is the only thing I can think of because I've added already added a few custom conditions and they never caused this problem. The worst part of it is on Ubuntu it didn't crash right away for whatever reason, only sometimes I guess it would crash it, I'm not 100% sure, I'll test this further so that I can be sure that this was the crash I was experiencing, but on Windows it crashes often, without any players, not long after it goes online.
If so I guess I'll have to start setting up another condition similar to CONDITION_ATTRIBUTES.