Bug Reports

Hi, I'm playing a game using the latest SVN build (svn revision 156) and I've found a bug that I'm kind of sure I haven't seen in earlier revisions: After building The Pyramids, I cannot select all governments like I should be able to! So The Pyramids have no effect :(.

Some testing:
I was able to reproduce it by rushing Pyramids in a Play Now game in rev 154. I also tried rushing Pyramids in rev 153 and there it still worked as it should and I got all government civics. So it must have been broken in there somewhere!

After looking through the code diff, my guess is you somehow return too quickly in CvPlayer.cpp here: (line 7842)
if( (eBuilding < 0) || (eBuilding > GC.getNumBuildInfos()) )
{
return;
}
 
Thank you, that's a serious bug, should be gc.getNumBuildingInfos(). Will put out a patch right away.
 
Re-posting my problem here, as per Phungus' suggestion:

As with the previous version of LoR, I am unable to play. The title screen is devoid of text; I cannot start a new game.

I've checked my options in Vanilla Civ IV... English is my specified language.

I then tried installing "BUG". I only installed because someone (on a diff. forum) suggested that doing so might fix the problem (don't ask me how). The problem remains, with or without BUG... as a single player, or multiplayer option.

I've experienced this problem on other modpacks:

NWAPreH
ROM: AND
Quot Capita

All behave the same way on my PC. All incorporate BUG elements, if I'm not mistaken...

Other mods (like RFC and History of the 3 Kingdoms) work fine.
 
I am attaching a debug dll to this post. Download it, extract the gamecore.dll inside, and replace the gamecore.dll in LoR's assets folder with it. Then start a game. Hopefully an assert will pop up directing us toward the problem. If an assert pops up, don't bother hitting the "debug" button, as that will just cause a crash, as you wol't have MVS running and attached to Civ's executable; instead hit the "Ignore once button", and do that a couple times. Please post the messages in the assert's pop up boxes. If you keep getting assert messages, just hit "ignore always" button, until you can get to the title screen, and stop getting assert failure messages. You will need to run Civ4 in windowed mode when running a debug dll, unless you want to flip back and forth to the desktop. You can put Civ4 in windowed mode by editing Civ4's main ini file, found in your Beyond the Sword folder in your My Documents directory, if you edit this file to go to windowed mode, also please turn on python exceptions and logging, and post the PythonError text file that will be in your logs as well (you can just attach the PythonError document here as an attachement to a post as it's just a simple text file). If I can see the python error logs, and also see any assert messages you are getting, I can hopefully figure something out.
 

Attachments

I am attaching a debug dll to this post. Download it, extract the gamecore.dll inside, and replace the gamecore.dll in LoR's assets folder with it. Then start a game. Hopefully an assert will pop up directing us toward the problem. If an assert pops up, don't bother hitting the "debug" button, as that will just cause a crash, as you wol't have MVS running and attached to Civ's executable; instead hit the "Ignore once button", and do that a couple times. Please post the messages in the assert's pop up boxes. If you keep getting assert messages, just hit "ignore always" button, until you can get to the title screen, and stop getting assert failure messages. You will need to run Civ4 in windowed mode when running a debug dll, unless you want to flip back and forth to the desktop. You can put Civ4 in windowed mode by editing Civ4's main ini file, found in your Beyond the Sword folder in your My Documents directory, if you edit this file to go to windowed mode, also please turn on python exceptions and logging, and post the PythonError text file that will be in your logs as well (you can just attach the PythonError document here as an attachement to a post as it's just a simple text file). If I can see the python error logs, and also see any assert messages you are getting, I can hopefully figure something out.


I followed your instructions... and replaced the DLL. However, I received no assert messages on boot-up (in full-screen or windowed mode).

EDIT: Tried again, multiple times. It's the LoR title screen, but without text. Something I failed to mention earlier: I can still click on the areas where text SHOULD be, and cause *something* to happen. (re: lower left hand corner will exit the game)
 
I followed your instructions... and replaced the DLL. However, I received no assert messages on boot-up (in full-screen or windowed mode).

That's wierd...

Could you enable python exceptions and logging and post your python error file? Civ4 will create one if there are any python errors, and you enable python exceptions and logging (you do this in the same file that allows you to change Civ4 into windowed mode). I'm a little baffled at how something serious enough to kill the opening game text wouldn't create asserts, but that's what happened if you didn't have any. There should be some python errors though then, and I need to see those. There might be alot, and they wouldn't be simple things like the dll asserts, so just post your entire python error log file, you can just attach it to your post since it's a simple text document.
 
That's wierd...

Could you enable python exceptions and logging and post your python error file? Civ4 will create one if there are any python errors, and you enable python exceptions and logging (you do this in the same file that allows you to change Civ4 into windowed mode). I'm a little baffled at how something serious enough to kill the opening game text wouldn't create asserts, but that's what happened if you didn't have any. There should be some python errors though then, and I need to see those. There might be alot, and they wouldn't be simple things like the dll asserts, so just post your entire python error log file, you can just attach it to your post since it's a simple text document.

Establish connection to Python Debugger
HAPDebugger = 0

Enable the logging system
LoggingEnabled = 0


Are these the fields I should set to 1?
 
No, not the Hap debugger, that'll cause a hang. There is an option that disables python exceptions, and it is on by default, you want to disable it so python exceptions are printed. The logging one is correct.
 
No, not the Hap debugger, that'll cause a hang. There is an option that disables python exceptions, and it is on by default, you want to disable it so python exceptions are printed. The logging one is correct.

; Overwrite old network and message logs
OverwriteLogs = 1


Is the only one I see with a value of 1...

Is this correct? I see nothing that mentions python exceptions...

Sorry for the newbish question(s)

EDIT: ; Set to 1 for no python exception popups
HidePythonExceptions = 1

FOUND IT! :P
 
Civ4 will create a Logs folder in your Beyond the Sword folder in the My Documents directory. The Python error log should be there, just attach it to your post to upload it. If you didn't get any python exception pop ups then there were no errors, and then I'd be pretty confused.
 
Civ4 will create a Logs folder in your Beyond the Sword folder in the My Documents directory. The Python error log should be there, just attach it to your post to upload it. If you didn't get any python exception pop ups then there were no errors, and then I'd be pretty confused.


The system won't let me upload the file in question. It doesn't explain why...

It's a Text file, after all.

Anyhow, this is what the log says:


ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
 
Try deleting the full of resources Map script, found in the Private Maps folder of the mod. And restart. If it's not letting you post the python error log, put it in a folder, and compress it (right click and select "zip" or "compress" or "add to archive" or something like that), then attach the zip file.
 
Try deleting the full of resources Map script, found in the Private Maps folder of the mod. And restart. If it's not letting you post the python error log, put it in a folder, and compress it (right click and select "zip" or "compress" or "add to archive" or something like that), then attach the zip file.

No change. Still no text, and the log is identical.

EDIT: The Map script is named: Full_of_Resources_3_10.py on my PC.

I renamed it: Full_of_Resources_3_00.py

Doing so resulted in a clean error log, but still no text on the title screen.
 
Sorry man, I'm at a complete loss as to how it would be possible not to get any dll assert failures, or python exceptions, and have a bug like that. I just don't know.
 
Sorry man, I'm at a complete loss as to how it would be possible not to get any dll assert failures, or python exceptions, and have a bug like that. I just don't know.

I understand. It still bothers me to no end that this bug occurs for me in several mod-packs. If you have any thoughts on what (if anything) they have in common, please let me know...

EDIT: Just did a full wipe of Civ 4 & all associated files. Then I downloaded them again... and re-installed LoR. Unfortunately, nothing has changed... the problem remains :(
 
@incognet

The translator for RevDCM just uploaded some new German translations, but also brought up that they had removed some non standard latin characters and replaced them with their proper unicode, because those characters can break Chines and Syrillic versions, aparently. Perhaps this is the cause of your bug. I don't know if this will work for you, but worth a shot. Download the attachment in this post, and extract it into your LoR/Assets/XML folder and tell it to overwrite all the all files when prompted (it should replace most of the Text files with the updated text that has had all non latin characters replaced with unicode). Let me know if it works.
 

Attachments

While playing with my brother in multiplayer we were both having what I believe is the field of view randomly change on us zooming the screen in or out randomly at random times. Sometimes it wouldn't happen at all in a turn, sometimes it might happen 3 times in one turn. The zooming I'm referring to is the level at which the cloud layer (globe view) takes over, while it was doing this the Field of View slider in the top right doesn't change though. So far we've only experienced this in multiplayer.

Needless to say this gets kind of annoying. Otherwise love your mod and look forward to v1.0.

And here is a save where we had it happening in.
 

Attachments

Back
Top Bottom