[1.09.02]Default ID has unexpected behavior

Moderator: Vic

Post Reply
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

[1.09.02]Default ID has unexpected behavior

Post by zgrssd »

I made a Delta event. It looked like this:
Key Question: "Which technology do you need help with?"
Decision 1: "Solar Power" + Price of 100 Credits + Exe(346,19,REGIMEID,21)
Decision 2: left empty
Decision 3: left empty
Decision 4: "Nothing"
Default Decision Number: 4

However when I run this, Decision 1 is picked as default - not decision 4 as I told it too!
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by zgrssd »

Okay, stuff is getting wieder. I set "Default Decision Number" to 2.
It is still selecting Decision 1, buy Solar Power?
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by zgrssd »

Okay, I set "Default Decision Number" to 1.
Now it is selecting Decision 4 (2 in the actuall list).

So we have several bugs:
- this particular Index seems to be starting at 0, not at 1. This does not match the examples for the other Storyline Types.
- It seems to be the Nth decision on the Screen, rather then the Nth Decision in the gamefile. So the default option quickly breaks if options are disabeled at it is not set to 0.
- If the given Index is not valid, it seems to pick 0 as default.
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by zgrssd »

Okay, it seems like the Epsilon Format has the same issue - the 4th Option is not actually the 4th option, unless there are 3 in front of it.

Now I tried soemthing realy wild:
A Epsilon 2 table Row, that matches multiple decisions:
Decision Number: "1;2;3;4"
Text: "This should dispaly in either case"

When selecting Option 4 by file/2 by the UI, this is what I got:
Image

It is matching - 3 times.
My hope was to use this to avoid code duplication (Basically I only need to pick one Tech Type ID, then do the same thing with either of the 3 options). It is just not quite acting as I expected.
Attachments
MultiReplyMatching.jpg
MultiReplyMatching.jpg (106.14 KiB) Viewed 372 times
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by zgrssd »

This is the behavior if I add another "matches all" row. This is what I got:

Image

I was hoping they would be interleaved, rather then groups of 3 each. I still can work around it, it is just a bit more annoying then it needs to be [:)]
Attachments
MultiRepl..point2.jpg
MultiRepl..point2.jpg (88.4 KiB) Viewed 372 times
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by zgrssd »

Okay, stuff just got a bit wierder. If I select the 1st Option (both in the table and the UI), the Multiple Match decision is only done once.
So the triplication might be a side-effect of me "skipping" the middle two Decisions. If so, it might not be as detrimental as I first feared.
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by zgrssd »

Gustav seems to have even worse issue with the Default decision.
It feels like the game is going out of it's way to ignore my order to pick none. As if the code for default can not accept that the "none" decision might have no text or set orders assigned to it.
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by zgrssd »

While I would prefer a proper fix, there might be a shortcut around the issue.
In all the games I started to test my mod, I once encountered a event that could not be left to the Secretary. End turn was disabeled as long as that decision was around.

My main worry is about the Automatic choosing the wrong thing - and if it can not choose at all, it can not choose the wrong thing.
Something like "Default Decision = -1" might be useable for this.
User avatar
Vic
Posts: 9783
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by Vic »

ORIGINAL: zgrssd

Okay, I set "Default Decision Number" to 1.
Now it is selecting Decision 4 (2 in the actuall list).

So we have several bugs:
- this particular Index seems to be starting at 0, not at 1. This does not match the examples for the other Storyline Types.
- It seems to be the Nth decision on the Screen, rather then the Nth Decision in the gamefile. So the default option quickly breaks if options are disabeled at it is not set to 0.
- If the given Index is not valid, it seems to pick 0 as default.

It is possible for a leader to choose the non-default decision if relation < 100 and regime profile of another decision correspond better with the regime profiles likes of the leader.

best,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by zgrssd »

It is possible for a leader to choose the non-default decision if relation < 100 and regime profile of another decision correspond better with the regime profiles likes of the leader.
The problems with that:
- Relation < 100 is always true
- None of these decision had ANY profile weights.
- Default decision by definition should overwrite this decision making process
- If 5 Options each cost 1PP, 2 Fatepoints and 1 option costs 1 PP, how do I get it to choose the 1PP option by default?
User avatar
BlueTemplar
Posts: 1074
Joined: Thu Apr 29, 2010 12:07 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by BlueTemplar »

You can have a leader with relation exactly 100... I suppose that this chance is a function of the distance from 100 ?
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: [1.09.02]Delta Default Decision has unexpected behavior

Post by zgrssd »

ORIGINAL: BlueTemplar

You can have a leader with relation exactly 100... I suppose that this chance is a function of the distance from 100 ?
If it is not reliably picking what I tell it to pick, then default decision is not doing the one job it has.
I like the whole mechanic, but for some cases it is just too stupid to tbe trusted.

I guess I have to revamp tech trader to something that uses Stratagem Cards?
Post Reply

Return to “Tech Support”