Search found 187 matches

by Natha
Mon May 13, 2024 1:41 pm
Forum: Modding interface requests
Topic: Collision masks for whole surfaces OR collision mask of hidden tiles
Replies: 3
Views: 213

Re: Collision masks for whole surfaces OR collision mask of hidden tiles

You can take a look at how Space Exploration solved this, which, I believe, is done via collisions on ground tiles. Space-only building collide with all natural ground tiles, land-only buildings collide with the space platform tile. Obviously, this wont help you in case some ground tiles are used o...
by Natha
Sun May 12, 2024 10:17 am
Forum: Modding interface requests
Topic: Collision masks for whole surfaces OR collision mask of hidden tiles
Replies: 3
Views: 213

Collision masks for whole surfaces OR collision mask of hidden tiles

I need to prevent placement of certain entities in certain surfaces. For now, I have a placement cancelling logic which directly mines the entity if it is prohibited there. But it is still colored green in the cursor. Applying collision masks on these entities and some tiles wouldn't work because wh...
by Natha
Sun May 05, 2024 11:54 am
Forum: Assigned
Topic: [Genhis] [1.1.104] Crash generating surface (FloatCast.hpp:129: -3.965784 < 0.000000)
Replies: 3
Views: 293

Re: [1.1.104] Crash when generating surface

Loewchen wrote:
Sun May 05, 2024 11:37 am
You are 3 updates behind, can you reproduce this in the current version?
Yes, same crash
by Natha
Sun May 05, 2024 11:03 am
Forum: Assigned
Topic: [Genhis] [1.1.104] Crash generating surface (FloatCast.hpp:129: -3.965784 < 0.000000)
Replies: 3
Views: 293

[Genhis] [1.1.104] Crash generating surface (FloatCast.hpp:129: -3.965784 < 0.000000)

I created a surface with custom map settings and used frequency 1000 in autoplace_settings.decorative.rock-small Factorio crashed. Generating symbolized stacktrace, please wait ... c:\users\build\appdata\local\temp\factorio-build-iemlsv\src\floatcast.hpp (129): float_cast<unsigned int> c:\users\buil...
by Natha
Fri May 03, 2024 1:07 pm
Forum: Not a bug
Topic: Placing resources under cliffs removes that cliff
Replies: 1
Views: 219

Placing resources under cliffs removes that cliff

When I place a resource entity (map editor or via script) on a position that collides with a cliff, this cliff is destroyed, even if both prototypes have different collision masks. Is this intended? If yes, there should be a prototype property that disables this behaviour.
by Natha
Tue Apr 30, 2024 5:48 am
Forum: Modding help
Topic: How to interpret "probability" property expression?
Replies: 9
Views: 527

Re: How to interpret "probability" property expression?

What is your use case? I want to mirror resources onto another surface. For patches like crude oil, the excat position is not that important but the probability should stay the same. According to prototype stage, crude oil should have a probability of 1/48, which is the blue dots, but after applyin...
by Natha
Mon Apr 29, 2024 9:26 pm
Forum: Modding help
Topic: How to interpret "probability" property expression?
Replies: 9
Views: 527

Re: How to interpret "probability" property expression?

Another thing I just found: when moving after executing the command and executing it again, completely new probability values show up! Apparently the random numbers are influenced by the given position array, which changes the result for one specific position. This is indeed true when a noise expre...
by Natha
Mon Apr 29, 2024 2:38 pm
Forum: Modding help
Topic: How to interpret "probability" property expression?
Replies: 9
Views: 527

Re: How to interpret "probability" property expression?

I would have tried to look at the map for other spot with positive probabilities, and see if there was always 1 pumpjack attached, are some of them moved away ? or removed ? when colliding. I don't know if there are spots outside of whole oil patches with positive probability, but then richness wou...
by Natha
Mon Apr 29, 2024 9:43 am
Forum: Modding help
Topic: How to interpret "probability" property expression?
Replies: 9
Views: 527

Re: How to interpret "probability" property expression?

I wanted to test an hypothesis, because i think i read something one time but couldn't find source that there are special rules for crude oil placement to make sure it is always possible to place a pumpjack and/or a pipe connected to it, in the vanilla generation. Thats a good point. I just tried g...
by Natha
Tue Apr 23, 2024 10:18 pm
Forum: Modding help
Topic: How to interpret "probability" property expression?
Replies: 9
Views: 527

How to interpret "probability" property expression?

