HOF MOD Errors + Mapfinder

KingMorgan

Deity
Joined
May 6, 2008
Messages
2,327
Location
In the clouds
Not sure if this is the right place for a bug report, have checked out the BTS bug forum and the Technical Forum, but though as this is HoF / Mapfinder related i'll post it here. Apoligies if i'm the wrong place.


My HoF MOD is FUBAR, it loads ok, but when you settle a city we see this screen;

fooked0000.jpg


I suspect a strike is on it's way!!

I had this error once before, just after installing Mapfinder. I cured it by uninstalling the HoF MOD and Mapfinder, then reinstall. It happens on any exsisting HoF save game and on newly generated maps. If i unload a MOD then BTS will play normally and without issue. If i boot BTS i have no issues.

Using the HoF mod when it is like this, initally is slow as hell to settle and takes minutes to ALT TAB to desktop. nothing happens then suddenly the curser will change from pointly style to the Spinning world then you'll exit to main menu or to desktop (depends on the request you make) i.e it will do as asked but very slowly.

i suspct the error is caused by multiple running copies of Civ, i.e accidently I try to open a Mapfinder save when the BTS HoF is already running.

Info in init.log files:

C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\log\init.log

[1215.546] ERR: InitWinApp() failed, exiting
[1215.562] ERR: CIV Init FAILED, exiting


C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\log\init.log

[7037.375] ERR: InitWinApp() failed, exiting
[7037.375] ERR: CIV Init FAILED, exiting

Not sure if the above info is relavant or not but though i'd include it in case.

I'm not going to reinstall the HoF MOD and Mapfinder for the moment in case i can provide helpful info. Although shortly i'll have to to play SGTOM8 and BTS14.

I'm not really asking for a resolution, just trying to be helpful to document a potenital erorr / bug.

running 3.17 + Bluemarble + HOF 3.17 + Mapfinder 1.7.1 Build 2909
 
XP service pack 2

Alt M in game.

There are no Python log files in the log folder.
(i have not enable logging in any way, if you could direct me to the correct .ini files i will turn loggin on and run HoF mod again to try to collect data)
 
Just a bump for Morgan, I have been having the exact same problem recently, however it is inconsistent which is making it difficult to isolate.
I'm keeping Ozbenno updated on the issue as I try to play throgh a full game. I'll make sure to flag it when I submit it so you can check if there's anything being corrupted in the save, or if it's a conflict within the software.
 
I'll check for that, however the problem has persisted after rebooting the computer and starting up Civ again (I'd never try and run multiple instances deliberately).
I will keep poking around until I can reproduce the error on demand. If only it wasn't so inconsistent.
 
I have a different Mapfinder problem. Not sure if anyone can help me though.

I have BTS and the HOF mod running fine using wine in Ubuntu but I can't get Mapfinder to run.
I used winetricks to install dotnet2.0 like Denniz said is required but it still crashes when I try to start it. I thought there may have been a VB dependency so I installed VBRUN6 runtime dlls but that didn't help either.

If I move the whole mapfinder folder into the wine -> program files folder then I can start MF in BTS but it only runs one map change and then kinda stops. Kinda meaning it never counts another map or changes but if you hit alt-x then it says stopping mapfinder.

The error is below if anyone has ever tried this and been successful.

Spoiler :
fixme:shell:URL_ParseUrl failed to parse L"Microsoft.VisualBasic"
fixme:shell:URL_ParseUrl failed to parse L"System.Windows.Forms"
fixme:shell:URL_ParseUrl failed to parse L"System"
fixme:shell:URL_ParseUrl failed to parse L"System.Drawing"
fixme:shell:URL_ParseUrl failed to parse L"Accessibility"
fixme:shell:URL_ParseUrl failed to parse L"System.Runtime.Remoting"
fixme:advapi:LsaOpenPolicy ((null),0x33f1c4,0x00000800,0x33f16c) stub
fixme:advapi:LsaLookupSids (0xcafe,1,0x868170,0x33f194,0x33f188) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:advapi:CheckTokenMembership (0x1b0 0x164610 0x33e178) stub!
fixme:imm:ImmDisableIME (-1): stub
fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime 2.0 Error Reporting"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00001388,(nil),0x000b,0x00000108,0x3009a1b4,0x7e1595e4): stub
err:eventlog:ReportEventW L"clr20r3"
err:eventlog:ReportEventW L"civ4_map_finder.exe"
err:eventlog:ReportEventW L"1.1.2909.7720"
err:eventlog:ReportEventW L"4768f049"
err:eventlog:ReportEventW L"mscorlib"
err:eventlog:ReportEventW L"2.0.0.0"
err:eventlog:ReportEventW L"4333ab80"
err:eventlog:ReportEventW L"520a"
err:eventlog:ReportEventW L"61"
err:eventlog:ReportEventW L"n51cffzwz1gffvslvrub5uxq1gvd0txu"
err:eventlog:ReportEventW L"NIL"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet

