Page 1 of 1
Special custom unit pre-game build
Posted: Wed Dec 28, 2022 7:59 am
by Flame
Dear Sirs!
1) I am about to release the new webDip map variant with a special rule.
The thing is that the very first stage of the game is a build-phase (winter). Some countries has an opportunity to chose type of the units to build. And some countries has a fixed array of unit to be build (as in classic).
Please help me how to change the code. This option will surely add more diversity to the gameplay.
2) Also (it's not the point I'm interested much in this post) in future we can face with variant creation in which we will want to have some fixed builds and some free to chose builds for every country.
Re: Special custom unit pre-game build
Posted: Thu Dec 29, 2022 11:18 pm
by Jamiet99uk
Flame wrote: ↑Wed Dec 28, 2022 7:59 am
Some countries has an opportunity to chose type of the units to build. And some countries has a fixed array of unit to be build (as in classic).
Which are which?
Re: Special custom unit pre-game build
Posted: Fri Dec 30, 2022 3:59 am
by Flame
Jamiet99uk wrote: ↑Thu Dec 29, 2022 11:18 pm
Flame wrote: ↑Wed Dec 28, 2022 7:59 am
Some countries has an opportunity to chose type of the units to build. And some countries has a fixed array of unit to be build (as in classic).
Which are which?
For example in the game-variant for 7 powers on the board:
in the first game phase we got build-phase:
- Power1, Power2, Power3 has the fixed arrays of builds:
A SC1-1, A SC1-2, F SC1-3;
A SC2-1, F SC2-2, F SC2-3:
A SC3-1, F SC3-2, F SC3-3.
- Power4, Power5, Power6, Powers7:
they are allowed to chose their build in the build-phase.
In the
/classes/adjudicatorPreGame.php
we use separately both variants of builds in many variants.
But never when these two are combined.
Re: Special custom unit pre-game build
Posted: Sun Jan 01, 2023 4:35 pm
by Jamiet99uk
No, I meant which countries?
For instance, does England get a choice, but Germany does not? And if so, why?
Re: Special custom unit pre-game build
Posted: Tue Jan 03, 2023 12:24 pm
by Flame
Jamiet99uk wrote: ↑Sun Jan 01, 2023 4:35 pm
No, I meant which countries?
For instance, does England get a choice, but Germany does not? And if so, why?
Due to the variant special rules. For example:
We develop a new variant to play. Several powers are big, others are small. But small countries has an advantage to chose their builds at the start build-phase. Small countries have a possibility to co-operate and work out a long list of debuts. Big ones got fixed builds with no option to change the strategy but they have one or two units more at the very start.
Re: Special custom unit pre-game build
Posted: Tue Jan 03, 2023 12:34 pm
by Flame
Flame wrote: ↑Tue Jan 03, 2023 12:24 pm
Jamiet99uk wrote: ↑Sun Jan 01, 2023 4:35 pm
No, I meant which countries?
For instance, does England get a choice, but Germany does not? And if so, why?
Due to the variant special rules. For example:
We develop a new variant to play. Several powers are big, others are small. But small countries has an advantage to chose their builds at the start build-phase. Small countries have a possibility to co-operate and work out a long list of debuts. Big ones got fixed builds with no option to change the strategy but they have one or two units more at the very start.
Or we even can go further:
in the adjudicatorPreGame.php or variant.php we can do smth like this for every power and in any variant:
1. England: "F EDI, F LON, A YOR (
fixed)";
2 ...
It means at the start England will get an army in York but has an option to change the default builds in Edi & London.
Re: Special custom unit pre-game build
Posted: Fri Mar 03, 2023 6:31 pm
by Flame
So, I start the job.
But I ask help in the following tasks:
1. Major powers should have fixed builds (this time all powers can chose their builds in the pre-game phase)
2. Minor powers should bet 1/3 of the full stake to enter the game.
Variant page:
https://webdiplomacy.ru/variants.php?variantID=222
First test game. Please join to test and develop:
https://webdiplomacy.ru/board.php?gameID=12804
Re: Special custom unit pre-game build
Posted: Thu Mar 09, 2023 10:10 am
by Flame
If smbd is willing to help with coding special variant features mensioned above - here we have the source-files of variant:
https://webdiplomacy.ru/files.php?variantID=222
Re: Special custom unit pre-game build
Posted: Sat Apr 22, 2023 7:19 am
by Flame
I found smth similar in The Dutch Revolt variant source-code.
I mean the special fixed builds for certain powers.
https://vdiplomacy.net/variants.php?variantID=32
Re: Special custom unit pre-game build
Posted: Mon Apr 21, 2025 8:46 am
by Flame
2 years have already passed and still no solution for this problem.
Can anybody help with this?
Flame wrote: ↑Fri Mar 03, 2023 6:31 pm
1. Major powers should have fixed builds (the same units they have in the standard game). Minors are free to choose their starting unit.
2. Minor powers should bet 1/3 of the full stake to enter the game.
Variant page and code (see download page):
https://webdiplomacy.ru/variants.php?variantID=222
Please help.
