Single Player bugs and crashes v37 plus (SVN) - After the 24th of December 2016

Do me a favor and turn it off and see if you still have the same issues. I've modified XP gain a lot on the core anyhow and I really don't advocate dynamic XP anymore. It pretty much now only means you can get a lot less XP and that's about it imo. Tough battles still give you more XP without Dynamic XP so its tool tip is a little off on the assumption that the core system doesn't operate the same way, just under somewhat different math. There's probably something strange taking place there, just as you pointed out so I'll take a look at that coding.
Ah, I used it as I thought it led to much less XP overall. So without it I will still get like 0.02 XP from easy battles?

Will play some without it from now on.
 
Ah, I used it as I thought it led to much less XP overall. So without it I will still get like 0.02 XP from easy battles?

Will play some without it from now on.
No... you're right. Dynamic should be renamed, get lots less xp from easy fights. But you've pointed out a flaw I do need to find, that's skewing easy fights with units with high withdrawal and low HP. I'm not seeing that issue without Dynamic XP but not as many factors are considered on the normal XP calculator.

Hmm.. reading through the code it's not making itself obvious and there's no noteable interaction with withdrawal so it must be max HP causing something to go wrong. The math isn't seeming off though so perhaps a walkthrough with a save might help.
 
Last edited:
The Civics Inflation % is not the Main inflation %. That particular Civic adds 15% to your existing inflation level which in turn is dictated from what Game Speed and Difficulty level you have chosen to play and may be also influenced by a leader trait.

JosEPh
 
Civ4ScreenShot0040.JPG Civ4ScreenShot0041.JPG

Repeatable CTD from the City screen and Specialist Bar. In 1st screenshot in Jerusalem Capitol city there is a 1 with no image next to it. If you click the 1 you CTD. In Tel Aviv screenshot the mysterious 1 is not there. Savegame, MiniDump provided.

JosEPh
 

Attachments

  • MiniDump_9409.rar
    14.4 KB · Views: 96
  • v37 Normal Large SM BC-1284.rar
    1.9 MB · Views: 76
View attachment 462570 View attachment 462571

Repeatable CTD from the City screen and Specialist Bar. In 1st screenshot in Jerusalem Capitol city there is a 1 with no image next to it. If you click the 1 you CTD. In Tel Aviv screenshot the mysterious 1 is not there. Savegame, MiniDump provided.

JosEPh
I just looked at the mini and it's already too late on this end to get anything from that (I've been trying to get the AI to work a little better with property control.) That is sad. But at least this should be replicable. I'll address it as soon as I can, which may mean tomorrow as I'm already hips deep in the AI work here.
 
Reposted from the V37 Thread:

- Group of Settler and Archer was ordered to ambush a Pidgeon -> The Settler tried and died.
- It is not listed when you can remove / settle certain features like Swamp, Mangrove, Peat Bog...
 
Removing swamp is connected to Canal Systems (internally still called TECH_WATERWORKS), peat bog to Iron Working (for stone tool workshops / early quarries) and Canal Systems (everything else), mangroves to Iron Working (for pretty much everything).

All of this is in Assets\XML\Units\CIV4BuildInfos.xml.
 
I got both techs but still can't find cities there. It used to be like that. Do you have to clear the field now with workers first before you found a city?

Yeah I think you do have to remove Mangrove. That has been that way for sometime iirc. Seem to recall DH wanting it that way so city building would be slowed down for those type terrains. Just like barren or desert if no water is close.

JosEPh
 
1. A bug that pre-dated V37. But just tracked it down.

Industrial Era.

You can build the wonder "Grand Central Station" - it gives a free Railway Station to every city on the same continent.

It should not go obsolete until - "Magnetic Levitation".

But it obsoletes when you discover the tech. "Realism", still in the Industrial age.

I have two saves if you need them. (before and after).

2. Also the "Textile Mill" Is mean't to give + 2 gold, but gives negative gold in the actual line (example -19.60).

3. Minor report: A loading hint "Bug Hint - Animals can not enter ...." needs to be removed.
 