Unhandled Exception: System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.
at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)
at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)
at System.Security.Principal.WindowsIdentity.GetName()
at System.Security.Principal.WindowsIdentity.get_Name()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Civ4_Map_Finder.My.MyApplication.Main(String[] Args)
wine: Unhandled exception 0xe0434f4d at address 0x7b8458b0 (thread 0021), starting debugger...
Unhandled exception: 0xe0434f4d in 32-bit code (0x7b845923).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:7b845923 ESP:0033f120 EBP:0033f184 EFLAGS:00000246( - 00 - IZP1)
EAX:7b82f085 EBX:7b8b7ff4 ECX:00000000 EDX:0033f1bc
ESI:0033f1bc EDI:e0434f4d
Stack dump:
0x0033f120: 0033f1bc 00000004 0000003c e0434f4d
0x0033f130: 00000001 00000000 7b8458b0 00000001
0x0033f140: 80131501 e0434f4d 0033f1bc 003a2010
0x0033f150: 02000036 0033f168 79e814da 0033f174
0x0033f160: 02000036 00000001 0033f1e4 79e87ff4
0x0033f170: 0000012c 02d2161c 7b8458ba 00134910
Backtrace:
=>0 0x7b845923 in kernel32 (+0x25923) (0x0033f184)
1 0x79f97065 in mscorwks (+0x127065) (0x0033f1e4)
2 0x7a0945a4 in mscorwks (+0x2245a4) (0x0033f2a8)
3 0x0383f31b (0x0033f2e4)
4 0x0383f063 (0x00868048)
5 0x00000005 (0x0380e93c)
6 0x00000024 (0x020c0000)
7 0x00000000 (0x00000000)
0x7b845923: subl $4,%esp
Modules:
Module Address Debug info Name (75 modules)
PE 400000- 41c000 Deferred civ4_map_finder
PE 5e380000-5e409000 Deferred diasymreader
PE 5e410000-5e4b8000 Deferred microsoft.visualbasic
PE 60000000-60008000 Deferred accessibility
PE 67770000-677bc000 Deferred system.runtime.remoting
PE 78130000-781cb000 Deferred msvcr80
PE 79000000-79045000 Deferred mscoree
PE 79060000-790b3000 Deferred mscorjit
PE 790c0000-794de000 Deferred mscorlib
PE 79e70000-7a3d1000 Export mscorwks
PE 7a440000-7a724000 Deferred system
PE 7ade0000-7ae8e000 Deferred system.drawing
PE 7afd0000-7b4e6000 Deferred system.windows.forms
ELF 7b800000-7b940000 Export kernel32<elf>
\-PE 7b820000-7b940000 \ kernel32
ELF 7bc00000-7bcb1000 Deferred ntdll<elf>
\-PE 7bc10000-7bcb1000 \ ntdll
ELF 7bf00000-7bf04000 Deferred <wine-loader>
ELF 7e149000-7e15e000 Deferred lz32<elf>
\-PE 7e150000-7e15e000 \ lz32
ELF 7e15e000-7e179000 Deferred version<elf>
\-PE 7e160000-7e179000 \ version
ELF 7e19d000-7e1d0000 Deferred uxtheme<elf>
\-PE 7e1a0000-7e1d0000 \ uxtheme
ELF 7e1d0000-7e297000 Deferred comctl32<elf>
\-PE 7e1e0000-7e297000 \ comctl32
ELF 7e297000-7e421000 Deferred shell32<elf>
\-PE 7e2b0000-7e421000 \ shell32
ELF 7e486000-7e4ed000 Deferred rpcrt4<elf>
\-PE 7e490000-7e4ed000 \ rpcrt4
ELF 7e4ed000-7e5ff000 Deferred ole32<elf>
\-PE 7e510000-7e5ff000 \ ole32
ELF 7e821000-7e88f000 Deferred msvcrt<elf>
\-PE 7e830000-7e88f000 \ msvcrt
ELF 7e88f000-7e898000 Deferred libxcursor.so.1
ELF 7e898000-7e89d000 Deferred libxfixes.so.3
ELF 7e89d000-7e8a1000 Deferred libxcomposite.so.1
ELF 7e8a1000-7e8a8000 Deferred libxrandr.so.2
ELF 7e8a8000-7e8b2000 Deferred libxrender.so.1
ELF 7e8b2000-7e8b8000 Deferred libxxf86vm.so.1
ELF 7e8b8000-7e8bb000 Deferred libxinerama.so.1
ELF 7e8bb000-7e8dc000 Deferred imm32<elf>
\-PE 7e8c0000-7e8dc000 \ imm32
ELF 7e8dc000-7e8e1000 Deferred libxdmcp.so.6
ELF 7e8e1000-7e8fa000 Deferred libxcb.so.1
ELF 7e8fa000-7e8fd000 Deferred libxcb-xlib.so.0
ELF 7e8fd000-7e900000 Deferred libxau.so.6
ELF 7e900000-7e9ef000 Deferred libx11.so.6
ELF 7e9ef000-7e9fe000 Deferred libxext.so.6
ELF 7e9fe000-7ea16000 Deferred libice.so.6
ELF 7ea16000-7ea1f000 Deferred libsm.so.6
ELF 7ea2f000-7eacb000 Deferred winex11<elf>
\-PE 7ea40000-7eacb000 \ winex11
ELF 7eae5000-7eb0c000 Deferred libexpat.so.1
ELF 7eb0c000-7eb39000 Deferred libfontconfig.so.1
ELF 7eb49000-7eb5f000 Deferred libz.so.1
ELF 7eb5f000-7ebd5000 Deferred libfreetype.so.6
ELF 7ebd5000-7ec76000 Deferred gdi32<elf>
\-PE 7ebf0000-7ec76000 \ gdi32
ELF 7ec76000-7edc5000 Deferred user32<elf>
\-PE 7ec90000-7edc5000 \ user32
ELF 7edc5000-7ee23000 Deferred shlwapi<elf>
\-PE 7edd0000-7ee23000 \ shlwapi
ELF 7ee23000-7ee78000 Deferred advapi32<elf>
\-PE 7ee30000-7ee78000 \ advapi32
ELF 7ee78000-7ee91000 Deferred libnsl.so.1
ELF 7ee91000-7ee9a000 Deferred libnss_compat.so.2
ELF 7efca000-7eff0000 Deferred libm.so.6
ELF 7eff4000-7f000000 Deferred libnss_files.so.2
ELF b7cd1000-b7cdc000 Deferred libnss_nis.so.2
ELF b7cde000-b7ce2000 Deferred libdl.so.2
ELF b7ce2000-b7e40000 Deferred libc.so.6
ELF b7e41000-b7e5a000 Deferred libpthread.so.0
ELF b7e6a000-b7fa5000 Deferred libwine.so.1
ELF b7fa7000-b7fc4000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
0000000c
00000012 0
0000000e 0
0000000d 0
0000000f
00000015 0
00000014 0
00000011 0
00000010 0
00000016
00000017 0
00000020 (D) C:\windows\profiles\bill\My Documents\My Games\Civ4_Map_Finder\Civ4_Map_Finder.exe
00000023 2
00000022 0
00000021 0 <==
00000024
00000026 0
00000025 0
Backtrace:
=>0 0x7b845923 in kernel32 (+0x25923) (0x0033f184)
1 0x79f97065 in mscorwks (+0x127065) (0x0033f1e4)
2 0x7a0945a4 in mscorwks (+0x2245a4) (0x0033f2a8)
3 0x0383f31b (0x0033f2e4)
4 0x0383f063 (0x00868048)
5 0x00000005 (0x0380e93c)
6 0x00000024 (0x020c0000)
7 0x00000000 (0x00000000)
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003ff,(nil),0x0001,0x00000000,0x33ec68,(nil)): stub
err:eventlog:ReportEventW L".NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (79F97075) (80131506)"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
fixme:advapi:SetNamedSecurityInfoW L"C:\\windows\\PCHealth\\ErrorRep\\QSignoff" 1 -2147483644 (nil) (nil) 0x13283c (nil)
err:ole:CoGetClassObject class {4e14fba2-2e22-11d1-9964-00c04fbbb345} not registered
err:ole:create_server class {4e14fba2-2e22-11d1-9964-00c04fbbb345} not registered
err:ole:CoGetClassObject no class object {4e14fba2-2e22-11d1-9964-00c04fbbb345} could be created for context 0x5

 
I have a different Mapfinder problem. Not sure if anyone can help me though.
Try putting a text file with the name "Override.txt" in the same folder with the Civ4MapFinder.exe. That will turn off the legacy grid control that could be causing your the problem. If it isn't that then I haven't a clue.

