Troubleshooting and F.A.Q.

Is there a Quickload fix - some way to make it return to interpreting F8 & <Shift+F8> differently?

Whoops. I'll get that fixed in the next patch. If you want to fix it yourself in the meantime, in the file /History Rewritten/Assets/Python/CvEventManager.py, find line 265. Change this:

Code:
			# Tenets Advisor
			if theKey == int(InputTypes.KB_F8):
				CvScreensInterface.showTenetsScreen()
				return 1

to this:

Code:
			# Tenets Advisor
			if theKey == int(InputTypes.KB_F8) [COLOR="Red"]and not self.bShift[/COLOR]:
				CvScreensInterface.showTenetsScreen()
				return 1

Take care not to duplicate the ':'
 
Thanks, Xyth; that works.

And I see you already have a patch that might be a fix for my anarchy problem, but it breaks saves. I'll just go into the WB and make sure my neighbor is unable to screw me up by maliciously converting to my religion.
 
Me and my friend had been playing a multiplayer lan game together, but my friend (Not the host) cannot move, build a city, or do anything. The problem computer does have some memory problems. Please help.

And copious amounts of :badcomp: isn't working either.
 
Me and my friend had been playing a multiplayer lan game together, but my friend (Not the host) cannot move, build a city, or do anything. The problem computer does have some memory problems. Please help.

And copious amounts of :badcomp: isn't working either.

Apologies for the slow response, I've been ill. This sounds more like a generic multiplayer or connection problem than a HR problem. Do regular BTS multiplayer games work for your friend? Get him to have a look through his Logs folder, see if any error messages are being generated.
 
Hey, just a small glitch: the Egyptian Great Scientist in 1.22 is a big red dot. Besides that I love the updates! Thanks again!

Fixed for next release. Thanks!
 
New to mod for Civ4:bts. My wife and I have tried to play some multiplayer HR on a Mac LAN. Works well for a little while, then we start getting OOS errors. From that point, OOS happens frequently. We can't find the OOSLog.txt and MPLog.log files. Do we need to turn something "on" in order for the files to generate? (sorry if that's a stupid question)

Would love to try to give some help, as the mod seems pretty awesome. Thanks for making it Mac compatible! :)
 
New to mod for Civ4:bts. My wife and I have tried to play some multiplayer HR on a Mac LAN. Works well for a little while, then we start getting OOS errors. From that point, OOS happens frequently. We can't find the OOSLog.txt and MPLog.log files. Do we need to turn something "on" in order for the files to generate? (sorry if that's a stupid question)

Would love to try to give some help, as the mod seems pretty awesome. Thanks for making it Mac compatible! :)

In your ~/Documents/Civilization IV Beyond the Sword/CivilizationIV.ini file you need to enable the logging system and synchronization logging. Near the bottom of the file. Be sure to unhide Python Exceptions too (usually near line 100). With these set, MPLog.log should be generated in your logs folder (same location as .ini file), and OOSLog.txt should appear in the History Rewritten mod folder (after an OOS error has occurred).

Multiplayer may be a bit unstable at the moment, I wasn't able to test the most recent version in multiplayer thoroughly as I'd prefer before release. Your help solving these OOS quirks would be great, but since you're new to BTS mods, you might want to play a few single player games first. OOS errors are notoriously tricky to solve and take a lot of trial and error testing, for me and for you.
 
I see that it probably makes sense to play single player for now. However, we thought we'd try to generate a set of files for you using the instructions you provided, mostly to make sure we could. Made the following updates to these entries in the .ini:

LoggingEnabled = 1
SynchLog = 1
HidePythonExceptions = 0​

When we got an OOS, we checked and didn't see either file (in the expected folders or with Spotlight search). So, I updated the following entries (kind of taking a shot in the dark, admittedly) to:

HAPDebugger = 1
MessageLog = 1​

This allowed us to see a filed called "MPLog.txt" (not MPLog.log?) in the ~/Documents/Civilization IV Beyond the Sword/Logs folder after an OOS. Still no OOSLog.txt. Is there anything else I missed?

I don't want to waste your time. If it's just not going to work for us, that's fine. I'm not sure how much help our information would be anyway :)
 
