Search found 3 matches

by dominis
Fri Jan 03, 2025 12:36 pm
Forum: Bug Reports
Topic: [2.0.28] Quality % wrong when normal quality's level changes
Replies: 0
Views: 247

[2.0.28] Quality % wrong when normal quality's level changes

local function rewrite_quality ()
local order = { 'normal', 'uncommon', 'rare', 'epic', 'legendary' }
local level = { 0, 1, 4, 16, 64 }
for idx, rarity in ipairs(order) do
if data.raw.quality[rarity] and not data.raw.quality[rarity].qml_ignore then
data.raw.quality[rarity].level = 64 -- idx ...
by dominis
Mon May 13, 2024 1:00 am
Forum: News
Topic: Friday Facts #409 - Diminishing beacons
Replies: 180
Views: 49444

Re: Friday Facts #409 - Diminishing beacons

Is a 1/sqrt(n) lookup table faster than doing the computation directly? Maybe if Lua I guess.
by dominis
Fri Oct 19, 2018 7:06 am
Forum: Duplicates
Topic: [0.16.51] Lua access violation crash
Replies: 1
Views: 696

[0.16.51] Lua access violation crash

Hey, I ran into this crash developing a mod.

Steps to reproduce:

1. Run these three commands in succession
2. Game will crash on the third one (100% success rate for me)


/c

function func()
local sf = game.surfaces[1]
local find_entities_filtered = sf.find_entities_filtered

local find ...

Go to advanced search