Search found 21 matches

by petrathekat
Tue Apr 22, 2025 9:37 pm
Forum: Won't implement
Topic: Let roboports have a shorter logistics_connection_distance than logistics_radius
Replies: 3
Views: 258

Let roboports have a shorter logistics_connection_distance than logistics_radius

Hello,

I'd like to implement an earlier-game roboport that has a logistics radius but does not connect to other roboports (so you can have belt malls, but can't replace your whole base with bots). It looks like the cleanest way to do this would be to set the logistics_connection_distance to 0 (or ...
by petrathekat
Tue Apr 15, 2025 8:39 pm
Forum: Ideas and Suggestions
Topic: Hidden hotkey to restart the game, for mod developers
Replies: 9
Views: 565

Re: Hidden hotkey to restart the game, for mod developers

angramania wrote: Mon Apr 14, 2025 8:07 pm Also you may try https://mods.factorio.com/mod/ReloadModsRedux
Oh huh I've never heard of that. How does it work? (It's Unlicense but there's no source code :( )
by petrathekat
Mon Apr 14, 2025 7:56 pm
Forum: Modding interface requests
Topic: Expose entities' status diode_color and label even for non-custom states
Replies: 0
Views: 80

Expose entities' status diode_color and label even for non-custom states

Hello,

Right now the only interface modders have to get information about an entity's status is LuaEntity::status, which is just an enum. This means that if you want to render your own diode+label combination, say in a custom GUI for an entity, you have to write a lot of code to figure out the ...
by petrathekat
Mon Apr 14, 2025 4:42 pm
Forum: Ideas and Suggestions
Topic: Hidden hotkey to restart the game, for mod developers
Replies: 9
Views: 565

Re: Hidden hotkey to restart the game, for mod developers

Sure, but not everyone is a developer, and it'd be a lot jankier than official support.
by petrathekat
Sun Apr 13, 2025 6:19 pm
Forum: Ideas and Suggestions
Topic: Hidden hotkey to restart the game, for mod developers
Replies: 9
Views: 565

Hidden hotkey to restart the game, for mod developers

TL;DR
A key combination, unbound by default, that closes and restarts the game, like it does when you change your mod settings.

Either it could be in the super secret settings, or probably just unbound by default in the default controls menu.

Why?
I'm currently developing a mod and I spend an ...
by petrathekat
Thu Apr 03, 2025 2:14 am
Forum: Modding interface requests
Topic: [2.0.43] Setting a cargo pod's destination to `defines.cargo_pod.surface` will not redirect it to a cargo bay
Replies: 8
Views: 497

Re: [2.0.43] Setting a cargo pod's destination to `defines.cargo_pod.surface` will not redirect it to a cargo bay

Would you please add it? :)

I can open a new thread if this thread has diverged too far from the original post topic.
by petrathekat
Wed Apr 02, 2025 7:59 pm
Forum: Resolved Requests
Topic: Document LuaSurface::create_entities_from_blueprint_string
Replies: 2
Views: 217

Document LuaSurface::create_entities_from_blueprint_string

Title says it all really. In the tips&tricks simulations, there is a lot of use of game.surface[1].create_entities_from_blueprint_string("etc"), but it's not documented anywhere as far as I can tell.
by petrathekat
Wed Apr 02, 2025 7:36 pm
Forum: Modding interface requests
Topic: [2.0.43] Setting a cargo pod's destination to `defines.cargo_pod.surface` will not redirect it to a cargo bay
Replies: 8
Views: 497

Re: [2.0.43] Setting a cargo pod's destination to `defines.cargo_pod.surface` will not redirect it to a cargo bay

Darn. Is there a script API way to hook into the game's cargo pad finding logic at all? (I suppose you could just search the surface for the cargo-landing-pad but this feels unperformant, so you'd have to cache it ... and presumably the Factorio engine already knows where it is.)
by petrathekat
Wed Apr 02, 2025 5:47 pm
Forum: Modding interface requests
Topic: [2.0.43] Setting a cargo pod's destination to `defines.cargo_pod.surface` will not redirect it to a cargo bay
Replies: 8
Views: 497

Re: [2.0.43] Setting a cargo pod's destination to `defines.cargo_pod.surface` will not redirect it to a cargo bay

Okay. What event handler should I run that in? on_rocket_launched? event.rocket.cargo_pod.foobar() ?

