Code: Select all
"designable": 1,Code: Select all
"designable": 0,I cannot figure out why the AI disregards the weapon specs I modify in "stats / weapons.json"
Can anybody please help me with this problem?
Thank you.

Code: Select all
"designable": 1,Code: Select all
"designable": 0,
Inside "stats/research.json", try deleting the "requiredResearch" field of all researchable direct-fire weapons. Since the AI bypasses the "designable" restriction, hopefully this workaround can solve this problem by making all direct-fire weapon research topics give nothing to players, be it human or AI.Doruletz wrote: 09 Apr 2025, 01:43While this prevents me from designing and producing any direct fire units, it does not impose the same restrictions for the AI player in Skirmish Games. The Bonecrusher AI comes at me with direct fire weapon units regardless.
I cannot figure out why the AI disregards the weapon specs I modify in "stats / weapons.json"
Can anybody please help me with this problem?
Thank you.
Code: Select all
"R-Wpn-Cannon3Mk1": {
"iconID": "IMAGE_RES_WEAPONTECH",
"id": "R-Wpn-Cannon3Mk1",
"msgName": "RES_CN3MK1",
"name": "Heavy Cannon",
"redComponents": [
"Cannon2A-TMk1"
],
"requiredResearch": [
"R-Wpn-Cannon-Damage05",
"R-Vehicle-Metals03",
"R-Wpn-Cannon2Mk1"
],
"researchPoints": 8800,
"researchPower": 275,
"resultComponents": [
"Cannon375mmMk1"
],
"statID": "Cannon375mmMk1"
},Code: Select all
"R-Wpn-Cannon3Mk1": {
"iconID": "IMAGE_RES_WEAPONTECH",
"id": "R-Wpn-Cannon3Mk1",
"msgName": "RES_CN3MK1",
"name": "Heavy Cannon",
"redComponents": [
"Cannon2A-TMk1"
],
"requiredResearch": [
"R-Wpn-Cannon-Damage05",
"R-Vehicle-Metals03",
"R-Wpn-Cannon2Mk1"
],
"researchPoints": 8800,
"researchPower": 275,
"statID": "Cannon375mmMk1"
},
@Black ProjectBlack Project wrote: 09 Apr 2025, 03:38Inside "stats/research.json", try deleting the "requiredResearch" field of all researchable direct-fire weapons. Since the AI bypasses the "designable" restriction, hopefully this workaround can solve this problem by making all direct-fire weapon research topics give nothing to players, be it human or AI.Doruletz wrote: 09 Apr 2025, 01:43While this prevents me from designing and producing any direct fire units, it does not impose the same restrictions for the AI player in Skirmish Games. The Bonecrusher AI comes at me with direct fire weapon units regardless.
I cannot figure out why the AI disregards the weapon specs I modify in "stats / weapons.json"
Can anybody please help me with this problem?
Thank you.
Here's an example for the Heavy Cannon
BEFORE:AFTER:Code: Select all
"R-Wpn-Cannon3Mk1": { "iconID": "IMAGE_RES_WEAPONTECH", "id": "R-Wpn-Cannon3Mk1", "msgName": "RES_CN3MK1", "name": "Heavy Cannon", "redComponents": [ "Cannon2A-TMk1" ], "requiredResearch": [ "R-Wpn-Cannon-Damage05", "R-Vehicle-Metals03", "R-Wpn-Cannon2Mk1" ], "researchPoints": 8800, "researchPower": 275, "resultComponents": [ "Cannon375mmMk1" ], "statID": "Cannon375mmMk1" },Code: Select all
"R-Wpn-Cannon3Mk1": { "iconID": "IMAGE_RES_WEAPONTECH", "id": "R-Wpn-Cannon3Mk1", "msgName": "RES_CN3MK1", "name": "Heavy Cannon", "redComponents": [ "Cannon2A-TMk1" ], "requiredResearch": [ "R-Wpn-Cannon-Damage05", "R-Vehicle-Metals03", "R-Wpn-Cannon2Mk1" ], "researchPoints": 8800, "researchPower": 275, "statID": "Cannon375mmMk1" },

