History Rewritten (Original Thread)

Oh, as a complete aside.... the animation for Alexander the Great is one of the hottest men I've evr seen in a video game.
 
You could test that by turning off Time Machine for a while and seeing if the crashes stop happening. How long would you need to play crash-free to decide that the situation had changed?

Okay, Time Machine is turned off, and I got the crash again. However, I still heard the drive spin up right before the crash.
 
MarylandBear could you please post a copy of the audio.log? You first need to enable logging in /Documents/Civilization IV Beyond the Sword/CivilizationIV.ini, run the game until it crashes and then you'll find the audio.log in /Documents/Civilization IV Beyond the Sword/Logs/. There might be some useful info in that.
 
go into CivilizationIV.ini
Command+F "AudioEnable" set to 0, then play until crash
 
OT: heads up Safari 5 is out, Safari has regained status as fastest browser!
 
Okay, it took a while, but I finally got a crash with audio off. The crash occurred at a new point this time -- when I was map trading, with a leader on a continent that was new to me.


The audio file doesn't seem to provide much useful info, though, but here it is:
[219362.030] Audio Manager: Loading Audio Defines file XML\Audio\AudioDefines.xml...
[219362.241] Audio Manager: Successfully loaded Audio Defines file XML\Audio\AudioDefines.xml.
[219362.241] Audio Manager: Loading 2D Scripts file XML\Audio\Audio2DScripts.xml...
[219362.833] Audio Manager: Successfully loaded 2D scripts file XML\Audio\Audio2DScripts.xml.
[219362.833] Audio Manager: Loading 3D Scripts file XML\Audio\Audio3DScripts.xml...
[219363.377] Audio Manager: Successfully loaded 3D scripts file XML\Audio\Audio3DScripts.xml.
[219363.381] Audio Manager: Successfully loaded Soundscape scripts file XML\Audio\AudioSoundscapeScripts.xml.

Here's the app.log, which contains one useful tidbit:
[219408.363] FBMode = FBMODE_DEFAULT
[219409.625] CvApp::OnActivate
[219410.763] Shader Version - vertex:11 pixel:13 level:2 mem:536870912 HWTnL=1
[219430.240] CvApp::OnDeactivate
[219453.602] CvApp::OnActivate
[219467.601] CvApp::OnDeactivate
[219527.594] CvApp::OnActivate
[219538.808] CvApp::OnDeactivate
[219619.999] CvApp::OnActivate
[219640.930] CvApp::OnDeactivate
[219746.774] CvApp::OnActivate
[219751.966] CvApp::OnDeactivate
[219839.789] CvApp::OnActivate
[219882.945] CvApp::OnDeactivate
[220109.960] CvApp::OnActivate
[220186.692] CvApp::OnDeactivate
[220214.097] CvApp::OnActivate
[220236.957] CvApp::OnDeactivate
[220285.408] CvApp::OnActivate
[220312.696] CvApp::OnDeactivate
[220411.498] CvApp::OnActivate
[220431.980] CvApp::OnDeactivate
[220439.281] CvApp::OnActivate
[221336.472] ERR: Memory allocation failure - exiting program.
Reason:std::bad_alloc

I've saved off all the log files so if you need to see others, ask.

For what its worth, I did stop and restart the aforementioned time machine drive. Perhaps that helped.
 
And I just got another crash, this time just after ending a turn and waiting for the game to process the other Civ's turns.

Here's app.log. The audio.log didn't update this time.

[245.087] FBMode = FBMODE_DEFAULT
[245.675] CvApp::OnActivate
[246.238] Shader Version - vertex:11 pixel:13 level:2 mem:536870912 HWTnL=1
[526.496] ERR: Memory allocation failure - exiting program.
Reason:std::bad_alloc
 
okay, now we absolutely know that it is audio

Xyth, if people are having that problem we should get them to
go into CivilizationIV.ini
Command+F "AudioEnable" set to 0

MarylandBear, what are your system specs? (if we gather this from everyone we may be able to isolate the issue)
 
okay, now we absolutely know that it is audio

But I got the crash with audio set to zero -- I was getting no sound, except for the wonder videos. It may have taken longer this time, though, but I won't swear to that.