I see that it probably makes sense to play single player for now. However, we thought we'd try to generate a set of files for you using the instructions you provided, mostly to make sure we could. Made the following updates to these entries in the .ini:

LoggingEnabled = 1
SynchLog = 1
HidePythonExceptions = 0​

When we got an OOS, we checked and didn't see either file (in the expected folders or with Spotlight search). So, I updated the following entries (kind of taking a shot in the dark, admittedly) to:

HAPDebugger = 1
MessageLog = 1​

This allowed us to see a filed called "MPLog.txt" (not MPLog.log?) in the ~/Documents/Civilization IV Beyond the Sword/Logs folder after an OOS. Still no OOSLog.txt. Is there anything else I missed?

I don't want to waste your time. If it's just not going to work for us, that's fine. I'm not sure how much help our information would be anyway :)

Sorry for the slow response, has been an incredibly busy week/month. MPLog.txt is correct. OOSLog.txt should be appearing in the History Rewritten folder, but I've found that some OOS errors don't trigger it for some reason. If you still have them, send me a copy of MPLog.txt from both computers. Would be a great help.
 
Thanks for clarification. Just checked and don't seem to have saved the MPLog.txt files. Doh... I'll try to get some to you in the future (just had our first child on the 4th; so little time and energy :))
 
Thanks for clarification. Just checked and don't seem to have saved the MPLog.txt files. Doh... I'll try to get some to you in the future (just had our first child on the 4th; so little time and energy :))

Congratulations! Exhausting but wonderful times ahead :)
 
Hey Xyth,

im so excited to try your mod! Unfortunately when im in the starting menu i can see no text.
In the troubleshooting section it says its because its not english. So i changed my steam language to english, downloaded civ 4 bts again, in the hope that it would be english now. But it isnt.
When i google change game language steam, i just have to rightclick bts and go to the tab language, but it simply isnt there. I have other games, where it appears, but for civ i doesnt.
Can u help me?
 
Hey Xyth,

im so excited to try your mod! Unfortunately when im in the starting menu i can see no text.
In the troubleshooting section it says its because its not english. So i changed my steam language to english, downloaded civ 4 bts again, in the hope that it would be english now. But it isnt.
When i google change game language steam, i just have to rightclick bts and go to the tab language, but it simply isnt there. I have other games, where it appears, but for civ i doesnt.
Can u help me?

You need to find the file CivilizationIV.ini, which on Windows is usually located in MyDocuments or MyGames somewhere. On OS X it's found in Documents. In this file you should find the following entry:

Code:
; English(0),French(1),German(2),Italian(3),Spanish(4) - Defaults to user-installed language
Language = 0

Set that to 0 and that should solve the issue.
 
Hi, this is a bug report. I discovered History Rewritten a week or two ago, and absolutely love it - it's breathed new life into an old favorite. Thanks so much for taking the (considerable) time to develop and support it!

That said, I'm at about 400 AD in my first game, and I'm getting frequent fatal game crashes requiring a restart of Civ. It started out infrequent, but has been getting worse - now I'm up to pretty much every other turn. Sometimes it crashes within one turn! I haven't noticed a pattern in what I'm doing when it happens - seems random, indeed even sometimes happens when just scrolling around the map!

It sounds a lot like the iMac 2008 issue you describe, but I'm running a 2013 Retina MBP (Yosemite)! I've attached my error logs, and an error report pasted below:

Spoiler :

Process: Civilization IV Beyond the Sword [6902]
Path: /Users/USER/Library/Application Support/Steam/*/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: ??? [1]
Responsible: Civilization IV Beyond the Sword [6902]
User ID: 501

Date/Time: 2015-01-14 20:57:05.153 -0500
OS Version: Mac OS X 10.10.1 (14B25)
Report Version: 11
Anonymous UUID: 7B160D15-8B67-F5FD-F90C-220B97702A37

Sleep/Wake UUID: 131ABF5E-1565-4392-943F-4C0C7EA678DD

Time Awake Since Boot: 24000 seconds
Time Since Wake: 5800 seconds

Crashed Thread: 0 MainThrd Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
-->
__TEXT 0000000000001000-0000000001340000 [ 19.2M] r-x/rwx SM=COW /Users/USER/Library/Application Support/Steam/*/Civilization IV Beyond the Sword.app/Contents/MacOS/Civilization IV Beyond the Sword

