Cute messages in the Debug file

Brad,

Is our receiving any of the following messages in the debug file of interest to you? Is there any significance,
for instance, of our receiving these instead of some other message?

Debug Message: Make Ship Leave Orbit: Brad Version
Debug Message: Brad's bug: Need to tighten up the typical colony code.


Cheers,
Jack
131 views 3 replies
Reply #1 Top
There are two versions of Make Ship Leave Orbit.

One of them had a bunch of parameters and crashed on occasion. So i wrote a new one in which you literally have something like pStarSystem->MakeShipLeaveOrbit(pMyStarShip);

But it has a bug in which all the ships leave orbit in the same spot. :(

The typical colony code is just crummy and I may have to find a different way of doing it.

Here's how it works:

The AI has defense contractors who each try to get their star ship to be a particular class of star ship.

The AI doesn't look at Battleships and Starfighters and Battle cruisers the same way people do. Instead, it has Colony Ships, Light Attack Ships, Capital Ships, Invaders, and Defenders.

It will look and try to find a "typical" colony in its empire. A planet that is around the average in most areas and see what it can and can't build.

You don't want, for instance, to have a light attack ship that takes 400 turns to create.

And we don't want to have to calculate these differnet ships on a per planet basis for performance reasons (though admittedly with threads I could probably get away with just doing this every few turns but still it seems inefficient).

The problem is that when you are starting out, it is hard to find a typical colony. You may have 3 colonies with such different levels of production that there is no "typical" colony. The more planets you have, the easier it gets.
Reply #2 Top
Yipe! And I had to ask. Insatiable curiosity, I guess.

Cheers,
Jack
Reply #3 Top
Course, the reason I asked was just in case there was reason for you to be told we were getting these
messages instead of some other (debugging aid). Are there any?

Cheers,
Jack