I try to replicate crude oil placement. But I don't really know how the probability expression works. The following code prints probability (white) and richness (yellow) values on each position: local calcresult = surface.calculate_tile_properties({"entity:crude-oil:probability", "ent...
by Natha
Sun Apr 21, 2024 8:03 pm
Forum: Modding interface requests
Topic: Disable heat icon when hovering heat pipe or interface
Replies: 0
Views: 139

Disable heat icon when hovering heat pipe or interface

When hovering a heat pipe or heat interface, it shows the heat icon. I request this to be hideable, similar to Fluidbox::hide_connection_info
by Natha
Sun Apr 21, 2024 12:07 pm
Forum: Modding help
Topic: Using on_research_finished to spawn a cargo wagon on a train
Replies: 6
Views: 427

Re: Using on_research_finished to spawn a cargo wagon on a train

You have to spawn the wagon and then use https://lua-api.factorio.com/latest/classes/LuaEntity.html#connect_rolling_stock. But I don't know if creating wagons on the right spots on rails is doable. I'm just not sure if this approach would stop the game from responding to other on_research_finished e...
by Natha
Sat Mar 30, 2024 8:17 am
Forum: Technical Help
Topic: [1.1.103] Error updating to 1.1.104
Replies: 8
Views: 899

Re: [1.1.103] Error updating to 1.1.104

This error now occured every time I wanted to update Factorio (currently 1.1.106). Had to download each vesion manually. I'm using ZIP version.
Every time, it was another file containing unexpected contents.
by Natha
Sat Mar 30, 2024 8:03 am
Forum: Combinator Creations
Topic: Liquid level regulator
Replies: 9
Views: 851

Re: Liquid level regulator

This type of circuit you created is called "Schmitt trigger".
by Natha
Thu Mar 28, 2024 1:54 pm
Forum: Modding discussion
Topic: How is LuaEntity::energy calculated? Compared to energy_usage and max_energy_usage
Replies: 0
Views: 180

How is LuaEntity::energy calculated? Compared to energy_usage and max_energy_usage

What is the difference between LuaEntityPrototype::max_energy_usage and LuaEntityPrototype::energy_usage for "normal" consumer entities? They return the same value, which is the maximum power consumption (in W) - drain and divided by 60 (result is Joules per tick). When calling LuaEntity::...
by Natha
Tue Feb 06, 2024 9:15 am
Forum: Modding interface requests
Topic: Allow event for a cliff being destroyed
Replies: 2
Views: 822

Re: Allow event for a cliff being destroyed

What you also could do is to add a script trigger event to the capsule: table.insert(data.raw.projectile["cliff-explosives"].action[1].action_delivery.target_effects, { type = "script", effect_id = "cliff-explosives" }) And then use the event: script.on_event(defines.ev...
by Natha
Sat Feb 03, 2024 7:14 am
Forum: Technical Help
Topic: [1.1.103] Error updating to 1.1.104
Replies: 8
Views: 899

Re: [1.1.103] Error updating to 1.1.104

I have a similar error (I downloaded 103 as ZIP):
Checking update packages failed: File D:/Spiele/Factorio Vanilla/data/../doc-html/builtin-types.html has unexpected content


Can't attach the file as it says invalid file extension.
by Natha
Fri Jan 26, 2024 9:10 am
Forum: Multiplayer
Topic: Learn-a-Language Special (Ft. Factorio) [GER]
Replies: 8
Views: 765

Re: Learn-a-Language Special (Ft. Factorio) [GER]

It's also probably a good idea to set a concrete goal/expectation so we know what we're looking at going in. Something like 'We'd play for four hours a week, for 8 weeks', but that's probably easier to organize over a call. I wouldn't go for such a time-related goal, maybe even not for a game-relat...
by Natha
Wed Jan 24, 2024 7:08 pm
Forum: Multiplayer
Topic: Learn-a-Language Special (Ft. Factorio) [GER]
Replies: 8
Views: 765

Re: Learn-a-Language Special (Ft. Factorio) [GER]

This is a great idea and I would offer myself, but you have to consider timezones. Australia is 8-10 hours later than germany, so when I'm home from work you'll be asleep already, if you don't want to play your whole night :shock: Weekend are the only possible days when playing in your afternoon and...
by Natha
Fri Jan 19, 2024 11:20 am
Forum: Modding help
Topic: create surface with specific pollution settings
Replies: 1
Views: 216

create surface with specific pollution settings

When I create a new surface using pollution settings, they are not applied. I want to have a diffusion by 0, but whatever I change in these values the spreading is the same. local surface_map_settings = { pollution={ enabled = true, diffusion_ratio = 0, min_to_diffuse = 15, ageing = 0.1, expected_ma...

Go to advanced search