Dale's Combat Mod (BTS 3.19)

I've updated the mod with all the fixes you made and made routes bombable. I still got the btsbetterai.cpp compiling error, so I took that out of CvUnit.cpp. I ran autoplay and it CTD at turn 450. Check out the mod for me please. It probably just is that ommission, but why am I getting a compiling error? How to fix that?

I use CodeBlocks 10.05 to make my dlls so you see I added to CvPlayerAI #include "BetterBTSAI.cpp" so I can make my dll

#include "CvEventReporter.h"
#include "BetterBTSAI.cpp"
/************************************************************************************************/
/* BETTER_BTS_AI_MOD 10/02/09 jdog5000 */
/* */
/* AI logging */
/************************************************************************************************/
#include "BetterBTSAI.h"
/************************************************************************************************/
/* BETTER_BTS_AI_MOD END */
/************************************************************************************************/

That is where I added in BetterBTSAI.cpp here are my changes to the sdk and the full mod. I upload a save game see if I go past your 450 mark. If you got a save I try with the dll I made. I did get a CTD here is my last save before the CTD. IF you can make a debug dll madebe you can see what is causing it. I think it made be with the route bombable thats the last thing added change into the mod. I wish I can help you but I don't know what might be needed in the sdk more for the route bombable. Sorry I was not able to get it to work without the ctd.
 
Thanks Roamty. I'll try taking out route bombing to see what happens and then put it back in. Even with the late CTD, you think I should still post the update?

I hold on the route bombing post it without. it does work great without the route bombing. I have it in BUG4_BBAI and its working great.
 
Gotcha, on the route bombing.

Do you have to add BetterBTSAI.cpp to the project file as well. That's what you do in Microsoft Visual Studio. Maybe that is why we are getting different compilation results.

Because i use CodeBlocks I get a error if I try to make a dll at the end thats why I add BetterBTSAI.cpp to CvPlayerAI thats where my error show up if i don't add it in here. if you use Microsoft Visual Studio you might not need it I added in Route Pillage Mod By: TheLopez so far no ctd the ground units work well as for the air got to try and see if i can get then to pill the road.

BTW, How bout I put you on this team/make you an author since your contributions are very significant?

I help out if i can any time for you
 
Is it in? Sorry since it was disabbled in the mod I assumed it wasn't in, I will try it. Do you know what button to press to enable it?

Nevermind my bad, I assumed it was disabled since nowere in your first post does it say civchanger so I guess I assumed it wasn't
 
Ah Yes, Ctrl+Shft+C. Thanks for that because I forgot to include the BetterBTSAI documentation than includes all that info. It will be in the next update.

@Roamty. Good news, I found the offending code I think. It was a duplicate code block that I had to remove. THe duplicate block was a function to set routes to be destroyed. Took that out and got to 500 turns without a CTD. In addition, fixed the route bombing so you don't destroy the improvment and route at the same time when they are on the same tile. Now you have to target one, then the other.

I'll do 500 turns once more then post it for you to look over. BTW, I had the graphics on low for speed's sake. Is that a factor at all?
 
Code:
<Define>
		<DefineName>DCM_CIV_CHANGER</DefineName>
		<iDefineIntVal>1</iDefineIntVal>
	</Define>
	<Define>
		<DefineName>DCM_CIV_CHANGER_MODE</DefineName>
		<iDefineIntVal>2</iDefineIntVal>
	</Define>
	<Define>
		<DefineName>DCM_CIV_CHANGER_CHANGES</DefineName>
		<iDefineIntVal>2</iDefineIntVal>
	</Define>
What do each do? Because pressing that does nothing
First one enables Civ changer, third one says how many tiems a game you can do it. What does the second one do? Put in small game of three people, and I was in contact with all three and pressing those keys do nothing
 
Haven't ever tried it.

Roamty here is my v2.1. I successfully tested it through 500 turns without a CTD. I'll post it soon after you take a look.

Nice work I successfuly play to 500 also 3 times and one of them was a time Vic.

BIG Gratz to you Looks like you have it working.

Update the mod plays well to 500 with Route in, but after 500 turns:confused: around 510 and later I'am getting ctd
 
Back
Top Bottom