DEPRECATED Kuxynator's Protoype Export deprecated


DEPRECATED replacement: https://mods.factorio.com/mod/Kux-PrototypeExport Exports all protoypes. **Experimental mod for development not for playing Factorio.**

10 months ago
1.1
32
Owner:
kuxynator
Source:
N/A
Homepage:
https://fb.me/kuxynator.factorio
License:
GNU LGPLv3
Created:
1 year, 5 months ago
Latest Version:
2.2.2 (10 months ago)
Factorio version:
1.1
Downloaded by:
32 users

DEPRECATED Protoype Export

For a replacement goto https://mods.factorio.com/mod/Kux-PrototypeExport

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 Protoype Export and Composer for Kuxynator's Protoype 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-ProtoypeExport-Compose 2.0.0 (data-final-fixes.lua)
    Script @__Kux-RawDataProvider__/Modules/RawData.lua:162: RawData.compose (zzz-Kux-ProtoypeExport-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-ProtoypeExport are recognized.

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

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

Your own composer

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

  • adapt zzz-Kux-ProtoypeExport-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 Protoype Export and [Composer for Kuxynator's Protoype 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.