Edit: I can't seem to find the cargo pod anywhere in on_rocket_launched. It does exist in on_rocket_launch_ordered (via event.rocket.attached_cargo_pod). However setting that pod's cargo_pod ...
by petrathekat
Wed Apr 02, 2025 3:25 am
Forum: Modding interface requests
Topic: [2.0.43] Setting a cargo pod's destination to `defines.cargo_pod.surface` will not redirect it to a cargo bay
Replies: 8
Views: 497

[2.0.43] Setting a cargo pod's destination to `defines.cargo_pod.surface` will not redirect it to a cargo bay

According to the documentation , setting a cargo-pod's destination to defines.cargo_destination.surface should redirect the pod to a landing pad if available.

Cargo pods will switch destination type from surface to station before starting descent if there is a station available and ...
by petrathekat
Mon Mar 31, 2025 5:22 pm
Forum: Documentation Improvement Requests
Topic: Indicate output range of worldgen noise functions
Replies: 0
Views: 85

Indicate output range of worldgen noise functions

Hello,
I am working on a mod right now with a lot of worldgen, and I keep getting tripped up trying to figure out what the output of a noise function can be. Maybe I'm just bad at math but it seems like some of them produce in range [0, 1] and some produce in range [-1, 1]. Having the range written ...
by petrathekat
Mon Dec 23, 2024 2:34 pm
Forum: Won't implement
Topic: [2.0]Add prototype-level rocket carry capacity
Replies: 32
Views: 4300

Re: [2.0]Add prototype-level rocket carry capacity


A silo with cheaper/quicker to build rockets doesn't accomplish the same purposes as different capacities though.


I agree, but it's the best solution I can think of without the API changing, and it seems the devs are a bit reticent to change it ... it's mathematically equivalent, and when you ...
by petrathekat
Fri Dec 20, 2024 7:25 pm
Forum: Modding interface requests
Topic: [SA] More flexible thruster API
Replies: 4
Views: 503

Re: [SA] More flexible thruster API

The way the current thruster mixes fluids would be difficult to express in the current API, but even some kind of modder-only `thruster-interface` prototype, with an EnergySource and an energy/thrust response curve, would be quite invaluable.

You could build more in-depth custom thrusters over that ...
by petrathekat
Wed Dec 18, 2024 4:53 pm
Forum: Balancing
Topic: Fusion Power feels a bit too simple
Replies: 8
Views: 3540

Re: Fusion Power feels a bit too simple

I do at least wish that fusion generators produced heat, not electricity, so there was an additional routing layer at play and so that you could use it as an alternate heat source on Aquilo. (Actually when I first saw the fusion system, I assumed it produced heat; it makes so much sense for the ...
by petrathekat
Wed Dec 18, 2024 4:36 pm
Forum: Modding help
Topic: How to change what quality actually Does?
Replies: 4
Views: 577

Re: How to change what quality actually Does?

Unfortunately I'm pretty sure it's hard-coded. The game engine has some list of attributes affected by quality and you can't modify them. :(
by petrathekat
Wed Dec 18, 2024 4:21 pm
Forum: Ideas and Requests For Mods
Topic: [IDEA] Over Ground Belts
Replies: 2
Views: 605

Re: [IDEA] Over Ground Belts

I think this should theoretically be possible by making instances of `underground-belt` with their `underground_collision_mask` including `elevated_rail` (to indicate it's a "tall" entity like big power poles and lightning collectors.)

You probably couldn't easily have it render belts hanging in ...
by petrathekat
Wed Dec 18, 2024 3:06 pm
Forum: Won't implement
Topic: [2.0]Add prototype-level rocket carry capacity
Replies: 32
Views: 4300

Re: [2.0]Add prototype-level rocket carry capacity

According to the raws it's 100 rocket parts in vanilla and space age updates it to be 50.

I might make rockets take 1,000 parts to craft and able to lift 5x as much, though. I want each rocket to feel like a huge triumph (but maybe I just like the thought of inflicting pain upon my players :D )
by petrathekat
Tue Dec 17, 2024 9:09 pm
Forum: Won't implement
Topic: [2.0]Add prototype-level rocket carry capacity
Replies: 32
Views: 4300

Re: [2.0]Add prototype-level rocket carry capacity

I've been working on a overhaul mod and have run into this problem too.

One potential workaround is, instead of making some rockets able to lift 2x (or whatever) as much, make some rockets 2x as *cheap*. The math works out this way such that, for every 50 rocket parts' worth of materials put in you ...

Go to advanced search