Hi, I have a catalog trigger error for a weapons splash modifier system created by my Programmer and I'm not sure what's the root cause. Would someone be able to help please?
Please let me know if you need more info/context. If someone can help me understand why he used 3 separate Weapon Mod categories, that will be helpful too. Otherwise, I'd like to optimize it. Thanks.
To start off, do you know how catalogs work? The game basically updates an effects damage using strings.
The errors you are getting are from incorrect strings. Like the game can not find a field value (e.g. Damage, HP, mana) with that string name.
From what I see, it looks like this trigger is much more complex than it needs to be. What do you want the trigger to do? It would be easier to help you if I knew what you are trying to accomplish, because the trigger image is kinda hard to follow
If it cannot be read i either cannot (by design) or you mistype something.
To get string paths create Text variable, go into value editor so you can type text, select data field you want and click 'insert data field'
If it's not there than it cannot be read. If You can modify this field via Upgrades it means it cannot be written to.
Your catalogs arn't set up properly. I will do a catalog tutorial today.
First field value. ID of the "data item" you want to modify.
Second Field Value is the name of the field you want to modify within that data item of which you just entered the id
Picked Player = The player. Duh? lol
(Here I am going to get the original value of the weapon and adding +1 to it.)
Convert Integer to String since catalogs are strings
Catalog Field Value get as integer
Our effect ID. Our same field referring to the damage + 1!!
Of course there is an arithmetic in there but thats it.
Catalog - Set value of Effects "C10CanisterRifle" "Amount" for player "Picked Player" to (String(((Value of Effects "C10CanisterRifle" "Amount" for player "Picked Player" as an integer) + 1)))
Your catalogs arn't set up properly. I will do a catalog tutorial today.
"AreaArray[x].Radius" sounds about right, though. Sometimes, you need to add a [0] for fields, which are no arrays, it cannot hurt anyway. So you can try "AreaArray[x].Radius[0]".
Did you try to set the values manually? Did you print all your relevant strings to see, if you got the correct id and everything?
Also, it looks like, this is an example from a map you need to configure to your needs. The listed damage effects do not even have a splash radius by default. Try to add effects to the list, which use an area.
Did you take this trigger directly from an example map? Would this example map by any chance work correctly by itself?
The 3 categories seem to be used for different amounts of areas on the effects. You can add multiple areas to a damage effect, for example, to cause more damage closer to the center. This system seems to cover an area count up to 3, and depending on count, you need to add the effect to the appropriate category.
Thanks for all the help and insight. The error occurs when the damage effect itself didn't have the Area Damage. When we made changes to how splash worked for certain weapons in NOTD, we didn't update this trigger which caused the errors. This has been fixed.
Hi, I have a catalog trigger error for a weapons splash modifier system created by my Programmer and I'm not sure what's the root cause. Would someone be able to help please?
Please let me know if you need more info/context. If someone can help me understand why he used 3 separate Weapon Mod categories, that will be helpful too. Otherwise, I'd like to optimize it. Thanks.
To start off, do you know how catalogs work? The game basically updates an effects damage using strings.
The errors you are getting are from incorrect strings. Like the game can not find a field value (e.g. Damage, HP, mana) with that string name.
From what I see, it looks like this trigger is much more complex than it needs to be. What do you want the trigger to do? It would be easier to help you if I knew what you are trying to accomplish, because the trigger image is kinda hard to follow
If it cannot be read i either cannot (by design) or you mistype something.
To get string paths create Text variable, go into value editor so you can type text, select data field you want and click 'insert data field'
If it's not there than it cannot be read. If You can modify this field via Upgrades it means it cannot be written to.
Your catalogs arn't set up properly. I will do a catalog tutorial today.
First field value. ID of the "data item" you want to modify.
Second Field Value is the name of the field you want to modify within that data item of which you just entered the id
Picked Player = The player. Duh? lol
(Here I am going to get the original value of the weapon and adding +1 to it.)
Convert Integer to String since catalogs are strings
Catalog Field Value get as integer
Our effect ID. Our same field referring to the damage + 1!!
Of course there is an arithmetic in there but thats it.
Catalog - Set value of Effects "C10CanisterRifle" "Amount" for player "Picked Player" to (String(((Value of Effects "C10CanisterRifle" "Amount" for player "Picked Player" as an integer) + 1)))
"AreaArray[x].Radius" sounds about right, though. Sometimes, you need to add a [0] for fields, which are no arrays, it cannot hurt anyway. So you can try "AreaArray[x].Radius[0]".
Did you try to set the values manually? Did you print all your relevant strings to see, if you got the correct id and everything?
Also, it looks like, this is an example from a map you need to configure to your needs. The listed damage effects do not even have a splash radius by default. Try to add effects to the list, which use an area.
Did you take this trigger directly from an example map? Would this example map by any chance work correctly by itself?
The 3 categories seem to be used for different amounts of areas on the effects. You can add multiple areas to a damage effect, for example, to cause more damage closer to the center. This system seems to cover an area count up to 3, and depending on count, you need to add the effect to the appropriate category.
Thanks for all the help and insight. The error occurs when the damage effect itself didn't have the Area Damage. When we made changes to how splash worked for certain weapons in NOTD, we didn't update this trigger which caused the errors. This has been fixed.