Search found 200 matches

by pleegwat
Wed Sep 21, 2022 4:51 pm
Forum: Modding interface requests
Topic: [1.1.69] not-modded luasurface.get_tile() returns invalid tile
Replies: 7
Views: 455

Re: [1.1.69] not-modded luasurface.get_tile() returns invalid tile

The existing interface is that a LuaTile is always returned and you need to check .valid. So most likely all existing mods assume the returned value is non-nil and check .valid, which would trigger an error if they suddenly got nil.
by pleegwat
Sun Sep 18, 2022 2:16 pm
Forum: Modding interface requests
Topic: Allow more tile types without exceeding 255 limit
Replies: 7
Views: 442

Re: Allow more tile types without exceeding 255 limit

I think option 1 would not require per-tile storage, simply using a per-surface lookup table rather than a global one. The same applies to 2a if noise functions are calculated on the fly, however I believe they're currently only executed on map generation so it wouldn't help. 2b definitely requires ...
by pleegwat
Mon Aug 08, 2022 4:57 pm
Forum: Modding discussion
Topic: tile limit
Replies: 3
Views: 489

Re: tile limit

I think it's not so much that they're keeping the tiles in memory, but they're keeping absolutely everything in memory (as well as synced across all clients in multiplayer) and that includes tiles. Keeping it on disk is probably not a useful approach; while the visual appearance of the tile isn't ne...
by pleegwat
Sun Apr 24, 2022 6:40 pm
Forum: Modding help
Topic: Equation to convert value
Replies: 10
Views: 878

Re: Equation to convert value

yaim904 wrote:
Sun Apr 24, 2022 8:57 am
coderpatsy wrote:
Sun Apr 24, 2022 3:16 am
your calculations are wrong

Code: Select all

36288000 / ( 60 ^ 3 ) = 216000
The meaning of the ^ operator varies from platform to platform. Yours applies xor; you just calculated 36288000/63.
by pleegwat
Mon Apr 11, 2022 4:49 pm
Forum: Modding discussion
Topic: Licensing question about interactions between mods
Replies: 13
Views: 1182

Re: Licensing question about interactions between mods

Sounds like something more suited for a lawyer, we can really only speculate here. Although I'm pretty sure that that is not a thing. You can't ask people not to modify your things, you can only ask them to not redistribute said modifications. In your example: Well, the mod would not be modified, o...
by pleegwat
Sat Feb 05, 2022 1:33 pm
Forum: News
Topic: Friday Facts #367 - Expansion news
Replies: 212
Views: 76951

Re: Friday Facts #367 - Expansion news

Flying?

Or under water?
by pleegwat
Sun Nov 21, 2021 11:13 am
Forum: Ideas and Requests For Mods
Topic: Mod request/idea - Water strider
Replies: 4
Views: 903

Re: Mod request/idea - Water strider

Hydrodynamic legs for the shallows and a watertight (floating) pod for the deep?
by pleegwat
Sat Oct 02, 2021 5:08 pm
Forum: Releases
Topic: Version 1.1.41
Replies: 10
Views: 10883

Re: Version 1.1.41

Would it make sense to perform such consistency checks in the background, rather than as a blocking part of the save process? No. Consistency check is a read operation and while it is happening data must not change for any reasons, including game update. But if you can run the consistency check dir...
by pleegwat
Sat Oct 02, 2021 4:56 pm
Forum: Releases
Topic: Version 1.1.41
Replies: 10
Views: 10883

Re: Version 1.1.41

Would it make sense to perform such consistency checks in the background, rather than as a blocking part of the save process?
by pleegwat
Tue Jun 22, 2021 3:46 pm
Forum: Modding interface requests
Topic: Passenger count for vehicles
Replies: 5
Views: 1006

Re: Passenger count for vehicles

