Prototype User Data
- Ranakastrasz
- Smart Inserter
- Posts: 2174
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Prototype User Data
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
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Prototype User Data
What's the use case?
If you want to get ahold of me I'm almost always on Discord.
Re: Prototype User Data
Allowing data.lua and control.lua to communicate with each other.
Re: Prototype User Data
But why?DaveMcW wrote:Allowing data.lua and control.lua to communicate with each other.
If you want to get ahold of me I'm almost always on Discord.
Re: Prototype User Data
As a workaround to this.
Re: Prototype User Data
No, that's a garbage solution.DaveMcW wrote:As a workaround to this.
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.
- Ranakastrasz
- Smart Inserter
- Posts: 2174
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Prototype User Data
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
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
- Ranakastrasz
- Smart Inserter
- Posts: 2174
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Prototype User Data
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.
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
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16