Author Topic: AI requests  (Read 2007 times)

emscape

  • Guest
AI requests
« on: 18 May 2010, 06:43:52 »
Is there any possibility to make the AI able of handling more than just 2 patterns of tech trees? (all the factions are like magic/tech).

I cant make it handle the following:
1. Castle (can produce worker and  palaceguard)
2. Farm (can produce knight and horseman)
3. Barracks (can produce swordman, guard, archer, ranger)
4. Blacksmith (only upgrades)
5. Technology centre(same as technodrome, produces technicians, longbowmen and inquisitors)
6. Defence tower (Wooden defence tower)
7. Sentry tower (stone defence tower)
8. Wall piece (defensive structure, with small attack)

units:
1. Worker (can build buildings and harvest)
2. technician (can harvest quicker, and build defensive structures, and attack, and morph to catapult)

1. Swordman(basic melee warrior) (can upgrade to Guard)
2. Guard(2nd generation melee warrior) (can upgrade to palaceguard)
3. Palaceguard (3rd generation melee warrior) (can summon guards)
4. Inquisitor(4th generation melee warrior)

1. Archer ( 1st generation archer)
2. Ranger (2nd generation archer)
3. Longbowman (3rd generation archer)
4. Catapult(support fire)

1.Horseman (1st generation horseman)
2.knight (2nd generation horseman)

Upgrades:
1. blade weapons
2. piercing weapons
3. shield weapons
4. shield lv2 (these four enable 2nd and 3rd generation units)
5. training field(speeds up production)
6. stables (enables horsemen)
7. advanced architecture (enables defence buildings)
8. imperial censure (enables inquisitor)

thx
« Last Edit: 18 May 2010, 07:04:12 by emscape »

emscape

  • Guest
Re: AI requests
« Reply #1 on: 18 May 2010, 09:47:11 »
it only harvests gold, and uses up the wood:(

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: AI requests
« Reply #2 on: 18 May 2010, 21:10:40 »
Yah, my Canada tech it like that too. I wonder why?
Get the Vbros': Packs 1, 2, 3, 4, and 5!

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: AI requests
« Reply #3 on: 18 May 2010, 22:58:30 »
Yeah...must be a problem in the settings of the units and the faction :(
Which is why I said the Canadian faction was weak compared to the others  :( ...before
Hmm...hope we can figure this out, this is kinda stupid  :(

Fluffy203

  • Guest
Re: AI requests
« Reply #4 on: 18 May 2010, 23:11:35 »
Ok i don't get the question , how do you want to change it cause the AI doesn't follow that pattern at all , it follows what its meant to do , build , gather , create and upgrade has nothing to do with what or how many units you have.

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: AI requests
« Reply #5 on: 18 May 2010, 23:36:54 »
Ok i don't get the question , how do you want to change it cause the AI doesn't follow that pattern at all , it follows what its meant to do , build , gather , create and upgrade has nothing to do with what or how many units you have.
Well actually the problem is that the "AI" of his MOD/faction is "weird"...it doesn't harvest all the regular stuff, doesn't produce units...  :(
Well maybe titi or somebody else can review it...IDK...  :|

Fluffy203

  • Guest
Re: AI requests
« Reply #6 on: 19 May 2010, 01:57:11 »
Does his unit that gather have a build command?

emscape

  • Guest
Re: AI requests
« Reply #7 on: 20 May 2010, 13:47:30 »
yes in here it has!, but in one of the factions it hasnt. I think thats the problem. because when I put that one in it doesnt work anymore, ive tested the one above, and it works. The other factions in the story mode (one of them) doesnt have it. Gonna try it as soon as I have some time!

Fluffy203

  • Guest
Re: AI requests
« Reply #8 on: 20 May 2010, 21:06:37 »
Yea if you want the AI to read the unit as a builder or gatherer it has to have a build command , me and jda were discussing this , so just make a dummy build command

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: AI requests
« Reply #9 on: 21 May 2010, 16:32:12 »
Interestingly, if you try and make it so its Hierarchy is more like magic or techs, it should be able to play. If you could show a full tech tree map, that might help me see if I can pinpoint an error.
(Example of a good tech tree map here)

Some things I noticed that may or may not be relevant is that if the worker has a morph command, it treats the tech like magic. If it doesn't, it treats it like tech.

One interesting, somewhat effective way to debug for errors is to comment out commands with <!-- Comment -->, thus allowing you to 'remove' that part to see if there is any improvement.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

emscape

  • Guest
Re: AI requests
« Reply #10 on: 18 July 2010, 00:26:38 »
Well, I managed to solve most issues...

HERE ARE HINTS TO CORRECT THEM :D

first one:
- sometimes when u make a mistake the entire magitech (or whatever techform u where using) gets *#@$* up, so u have to be carful with that, u cant fix this. U must move it to another techform to see if it works.
- When u create new recourses, check if the factions are able to handle them. Most of the time they wont!
- Dont put the build and harvest command at separate units. When a unit can build, he/she should also be able to harvest, vice versa is not obligate.
- Techtrees based on many morphing units sometimes don't work!

I think this might come at hand for others who had the same problems:D