Prototype User Data

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Prototype User Data

Post by Ranakastrasz »

Suggest adding an optional entry to all prototypes, Userdata (Or some other name, based on Wc3 equivilent). Essentially, its a table, which can be setup however you want, and can be accessed via script. This would allow custom information to be attached to any prototype, which scripts can use.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Prototype User Data

Post by Rseding91 »

What's the use case?
If you want to get ahold of me I'm almost always on Discord.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Prototype User Data

Post by DaveMcW »

Allowing data.lua and control.lua to communicate with each other.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Prototype User Data

Post by Rseding91 »

DaveMcW wrote:Allowing data.lua and control.lua to communicate with each other.
But why?
If you want to get ahold of me I'm almost always on Discord.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Prototype User Data

Post by DaveMcW »

As a workaround to this.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Prototype User Data

Post by Rseding91 »

DaveMcW wrote:As a workaround to this.
No, that's a garbage solution.

We do a ton of post-processing of the data.raw data so even if it was available runtime it would be mostly wrong.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Prototype User Data

Post by Ranakastrasz »

How hard could it be to transfer a single table over? I mean, how different is that from the basically unchanged Max Health stat?
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Prototype User Data

Post by Ranakastrasz »

How hard could it be to transfer a single table over? I mean, how different is that from the basically unchanged Max Health stat?
I can understand that you take the original table and convert it into something far more compact without excessive information, so the game can use it without as much computation cost.. Or something, but that is why I made something that would be entirely out of the way.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Post Reply

Return to “Modding interface requests”