Okay maybe more than two occupants is unnecessary, but being able to say "driver only" would be nice. It is a possibility to split into 2 bools, 'allow_drivers' and 'allow_passengers'. It wouldn't be so simple, but possible If this does happen, I would suggest allowing for a passenger onl...
by pleegwat
Sun Apr 04, 2021 7:57 pm
Forum: Modding help
Topic: Decomposed ingredients list (total raw)
Replies: 6
Views: 1176

Re: Decomposed ingredients list (total raw)

The idea is you store that you haven't processed the wooden chest yet, so you recursively determine the fuel value of a wooden chest before returning to whatever you were doing.
by pleegwat
Sun Apr 04, 2021 12:42 pm
Forum: Modding help
Topic: Decomposed ingredients list (total raw)
Replies: 6
Views: 1176

Re: Decomposed ingredients list (total raw)

However, it seems to be quite complicated to get a list of all items that may contain wood (and the total amount of wood) -- especially as the game builds such a list by itself anyway. Is there any shortcut I could use? No, the only way is to build the list yourself. I'm trying to do that now! Not ...
by pleegwat
Wed Dec 30, 2020 12:03 pm
Forum: Modding help
Topic: Roboport recharging animations (colors)
Replies: 6
Views: 1156

Re: Roboport recharging animations (colors)

Further research: What happens with 2 modded roboports with different visualisation?
by pleegwat
Sat Nov 14, 2020 2:13 pm
Forum: News
Topic: Friday Facts #363 - 1.1 is getting close
Replies: 178
Views: 75618

Re: Friday Facts #363 - 1.1 is getting close

Could the belt line tool be combined with setting cursor size to lay multiple parallel belts at the same time?
by pleegwat
Mon Nov 02, 2020 10:07 pm
Forum: Modding help
Topic: Changing pivot point of inserter arm?
Replies: 10
Views: 1346

Re: Changing pivot point of inserter arm?

And if you lower the pipes themselves as well?
by pleegwat
Sat Oct 24, 2020 6:40 pm
Forum: News
Topic: Friday Facts #361 - Train stop limit, Tips and tricks
Replies: 163
Views: 57872

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Round robin seems like a very bad idea if you have both producers and consumers of the good spread across the map, as it would cause trains to visit far-away stations because it is 'their turn' rather than preferring close ones, causing more material to be in transit and more network congestion. If ...
by pleegwat
Sat Oct 24, 2020 3:16 pm
Forum: Modding help
Topic: Rotatable labs?
Replies: 12
Views: 1374

Re: Rotatable labs?

How about pass-through steam connections on all sides, like on the uranium miner? Of course this simplifies the player's routing puzzle as well since they would no longer need to route a separate pipe through each lab.
by pleegwat
Tue Aug 25, 2020 4:42 pm
Forum: Modding discussion
Topic: Would this be possible?
Replies: 3
Views: 802

Re: Would this be possible?

Note there are tricks you can do to perform some of these: Addition is done by connecting multiple wires (possibly isolating signals via +0 or *1) Subtraction via multiply by -1 and addition. Squaring is straightforward via (each * each). Multiplication can be done as ((A + B)² - A² - B²) / 2; make ...
by pleegwat
Thu Aug 13, 2020 6:33 pm
Forum: Modding help
Topic: Tenders.
Replies: 11
Views: 1600

Re: Tenders.

mrvn wrote:
Thu Aug 13, 2020 3:43 pm
Since water has no fuel value the water locomotive wouldn't consume any
Though historically there were locomotives which ran on only (superheated) water

https://en.wikipedia.org/wiki/Fireless_locomotive#Steam
by pleegwat
Mon Aug 10, 2020 3:33 pm
Forum: News
Topic: Friday Facts #358 - Alien decoratives & Polluted water
Replies: 71
Views: 23204

Re: Friday Facts #358 - Alien decoratives & Polluted water

Currently solar panel yield is calculated surface-wide. Accounting for smog would necessitate moving it to per-chunk, or recalculating the baseline yield for the surface whenever the pollution in a chunk with solar panels changes.

Go to advanced search