List of prototype fields and ammo/gun question

Place to get help with not working mods / modding interface.
blah900
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat May 31, 2014 12:42 am
Contact:

List of prototype fields and ammo/gun question

Post by blah900 »

Hi, I just recently got into factorio modding I had two questions
So I have been looking over at factorio's wiki and looking at https://forums.factorio.com/wiki/inde ... efinitions.

1.Is there a compiled list of all the prototype, their fields, and their explanation? Or is there at least some way to see what fields are available ingame?

2. Is there a way to make a gun use more than 1 magazine? For example, creating a double barreled shotgun, instead of using 1 magazine, it would use 2 (depleting it at twice the pace).

Thanks in advance!

EDIT: If not, is there a way where I could see the C++ source code?
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: List of prototype fields and ammo/gun question

Post by FreeER »

blah900 wrote:1.Is there a compiled list of all the prototype, their fields
um, base prototypes? There's no list of explanations other than the wiki
blah900 wrote:2. Is there a way to make a gun use more than 1 magazine?
No. For shotgun you could make 1 ammo item with half the magazine size and double the action parameters though (for shotgun shell use ntimes(32, {}) instead of the ntimes(16, {}). That's about as close as you'll get with the current state of the game, unless you choose to use lua to subtract from a neighboring ammo slot and...not sure if you can fire a second time through lua actually.

here's all the prototypes and their fields (for 9.7, shouldn't be different from 9.8 though) in one list:
data.raw.0.9.7.zip
(92.31 KiB) Downloaded 115 times
EDIT: If not, is there a way where I could see the C++ source code?
You can email the devs and ask :)
blah900
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat May 31, 2014 12:42 am
Contact:

Re: List of prototype fields and ammo/gun question

Post by blah900 »

Thanks for the prompt reply!

I will make do with what is currently available.
Post Reply

Return to “Modding help”