I also noticed that there were a few times the game "hung" a bit like it was going to crash, giving me the "spinning beach ball" mouse pointer.

MarylandBear, what are your system specs? (if we gather this from everyone we may be able to isolate the issue)

I'll get you those when I get home from work. Can you be more specific about the specs you need? I'm guessing processor type, memory, and audio card details -- do you need video card details, too?

For what it's worth, I did try playing the unmodded game yesterday and it never crashed. I can try to continue that some more today just to verify that the problem is definitely with the mod.
 
As for suggestions for things I'd like to see in History Rewritten (other than "please make my game stop crashing"), one of the things I always thought was really really great about Civ IV was the different religions.

However, the "different" religions are all the same -- only names are different. HW at least improves that a little by giving their missionaries unique names, but still, a missionary is a missionary is a missionary, even if one is a rabbi and another is an imam and another is a kohen. (Though I do love the "Ooooooooo-din!" for the Asatru missionaries.)

I'd like for the religions to provide various benefits. Perhaps the city containing a religion's holy site, or one of its cathedrals, could be able to build a special unit or building, like the Macabee (sp?) special unit the Hebrews get in HW.

Now, I realize the obvious danger in that it would be really easy to make that really offensive. I'll leave the details to the imagination of the reader.

And I'm not even sure if this would be possible within the game, but some way to experience schisms during the game would be great fun. Maybe if you respond "never" to an Apostolic Palace decree, you could start your own church, just like Henry VIII.
 
Eastern Europe is pretty sparsely represented compared to W. Europe...
Any plans to address that?
 
And I'm not even sure if this would be possible within the game, but some way to experience schisms during the game would be great fun. Maybe if you respond "never" to an Apostolic Palace decree, you could start your own church, just like Henry VIII.

Nice idea. I think, religion is an invitation to modders anyway, because it's so obvious that the designers of the original game were avoiding to get their fingers burnt, while a modder doesn't always have to please everybody.
 
Actually, another religious mod I've thought of is adding "atheism" or "rationalism" as a "religion". (And I realize they aren't religions, but would be best treated as so in game terms.) Perhaps add "science museum" as one of atheism's buildings.

Maybe have "Official Atheism" as a religious civic available after the development of "Scientific Method". Only spies could spread a religion in your civ. Monasteries, temples and cathedrals provide no benefits, but libraries, universities, observatories and laboratories have increased benefits. Perhaps even a happiness penalty based on the percentage of your citizens that practice a religion -- that percentage declining the longer you've had atheism as your religious civic.
 
Actually, another religious mod I've thought of is adding "atheism" or "rationalism" as a "religion". (And I realize they aren't religions, but would be best treated as so in game terms.) Perhaps add "science museum" as one of atheism's buildings.

Maybe have "Official Atheism" as a religious civic available after the development of "Scientific Method". Only spies could spread a religion in your civ. Monasteries, temples and cathedrals provide no benefits, but libraries, universities, observatories and laboratories have increased benefits. Perhaps even a happiness penalty based on the percentage of your citizens that practice a religion -- that percentage declining the longer you've had atheism as your religious civic.

please cite one country that had state atheism but not communism?
 
MarylandBear, what are your system specs? (if we gather this from everyone we may be able to isolate the issue)

Processor: 3.06 GHz Intel Core 2 Duo
Memory: 4 GB 800 MHz DDR2 SDRAM
Audio: ntel High Definition Audio:

Device ID: 0x106B00A0
Audio ID: 62
Available Devices:
Speaker:
Connection: Internal
Headphone:
Connection: Combo
Internal Microphone:
Connection: Internal
Line In:
Connection: Combo
S/P-DIF Out:
Connection: Combo
S/P-DIF In:
Connection: Combo
Video: NVIDIA GeForce 8800 GS:

Chipset Model: NVIDIA GeForce 8800 GS
Type: GPU
Bus: PCIe
PCIe Lane Width: x16
VRAM (Total): 512 MB
Vendor: NVIDIA (0x10de)
Device ID: 0x0609
Revision ID: 0x00a2
ROM Revision: 3234
Displays:
iMac:
Resolution: 1920 x 1200
Pixel Depth: 32-Bit Color (ARGB8888)
Main Display: Yes
Mirror: Off
Online: Yes
Built-In: Yes
Display Connector:
Status: No Display Connected
 
