Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
Motivation

OK next attempt. I am going to do online updates to this thread, that will keep me form strating off. Ill do 1 hour development.
Reply

OK first, AI cities.
The default neutral AI will build according to a simple build queue.
-I need to determine where the current city is in terms of the queue.
-I need to determine if there is a change needed, and do the change if so
-If the queue says spawn raiders, then do so.
for now, a dummy queue will do, I will upgrade this later, something like:

builders hall, smithy, barracks,
spearman, spearman, granary, swordman, swordman, spearman, spawn raiders 3
farmers market, spearman, swordsman, shrine
sawmill, bowman bowman, spawn raiders 4
spearman, swordsman, marketplace city walls
then go into a loop where spearmen and swordmen are spawned as raiders
Reply

The first problem: how to decide what comes next
simple solution: we determine this on hand of the buildings and troops present
caveat: after spawning raiders, we have to immediately switch to a building, otherwise we get stuck in a loop
bonus: we use this at the end to set up te continuous raider spawning loop
One thing to consider is to use the population numbers as guidelines. Maybe later tough.
Reply

Note: the neutral AI building queue should be configurable (as all buildings are)
Reply

(April 1st, 2014, 15:57)VM Wrote: The first problem: how to decide what comes next
simple solution: we determine this on hand of the buildings and troops present
caveat: after spawning raiders, we have to immediately switch to a building, otherwise we get stuck in a loop
bonus: we use this at the end to set up te continuous raider spawning loop
One thing to consider is to use the population numbers as guidelines. Maybe later tough.
Just make a barely working version of the AI and focus on the rest of the game. I will spend my time on AI, once the game is stable with frozen rules, bug-free and user-friendly. I don't see a point of discussing AI here on the theoretical level and going on for hundreds of pages. Instead, each idea must be implemented, tested, tuned, integrated etc., which I am interested in doing once the game allows it.
Reply

Yea, the point is that I can force myself to work on this, if I write updates here, doesnt really matter what they say. Its a technique to motivate myself.
Reply

Yes. Yes. But does it have to be AI? Can't you work on something else plz? I am happy to discuss anything, except AI. I am happy to program AI, but nothing else.
Reply

Argh! I need motivation!
I am going to force myself to work an hour on this.
Reply

I havent given up on this.
Reply

I still have not.
Reply



Forum Jump: