Expose data.raw deprecated

by sparr

Serializes data.raw to a dummy entity, to be read at runtime.

Tweaks
6 years ago
0.13
7
Owner:
sparr
Source:
https://github.com/sparr/factorio-mod...
Homepage:
http://github.com/sparr/factorio-mod-...
License:
MIT
Created:
7 years ago
Latest Version:
0.13.0 (7 years ago)
Factorio version:
0.13
Downloaded by:
7 users

This mod is deprecated. I recommend using https://mods.factorio.com/mods/Earendel/data-raw-prototypes instead.

To utilize this information in your mod, include the following snippet:

data = {raw = loadstring(game.entity_prototypes["DATA_RAW"].order)()}

loadstring is an expensive call. You should use it once per session at most.