This topic contains 5 replies, has 0 voices, and was last updated by  Thrax 8 years, 8 months ago.

  • Author
    Posts
  • #6729

    Frankie
    Participant

    I have been creating new TankAIs. They seem to work pretty well, except that sometimes after I make changes they won’t buy any weapons, and only use whatever they already have (e.g. infinite startingnumber, or giveaccessory prizes). If I tinker with tankaiweaponsets.xml enough, eventually they start working again.

    But I don’t know why. Also, there’s no error message in the game console. Help would be appreciated.

    #54579

    Rommel
    Participant

    Hi Frankie:

    There are many things that won’t cause an error message that might not work the way you planned. It could be that your AI didn’t have enough cash, that the priorities weren’t set right or something else entirely.

    I can’t form an opinion from the data you presented.

    The best advise I can offer at this time is this:

    Document your changes as you go.
    Work on only one change.
    If something goes wrong and you can’t figure it out, you can present your data along with a snippet of the offending code.

    Even that doesn’t work all the time. In my crater maker gas station issue, after several postings, I was the one that eventually discovered the problem.

    The more you work at properly presenting the details to others, the more likely you are to find the problem on your own.

    Best of luck,

    Rommel

    #54580

    Frankie
    Participant

    OK, I’ve done some further testing, with the following result: all of the recent versions of my AIs (ranging from pretty complex to extremely stripped down) work perfectly in the various singleplayer.xml modes, and all of them won’t buy in custom mode.

    Where do I find the xml that controls how custom mode operates?

    #54581

    Stil8
    Participant

    @frankie wrote:

    Where do I find the xml that controls how custom mode operates?

    Well the game can change all the major options for a custom mode, so I don’t think you need to do xml editing to make them buy…If they do buy in the single-player games, then it is probably the custom mod settings; I would suggest going over the economy settings for the custom mode (make sure you have not set it to give all weapons or to give too little money for kills, etc…) Also check the “Money buy on round” to see if it is too high…It should be 2 by default…

    I too made some new AIs and they seem to work perfectly for me and most issues were settings for the custom mode…

    #54582

    Thrax
    Participant

    Tank ai weapon sets are lists of weapon choices, price limits, and priorities.
    If you have them set to buy unimportant or expensive things first, they’ll
    have nothing left or they’ll refuse to buy.

    Examine the weapon sets of other mods, compare thier choices and
    the high/low limits for price and priority.

    If you have unbalanced lines or actual errors, it will fail.

    Try posting one of the sets here, or in a zip. We’ll help you thru and
    teach you the features.

    #54583

    Stil8
    Participant

    @thrax wrote:

    Tank ai weapon sets are lists of weapon choices, price limits, and priorities.
    If you have them set to buy unimportant or expensive things first, they’ll
    have nothing left or they’ll refuse to buy.

    Examine the weapon sets of other mods, compare thier choices and
    the high/low limits for price and priority.

    If you have unbalanced lines or actual errors, it will fail.

    Try posting one of the sets here, or in a zip. We’ll help you thru and
    teach you the features.

    Setting all the price limits to 0 means no limit, right? It’s the only thing I am not really sure about (hasn’t caused any issues, but just wondering)…

    #54584

    Thrax
    Participant

    @Stil^^8 wrote:

    @thrax wrote:

    Tank ai weapon sets are lists of weapon choices, price limits, and priorities.
    If you have them set to buy unimportant or expensive things first, they’ll
    have nothing left or they’ll refuse to buy.

    Examine the weapon sets of other mods, compare thier choices and
    the high/low limits for price and priority.

    If you have unbalanced lines or actual errors, it will fail.

    Try posting one of the sets here, or in a zip. We’ll help you thru and
    teach you the features.

    Setting all the price limits to 0 means no limit, right? It’s the only thing
    I am not really sure about (hasn’t caused any issues, but just wondering)…

    Yes.. and no. While it doesn’t impose limits on them, it also doesn’t focus
    or budget thier buying. Without balanced limits, they will fill up on the
    first thing they see, and not save or pick up usefull items for other situations.

    You sort of have to design thier buying habits as you yourself would.
    Instead of buying one large weapon, you would likely get several
    smaller ones and plan when to use them.

    If Frankie doesn’t have a sample to display, then i will post one shortly
    and analyze it’s strategy. Weapon prices, priorities, size selection and
    type-choices all add up to a clever bot. Dumping all items into the
    list and setting them to unlimited won’t make them powerfull.. just
    poor and easily killed.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.