Nightinggale
Deity
- Joined
- Feb 2, 2009
- Messages
- 5,378
Compile guide: https://forums.civfanatics.com/threads/the-easiest-way-to-compile-a-new-dll.608137/
A few notes about it. First of all it applies to all versions of the civ4 engine, not specifically BTS despite being in the BTS subforum. Secondly while it mentions MS visual studio 2010, it actually works with any version of VS. It compiles using the 2003 version (DLL and EXE needs to use the same compiler to avoid memory allocation corruption) meaning the version you use to view the code is just that: a viewer, not a compiler.
MSVS has the advantage over other viewers that the builtin debugger actually works. If set up correctly it works just fine with the hotkeys like F5 for start with the debugger attached and if a file is modified, it will compile before starting. I haven't written a guide on the setup yet though, but I plan to do so eventually because apparently nobody else have written one either
A few notes about it. First of all it applies to all versions of the civ4 engine, not specifically BTS despite being in the BTS subforum. Secondly while it mentions MS visual studio 2010, it actually works with any version of VS. It compiles using the 2003 version (DLL and EXE needs to use the same compiler to avoid memory allocation corruption) meaning the version you use to view the code is just that: a viewer, not a compiler.
MSVS has the advantage over other viewers that the builtin debugger actually works. If set up correctly it works just fine with the hotkeys like F5 for start with the debugger attached and if a file is modified, it will compile before starting. I haven't written a guide on the setup yet though, but I plan to do so eventually because apparently nobody else have written one either