And I just got another crash, this time just after ending a turn and waiting for the game to process the other Civ's turns.

Here's app.log. The audio.log didn't update this time.

[245.087] FBMode = FBMODE_DEFAULT
[245.675] CvApp::OnActivate
[246.238] Shader Version - vertex:11 pixel:13 level:2 mem:536870912 HWTnL=1
[526.496] ERR: Memory allocation failure - exiting program.
Reason:std::bad_alloc

Could you post the crash reports (from the Console) you got for these crashes when audio was off? The crash you posted before was related to audio so these ones you are getting with audio off should hopefully have some new information in them.

Also, are these crashes happening in the same place everytime? i.e if you load a saved game will it crash at the same point again? If you could post a saved game that would be a big help too.

Map trading seems to be a common trigger for crashes. I've seen them in HR, in other mods and even in standard BTS. HR might be making them worse though, shall see.


As for suggestions for things I'd like to see in History Rewritten (other than "please make my game stop crashing"), one of the things I always thought was really really great about Civ IV was the different religions.

However, the "different" religions are all the same -- only names are different. HW at least improves that a little by giving their missionaries unique names, but still, a missionary is a missionary is a missionary, even if one is a rabbi and another is an imam and another is a kohen. (Though I do love the "Ooooooooo-din!" for the Asatru missionaries.)

I'd like for the religions to provide various benefits. Perhaps the city containing a religion's holy site, or one of its cathedrals, could be able to build a special unit or building, like the Macabee (sp?) special unit the Hebrews get in HW.

Now, I realize the obvious danger in that it would be really easy to make that really offensive. I'll leave the details to the imagination of the reader.

And I'm not even sure if this would be possible within the game, but some way to experience schisms during the game would be great fun. Maybe if you respond "never" to an Apostolic Palace decree, you could start your own church, just like Henry VIII.

I think that a bit of gameplay difference could indeed be added to the religions, though not too much. I think the easiest and most balanced way would be to adjust/give bonuses the major buildings - the Cathedral equivalent and the Shrine (I would limit civs to one holy city each if I did this). One thing I've seen done before is changing which resources provide the happiness bonus. By default this is incense for all religions but it doesn't have to be. I was intending to do this when I added new resources but I've been putting them off because with all the maps they are going to be hell to implement.

There is also a Inquisitions/Religious victory mod component out there that I may consider at some point. Things like schisms would require SDK changes.

Eastern Europe is pretty sparsely represented compared to W. Europe...
Any plans to address that?

Yes, I'll be adding one more Eastern European civ, most probably Poland. I've taken a break from adding new civs cos I need to work on other features and stability but hopefully in an update sooner than later.

Actually, another religious mod I've thought of is adding "atheism" or "rationalism" as a "religion". (And I realize they aren't religions, but would be best treated as so in game terms.) Perhaps add "science museum" as one of atheism's buildings.

Adding more religions (or corporations) beyond the number I already have is tricky due to the inflexibility of the GameFont files. It can be done but I really don't want to go there yet as it's a ton of work and extremely error-prone.
 
Poland would be good for northern Eastern Europe...
Perhaps Bulgaria, Romania or Ukraine for the south? Otherwise that is a lot of empty land still.
 
Could you post the crash reports (from the Console) you got for these crashes when audio was off? The crash you posted before was related to audio so these ones you are getting with audio off should hopefully have some new information in them.

Also, are these crashes happening in the same place everytime? i.e if you load a saved game will it crash at the same point again? If you could post a saved game that would be a big help too.

Map trading seems to be a common trigger for crashes. I've seen them in HR, in other mods and even in standard BTS. HR might be making them worse though, shall see.

The first part of the log follows. I've saved the whole thing; ask if you need more.

No, the crashes do not seem to occur at the same time. I restored a save game from before the aforementioned crash, and immediately successfully traded maps with the same civ. The latest crash... being a bear of very little brain, I can't remember what happened.



