I need some help to get started with some ideas I have
Posted: Sat Oct 17, 2015 6:27 pm
Hi,
I want to get a bit into factorio modding for some small enhancements I'd like to have and just for fun.
But I know almost nothing about it.
At the moment I'm experimenting a bit with the in game console to find out how things work, what methods are available, etc.
Here are some ideas I had for which I wanted to create a mod.
1. With the mobile roboport you also have a small robot building area around you, but usually you don't see the range of this. I think you can only see it if build something with a blueprint.
What I'd like to have is that if I press the shift-key (what I anyway need to press when I want to place a single object as a ghost) it should show me the range of my roboport.
Maybe this would also be a possible request to the developers but it would also be great if I can do it by myself.
However at the moment I don't know how this is possible. How do I (or my script) know that I have currently a buildable object in my hand and how do I get the information that shift is pressed?
I looked into the events but couldn't find anything for my needs. So probably this is not done with events.
I saw some posts that mods don't get informed about pressed keys. Is this right? Does this mean I have no chance of implementing such a thing?
2. If I configured in my inventory that logistic robots should bring me some materials, I also want to see if there are currently some robots on the way to bring the materials to me.
So I've been thinking about whether it possible to include such an information into the popup information that is shown if my cursor is over an item in the request area.
It would be great if someone can help me a bit with some information to get me started. At least I hope that it is possible to realize my ideas at all.
I don't want the final source code. I only need some information which things I have to use to do what I want.
I want to get a bit into factorio modding for some small enhancements I'd like to have and just for fun.
But I know almost nothing about it.
At the moment I'm experimenting a bit with the in game console to find out how things work, what methods are available, etc.
Here are some ideas I had for which I wanted to create a mod.
1. With the mobile roboport you also have a small robot building area around you, but usually you don't see the range of this. I think you can only see it if build something with a blueprint.
What I'd like to have is that if I press the shift-key (what I anyway need to press when I want to place a single object as a ghost) it should show me the range of my roboport.
Maybe this would also be a possible request to the developers but it would also be great if I can do it by myself.
However at the moment I don't know how this is possible. How do I (or my script) know that I have currently a buildable object in my hand and how do I get the information that shift is pressed?
I looked into the events but couldn't find anything for my needs. So probably this is not done with events.
I saw some posts that mods don't get informed about pressed keys. Is this right? Does this mean I have no chance of implementing such a thing?
2. If I configured in my inventory that logistic robots should bring me some materials, I also want to see if there are currently some robots on the way to bring the materials to me.
So I've been thinking about whether it possible to include such an information into the popup information that is shown if my cursor is over an item in the request area.
It would be great if someone can help me a bit with some information to get me started. At least I hope that it is possible to realize my ideas at all.
I don't want the final source code. I only need some information which things I have to use to do what I want.