Search found 17 matches

by Alex33
Wed Oct 30, 2019 5:41 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

Actually i assumed that you don't need to manipulate blueprints. And why is the *proxy* even in a blueprint. The proxy currently not in the blueprint, there is only the machine. I wanted to replace it by the proxy, so it's handled as a "build_proxy" feature by robots, with the actual buil...
by Alex33
Tue Oct 29, 2019 10:35 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

but earlier I have seen something about that : https://lua-api.factorio.com/latest/Concepts.html#BoundingBox Position VS chunkPosition VS TilePosition. TilePosition uses the same format as Position except it rounds any x/y down to whole numbers. I guess create_entity expect a TilePosition in parame...
by Alex33
Tue Oct 29, 2019 5:26 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

The "click a pole to upgrade in place" is an interesting idea, but yea. Mod api support is limited and simply adding crafting recipes to make pre-combined items is much easier. It would have been uncomplete without this feature. I'm happy that both mecanismes work fine... to bad it's not ...
by Alex33
Tue Oct 29, 2019 3:11 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

1a) You can't. 1b) You can't. 1c) You can't. :(. If it's really not manageable, this will always suck in my mod :( For the "pole graphic should be above machine" you can simply position the pole 1/256's tile south of the assembling machine. I remember you told so and I tried. but "po...
by Alex33
Tue Oct 29, 2019 11:53 am
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

julius1701 wrote: ↑Tue Oct 29, 2019 9:29 am For updating a Mod click on 'my mods' select your mod, go to 'downloads' and click edit
Thank you again
by Alex33
Tue Oct 29, 2019 8:37 am
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

I have spotted an error that generates a crash (on_entity_died, I though it would be the same as on_entity_mine, but there is no "player_index")

It's corrected on my side, but I must update my released mod.
For now, I just marked it as depreciated
by Alex33
Mon Oct 28, 2019 9:45 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

Thanks Julius :)
I was ready to update my mod with the german translation you provided, and a different thumbnail... but I don't see any button on mods.factorio.com to upload the next version.... Am I blind ? Should I upload it as a new mod ?
by Alex33
Mon Oct 28, 2019 4:26 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

Hello all,
I'm glad to announce that first version of my "Electric Assembling Machines" mod (version 0.1.4) is now released. :)
Please do not hesitate to try it, your feedback (both functional and technical) are welcome.
Thank you, all participants
by Alex33
Mon Oct 28, 2019 10:11 am
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

Hello fellow Modders, Thank you very very much for your valuable feedbacks! Bottleneck is now working fine with my mod, and much more has be done. I will release the electric-assembling-machine mod soon :). There are still couple things that I wish to correct: Player is able to put an electric-pole ...
by Alex33
Sat Oct 26, 2019 1:49 am
Forum: Modding help
Topic: How to return an integer of empty slots from chest.
Replies: 2
Views: 984

Re: How to return an integer of empty slots from chest.

to get the chest variable, there are some example functions in Factorio\data\base\lualib\ file "check.lua" : check.chests_emptied = function(chest_list, goal, update_quest_gui) if update_quest_gui == nil then update_quest_gui = true end goal = goal or #chest_list -- Check each entity by ta...
by Alex33
Sat Oct 26, 2019 1:35 am
Forum: Modding help
Topic: How to return an integer of empty slots from chest.
Replies: 2
Views: 984

Re: How to return an integer of empty slots from chest.

Hi, I'm new too, but I would try that: local nbrSlots=#chest.get_inventory(defines.inventory.chest) local nbrEmptySlots=0 for i=1,nbrSlots,1 do if chest.get_inventory()[i]==nil then nbrEmptySlots=nbrEmptySlots+1 end end https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.operator%20# ...
by Alex33
Sat Oct 26, 2019 1:10 am
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

I will check this blueprints at one point, thanks to rising it up mrvn. For the wires, I was thinking that maybe someone want to pass a cable through the electric pole, but not use it on the assemble that holds it.. not sure if I really need to do something about it. Anyway, the mod globally works. ...
by Alex33
Fri Oct 25, 2019 3:53 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

q2) You have to use a third "proxy pole" entity that is an electric pole but has the collision box of the assembler. Then in on_built remove the proxy and place the two real entities. (Nobody said this is easy) Eradicator, your proxy pole solution actually solved my Q1 :D (and also Q2, de...
by Alex33
Fri Oct 25, 2019 2:47 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

Q1) I have added the "placeable-off-grid" flag to my electric pole, but it still behave the same: local polePosition={position.x-0.5, position.y-0.5} local create_pole = surface.create_entity({name = "assembling-machine-pole" , position = polePosition, force = force}) is the same...
by Alex33
Fri Oct 25, 2019 10:58 am
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

Hi, My mod development is going well, even if I have hard time discovering basic stuff on the fly I currently have issues with positionning, and some additional questions for the next use cases. I wish you can kindly help me, please? Q1) how can I manage not integer numbers for positionning? local e...
by Alex33
Thu Oct 24, 2019 4:13 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Re: Creating Assembly machine with integrated Electric pole

All right,
Thank you very much
by Alex33
Thu Oct 24, 2019 3:38 pm
Forum: Modding help
Topic: Creating Assembly machine with integrated Electric pole
Replies: 32
Views: 8190

Creating Assembly machine with integrated Electric pole

Hello community, I'm new on Factorio modding, and I wish you can help me to validate/correct this approach for my first mod: I want to create a new assembly-machine item, that is also a small-electric-pole (with energy distribution and connection). (ie: I want my custom-assembly-machine to share ele...

Go to advanced search