• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Merge Better AI with Fall From Heaven

notque

Artificially Intelligent
Joined
Nov 13, 2005
Messages
2,171
Hello, I have merged Better AI with Fall From Heaven. I had to make a few tweaks to get it to function okay, like make sure there's 2 cargo for sea units (because settlers require an escort)

One thing that isn't functioning properly is attacks over sea. They build the boats, and fill them, but they tend to drop them, and release them consistently without embarking for a journey.

They end up with 4 boats usually when they get stuck

1 escort
3 transports with 2 units a piece.

Then nothing. They just drop, and load, or sit there.

Can you think of anything that I might want to check for? I've been reading through the code. The boats are different in fall from heaven, but the functionality is generally working.

Just not the attack.
 
You'll want to enable the chipolte cheat code (I assume you know how).

Then take a look at the AI type of the units. And attach a save file (and your beta DLL, and beta source, sigh) where your problem is happening. Then hope someone else tracks down the bug.

You can also attempt to debug it yourself. Do you have any experience to in debugging?

printf debugging is a decent place to fall back on. Take a save game where you see the bug happening, and then write a hard-coded DLL that printf's out the decisions of those particular units (the bug is happening in a city? check the unit's tile for the city, and if so, have it verbosely dump out it's decisions to a text file).

(As an aside, that does give me an interesting idea. A run-time only flagging of units/etc, so when we do printf debugging of unit decisions, we can easily check to see if the unit is debug flagged.)
 
I found it. Because Sea AI didn't work in fall from heaven, there were blocks on the amount of boats being made. The Naval crews were waiting for an extra boat that could not be built.

Fixed up. All is working well.
 
Back
Top Bottom