As for the Alt-M freeze problem, try turning on the logging in the CivilizationIV.in file (My Game BTS folder).
Code:
; Enable the logging system
LoggingEnabled = 1

; Overwrite old network and message logs
OverwriteLogs = 1
The logs will be in the "logs" folder under the My Games BTS folder. The ones with Python in their name are the ones that could tell us what is going on.
 
I'll check for that, however the problem has persisted after rebooting the computer and starting up Civ again (I'd never try and run multiple instances deliberately).
I will keep poking around until I can reproduce the error on demand. If only it wasn't so inconsistent.
Well once the save file is corrupt the reboot probably won't help. The thing to check is whether a new game has the problem.

You might want to run Windows Update to see if there are any updates (optional or otherwise) that might help. It is not without precedent for that to help with strange problems.
 
Try putting a text file with the name "Override.txt" in the same folder with the Civ4MapFinder.exe. That will turn off the legacy grid control that could be causing your the problem. If it isn't that then I haven't a clue.

As for the Alt-M freeze problem, try turning on the logging in the CivilizationIV.in file (My Game BTS folder).
Code:
; Enable the logging system
LoggingEnabled = 1

; Overwrite old network and message logs
OverwriteLogs = 1
The logs will be in the "logs" folder under the My Games BTS folder. The ones with Python in their name are the ones that could tell us what is going on.

