Hello guys.
I'm a newbie to Factorio modding (luckily not to programming). I have digged through a numerous threads about "how to get the data.raw prototypes in control.lua script", and as far as I understood there is currently no way to read most of the prototypes properties during the game (e.g. in control.lua). Particulary I'm interested in vehicles parameters, but this includes many other objects stuff like animations parameters, different properties and so on. It's easy to understand why many of those properties cannot be exposed for writing (many of them are immutable even in C++ code), but why not provide them as read-only? Why can it hurt to expose all the prototypes as read-only tables, to make possible for a mod to get for example properties of all the ammo types in the game?
Perhaps it sounds more like a modding interface request, but I'm not sure, maybe this idea was already discussed and dismissed by the developers (and I've skipped it while searching the forum). So I would be grateful if anyone can enlighten me with this question. Thanks in advance!
Prototypes properties ingame. (JA data-to-control thread)
- ArderBlackard
- Long Handed Inserter
- Posts: 74
- Joined: Thu May 05, 2016 12:41 pm
- Contact:
Prototypes properties ingame. (JA data-to-control thread)
Gib dich hin bis du Glück bist
Re: Prototypes properties ingame. (JA data-to-control thread)
Adding read support takes a lot of time to ensure both it's done correct and tested to stay working.
If you've got some list of things you're looking for I can probably add in those.
If you've got some list of things you're looking for I can probably add in those.
If you want to get ahold of me I'm almost always on Discord.
Re: Prototypes properties ingame. (JA data-to-control thread)
That is a game design bug.Rseding91 wrote:Adding read support takes a lot of time.
- ArderBlackard
- Long Handed Inserter
- Posts: 74
- Joined: Thu May 05, 2016 12:41 pm
- Contact:
Re: Prototypes properties ingame. (JA data-to-control thread)
Thanks a lot for the quick answer!Rseding91 wrote:If you've got some list of things you're looking for I can probably add in those.
So it can be done by request. Then for now I'd better continue studying the provided API to decide exactly which parameters could be helpful for my ideas.
Gib dich hin bis du Glück bist
Re: Prototypes properties ingame. (JA data-to-control thread)
Everything takes time. Even now replying to these posts takes time that I could be spending programmingDaveMcW wrote:That is a game design bug.Rseding91 wrote:Adding read support takes a lot of time.
If you want to get ahold of me I'm almost always on Discord.
-
- Long Handed Inserter
- Posts: 87
- Joined: Wed Apr 27, 2016 6:30 pm
- Contact:
Re: Prototypes properties ingame. (JA data-to-control thread)
That's a life design bug.Rseding91 wrote:Everything takes time. Even now replying to these posts takes time that I could be spending programmingDaveMcW wrote:That is a game design bug.Rseding91 wrote:Adding read support takes a lot of time.
You should have automated the posting process long ago. Just takes a whole heap of processor units, smart robot arms, and lubricant. Never skimp on lubricant.