LoneGazebo / Community-Patch-DLL

Community Patch for Civilization V - Brave New World
Other
285 stars 158 forks source link

Game crash when looking at Egyptian Artefact #2200

Closed dennisdahlc closed 8 years ago

dennisdahlc commented 8 years ago

Bug Report Template

Mod Version (i.e Date - (4/23b)):

7/7

  1. Mod List (if using standard CPP set, leave blank):
  2. Type of error (i.e. crash, interface bug, AI quirk):

Game crash

  1. Steps to reproduce:

When I mouse over the newly created artefact, the game crashes. Also when I enter the tourism window and choose "Your culture". This is the 8th burial chamber I have constructed, and nothing was wrong with the previous 7. The game crashes every single time.

  1. Additional information:

Please help me fix this. I hope I can alter my current version, since I am in a very exciting game as Egypt, and since this is gamebreaking for me since I am going for a tourism victory :)

Sry for the pdf, but I had to rename the zip, since github didn't want me to upload a zip.

stuff.pdf


Supporting information:

Please note that you can attach .zip files to Issues by dragging-and-dropping them. If possible, zip up all supporting data and post that way.

  1. Log files: Database.log and Lua.log needed
  2. Minidump file (located in your Civ5.exe directory)
  3. Screenshots (if needed)
LoneGazebo commented 8 years ago

You don't have logging enabled. Enable it, crash, and then re-upload.

dennisdahlc commented 8 years ago

I played a little further yesterday, and avoided looking at the tourism window and the city screen. Now when I load my game, the game crashes right away. I have attached the new save game. !Ramses again.pdf

Here are the logs. I looked through them quickly and I see some errors here and there.

Logs.pdf

LoneGazebo commented 8 years ago

Logs look fine (most errors you see are benign, as they're vanilla things). Sorry about the CTDs. Make sure you are loading your save after loading all mods. Try loading an earlier save and see if that works.

dennisdahlc commented 8 years ago

Loading an older save allows me to at least continue the game, but without access to the tourism window my tourism victory is not going so well :)

Could it be something related to the name of the artefact ? When I click on the tourism icon, I can go to the Swap great works window and see all my artefacts, but I can not see my newest one which is causing the problem.

Could there be a problem in the name of the artefact perhaps ? If you need it, I can look at the current ones making it easier for you to pinpoint the exact name of the crashing artefact.

LoneGazebo commented 8 years ago

When you go to the window, is the UI messed up?

dennisdahlc commented 8 years ago

No, the GUI looks as usual except for the one artefact missing in the list.

Are the names of the artefact determined by an ordered list ? If so, I might be able to procure a save game from the turn before I actually build the burial tomb with the crashing artefact.

LoneGazebo commented 8 years ago

List is randomized.

dennisdahlc commented 8 years ago

Is there any way that I can view the list from a file ? If it is truly a specific artefact causing this, I might be able to find out which one.

dennisdahlc commented 8 years ago

I found a save from before the game crashing. I built a burial tomb in a city which was conquered by me, and then when I enter the tourism window, the game crashes. I am starting to think that it is not related to a specific artefact, but perhaps when building a burial tomb in a city which was not founded by Egypt.

I hope this helps you to find the error. It would be awesome if the fixing could make me continue my current game, but since most new versions of CBO are not savegame-compatible, my hopes are not too high.

LoneGazebo commented 8 years ago

Shouldn't matter - how many cities do you have, may I ask?

LoneGazebo commented 8 years ago

May be an issue with you actually running out of great artifacts to create.

LoneGazebo commented 8 years ago

If so, just don't build any more burial tombs and I'll try to solve that problem.

dennisdahlc commented 8 years ago

I think I have 7 that I founded myself and build burial tombs in them. I probably conquered 5 which already had burial tombs but with no artefacts, since I didn't build them myself. The crashing city might be the 12th or so city. Too bad if I have to stop building burial tombs, but I guess that is better than not being able to play the game :)

LoneGazebo commented 8 years ago

How did other civ cities have burial tombs in them?

pandasnail commented 8 years ago

Caravansaries becoming Tombs on conquest is I assume what he means

dennisdahlc commented 8 years ago

Pandasnail is correct. The crashing city would be the 8th city I have build a burial tomb in, although I have not settled it myself. Perhaps that is the problem.

If I settle another city and builds a burial tomb in that, would it then also crash ? I will report if I find out.

HalfEmptyMug commented 8 years ago

I'm having the same problem, it doesn't seem to matter whether the offending burial tomb is built in a city you've settled or conquered.

dennisdahlc commented 8 years ago

Did you manage to fix it ?

LoneGazebo commented 8 years ago

We shall see. I added some checks to keep the game from making a bad artifact.

HalfEmptyMug commented 8 years ago

I'm not sure if this is the best place to write this since this is now closed, but after some testing with IGE I believe I found the culprit of the crash. It seems that after any civilization discovers archaeology all artifacts in the world are set and no more can be created. When building a burial tomb before this discovery an artifact appears as normal, but after it is discovered no artifact appears (which would result in a crash in the older version). Also, in the latest version (7-27) a burial tomb cannot be constructed if the game starts in the industrial era or later, but other civs may build caravansaries (which, similar to religion being turned off, would explain why a building creating an artifact would be unavailable).

The checks you added seemed to resolve the issue just fine, but this might shed light on any other issues that may arise regarding artifact creation.

LoneGazebo commented 8 years ago

Interesting! I force an update of the plot to put an archaeological site there, not sure why it is blocking it. Thanks for the insight!