Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FIXED 2.5.0.2] 2.5.0.1 - Missing production in factory overview
#1
During an acquisition I got a factory in a city that I already had one. The company I acquired produced cars there that I can't see in my production overview. The report does show them as being produced:
   

They don't show up in the End production autocommand menu:
   

I checked the savegame to see where it is supposed to be produced:
Code:
sqlite> select company_id, citiesinfo.city_name, factory_id from carmanufactor join citiesinfo on carmanufactor.city_id = citiesinfo.city_id where car_id = (select car_id from carinfo where company_id = 0 and trim
= 'Evade' and name = 'B1425');
0|Detroit|243
sqlite> select factory_id from factoryinfo where company_id = 0 and city_id = 24;
243

But unfortunately the screen in Detroit also doesn't show it:
   

My best guess is that the End production autocommand didn't remove this production in Detroit properly and now it's marked as discontinued. Normally I would undo the discontinuation but that doesn't work due to the previous bug report.

Savegame is taken the month before the screenshots were taken.


Attached Files
.zip   202503.db.zip (Size: 88.24 MB / Downloads: 162)
Reply
#2
This one was a bit difficult to find. And I didn't actually find the cause.

Somewhere in the code, the AI is getting hung up on discontinuing designs and not removing the design from manufacturing. I checked every place in the game where it can discontinue a design and made sure there was code to remove it from manufacturing, but alas, it was all correct. No issues found.

Anyway, I do have a checker function that runs every turn for removing a player design from manufacturing and sales and reserves when the vehicle is discontinued and you run out of reserves. (Like when you're selling through inventory after discontinuing a design.) I have expanded this function to check AI designs and any discontinued vehicles in manufacturing without reserves. It's a hack fix, but it's a fix.

In your case, it will take 2 turns to cycle through and remove it from the listings. In the future, this edge case shouldn't reach the player.
"great writers are indecent people, they live unfairly, saving the best part for paper.
good human beings save the world, so that bastards like me can keep creating art, become immortal.
if you read this after I am dead it means I made it." ― Charles Bukowski
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)