Thanks so much.
The Override.txt file allows mapfinder to run in Civ4 and generate maps. I still can't get the MF gui to run though. I know it has to do with dependencies that I don't have installed yet in WINE.
Denniz, is there any way that I could get a copy of the source code for Mapfinder? I'm a Software Engineer and fluent in C++ so a look at the code would really help me to figure out where this is dying at. If that is not possible, can you list the includes so that I at least have something to go on?

Thanks
 
Thanks so much.
The Override.txt file allows mapfinder to run in Civ4 and generate maps. I still can't get the MF gui to run though. I know it has to do with dependencies that I don't have installed yet in WINE.
Denniz, is there any way that I could get a copy of the source code for Mapfinder? I'm a Software Engineer and fluent in C++ so a look at the code would really help me to figure out where this is dying at. If that is not possible, can you list the includes so that I at least have something to go on?

Thanks
The override.txt doesn't have anything to do with the python part of map finder in the HOF Mod. Something else must have changed. :crazyeye:

I am not sure giving you the source would be helpful unless you know VB.NET (2005). :mischief:

I wrote the original in VB6 and upgraded it to VB.NET 2005 later. I am a better VB developer than C++. I didn't start messing with C++ until Dianthus left. ;) There are some InterOp DLLs that might be what you're missing.
 
I downloaded and installed windows service pack 3. I had thought the auto-updater was taking care of those sorts of things for me, but apparently not.

No problems so far, thanks for the suggestion =)
 
I downloaded and installed windows service pack 3. I had thought the auto-updater was taking care of those sorts of things for me, but apparently not.

No problems so far, thanks for the suggestion =)
There are somethings it won't do automatically. Sevice Packs are a major example. ;)
 
I'm not absolutly certain that i was running mutliple copies of the game, i suspected it was so after a "fat finger" mistake whilst renaming a mapfinder save, it is more than likely this was the case though.

My solution is to unistall the HoF mod then reinstall, it has certainly resolved my issues. I would encourage Paulis to try this before any other radical action ;)
 
Back
Top Bottom