Search found 7 matches

by NindyBun
Fri Jul 28, 2023 10:11 am
Forum: Modding help
Topic: Custom sprite-button not firing on_gui_click
Replies: 4
Views: 635

Re: Custom sprite-button not firing on_gui_click

Okay, I've narrowed the issue to the guiElement#clear function. I have a scroll pane that clears every second and then redraws the necessary guiElements because I need it to refresh. It turns out that if I don't use the clear function, the buttons fire the on_click_event which is great but I need to...
by NindyBun
Thu Jul 27, 2023 11:40 am
Forum: Modding help
Topic: Custom sprite-button not firing on_gui_click
Replies: 4
Views: 635

Re: Custom sprite-button not firing on_gui_click

Are you setting the mouse filter on the button? https://lua-api.factorio.com/latest/LuaGuiElement.html#LuaGuiElement.mouse_button_filter Looking at the function I use to make the button, I don't think I set the mouse filter anywhere. It's also the same function I used to make the 'X' close button o...
by NindyBun
Thu Jul 27, 2023 5:44 am
Forum: Modding help
Topic: Custom sprite-button not firing on_gui_click
Replies: 4
Views: 635

Custom sprite-button not firing on_gui_click

I made a "sprite-button" that displays the item icon with related tooltips but the button doesn't fire the on_gui_click event when pressed. button.PNG https://github.com/NindyBun/RefinedNetworkStorage/blob/ee2610618c526905c07b8c34271d3e980fba8e72/scripts/objects/NetworkInventoryInterface.l...
by NindyBun
Mon Apr 19, 2021 6:16 pm
Forum: Modding help
Topic: Custom Boiler capping on water usage
Replies: 0
Views: 455

Custom Boiler capping on water usage

I don't know if this is the right place but I am making a mod and my boiler is only using 840 of 1200 water, even though I am using an energy drain to get the max water usage.
My boiler, that big circle, is set to consume 36MW at 165 Celsius to get 1200 water usage.
by NindyBun
Wed Apr 14, 2021 8:09 am
Forum: Modding help
Topic: Generator and water filter
Replies: 5
Views: 1233

Re: Generator and water filter

No, its either taking energy from heat or taking energy from fuel value. If you have water with fuel value set, then you generator has to have burns_fluid = "true" in the prototype Well, at this point I made the default water temperature 100 celsius and the generator does take in the wate...
by NindyBun
Wed Apr 14, 2021 7:40 am
Forum: Modding help
Topic: Generator and water filter
Replies: 5
Views: 1233

Re: Generator and water filter

What do you mean by "cannot take in water"? If it does not produce any electricity then it is working as intended. Fluids are defined with `heat_capacity` and with `fuel_value`: - if the generator prototype has burns_fluid="false" or is missing burns_fluid (it takes the default ...
by NindyBun
Wed Apr 14, 2021 7:04 am
Forum: Modding help
Topic: Generator and water filter
Replies: 5
Views: 1233

Generator and water filter

I've set my generator to filter only water but in-game it doesn't accept it. Does that mean generator types cannot take in water as an acceptable fluid fuel? util.merge{data.raw.generator["steam-engine"], { type = "generator", name = "concentrating-solar-power-generator"...

Go to advanced search