Spoiler :
Did you make sure to initialize that field with NO_PROMOTION while parsing the XML?
I could tell you if I knew what that meant.
![Hammer2 :hammer2: :hammer2:](/images/smilies/hammer2.gif)
I remember that everything I did was from instructions given by you, if that helps.
![Mischief :mischief: :mischief:](/data/assets/smilies/mischief.gif)
Anyway, for the time being I have put that problem aside as I am trying to start clean from either BULL itself or Fuyu's Better BULL merge.
With BULL, I got all the source files and put them in a folder R:\PIG2\CvGameCoreDLL.
This is what the top of my makefile looks like.
Spoiler :
Code:
## BUG DLL MAKEFILE
##
## Based on Refar's makefile
### Tool Paths
TOOLKIT = C:\Program Files\Microsoft Visual C++ Toolkit 2003
PSDK = C:\Program Files\Microsoft Platform SDK
### Civ4 SDK Paths
CIV = G:\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword
SDK = $(CIV)\CvGameCoreDLL
BOOST = $(SDK)\Boost-1.32.0
PYTHON = $(SDK)\Python24
### Tool Executables
RM = del
CPP = "$(TOOLKIT)/bin/cl.exe"
LINK = "$(TOOLKIT)/bin/link.exe"
### Compiler Options
# /EHsc catch C++ exceptions only; assume that extern C functions never throw a C++ exception
# /Gd Use the __cdecl calling convention (x86 only).
# /GR enable run-time type information (RTTI)
# /G7 only 1 and 2 are valid; no idea what 7 does
# /MD multithreaded normal DLL with MSVCRT.dll
# /MDd multithreaded debug DLL with MSVCRTD.dll
# /O2 optimize for speed
# /W3 warning level 3
[B]MODFLAGS = /D_MOD_FRACTRADE /D_MOD_SENTRY /D_MOD_GOVWORKERS /D_MOD_AIAUTOPLAY /D_MOD_GWARM [/B]
# Optional BULL Components
# _MOD_FRACTRADE
# _MOD_SENTRY
# _MOD_GOVWORKERS
# _MOD_AIAUTOPLAY
# _MOD_GWARM
CFLAGS = /EHsc /Gd /GR /G7 /W3 /DWIN32 /D_WINDOWS /D_USRDLL /DCVGAMECOREDLL_EXPORTS [b][COLOR="Red"]$(MODFLAGS)[/COLOR][/b]
DEBUG_CFLAGS = $(CFLAGS) /MDd /D_DEBUG
RELEASE_CFLAGS = $(CFLAGS) /MD /O2 /DNDEBUG /DFINAL_RELEASE
### Linker Options
It compiles successfully.
I copy the created CvGameCoreDLL.dll into the assets directory of "PIG Mod v0.9".
The PIG Mod v0.9 folder at the moment contains only everything from a BUG 4.2 mod install as well as the necessary optional extra from BULL merged in. There is nothing else in the mod folder.
The disappointing thing is, I run the game and go to start a custom game, but before it tells me anything about "Iinitializing" or "setup map" it blinks away in a sudden crash to desktop.
Any ideas what I can try?
EDIT As often seems to be the case with this sort of thing, as soon as you post a report of a problem it solves itself. I was able to use the DLL I compiled myself working with the BUG+BULL assets in a mod folder.
Please disregard the problem report for now.
![Smile :) :)](/data/assets/smilies/smile.gif)
EDIT2 It seems one of the errors I made was leaving off the $(MODFLAGS) from the CFLAGS line, now added in red.