Weird supply issue

Moderator: AlvaroSousa

Post Reply
User avatar
stjeand
Posts: 2702
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

Weird supply issue

Post by stjeand »

I am in Yugoslavia in October attacking.
When the game came up it said an Italian unit is out of supply.

Then I checked it.

The hex says it has a supply level 2.
How can the unit be out of supply?

I checked the unit and it is out.

Did I miss something?

Image
Attachments
ItalianSupply.jpg
ItalianSupply.jpg (36.72 KiB) Viewed 576 times
User avatar
AlvaroSousa
Posts: 12127
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Weird supply issue

Post by AlvaroSousa »

This is in the current version?
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
AlvaroSousa
Posts: 12127
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Weird supply issue

Post by AlvaroSousa »

Is it a PBEM or A.I. game?
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
AlvaroSousa
Posts: 12127
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Weird supply issue

Post by AlvaroSousa »

It is a discrepancy between calculating supply source and supply range. But I would like to test it with your game. I don't want to make major changes to the supply system without testing this bug. It is rare.

Looking at the code there shouldn't be a problem but this is code with lots of data.
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
stjeand
Posts: 2702
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

RE: Weird supply issue

Post by stjeand »

It was a PBEM game...
Yes updated version.
Sadly I finished the turn...HOPEFULLY I will be in supply this turn as it could create an issue taking Yugoslavia.

Honestly when I get the turn back I suspect I will be in supply since rail will have moved more. Could try to reproduce it though if you like.

I don't think it is crippling...just was surprising.
User avatar
AlvaroSousa
Posts: 12127
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Weird supply issue

Post by AlvaroSousa »

It calcs supply source first then distribution. Might be a move cost discrepancy somewhere. I will look at it more 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
User avatar
stjeand
Posts: 2702
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

RE: Weird supply issue

Post by stjeand »

I was in supply the next turn...could have been due to rail supply moving further. Might be able to try to reproduce when I have time if you like.
User avatar
AlvaroSousa
Posts: 12127
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: Weird supply issue

Post by AlvaroSousa »

Keep an eye out for it.

The supply code is incredibly complex and delicate because I hadn't programmed in a long time. To change it now would be a nightmare. WP2 will have less issues because the underlying data structure will be better.
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
stjeand
Posts: 2702
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

Re: Weird supply issue

Post by stjeand »

It seems extremely rare...that was the first time I had seen where I should be in supply but was not...so at least there is that.
Post Reply

Return to “War Plan: Tech Support”