Expose data.raw deprecated

by sparr

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

Tweaks
7 years ago
0.13
7
Owner:
sparr
Source:
https://github.com/sparr/factorio-mod...
Homepage:
http://github.com/sparr/factorio-mod-...
License:
MIT
Created:
8 years ago
Latest Version:
0.13.0 (8 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.