I'll look into all 3. However,

2. Also the "Textile Mill" Is mean't to give + 2 gold, but gives negative gold in the actual line (example -19.60).
This can happen when the building that it's replacing is more productive than it is. I strongly believe this would be a sign that this upgrade is, by the numbers, an actual downgrade. So it'll just take some re-calibrating of the value of the Textile Mill.
 
View attachment 462570 View attachment 462571

Repeatable CTD from the City screen and Specialist Bar. In 1st screenshot in Jerusalem Capitol city there is a 1 with no image next to it. If you click the 1 you CTD. In Tel Aviv screenshot the mysterious 1 is not there. Savegame, MiniDump provided.

JosEPh
I could not fix the crash. It's somewhere in the exe. You can crash the game by clicking on ANY specialist amount and I'm not sure why that is. DH would probably have more ability to solve that since it's probably some kind of widget handling that shouldn't be handled the way it is, programmed in the panel.

It might just be a flaw in the system that will require a warning.

However, the other side of what you reported that made it really seem like a major bug was that you were getting a specialist being assigned to that didn't appear to exist. Digging into what was happening in the code, I found that the celebrity specialist was selected by the city but then looking at the panel... the celebrity doesn't show up. So confirming by looking at each building, I find that the celebrity is indeed possible for you once you used an entertainer to construct one of the dance buildings. The xml revealed the flaw... bVisible was not selected for the Celebrity, I guess because it was assumed to be one of the specialists that would be planted in the city only. It is, however, an important member of the assignable specialists, and this tag is the one to define the difference there, along with causes being given to be able to assign a citizen to that specialist type, which you have from that dance building.

SOOOOO, a simple change from 0 to 1 on bVisible solves that and the Celebrity icon shows up and it all looks fine.

But folks should be warned never to try to click on the # of specialists assigned value there. I confirmed that ALL of them, regardless of the specialist, is a 'click here to crash the game' button, for whatever reason.
 
Industrial Era.

You can build the wonder "Grand Central Station" - it gives a free Railway Station to every city on the same continent.

It should not go obsolete until - "Magnetic Levitation".

But it obsoletes when you discover the tech. "Realism", still in the Industrial age.

I have two saves if you need them. (before and after).
Looks like a save from the round before you click to end the turn and get realism will be necessary. Nothing I can see in the XML can answer for this. It's setup with Maglev as the obsoleting tech and even its required resources don't obsolete. I don't think there's any cause for any generation sources of coal (a map resource that does not obsolete) or steel wares to obsolete at realism but that's about all I can think could be happening unless it's just a flat out bug. I'll look at realism and see if there's any suggestion in anywhere its applied but I think I'm gonna need to see it in the code what is taking place.
 
Last edited:
2. Also the "Textile Mill" Is mean't to give + 2 gold, but gives negative gold in the actual line (example -19.60).
Checking the XML, there has to be something incorrect about the display as the Seamstress hut it is replacing cannot exceed the value of the Textile Mill. I was hoping the problem would be simpler than that. I'll need a save where you can build one of these so I can analyze the bug in the display code.
 
- Group of Settler and Archer was ordered to ambush a Pidgeon -> The Settler tried and died.
Fixed on the SVN now. This repairs a number of issues with ambush and assassinate. Thank you for presenting a good test case to work with.
 
Fixed on the SVN now. This repairs a number of issues with ambush and assassinate. Thank you for presenting a good test case to work with.

Cool! :) I'll tell my Settler's family that his sacrifice was not useless :'(
 
SVN 9413

Kerkouane is building the Textile Mill.

Replaying the turn that removed the Railway Stations does not repeat the problem. So I am baffled. I must have selected differrent builds etc. on the original run through.

Just checked, the National wonder has disappeared from my city. Maybe a spy destroyed it. Though I do have a resident spy and a dog in the city on the look out.
 

Attachments

  • Owner AD-0588.7z
    2.4 MB · Views: 84
Last edited:
Top Bottom