Search found 9 matches
- Tue Feb 18, 2020 2:22 pm
- Forum: Modding help
- Topic: Custom behaviour for drones
- Replies: 2
- Views: 860
- Tue Feb 18, 2020 9:33 am
- Forum: Modding help
- Topic: Custom behaviour for drones
- Replies: 2
- Views: 860
Custom behaviour for drones
Hello! I am making a mod and want to create custom ai for battle drones (they will fly to the target and explode themselves). Can somebody explain me how does factorio ai works (or give some tutorials or some mods with comments in their's code). Also I could not find the file responsible for the ai ...
- Sun Feb 16, 2020 10:40 am
- Forum: Technical Help
- Topic: Factorio Portable
- Replies: 2
- Views: 4631
Re: Factorio Portable
Thanks
- Sun Feb 16, 2020 9:34 am
- Forum: Technical Help
- Topic: Factorio Portable
- Replies: 2
- Views: 4631
Factorio Portable
I want to take factorio with me on my flaah drive. Is there a portable version of Factorio?
- Sat Feb 15, 2020 2:17 pm
- Forum: Modding help
- Topic: Player gui
- Replies: 1
- Views: 663
Re: Player gui
I solved this problem right after clicking submit
Code: Select all
local vehicle = global.sf_reavers[entity.unit_number]
local gui=mod_gui.get_frame_flow(vehicle["last_driver"])
if gui["sf-reaver-gui-frame"] then
gui["sf-reaver-gui-frame"].destroy()
end
- Sat Feb 15, 2020 2:06 pm
- Forum: Modding help
- Topic: Player gui
- Replies: 1
- Views: 663
Player gui
Hello,
I want to destroy player's gui element, but the game says that it is a nil value
How i made that gui:
require("mod-gui")
local frame_flow=mod_gui.get_frame_flow(player)
local frame = frame_flow.add{
name = "sf-reaver-gui-frame",
type = "frame",
direction = "vertical",
}
How i'm ...
I want to destroy player's gui element, but the game says that it is a nil value
How i made that gui:
require("mod-gui")
local frame_flow=mod_gui.get_frame_flow(player)
local frame = frame_flow.add{
name = "sf-reaver-gui-frame",
type = "frame",
direction = "vertical",
}
How i'm ...
- Fri Feb 14, 2020 3:39 pm
- Forum: Modding help
- Topic: Custom atributes
- Replies: 2
- Views: 849
Re: Custom atributes
Thanks
- Fri Feb 14, 2020 1:41 pm
- Forum: Modding help
- Topic: Custom atributes
- Replies: 2
- Views: 849
Custom atributes
Hello,
I want to make a vehicle that releases drones when enemy is near. I wanted to add special inventory for drones.
it says
How to add a new atribute?
I want to make a vehicle that releases drones when enemy is near. I wanted to add special inventory for drones.
Code: Select all
if ent.name == "sf-reaver" and not ent.scarabey then
ent.scarabey=0
end
Code: Select all
LuaEntity doesn't contain key scarabey.
- Wed Jan 22, 2020 1:52 pm
- Forum: Modding discussion
- Topic: Make player unable to place an entity
- Replies: 2
- Views: 1059
Make player unable to place an entity
Please help, i want to make possible to place an entity only near another building (distibutor) . I made a script that destroys entity if it cant find the distributor nearby, but I want to do it properly, make player unable to place entity anywhere exept near ditributor