Playing around with these two files and I noticed a patern here
If for example you have this in mobilization_4.txt
{
#NAME= DE 1000 - Axis DoW on Netherlands (Germany)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#GV= 1[1,100]
#LINK= 0[0]
#LEVEL= 0
#COUNTRY_ID= 45
#TRIGGER= 100
#NM_UPDOWN= 0
#NM_TURNS= 0
#DECISION= 1000
; Netherlands declared war on by Axis
#CONDITION= 73 [1] [1]
}
And you then have an event in war_entry.txt
{
#NAME= - Dutch Guyana -> Axis
#POPUP= <<TAG_war_13>>
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 1000[1]
#COUNTRY_ID= 34
#TRIGGER= 100
#ALIGNMENT= 1
#DATE= 1939/09/01
#VARIABLE_CONDITION= 5 [0] [0] [0]
}
It will NOT fire immediately.
HOWEVER
if the #COUNTRY_ID= 34 was changed to a country ID that is higher than the calling method (#COUNTRY_ID= 45) then it will fire immediately.
So in short when the Country ID is less than the calling Country ID it usually will fire at the end of the turn instead of right away (or the following turn).
mobilization_4.txt does not talk correctly to war_entry.txt
- Hubert Cater
- Posts: 6098
- Joined: Mon Jul 22, 2013 11:42 am
- Contact:
Re: mobilization_4.txt does not talk correctly to war_entry.txt
This is a strange one as well and I don't see anything in the code that would have it happen the way you've described, e.g. COUNTRY_ID should not matter at all really... so it makes me wonder if it might be something else.
For cases like this I set up a simple test campaign, e.g. a small map of let's say 60x40 and just run simple test events or combat tests etc., just to see if I can repeat issues like this.
Helps to narrow it down by not having anything else in the way or running, e.g. other events and so on.
If you can repeat what you are describing, please feel free to send it my way and I'll be happy to take a look.
For cases like this I set up a simple test campaign, e.g. a small map of let's say 60x40 and just run simple test events or combat tests etc., just to see if I can repeat issues like this.
Helps to narrow it down by not having anything else in the way or running, e.g. other events and so on.
If you can repeat what you are describing, please feel free to send it my way and I'll be happy to take a look.
Follow us on Twitter: https://twitter.com/FurySoftware
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3
Re: mobilization_4.txt does not talk correctly to war_entry.txt
Hu HubertHubert Cater wrote: Tue Jan 02, 2024 7:30 pm This is a strange one as well and I don't see anything in the code that would have it happen the way you've described, e.g. COUNTRY_ID should not matter at all really... so it makes me wonder if it might be something else.
For cases like this I set up a simple test campaign, e.g. a small map of let's say 60x40 and just run simple test events or combat tests etc., just to see if I can repeat issues like this.
Helps to narrow it down by not having anything else in the way or running, e.g. other events and so on.
If you can repeat what you are describing, please feel free to send it my way and I'll be happy to take a look.
Going to give Bill a link to download the under development version of TRP Mod
In the mobilization_4.txt file their is the following command
{
#NAME= DE 1002 - Axis DoW on Portugal
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#GV= 1[1,100]
#LINK= 0[0]
#LEVEL= 0
#COUNTRY_ID= 40
#TRIGGER= 100
#NM_UPDOWN= 0
#NM_TURNS= 0
#DECISION= 1002
; Portugal declared war on by Axis
#CONDITION= 87 [1] [1]
}
Before changing it go into a single player game as the Axis and declare war on Portugal
You will see that Portugal East & West Africa will immediately join (this is from the war_entry.txt file).
Now go into the Editor and change the above command to the following
{
#NAME= DE 1002 - Axis DoW on Portugal
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#GV= 1[1,100]
#LINK= 0[0]
#LEVEL= 0
#COUNTRY_ID= 115
#TRIGGER= 100
#NM_UPDOWN= 0
#NM_TURNS= 0
#DECISION= 1002
; Portugal declared war on by Axis
#CONDITION= 87 [1] [1]
}
Do the same exact scenario and you will see that war_entry.txt does not fire and they do not mobilize until you click on the Next Turn button.
I did allot of debuging on this and discvered it was the COUNTRY_ID. If the number is higher than the COUNTRY ID in the War Entry file then it will not fire.
- Hubert Cater
- Posts: 6098
- Joined: Mon Jul 22, 2013 11:42 am
- Contact:
Re: mobilization_4.txt does not talk correctly to war_entry.txt
Can you check the alignment of the COUNTRY_ID, and make sure it matches ALIGNMENT_ID in your WAR_ENTRY event to make sure it matches?
e.g. the country you want to join the Axis, or the Allies, should already either lean that way or be Neutral, I believe.
I have a suspicion this is why your WAR_ENTRY event is not firing right after the DE as the ranking of the COUNTRY_IDs in any events should not make any difference, at least as far as I can tell as it is not something I check against in any way.
e.g. the country you want to join the Axis, or the Allies, should already either lean that way or be Neutral, I believe.
I have a suspicion this is why your WAR_ENTRY event is not firing right after the DE as the ranking of the COUNTRY_IDs in any events should not make any difference, at least as far as I can tell as it is not something I check against in any way.
Follow us on Twitter: https://twitter.com/FurySoftware
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3
Re: mobilization_4.txt does not talk correctly to war_entry.txt
Country ID 40 (which is the one I use for the first call) is FranceHubert Cater wrote: Tue Jan 02, 2024 10:54 pm Can you check the alignment of the COUNTRY_ID, and make sure it matches ALIGNMENT_ID in your WAR_ENTRY event to make sure it matches?
e.g. the country you want to join the Axis, or the Allies, should already either lean that way or be Neutral, I believe.
I have a suspicion this is why your WAR_ENTRY event is not firing right after the DE as the ranking of the COUNTRY_IDs in any events should not make any difference, at least as far as I can tell as it is not something I check against in any way.
Country ID 115 (which is for the test to show you the problem) is the United States
You can also change it to country ID 112 (instead of 115) if you want a fully mobilized major power and the result is the same
Both are allied
Alignment has not factor in this unfortunately. I tested it with box Axis and Allies as the ID and the results are identical.
As for leaning as well it does not matter. I have seen countries leaning toward the allies and if they have a war entry to the axis they will immediately go to the Axis side and declare war.
Have you tried to duplicate what I am saying and maybe put it through the debugger?
- Hubert Cater
- Posts: 6098
- Joined: Mon Jul 22, 2013 11:42 am
- Contact:
Re: mobilization_4.txt does not talk correctly to war_entry.txt
I just meant for this event here:
{
#NAME= - Dutch Guyana -> Axis
#POPUP= <<TAG_war_13>>
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 1000[1]
#COUNTRY_ID= 34
#TRIGGER= 100
#ALIGNMENT= 1
#DATE= 1939/09/01
#VARIABLE_CONDITION= 5 [0] [0] [0]
}
Does COUNTRY_ID= 34 Dutch Guyana lean Axis, e.g. to match #ALIGNMENT= 1?
I haven't had a chance to run a test, takes some time and always busy with other things unfortunately, which is why I suggest a simple test that is repeatable to send my way where I can just run it and confirm or not etc.
{
#NAME= - Dutch Guyana -> Axis
#POPUP= <<TAG_war_13>>
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 1000[1]
#COUNTRY_ID= 34
#TRIGGER= 100
#ALIGNMENT= 1
#DATE= 1939/09/01
#VARIABLE_CONDITION= 5 [0] [0] [0]
}
Does COUNTRY_ID= 34 Dutch Guyana lean Axis, e.g. to match #ALIGNMENT= 1?
I haven't had a chance to run a test, takes some time and always busy with other things unfortunately, which is why I suggest a simple test that is repeatable to send my way where I can just run it and confirm or not etc.
Follow us on Twitter: https://twitter.com/FurySoftware
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3
Re: mobilization_4.txt does not talk correctly to war_entry.txt
The #ALIGNMENT= 1 does not need to match. I have confirmed this already with working with War Entry. The ALignment tag is used to know which alignment they have to join the war with.Hubert Cater wrote: Wed Jan 03, 2024 12:09 am I just meant for this event here:
{
#NAME= - Dutch Guyana -> Axis
#POPUP= <<TAG_war_13>>
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 1000[1]
#COUNTRY_ID= 34
#TRIGGER= 100
#ALIGNMENT= 1
#DATE= 1939/09/01
#VARIABLE_CONDITION= 5 [0] [0] [0]
}
Does COUNTRY_ID= 34 Dutch Guyana lean Axis, e.g. to match #ALIGNMENT= 1?
I haven't had a chance to run a test, takes some time and always busy with other things unfortunately, which is why I suggest a simple test that is repeatable to send my way where I can just run it and confirm or not etc.
I did the test with Portugal using both UK as the country to DOW them and Germany to DOW them
The result was the same
If the mobilization_4.txt file had COUTNRY_ID= 40 (which is France) then it would work and both Portugal East and West would join immediately as their IDs are greater than 40.
AS A GOOF, I changed the COUNTRY_ID= 40 to 45 (which is Germany) and it still worked perfectly as the Portugal IDs are in the 80s
If I set the COUNTRY_ID to one that is higher than the ID used for the entries in the war file then they will fire a turn later or at the end of the current turn.
I gave Bill a link to download the file so you can just plug it in and test it.
- Hubert Cater
- Posts: 6098
- Joined: Mon Jul 22, 2013 11:42 am
- Contact:
Re: mobilization_4.txt does not talk correctly to war_entry.txt
Just quickly double checked the code and the WAR_ENTRY country_id alignment needs to match the alignment value or it won't fire, or the country_id needs to be Neutral. It just cannot be the opposite alignment.
There is a note for this in the WAR_ENTRY event as well:
; #COUNTRY_ID's current political association must match #ALIGNMENT for the event to occur.
Try ensuring this, if it is not the case and I suspect this is what is holding you back from having the event fire.
I haven't received a link from Bill, different time zones so he may have already logged off before he received it, but as suggested, your best bet is to always test what you suspect in a simple campaign where it is the only event in question, no other events possibly misleading the result and if you ever put one together it is just that much easier for me to trace and provide feedback on.
Hope this helps,
Hubert
There is a note for this in the WAR_ENTRY event as well:
; #COUNTRY_ID's current political association must match #ALIGNMENT for the event to occur.
Try ensuring this, if it is not the case and I suspect this is what is holding you back from having the event fire.
I haven't received a link from Bill, different time zones so he may have already logged off before he received it, but as suggested, your best bet is to always test what you suspect in a simple campaign where it is the only event in question, no other events possibly misleading the result and if you ever put one together it is just that much easier for me to trace and provide feedback on.
Hope this helps,
Hubert
Follow us on Twitter: https://twitter.com/FurySoftware
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3
Re: mobilization_4.txt does not talk correctly to war_entry.txt
Hmm, you were right. I tested with Dutch Guyana. It was not enough their Mobilization needed to be 0 but their alignment also needed to be neutral.Hubert Cater wrote: Wed Jan 03, 2024 3:42 am Just quickly double checked the code and the WAR_ENTRY country_id alignment needs to match the alignment value or it won't fire, or the country_id needs to be Neutral. It just cannot be the opposite alignment.
There is a note for this in the WAR_ENTRY event as well:
; #COUNTRY_ID's current political association must match #ALIGNMENT for the event to occur.
Try ensuring this, if it is not the case and I suspect this is what is holding you back from having the event fire.
I haven't received a link from Bill, different time zones so he may have already logged off before he received it, but as suggested, your best bet is to always test what you suspect in a simple campaign where it is the only event in question, no other events possibly misleading the result and if you ever put one together it is just that much easier for me to trace and provide feedback on.
Hope this helps,
Hubert
These are what I call sub minors of a minor so they are blocked from being politically manipulated and are suppose to auto join the side that their parent country belongs to.
Thank you for your patience and help.
- Attachments
-
- Editor-WWII_War_in_Europe_MRooQEUKCP.png (46.18 KiB) Viewed 528 times
- Hubert Cater
- Posts: 6098
- Joined: Mon Jul 22, 2013 11:42 am
- Contact:
Re: mobilization_4.txt does not talk correctly to war_entry.txt
No problem at all and glad to hear you figured it out
Follow us on Twitter: https://twitter.com/FurySoftware
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3
We're also on Facebook! https://www.facebook.com/FurySoftware/
Join our Steam Community:
http://steamcommunity.com/groups/strategiccommand3