Code: Select all
function droidLimit(player) // inside hackNetOff()
{
setDroidLimit(player, 150, DROID_ANY);
setDroidLimit(player, 10, DROID_COMMAND);
setDroidLimit(player, 15, DROID_CONSTRUCT);
}
Doruletz wrote: 09 Apr 2025, 04:44@Black ProjectBlack Project wrote: 09 Apr 2025, 03:38Inside "stats/research.json", try deleting the "requiredResearch" field of all researchable direct-fire weapons. Since the AI bypasses the "designable" restriction, hopefully this workaround can solve this problem by making all direct-fire weapon research topics give nothing to players, be it human or AI.Doruletz wrote: 09 Apr 2025, 01:43While this prevents me from designing and producing any direct fire units, it does not impose the same restrictions for the AI player in Skirmish Games. The Bonecrusher AI comes at me with direct fire weapon units regardless.
I cannot figure out why the AI disregards the weapon specs I modify in "stats / weapons.json"
Can anybody please help me with this problem?
Thank you.
Here's an example for the Heavy Cannon
BEFORE:AFTER:Code: Select all
"R-Wpn-Cannon3Mk1": { "iconID": "IMAGE_RES_WEAPONTECH", "id": "R-Wpn-Cannon3Mk1", "msgName": "RES_CN3MK1", "name": "Heavy Cannon", "redComponents": [ "Cannon2A-TMk1" ], "requiredResearch": [ "R-Wpn-Cannon-Damage05", "R-Vehicle-Metals03", "R-Wpn-Cannon2Mk1" ], "researchPoints": 8800, "researchPower": 275, "resultComponents": [ "Cannon375mmMk1" ], "statID": "Cannon375mmMk1" },Code: Select all
"R-Wpn-Cannon3Mk1": { "iconID": "IMAGE_RES_WEAPONTECH", "id": "R-Wpn-Cannon3Mk1", "msgName": "RES_CN3MK1", "name": "Heavy Cannon", "redComponents": [ "Cannon2A-TMk1" ], "requiredResearch": [ "R-Wpn-Cannon-Damage05", "R-Vehicle-Metals03", "R-Wpn-Cannon2Mk1" ], "researchPoints": 8800, "researchPower": 275, "statID": "Cannon375mmMk1" },
Thanks for your fast reply, but I don't think this will do the trick. There is a research tree, with strict requirements for previous research being completed in order to enable more advanced research. Let me try to explain...
IMHO, if AI does not research basic weapons such as MG & Cannons, they can never get to more advanced weapons, such as Mortars and Howitzers.
Same goes for mini rockets, which are needed to get to MRL, Ripple Rockets as well as Seraph and Archangel missiles.

Code: Select all
error |23:27:05: [enableResearch:2715] No such research R-Sys-Sensor-Turret01 for player 0
error |23:27:05: [enableResearch:2715] No such research R-Wpn-MG1Mk1 for player 0
error |23:27:05: [enableResearch:2715] No such research R-Sys-Engineering01 for player 0
error |23:27:05: [completeResearch:2659] No such research R-Vehicle-Prop-Wheels for player 0
error |23:27:05: [completeResearch:2659] No such research R-Sys-Spade1Mk1 for player 0
error |23:27:05: [completeResearch:2659] No such research R-Vehicle-Body01 for player 0
error |23:27:05: [enableResearch:2715] No such research R-Sys-Sensor-Turret01 for player 1
error |23:27:05: [enableResearch:2715] No such research R-Wpn-MG1Mk1 for player 1
error |23:27:05: [enableResearch:2715] No such research R-Sys-Engineering01 for player 1
error |23:27:05: [completeResearch:2659] No such research R-Vehicle-Prop-Wheels for player 1
error |23:27:05: [completeResearch:2659] No such research R-Sys-Spade1Mk1 for player 1
error |23:27:05: [completeResearch:2659] No such research R-Vehicle-Body01 for player 1