Data Raw Prototypes deprecated


A modding utility to access raw prototype data from data.raw within control.lua. Prototypes are only loaded as required, cached to the save game for as long as the mods state is unchanged, and the cache is shared across all mods. To use: remote.call("data-raw", "prototype", "car", "tank"). See readme for more details.

Utilities
6 years ago
0.14 - 0.15
59

g How does this differ from the already accessible Entity/Item Prototypes in the API?

7 years ago

There's a lot more detail.
Here's an example: In one of my mods I needed to artificially recreate the firing of a gun with ammo, but the information in LuaItemPrototype was not sufficient, it lacked things like shell particles, target effects, secondary effects, what sounds to play, etc.