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

AI cheating #4364

Closed
wzdev-ci opened this issue May 5, 2016 · 14 comments
Closed

AI cheating #4364

wzdev-ci opened this issue May 5, 2016 · 14 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented May 5, 2016

resolution_fixed type_bug | by klasskill


there is a problem going on with the AI in that it is trying to build things that it did not research yet
this spams the logs with these messages over and over and over and over and over again

[researchedTemplate:92] *Cyb-Wpn-Rail1* Cyborg Light Body Cyborg Propulsion : not researched weapon 0
[researchedTemplate:85] Repair Turret Viper Half-tracks : not researched : body=1 brai=1 prop=1 sensor=1 ecm=1 rep=0 con=1

this should be fixed before next version


Issue migrated from trac:4364 at 2022-04-16 11:55:14 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 5, 2016

klasskill commented


there are many more than those messages but I figure you can run it yourself and see

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 5, 2016

klasskill changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 5, 2016

klasskill commented


forgot to mention that this breaks the AI
they are sitting ducks because they can not make anything and they keep trying the same design over and over again

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 7, 2016

KlassKill commented


here is the problem

	tech[0][0]		RESEARCHSTAT		"R-Wpn-MG3Mk1"			//HMG
	tech[0][1]		RESEARCHSTAT		"R-Vehicle-Prop-Halftracks"	//half-tracks
	tech[0][2]		RESEARCHSTAT		"R-Wpn-Rocket02-MRL"	//mini rocket artillery
	tech[0][3]		RESEARCHSTAT		"R-Wpn-Rocket-ROF03"
	tech[0][4]		RESEARCHSTAT		"R-Wpn-MG-Damage03"
	tech[0][5]		RESEARCHSTAT		"R-Defense-Pillbox06"		//lancer bunker

	//other tech: R-Vehicle-Prop-VTOL, R-Struc-VTOLPad, R-Struc-VTOLFactory
	techCount[1]	int					19
	
	//how many res facilities to use when finished researching all specified research topics
	maxIdleRes[1]	int					3
	
	tech[1][0]		RESEARCHSTAT		"R-Struc-VTOLFactory"
	tech[1][1]		RESEARCHSTAT		"R-Struc-VTOLPad"
	tech[1][2]		RESEARCHSTAT		"R-Wpn-MG3Mk1"				//HMG
	
	tech[1][3]		RESEARCHSTAT		"R-Wpn-Rocket02-MRL"	//mini rocket artillery
	tech[1][4]		RESEARCHSTAT		"R-Wpn-Rocket-ROF03"
	
	tech[1][5]		RESEARCHSTAT		"R-Wpn-Flamer-Damage03"		//flamer damage 03
	tech[1][6]		RESEARCHSTAT		"R-Wpn-Flamer-ROF03"		//flamer ROF 03
	
	tech[1][7]		RESEARCHSTAT		"R-Wpn-Rocket01-LtAT"		//Lancer
	tech[1][8]		RESEARCHSTAT		"R-Vehicle-Body08"			//Scorpion body
	tech[1][9]		RESEARCHSTAT		"R-Struc-Power-Upgrade03a"	//power upgrade 03a
	tech[1][10]		RESEARCHSTAT		"R-Wpn-Missile-Accuracy02"	//lancer accuracy
	tech[1][11]		RESEARCHSTAT		"R-Wpn-Missile-Damage03"	//lancer damage
	
	tech[1][12]		RESEARCHSTAT		"R-Wpn-Rocket03-HvAT"		//BB
	tech[1][13]		RESEARCHSTAT		"R-Struc-VTOLPad-Upgrade06"
	tech[1][14]		RESEARCHSTAT		"R-Struc-Factory-Upgrade04"
	tech[1][15]		RESEARCHSTAT		"R-Sys-Autorepair-General"		//autorepair
	tech[1][16]		RESEARCHSTAT		"R-Sys-Sensor-UpLink"
	tech[1][17]		RESEARCHSTAT		"R-Sys-VTOLCBS-Turret01"
	tech[1][18]		RESEARCHSTAT		"R-Sys-VTOLStrike-Tower01"

does not match

	// cyborg templates
	numLightCyborgs	int			6
	cybTempl[0]		TEMPLATE	"CyborgChain01Ground"
	cybTempl[1]		TEMPLATE	"CyborgCannon01Grd"		//heavy gunner
	cybTempl[2]		TEMPLATE	"CyborgFlamer01Grd"
	cybTempl[3]		TEMPLATE	"CyborgRkt01Ground"
	cybTempl[4]		TEMPLATE	"MP-Cyb-Needle-GRD"
	cybTempl[5]		TEMPLATE	"MP-Cyb-Needle-GRD"
	
	cybMechanic		TEMPLATE	"Cyb-Mechanic"
	cybEngineer		TEMPLATE	"Cyb-ComEng"

	superCyb[0]		TEMPLATE	"Cyb-Hvy-Mcannon"
	superCyb[1]		TEMPLATE	"Cyb-Hvy-HPV"
	superCyb[2]		TEMPLATE	"Cyb-Hvy-Acannon"
	superCyb[3]		TEMPLATE	"Cyb-Hvy-TK"

the requirement says

    "R-Wpn-RailGun01": {
        "iconID": "IMAGE_RES_WEAPONTECH",
        "id": "R-Wpn-RailGun01",
        "keyTopic": 1,
        "msgName": "RES_W_RAIL1",
        "name": "Needle Gun",
        "requiredResearch": [
            "R-Wpn-Cannon4AMk1",
            "R-Struc-Research-Upgrade07",
            "R-Wpn-Cannon-Damage07"
        ],
        "researchPoints": 14400,
        "researchPower": 450,
        "resultComponents": [
            "Cyb-Wpn-Rail1",
            "RailGun1-VTOL",
            "RailGun1Mk1"
        ],
        "statID": "RailGun1Mk1"
    },

to fix the errors just add the correct research to the tech RESEARCHSTAT for the units

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 7, 2016

ilario changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 7, 2016

ilario commented


I got a few more of these messages:

[researchedTemplate:92] Super HPV Cyborg Cyborg Heavy Body Cyborg Propulsion : not researched weapon 0
[researchedTemplate:92] Super Auto-Cannon Cyborg Cyborg Heavy Body Cyborg Propulsion : not researched weapon 0
[researchedTemplate:92] Super Tank-Killer Cyborg Cyborg Heavy Body Cyborg Propulsion : not researched weapon 0
[researchedTemplate:92] Super Heavy-Gunner Cyborg Heavy Body Cyborg Propulsion : not researched weapon 0

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 8, 2016

klasskill commented


yeah same problem for all these units

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen <per.mathisen@...> changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen <per.mathisen@...> changed owner from `` to Per Inge Mathisen <per.mathisen@gmail.com>

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen <per.mathisen@...> changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen <per.mathisen@...> commented


In Warzone2100/warzone2100@f9a7234:

#CommitTicketReference repository="" revision="f9a723424f51ffa578b1bfce179f1bf30f277675"
Do proper template research checking for wzscript. Fixes cyborg research checking.

Closes #4364

@wzdev-ci
Copy link
Contributor Author

Per changed blocking which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Per changed blockedby which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Per commented


The above things should not need to match. wzscript uses the tech[][] array merely as a list of goals, not as a specification for what to research.

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