Thread 0 Crashed:: MainThrd Dispatch queue: com.apple.main-thread
0 libsystem_platform.dylib 0x905dd1c7 _platform_memmove$VARIANT$sse42 + 215
1 com.aspyr.civ4bts 0x000047ad CWaveFile::LoadMemory(unsigned char const*, bool) + 649
2 com.aspyr.civ4bts 0x0000656d Miles::SampleOpenAL::AttachMemory(void const*, unsigned long, _STREAM*, _SAMPLE*) + 71
3 com.aspyr.civ4bts 0x00003d9c AIL_set_named_sample_file + 318
4 com.aspyr.civ4bts 0x0063102d FMiles::SetSampleFile(_SAMPLE*, void const*, bool, int) + 79
5 com.aspyr.civ4bts 0x0062eaf2 FAudioSystemMiles::InitSoundHandle(FAudioSystem::ESoundType, void*, unsigned long, bool) + 334
6 com.aspyr.civ4bts 0x0063741a FSound3D::ApplyScriptUpdate(float) + 492
7 com.aspyr.civ4bts 0x00635dd3 FSound3D::Update(float) + 63
8 com.aspyr.civ4bts 0x006229cb FAudioManager::Update3DSounds(float) + 59
9 com.aspyr.civ4bts 0x00623451 FAudioManager::Update() + 275
10 com.aspyr.civ4bts 0x00a95868 CvAudioGame::UpdateAudioManager() + 58
11 com.aspyr.civ4bts 0x00b12a0d CvUpdater::basicUpdater() + 357
12 com.aspyr.civ4bts 0x00aea411 CvMessageBox::CvMessageBox(CvWString const&, CvWString const&, unsigned int, CvMessageBoxCallback*, void*) + 2631
13 com.aspyr.civ4bts 0x00a92460 CvApp::OnIdle() + 2694
14 com.aspyr.civ4bts 0x0066ea41 FWinApp::Run() + 31
15 com.aspyr.civ4bts 0x00b1ee52 WinMain + 50
16 com.aspyr.civ4bts 0x000a7f99 sEventLoopEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 111
17 com.apple.HIToolbox 0x90f915d4 _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
18 com.apple.HIToolbox 0x90ddb501 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2291
19 com.apple.HIToolbox 0x90dda4dc SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 402
20 com.apple.HIToolbox 0x90dda343 SendEventToEventTargetWithOptions + 95
21 com.apple.HIToolbox 0x90e0e46a ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1912
22 com.apple.HIToolbox 0x90ddb8cb DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 3261
23 com.apple.HIToolbox 0x90dda4dc SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 402
24 com.apple.HIToolbox 0x90dedd25 SendEventToEventTarget + 88
25 com.apple.HIToolbox 0x90f90cb5 ToolboxEventDispatcher + 82
26 com.apple.HIToolbox 0x90f90b79 RunApplicationEventLoop + 240
27 com.aspyr.civ4bts 0x000a8052 InstallEventsAndRunGameLoop() + 166
28 com.aspyr.civ4bts 0x000a83ea main + 356
29 com.aspyr.civ4bts 0x00002642 _start + 216
30 com.aspyr.civ4bts 0x00002569 start + 41

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x9243a8d2 kevent64 + 10
1 libdispatch.dylib 0x94b3673f _dispatch_mgr_invoke + 245
2 libdispatch.dylib 0x94b363a2 _dispatch_mgr_thread + 52

Thread 2:
0 libsystem_kernel.dylib 0x92439516 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x95eb5b7a _pthread_cond_wait + 842
2 libsystem_pthread.dylib 0x95eb5d9d pthread_cond_timedwait_relative_np + 47
3 com.apple.CoreServices.CarbonCore 0x93d38316 TSWaitOnConditionTimedRelative + 167
4 com.apple.CoreServices.CarbonCore 0x93d37e75 TSWaitOnSemaphoreCommon + 499
5 com.apple.CoreServices.CarbonCore 0x93d38070 TSWaitOnSemaphoreRelative + 24
6 com.apple.QuickTimeComponents.component 0x994185d2 0x991a4000 + 2573778
7 libsystem_pthread.dylib 0x95eb4ecf _pthread_body + 138
8 libsystem_pthread.dylib 0x95eb4e45 _pthread_start + 162
9 libsystem_pthread.dylib 0x95eb2f0e thread_start + 34

Thread 3:: com.apple.audio.IOThread.client
0 libsystem_kernel.dylib 0x92433a2e mach_msg_trap + 10
1 libsystem_kernel.dylib 0x92432ad0 mach_msg + 68
2 com.apple.audio.CoreAudio 0x98919c3a HALB_MachPort::SendMessageWithReply(unsigned int, unsigned int, unsigned long, unsigned long, mach_msg_header_t*, bool, unsigned int) + 142
3 com.apple.audio.CoreAudio 0x98913a74 HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 72
4 com.apple.audio.CoreAudio 0x9891211f HALC_ProxyIOContext::IOWorkLoop() + 1145
5 com.apple.audio.CoreAudio 0x98911be8 HALC_ProxyIOContext::IOThreadEntry(void*) + 156
6 com.apple.audio.CoreAudio 0x9891d277 ___ZN19HALC_ProxyIOContextC2Emj_block_invoke + 20
7 com.apple.audio.CoreAudio 0x98911b09 HALB_IOThread::Entry(void*) + 173
8 libsystem_pthread.dylib 0x95eb4ecf _pthread_body + 138
9 libsystem_pthread.dylib 0x95eb4e45 _pthread_start + 162
10 libsystem_pthread.dylib 0x95eb2f0e thread_start + 34

Thread 4:
0 libsystem_kernel.dylib 0x92433a6a semaphore_wait_trap + 10
1 com.apple.QuickTimeComponents.component 0x998ed424 0x991a4000 + 7640100
2 com.apple.QuickTimeComponents.component 0x9948a2e4 0x991a4000 + 3039972
3 com.apple.QuickTimeComponents.component 0x998ed1ae 0x991a4000 + 7639470
4 libsystem_pthread.dylib 0x95eb4ecf _pthread_body + 138
5 libsystem_pthread.dylib 0x95eb4e45 _pthread_start + 162
6 libsystem_pthread.dylib 0x95eb2f0e thread_start + 34

Thread 5:
0 libsystem_kernel.dylib 0x92433b4e mach_wait_until + 10
1 libsystem_c.dylib 0x97bced58 nanosleep + 360
2 libsystem_c.dylib 0x97bceb91 usleep + 60
3 com.aspyr.civ4bts 0x0000b461 sCQuickTimeThread(void*) + 73
4 libsystem_pthread.dylib 0x95eb4ecf _pthread_body + 138
5 libsystem_pthread.dylib 0x95eb4e45 _pthread_start + 162
6 libsystem_pthread.dylib 0x95eb2f0e thread_start + 34

Thread 6:
0 libsystem_kernel.dylib 0x92439e6e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x95eb536d _pthread_wqthread + 939
2 libsystem_pthread.dylib 0x95eb2eea start_wqthread + 30

Thread 7:
0 libsystem_kernel.dylib 0x92439e6e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x95eb536d _pthread_wqthread + 939
2 libsystem_pthread.dylib 0x95eb2eea start_wqthread + 30

Thread 8:
0 libsystem_kernel.dylib 0x92439e6e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x95eb536d _pthread_wqthread + 939
2 libsystem_pthread.dylib 0x95eb2eea start_wqthread + 30

Thread 9:

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0xf8f10a10 ecx: 0x0000002a edx: 0xfffe5b80
edi: 0x0001a480 esi: 0xf8f2aebe ebp: 0xbfffe648 esp: 0xbfffe640
ss: 0x00000023 efl: 0x00210202 eip: 0x905dd1c7 cs: 0x0000001b
ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f
cr2: 0x00000000

Logical CPU: 4
Error Code: 0x00000006
Trap Number: 14

