Rail repair

Warplan is a World War 2 simulation engine. It is a balance of realism and playability incorporating the best from 50 years of World War 2 board wargaming.

Moderator: AlvaroSousa

Post Reply
User avatar
ncc1701e
Posts: 10723
Joined: Tue Oct 29, 2013 7:50 pm
Location: Utopia Planitia Fleet Yards

Rail repair

Post by ncc1701e »

In other games, this rail repair would be impossible because Lodz is still owned by the enemy blocking the repairs.
Don't know the exact rule here but just highlighting it.
rail repair.JPG
rail repair.JPG (184.88 KiB) Viewed 977 times
Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.
User avatar
AlvaroSousa
Posts: 12107
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: Rail repair

Post by AlvaroSousa »

Need to be next to a 9 rail to repair
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
ncc1701e
Posts: 10723
Joined: Tue Oct 29, 2013 7:50 pm
Location: Utopia Planitia Fleet Yards

Re: Rail repair

Post by ncc1701e »

Thanks, so this is indeed a bug.
Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.
User avatar
AlvaroSousa
Posts: 12107
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: Rail repair

Post by AlvaroSousa »

We never had an issue with it before. You sure they didn't get a 9 rail for a limited time?

I wonder if it due to Polish hexes.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
ncc1701e
Posts: 10723
Joined: Tue Oct 29, 2013 7:50 pm
Location: Utopia Planitia Fleet Yards

Re: Rail repair

Post by ncc1701e »

AlvaroSousa wrote: Thu May 18, 2023 12:22 pm We never had an issue with it before. You sure they didn't get a 9 rail for a limited time?

I wonder if it due to Polish hexes.
The situation in Poland was very fluid but I think Lodz was liberated by the Red Army then retaken. And, since then, a German corps is preventing me to access the city. That is why I bypassed it to reach the Oder river as quickly as possible.

generalfdog can confirm.

I am just finding this situation now.
Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.
User avatar
ncc1701e
Posts: 10723
Joined: Tue Oct 29, 2013 7:50 pm
Location: Utopia Planitia Fleet Yards

Re: Rail repair

Post by ncc1701e »

AlvaroSousa wrote: Sun May 14, 2023 8:53 pm Need to be next to a 9 rail to repair
Maybe there is just one missing condition. Need to be next to a 9 rail to repair AND this 9 rail needs to be on our side.
Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.
User avatar
AlvaroSousa
Posts: 12107
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: Rail repair

Post by AlvaroSousa »

It works like this. Looks for all rail 9 hexes. Then it looks int he 6 hexes around it. If it is damaged rail it fixes it.

Runs it twice over I believe.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
ncc1701e
Posts: 10723
Joined: Tue Oct 29, 2013 7:50 pm
Location: Utopia Planitia Fleet Yards

Re: Rail repair

Post by ncc1701e »

AlvaroSousa wrote: Fri May 19, 2023 1:44 pm If it is damaged rail it fixes it.
Yes but does it check the ownership of the hexes?
Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.
User avatar
AlvaroSousa
Posts: 12107
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: Rail repair

Post by AlvaroSousa »

Well you need to have control of the hex to have a 9 supply rail
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
Nirosi
Posts: 2427
Joined: Sun Sep 17, 2017 5:01 pm

Re: Rail repair

Post by Nirosi »

I think that ncc1701e is asking if there could be a bug that allows, for example, a German rail hex to be repaired because it is adjacent its next to a... Polish (or any enemy) controlled rail hex with 9 supply.

So basically, does the engine check for ownership of the adjacent hex that would allow supply for your hex?
User avatar
AlvaroSousa
Posts: 12107
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: Rail repair

Post by AlvaroSousa »

Yes. If both sides have a 9 supply rail hex next to each other they can still repair their own rail.... but not the other.

But I will 2x check the code to make sure it looks for this set of ownership.
User avatar
AlvaroSousa
Posts: 12107
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: Rail repair

Post by AlvaroSousa »

This might be linked to minor countries under enemy control not doing scorched earth bug. Which is now fixed in the next patch
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
Post Reply

Return to “WarPlan”