Help with turrets and guns

Place to get help with not working mods / modding interface.
User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 840
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Help with turrets and guns

Post by cpy »

Anyone knows what changed with weapons and turrets? I get unknown type on "ammo-turret" and "gun" types.
yeganer
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Mon Jul 06, 2015 12:07 pm
Contact:

Re: Help with turrets and guns

Post by yeganer »

have you looked into the data values of factorio? you can find all prototype definitions there. (data folder in the main install directory)

if you are trying to modify stuff it could be that you forgot to add the base game as dependency?
User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 840
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Help with turrets and guns

Post by cpy »

I tried to use base game as template but only some parts, i have to look at it again since i read more about those type errors.
UberWaffe
Fast Inserter
Fast Inserter
Posts: 203
Joined: Mon May 04, 2015 4:53 am
Contact:

Re: Help with turrets and guns

Post by UberWaffe »

I had the exact same problem. Bobingabout was very helpful in this regard: https://forums.factorio.com/forum/vie ... 025#p93025
bobingabout wrote:
UberWaffe wrote:See the attached image for the error message "no such node (type)".
All attack_parameters now need a type tag.
add the line type = "projectile", imediately after the first { in your attack_parameters redefinition.

I presume it is to diferentiate the old attack perameters type from the new beam lasers that the combat drones are supposed to use, but I havn't looked at their code yet to know for sure.
User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 840
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Help with turrets and guns

Post by cpy »

It helped, now it works. Thanks.
Post Reply

Return to “Modding help”