<<trimmed for post size>>

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 4
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 22615
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=276.1M resident=134.9M(49%) swapped_out_or_unallocated=141.2M(51%)
Writable regions: Total=2.6G written=1.6G(62%) resident=2.1G(78%) swapped_out=0K(0%) unallocated=595.2M(22%)

REGION TYPE VIRTUAL
=========== =======
ATS (font support) 33.1M
CG backing stores 6348K
CG image 24K
CG shared images 272K
CoreUI image data 80K
IOKit 166.8M
IOKit (reserved) 256.0M reserved VM address space (unallocated)
Kernel Alloc Once 4K
MALLOC 1.9G
MALLOC (admin) 48K
MALLOC_LARGE (reserved) 10.1M reserved VM address space (unallocated)
Memory Tag 242 12K
Memory Tag 249 156K
OpenCL 16K
Stack 67.6M
Stack (reserved) 516K reserved VM address space (unallocated)
VM_ALLOCATE 288.2M
__DATA 19.1M
__GLSLBUILTINS 2588K
__IMAGE 528K
__IMPORT 132K
__LINKEDIT 69.9M
__OBJC 2260K
__STEAM 120K
__TEXT 206.2M
__UNICODE 544K
mapped file 766.2M
shared memory 68K
=========== =======
TOTAL 3.7G
TOTAL, minus reserved VM space 3.5G


Model: MacBookPro10,1, BootROM MBP101.00EE.B05, 4 processors, Intel Core i7, 2.7 GHz, 16 GB, SMC 2.3f36
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In
Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (7.15.124.12.10)
Bluetooth: Version 4.3.1f2 15015, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM256E, 251 GB
USB Device: Hub
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: Hub
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 23.4
 

Attachments

Quick update: I tried setting AudioEnable = 0 as per the iMac 2008 bug, and it definitely seems to have helped! I'm still getting crashes, but I'm getting a good 5-6 turns in before, and it now always seems to happen when I open a new screen (tech tree, government, that sort of thing), so might be a different issue?
 
Quick update: I tried setting AudioEnable = 0 as per the iMac 2008 bug, and it definitely seems to have helped! I'm still getting crashes, but I'm getting a good 5-6 turns in before, and it now always seems to happen when I open a new screen (tech tree, government, that sort of thing), so might be a different issue?


It might be a memory problem. Sometimes MAFs crash without the MAF message popping up. What size map are you playing on and how many civs? I'm away on holiday till next week so I'm unable to look at the reports you've attached, just the one in spoiler tags.
 
Hi, this is a bug report. I discovered History Rewritten a week or two ago, and absolutely love it - it's breathed new life into an old favorite. Thanks so much for taking the (considerable) time to develop and support it!

That said, I'm at about 400 AD in my first game, and I'm getting frequent fatal game crashes requiring a restart of Civ. It started out infrequent, but has been getting worse - now I'm up to pretty much every other turn. Sometimes it crashes within one turn! I haven't noticed a pattern in what I'm doing when it happens - seems random, indeed even sometimes happens when just scrolling around the map!

It sounds a lot like the iMac 2008 issue you describe, but I'm running a 2013 Retina MBP (Yosemite)! I've attached my error logs, and an error report pasted below:

Quick update: I tried setting AudioEnable = 0 as per the iMac 2008 bug, and it definitely seems to have helped! I'm still getting crashes, but I'm getting a good 5-6 turns in before, and it now always seems to happen when I open a new screen (tech tree, government, that sort of thing), so might be a different issue?

It might be a memory problem. Sometimes MAFs crash without the MAF message popping up. What size map are you playing on and how many civs? I'm away on holiday till next week so I'm unable to look at the reports you've attached, just the one in spoiler tags.

Home now, and was able to look at the error logs you posted. Unfortunately they don't shed any more light on the issue. Are you able to post a saved game?
 
Playing the mod, I encountered two issues.

First: it seems that there are missing text lines for diplomacy, when I refuse to give a tribute to another civ. See this pic.

Bug.jpg


Second: my game came to an end because everything got stuck at a certain turn at "waiting for the other civilizations". I can use the interface but it seems that my next turn never comes. I'm attaching the savegame (zipped): just end the turn and this event should trigger.
 

Attachments

Back
Top Bottom