News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

Occupant Info Configs' Relationship variables

Started by dcsobral, Feb 10, 2024, 08:15 PM

Previous topic - Next topic

dcsobralTopic starter

I'm trying to add Occupant Info Configs to point out people I can get the phone number or address from but haven't yet, but there's something about RelationshipVariableAll that doesn't seem to be working right.

I've added an OIC to indicate people I have the phone number for, with this rule:



That one works perfectly. Then I tried to create a different marker for people who would give the phone number to me if I asked, but for whom I don't have the phone yet:



This one doesn't. The Friendship range works, but the INFO_Phone doesn't.

One thing I noticed querying the database is that Friendship and the various INFO_ relationships have different directions, but INFO_Phone clearly works in the first OIC, and Friendship clearly works in the second OIC.

Is this a bug or misunderstanding of how this is supposed to work?

TBBle

I don't see what I assume are supposed to be images here?

dcsobralTopic starter

Quote from: TBBle on Feb 11, 2024, 08:16 AMI don't see what I assume are supposed to be images here?

I needed to add an extension in the link. Anyway, I'm pretty confident now that the problem is that the range must be strictly positive. If I have a 0 or a negative number in there, it will automatically pass for whatever reason.

But I'm still unsure whether that's a bug or a misunderstanding on my part.

TBBle

I wonder if the difference is that before you get someone's phone number, there isn't an INFO_Phone DB entry, and that's distinct from a value of 0 for some reason. If so, that sounds like a bug to me.

The VEE Database access node has an explicit not-found exit point, and I noticed in ExtensionLibrary\InfoPanel\MainTab\AddVanilla that the code-flow checks for both "Not found" and "<1" cases, so they're distinct in VEE, at least.

Does it happen to work if you leave the default NaN-NaN range? I expect not...

Assuming I've guessed correctly, then there's a fallback plan: Add an initialisation event to the mod that gives everyone that doesn't have one an INFO_Phone DB entry, with value 0. (Might need to check any other uses of INFO_Phone to make sure they handle that correctly.)

dcsobralTopic starter

Quote from: TBBle on Feb 24, 2024, 01:28 AMI wonder if the difference is that before you get someone's phone number, there isn't an INFO_Phone DB entry, and that's distinct from a value of 0 for some reason. If so, that sounds like a bug to me.

The VEE Database access node has an explicit not-found exit point, and I noticed in ExtensionLibrary\InfoPanel\MainTab\AddVanilla that the code-flow checks for both "Not found" and "<1" cases, so they're distinct in VEE, at least.

Does it happen to work if you leave the default NaN-NaN range? I expect not...

Assuming I've guessed correctly, then there's a fallback plan: Add an initialisation event to the mod that gives everyone that doesn't have one an INFO_Phone DB entry, with value 0. (Might need to check any other uses of INFO_Phone to make sure they handle that correctly.)

If it only was that case, I'd believe it. But the same issue happened when I tried Friendship 0 to 34 and I had to change it to 1 to 34.