Kuxynator's Prototype Export


Exports all prototypes. **Mod for development not for playing Factorio.** - Exports the complete data.raw w/o "SERPENT PLACEHOLDER" Don't forget to install Kuxynator's Composer for Prototype Export

a month ago
1.1 - 2.0
74
Owner:
kuxynator
Source:
N/A
Homepage:
https://fb.me/kuxynator.factorio
License:
CC BY-NC-ND 4.0
Created:
1 year, 5 months ago
Latest Version:
3.5.1 (a month ago)
Factorio version:
1.1 - 2.0
Downloaded by:
74 users

Prototype Export

This mod will export all prototypes for all loaded mods.

Info

Experimental mod for development not for playing Factorio.

News

2023-05-27 By increasing the export capacity to 300%, it is now possible to export large mods/packs without limiting the data with filters.

Quick Start

  • Start Factorio

  • install mods: Kuxynator's Prototype Export and Composer for Kuxynator's Prototype Export

  • Restart Factorio

  • go to settings, change the filter and restart Factorio

  • now during restart, the prototypes will be prepared for export

  • [Optional] check you logfile or the commandline output, that the composer is the last loaded mod.
    Loading mod zzz-Kux-PrototypeExport-Compose 2.0.0 (data-final-fixes.lua)
    Script @__Kux-RawDataProvider__/Modules/RawData.lua:162: RawData.compose (zzz-Kux-PrototypeExport-Compose)

  • Start a new game or continue an existing one (does't matter)

  • Wait for the mesage "exporting data done"

  • Open the output directory "script-output", voila and there are all the files

The composer

Additional you requires a composer, a mod that is loaded after all mods that are to be exported. In most cases, you can use mine:

or you can write or modify your own.

If you don't add an additional composer only mods loaded before Kux-PrototypeExport are recognized.

Check your log!
RawData.compose is called with the last loaded composer mode, here "zzz-Kux-PrototypeExport-Compose"

...
Loading mod zzz-Kux-PrototypeExport-Compose 2.0.0 (data-final-fixes.lua)
Script @__Kux-RawDataProvider__/Modules/RawData.lua:162: RawData.compose (zzz-Kux-PrototypeExport-Compose)
...

Your own composer

In rare cases where zzz-Kux-PrototypeExport-Compose is not the last loaded mod, you can

  • adapt zzz-Kux-PrototypeExport-Compose locally or
  • write a mod that is alphabetically behind all other mods and/or
  • write a mod that references all mods that are alphabetically behind the composer.

in data.lua
RawData.registerConsumer("Your_mod_name")

in data-final-fixes.lua
RawData.compose("Your_mod_name")

BasePrototypeData

Creating BasePrototypeData

  • deactivate all mods, except mods for export (Kuxynator's Prototype Export and [Composer for Kuxynator's Prototype Export])
  • restart Factorio and export the data
  • Create a mod BasePrototypeData (or download and modify the template)
  • copy script-output/prototype_export_data.lua into the new mod directory
  • rename it to BasePrototypeData.lua
  • rename prototype_export_data in line 1 to BasePrototypeData
  • restart Factorio and activate BasePrototypeData.
  • now you can activate "Base Diff" in the settings.