Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

AI unable to produce units #3943

Closed
wzdev-ci opened this issue Feb 12, 2013 · 18 comments
Closed

AI unable to produce units #3943

wzdev-ci opened this issue Feb 12, 2013 · 18 comments

Comments

@wzdev-ci
Copy link
Contributor

resolution_closed type_bug | by MrAnderson


Afair I selected NullBot as AI in the attached saved game. It has a minimal set of buildings that is necessary to expand (one power generator, one oil derrick and a factory). However, it fails doing so. I do not know how it managed to get into this state, but the log is filled with

info    |06:38:35: [structSetManufacture:993] Wrong template for player 1 factory, type 1.
info    |06:38:35: [structSetManufacture:993] Assert in Warzone: structure.cpp:993 (!psTempl || (validTemplateForFactory(psTempl, psStruct) && researchedTemplate(psTempl, psStruct->player, true)) || psStruct->player == scavengerPlayer() || !bMultiPlayer), last script event: 'N/A'
error   |06:38:35: [js_buildDroid:948] Could not produce template Construction Droid in Fabrik

every three seconds


Issue migrated from trac:3943 at 2022-04-16 10:53:00 -0700

@wzdev-ci
Copy link
Contributor Author

MrAnderson uploaded file ai_fails.tar.xz (52.9 KiB)

@wzdev-ci
Copy link
Contributor Author

NoQ changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

NoQ changed resolution from `` to closed

@wzdev-ci
Copy link
Contributor Author

NoQ changed blocking which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

NoQ changed blockedby which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

NoQ commented


No idea where the problem was, but the savegame provided loads well on 3.1-git, which means it'll work on v3.1.1.

@wzdev-ci
Copy link
Contributor Author

Per commented


Did you cheat? I've only seen that error message after cheats have been used.

@wzdev-ci
Copy link
Contributor Author

MrAnderson commented


No, I have not even read how to cheat. :)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 12, 2013

MrAnderson commented


Replying to Warzone2100/old-trac-import#3943 (comment:1):

No idea where the problem was, but the savegame provided loads well on 3.1-git, which means it'll work on v3.1.1.
Loading the game is not a problem. The problem is that the bot is not able to produce new units. I Just tried it with the latest git checkout. AI still fails to produce anything and error messages show up.

@wzdev-ci
Copy link
Contributor Author

Per changed status from closed to reopened

@wzdev-ci
Copy link
Contributor Author

Per changed resolution from closed to ``

@wzdev-ci
Copy link
Contributor Author

MrAnderson commented


Whoops, sorry I tested the wrong binary. With latest master the AI still fails to produce anything, but the error messages are completely different:

error   |10:00:37: [callFunction:127] called function (updateStatus) not defined
error   |10:00:37: [callFunction:127] called function (attackStuff) not defined
error   |10:00:37: [callFunction:127] called function (sendAllForRepair) not defined
error   |10:00:37: [callFunction:127] called function (produceDroids) not defined
error   |10:00:37: [callFunction:127] called function (balanceGroups) not defined
error   |10:00:37: [callFunction:127] called function (callUpdateEnemyInfo) not defined
error   |10:00:37: [callFunction:127] called function (harassStuff) not defined
error   |10:00:37: [callFunction:127] called function (regroupRegularly) not defined
error   |10:00:37: [callFunction:127] called function (scavtick) not defined
error   |10:00:37: [callFunction:127] called function (doResearch) not defined
error   |10:00:37: [callFunction:127] called function (vtolAttack) not defined
error   |10:00:37: [callFunction:127] called function (adapt) not defined
error   |10:00:38: [callFunction:127] called function (sendAllForRepair) not defined
error   |10:00:39: [callFunction:127] called function (regroupRegularly) not defined
…

Is git master incompatible with 3.1 save games? Do I need a specific branch?

@wzdev-ci
Copy link
Contributor Author

NoQ changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

NoQ commented


git master is incompatible with 3.1 save games. You need to use the 3.1 branch.

I did test the savegame on 3.1.0 and managed to reproduce the error. By the way, AI starts working as soon as i switch to player 1 via Ctrl+O debug menu.

I did test the savegame on 3.1-git and didn't manage to reproduce the error. AI produces trucks instantly after loading.

@wzdev-ci
Copy link
Contributor Author

MrAnderson commented


Alright. Sorry for the noise. Just tested latest 3.1 branch. Works fine.

(Looks like I can not close the ticket myself.)

@wzdev-ci
Copy link
Contributor Author

Cyp changed status from reopened to closed

@wzdev-ci
Copy link
Contributor Author

Cyp changed resolution from `` to closed

@wzdev-ci
Copy link
Contributor Author

Cyp commented


Closing as per above comment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant