Search found 13 matches

by sensenmann
Sun Oct 27, 2024 9:18 pm
Forum: Modding help
Topic: What are the new ways of getting request_slot_count?
Replies: 4
Views: 530

Re: What are the new ways of getting request_slot_count?

Thanks that did the trick.

Heres my code if someone wonders how it is done (no guarantee its bug-free ;)


-- upgrade logistc requests
local logistics_point = entity.get_requester_point()
if logistics_point ~= nil then
for i = 1, logistics_point.sections_count do
local section = logistics_point ...
by sensenmann
Sun Oct 27, 2024 7:45 pm
Forum: Already exists
Topic: [2.0.11] LuaItemStack.set_stack lacks quality adjustment
Replies: 2
Views: 599

Re: [2.0.11] LuaItemStack.set_stack lacks quality adjustment

Sorry i missed that i had 2 loops for different usecases, now it works, thanks!
10-27-2024, 20-45-24.png
10-27-2024, 20-45-24.png (217.35 KiB) Viewed 575 times
by sensenmann
Sun Oct 27, 2024 7:00 pm
Forum: Already exists
Topic: [2.0.11] LuaItemStack.set_stack lacks quality adjustment
Replies: 2
Views: 599

[2.0.11] LuaItemStack.set_stack lacks quality adjustment

In my mod i want to do this:


local stacksize = entity.cursor_stack.count --record amount
local old_quality = entity.cursor_stack.quality --record quality
entity.cursor_stack.clear() --clear the slot
entity.cursor_stack.set_stack({ name = "alien-hyper-module-" .. math.min(storage ...
by sensenmann
Tue Oct 22, 2024 7:22 am
Forum: Modding help
Topic: [2.0] Replacement for request_slot_count, set/get_request_slot
Replies: 0
Views: 171

[2.0] Replacement for request_slot_count, set/get_request_slot

Removed LuaEntity::clear_request_slot(), get_request_slot() and set_request_slot() methods.
Removed LuaEntity::request_slot_count read.

What are the new ways of getting request_slot_count?
How do i migrate get_request_slot and set_request_slot in my mod to 2.0?

My code is:


for i = 1, entity ...
by sensenmann
Tue Oct 22, 2024 7:15 am
Forum: Modding help
Topic: What are the new ways of getting request_slot_count?
Replies: 4
Views: 530

What are the new ways of getting request_slot_count?

Removed LuaEntity::clear_request_slot(), get_request_slot() and set_request_slot() methods.
Removed LuaEntity::request_slot_count read.

What are the new ways of getting request_slot_count?

How do i migrate get_request_slot and set_request_slot in my mod to 2.0?

My code is


for i = 1, entity ...
by sensenmann
Mon Apr 29, 2024 8:21 am
Forum: Ideas and Suggestions
Topic: GUI Should remember time selection in production screen
Replies: 4
Views: 2049

Re: GUI Should remember time selection in production screen

Please add this for Factorio 2, the latest FFF did not talk about this change :)
by sensenmann
Sun Aug 05, 2018 5:24 am
Forum: Mod portal Discussion
Topic: Spammer reposted ALL messages in the mod discussion area
Replies: 6
Views: 3257

Spammer reposted ALL messages in the mod discussion area

Someone named "ch1naa" took all public threads,and reposted EVERY message available as a comment. I feel like this should not be possible. URL to mod: https://mods.factorio.com/mod/alien-module/discussion
by sensenmann
Fri Aug 03, 2018 6:02 am
Forum: Not a bug
Topic: [0.16.51] Bonus of modules calculated with error
Replies: 1
Views: 1153

[0.16.51] Bonus of modules calculated with error

AshenSwift freported on the mod forum of alien-module the following issue: https://mods.factorio.com/mod/alien-module/discussion/5b5d06a6f7828f000a5b9e22

After investigation i have the following problem with this code:

for i = 1, 100, 1 do
local levelbonus = i * 0.01
data:extend ...
by sensenmann
Thu Mar 09, 2017 8:44 pm
Forum: Mod portal Discussion
Topic: Not able to upload my mod
Replies: 11
Views: 5839

Re: Not able to upload my mod

I got the same error when uploading a new version of my mod
by sensenmann
Sun Mar 05, 2017 8:22 am
Forum: Modding help
Topic: What is the point of LuaForce.reset_recipes(),reset_technologies() ?
Replies: 12
Views: 3870

Re: What is the point of LuaForce.reset_recipes(),reset_technologies() ?

Rseding91 wrote:...
Additionally there was the plan (maybe still is) to allow changing recipes/technologies runtime (as in the costs/results).
Please make that possible, and if possible also enable changing module effects at runtime.
by sensenmann
Sat Mar 04, 2017 7:24 pm
Forum: Modding help
Topic: Changing effect of modules in control.lua
Replies: 2
Views: 1241

Re: Changing effect of modules in control.lua

Thanks for the hint, but how do i get all the modules i want to switch out that are currently in existence?
by sensenmann
Sat Mar 04, 2017 6:17 pm
Forum: Modding help
Topic: Changing effect of modules in control.lua
Replies: 2
Views: 1241

Changing effect of modules in control.lua

After trying for some while i wonder how it is possible to change the effect of modules while running the game, for example a module that gets stronger with the number of items manufactured. Or a module that gets stronger when enemies are killed.
by sensenmann
Tue Feb 28, 2017 5:13 pm
Forum: Mods
Topic: [0.14] Alien modules from Loot
Replies: 0
Views: 1166

[0.14] Alien modules from Loot

Type: Mod
Name: Alien Modules
Description: Adds loot from aliens that can be crafted into modules
License: MIT
Version: 0.0.1
Release: 2017-02-28
Tested-With-Factorio-Version: 0.14.22
Category: Item
Tags: Loot, Modules

Website: https://mods.factorio.com/mods/sensenmann/alien-module ...

Go to advanced search