Page 1 of 1

Bernadotte

Posted: Tue Oct 16, 2018 12:16 pm
by pzgndr
I have managed to implement original rule 10.6.5 to remove the French leader Bernadotte from play in August 1810. I've been wrestling with this whole Bernadotte issue for the past couple of weeks. Good news is I finally tracked down the syntax error I was making and got this leader removal to work for both human player and AI.

Image

RE: Bernadotte

Posted: Tue Oct 16, 2018 12:22 pm
by pzgndr
And part two of this issue was creating the Swedish Bernadotte leader and leader counter. This also required a code change to be able to assign/use Bernadotte as a minor leader in combat. So, good news is that all of this appears to work, but is limited to just Bernadotte as a Swedish minor leader.

Now that this is resolved, I can wrap up changes to the data files and then proceed to completing the 1812 scenario setups. Once I have the 1812 scenarios running, I can then use them to help resolve the allied/loaned unit issues.

Image

RE: Bernadotte

Posted: Sat Oct 27, 2018 3:08 pm
by Daniel Amieiro
Good News. Seems you have make a specific unit type for Bernadotte.

RE: Bernadotte

Posted: Sun Oct 28, 2018 8:51 pm
by pzgndr
Not a new unit type, but a new specific unit. And the Swedish minor leader counter, to be assigned to Swedish Bernadotte. The code only allowed major powers to use leaders, so I had to make an exception for Sweden to assign the Swedish Bernadotte leader to Swedish units. Between the limit on counters and the code exception for Sweden, it's not at all practical to allow further modding for additional minor leaders. But Swedish Bernadotte was a notable exception and included in the original rules, so this was a worthwhile inclusion to the data files now so I don't have to mess with the data files again later.

RE: Bernadotte

Posted: Tue Oct 30, 2018 4:34 am
by Daniel Amieiro
Not a new unit type, but a new specific unit. And the Swedish minor leader counter, to be assigned to Swedish Bernadotte. The code only allowed major powers to use leaders, so I had to make an exception for Sweden to assign the Swedish Bernadotte leader to Swedish units.

Well, perhaps eliminating the code that only allowed major powers to use leaders, it could work too. If a minor has no leaders it will work. And if it has leaders, it will work too. No need of exception for Sweden. In my modding tests (EIH i posted) if minor has leaders, AI uses them. Only the interface doesn't allow to put the leader (but lets it already a national leader present...).

Between the limit on counters and the code exception for Sweden, it's not at all practical to allow further modding for additional minor leaders. But Swedish Bernadotte was a notable exception and included in the original rules, so this was a worthwhile inclusion to the data files now so I don't have to mess with the data files again later.

It will need a radical increase in unit types (and it will allow a very colorful unit customization). But a generic leader has room actually as long as i have tested. The main issue is leader placement.

And well. Bernadotte has is own code removal, i guess. :?

RE: Bernadotte

Posted: Wed Oct 31, 2018 9:52 am
by pzgndr
ORIGINAL: Daniel Amieiro
In my modding tests (EIH i posted) if minor has leaders, AI uses them. Only the interface doesn't allow to put the leader (but lets it already a national leader present...).

It will need a radical increase in unit types

Bernadotte has is own code removal, i guess. :?

I did not test what the AI did, only that I could not place and use the Swedish Bernadotte leader without the code change.
As for radical changes of any type, that is not a priority. I have enough to do to get the 1805 and 1812 scenarios running correctly, bugs resolved, and other improvements made.
And yes, there is new code to check for and remove the French Bernadotte leader in August 1811.