Process: Civilization IV Beyond the Sword [1969]
Path: /Games/Civilization IV Gold/Beyond the Sword/Civilization IV Beyond the Sword.app/Contents/MacOS/Civilization IV Beyond the Sword
Identifier: com.aspyr.civ4bts
Version: 3.19 (92131)
Code Type: X86 (Native)
Parent Process: launchd [491]

Date/Time: 2010-06-08 17:35:30.909 -0400
OS Version: Mac OS X 10.6.3 (10D573)
Report Version: 6

Interval Since Last Report: 469253 sec
Crashes Since Last Report: 60
Per-App Interval Since Last Report: 152324 sec
Per-App Crashes Since Last Report: 51
Anonymous UUID: 74A68D83-5E63-4922-8ACD-460BF38D3BCD

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x96361132 __kill + 10
1 libSystem.B.dylib 0x96361124 kill$UNIX2003 + 32
2 libSystem.B.dylib 0x963f38e5 raise + 26
3 libSystem.B.dylib 0x9640999c abort + 93
4 libstdc++.6.dylib 0x94de9fda __gnu_cxx::__verbose_terminate_handler() + 433
5 libstdc++.6.dylib 0x94de817a __cxxabiv1::__terminate(void (*)()) + 10
6 libstdc++.6.dylib 0x94de81ba __cxxabiv1::__unexpected(void (*)()) + 0
7 libstdc++.6.dylib 0x94de82b8 __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
8 libstdc++.6.dylib 0x94de8658 operator new(unsigned long) + 101
9 libstdc++.6.dylib 0x94de8703 operator new[](unsigned long) + 17
10 com.aspyr.civ4bts 0x0004341e IDirect3DDevice_Mac::GetRenderTargetData(IDirect3DSurface9*, IDirect3DSurface9*) + 344
11 com.aspyr.civ4bts 0x00085ec5 IDirect3DSurface_Mac::LockRect(_D3DLOCKED_RECT*, tagRECT const*, unsigned long) + 175
12 com.aspyr.civ4bts 0x000816a4 D3DXLoadSurfaceFromSurface + 432
13 com.aspyr.civ4bts 0x005fb414 FFileWriter::WriteDDS(char const*, NiTexture*, unsigned int, unsigned int, unsigned int) + 674
14 com.aspyr.civ4bts 0x005fb4b9 FFileWriter::WriteTGA(char const*, NiTexture*) + 55
15 com.aspyr.civ4bts 0x00ac9431 CvEngine::render() + 1389
16 com.aspyr.civ4bts 0x00b12abd CvUpdater::basicUpdater() + 533
17 com.aspyr.civ4bts 0x00aea411 CvMessageBox::CvMessageBox(CvWString const&, CvWString const&, unsigned int, CvMessageBoxCallback*, void*) + 2631
18 com.aspyr.civ4bts 0x00a92460 CvApp::OnIdle() + 2694
19 com.aspyr.civ4bts 0x0066ea41 FWinApp::Run() + 31
20 com.aspyr.civ4bts 0x00b1ee52 WinMain + 50
21 com.aspyr.civ4bts 0x000a7f99 sEventLoopEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 111
22 com.apple.HIToolbox 0x949930a9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
23 com.apple.HIToolbox 0x94992370 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
24 com.apple.HIToolbox 0x949921cf SendEventToEventTargetWithOptions + 58
25 com.apple.HIToolbox 0x949c6d10 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 3006
26 com.apple.HIToolbox 0x949934fa DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2672
27 com.apple.HIToolbox 0x94992370 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
28 com.apple.HIToolbox 0x949b4b55 SendEventToEventTarget + 52
29 com.apple.HIToolbox 0x94b3ddf7 ToolboxEventDispatcher + 86
30 com.apple.HIToolbox 0x94b3df2f RunApplicationEventLoop + 243
31 com.aspyr.civ4bts 0x000a8052 InstallEventsAndRunGameLoop() + 166
32 com.aspyr.civ4bts 0x000a83ea main + 356
33 com.aspyr.civ4bts 0x00002642 _start + 216
34 com.aspyr.civ4bts 0x00002569 start + 41
 

Attachments

Back
Top Bottom