Search found 44 matches

by Gweneph
Tue Nov 19, 2024 12:18 pm
Forum: Not a bug
Topic: [2.0.8][base game] cannot launch rocket with space sci pack
Replies: 9
Views: 1231

Re: [2.0.8][base game] cannot launch rocket with space sci pack

This change puts a serious damper in my plans to max out SPM on a "waterless" world. I'd be limited to a few dozen spidertrons and couldn't replace them if they died.
by Gweneph
Sat Nov 02, 2024 4:15 pm
Forum: Minor issues
Topic: [Rseding91] [2.0.8 + SA] Data dump JSON floats off
Replies: 7
Views: 309

Re: [Rseding91] [2.0.8 + SA] Data dump JSON floats off

Hex floats are really only helpful for debugging purposes. 17 decimal digits is enough to guarantee being able to round trip back to the same float. The only hard part about it is trying to know when rounding to 16 digits will also round trip back to the same number. My code above gets kinda close, ...
by Gweneph
Wed Oct 30, 2024 3:21 pm
Forum: Modding interface requests
Topic: add the ability to build flipped blueprints in LuaItemStack::build_blueprint
Replies: 1
Views: 194

Re: add the ability to build flipped blueprints in LuaItemStack::build_blueprint

LuaPlayer.build_from_cursor now has a mirror parameter but it doesn't seem to function for blueprints. I think making that work for blueprints would be the best way to resolve this issue for us.
by Gweneph
Wed Oct 30, 2024 3:15 pm
Forum: Modding interface requests
Topic: [2.0.12] Allow writing LuaLogisticSection.active for space stuff
Replies: 0
Views: 79

[2.0.12] Allow writing LuaLogisticSection.active for space stuff

Whether this section is active. This can only be written to when the section is manual. The GUI lets players toggle the active member of logistic points for all types except circuit-controlled. It would be nice if the API access could also set the active member for types transitional_request_contro...
by Gweneph
Wed Oct 30, 2024 12:47 pm
Forum: Modding interface requests
Topic: Across-save data transfer
Replies: 5
Views: 473

Re: Across-save data transfer

I think that should be possible if users unchecked the "Use different mod settings per save". But that may have unintended consequences for other mods/ this mod. I wish there was an option to specify that the setting should always be synchronized for things like user interface preferences ...
by Gweneph
Wed Oct 30, 2024 12:32 pm
Forum: Modding interface requests
Topic: [2.0.12] Allow us to read/write to the roboport logistics sections.
Replies: 1
Views: 150

Re: [2.0.12] Allow us to read/write to the roboport logistics sections.

I'm pretty sure they should be available at get_logistic_points(defines.logistic_member_index.logistic_container).sections, but when I try that it's an empty table even for a roboport that has multiple non-empty sections.
by Gweneph
Mon Oct 28, 2024 1:11 pm
Forum: Minor issues
Topic: [Rseding91] [2.0.8 + SA] Data dump JSON floats off
Replies: 7
Views: 309

Re: [Rseding91] [2.0.8 + SA] Data dump JSON floats off

I looked into how printf works and it has a bunch of stuff to handle full precision with multiprecision numbers. It seemed like it would actually be pretty slow, so I decided I'd try my hand at it: #include <iostream> #include <cmath> //precondition: pos points to somewhere in a buffer that has at /...
by Gweneph
Wed Oct 23, 2024 6:21 pm
Forum: Minor issues
Topic: [Rseding91] [2.0.8 + SA] Data dump JSON floats off
Replies: 7
Views: 309

Re: [2.0.8 + SA] Data dump JSON floats off

Ok, I got nerd sniped by this one. At first I thought the decimals were just the exact representation of a double that was actually used... but they're not. They all seem to be exactly a tenth/fifth of a number that's exactly representable as double. For the numbers to come out like this, the double...
by Gweneph
Mon Sep 09, 2024 6:43 pm
Forum: Technical Help
Topic: the order of modifiers in custom inputs must be ordered arbitrarily or it doesn't work
Replies: 6
Views: 654

Re: the order of modifiers in custom inputs must be ordered arbitrarily or it doesn't work

I can confirm Sir Fendi's findings:
Before:

Code: Select all

place-ping=CONTROL + ALT + mouse-button-1
After:

Code: Select all

place-ping=ALT + CONTROL + mouse-button-1
Result:
errored key binding in menu
errored key binding in menu
09-09-2024, 14-35-56.png (5.06 KiB) Viewed 239 times
by Gweneph
Sun Sep 08, 2024 4:41 pm
Forum: Resolved Problems and Bugs
Topic: [Rseding91] [1.1.110] on_init errors not reported with --create flag
Replies: 1
Views: 284

[Rseding91] [1.1.110] on_init errors not reported with --create flag

When a mod's on_init handler fails from creating a save file from the gui it gets reported and prevents the new save from being played. When a save game is created via the --create command line flag, the error is reported via stdout. However, the save game file is still created and the error does no...
by Gweneph
Sun Aug 11, 2024 3:12 am
Forum: Modding interface requests
Topic: let mods invoke custom selection tools from themselves or other mods
Replies: 3
Views: 374

Re: let mods invoke custom selection tools from themselves or other mods

To clarify we already have player.start_selection. We'd just like to be able to control where the end of the selection is too. That could be with a new command specific to selection tool manipulation, or a command that could set the player's cursor position that we could call before player.start_sel...
by Gweneph
Wed May 29, 2024 11:41 pm
Forum: Modding help
Topic: Random values/property in data.lua
Replies: 2
Views: 415

Re: Random values/property in data.lua

you can modify the whole surface's solar output. https://lua-api.factorio.com/latest/cla ... multiplier
This is probably the only meaningful way to modify the output anyway, as large number of independently fluctuating random variables would just average out.
by Gweneph
Wed May 29, 2024 11:32 pm
Forum: Modding help
Topic: Setting player selection endpoint?
Replies: 0
Views: 255

Setting player selection endpoint?

I'm wondering if there's any way to set the end point for a selection tool. In the API there's LuaPlayer.start_selection which allows you to modify or start the selection of a selection tool, but it always completes at the current cursor position, which doesn't seem to be modifiable even through Lua...
by Gweneph
Wed May 29, 2024 11:11 pm
Forum: Modding help
Topic: [SOLVED] Edit starting inventory
Replies: 11
Views: 1163

Re: [SOLVED] Edit starting inventory

There's also a freeplay interface for setting the starting items if you want to use that.

You can check in base/scenarios/freeplay/freeplay.lua for how to call it.
by Gweneph
Thu May 09, 2024 9:58 pm
Forum: Modding help
Topic: Is it possible to attach an ide lua debugger?
Replies: 1
Views: 1149

Re: Is it possible to attach an ide lua debugger?

I realize this is 7 years old but for future people who might stumble upon this, there's now: FMTK
by Gweneph
Thu May 09, 2024 7:24 pm
Forum: Modding help
Topic: Help with creating an assembler with an automatic loader output
Replies: 2
Views: 494

Re: Help with creating an assembler with an automatic loader output

I think that's the least hacky method:
assembler with unloader
assembler with unloader
Image 453.png (202.6 KiB) Viewed 373 times
by Gweneph
Thu May 09, 2024 5:17 pm
Forum: Modding help
Topic: Vetoing the pipette tool
Replies: 5
Views: 697

Re: Vetoing the pipette tool

SE seems to do something similar with their spaceship clamps which are a constant combinator and a electric pole. The electric pole has an placeableby of an se-struct-generic-clamp-east item, but that item has nil for it's place result. Blueprints handle making the ghosts, and then the mod calls rev...
by Gweneph
Mon Apr 29, 2024 7:07 pm
Forum: Wiki Talk
Topic: Console / stdin especially on windows
Replies: 5
Views: 1425

Re: Console / stdin especially on windows

there should be very few differences to run on Windows Therein lies the problem. My python and node programs worked fine on Linux, but crashed on windows if they attempted to write to the stdin pipe after Factorio was running for about 80ms. So, I think that's when Factorio does something confusing...
by Gweneph
Tue Apr 23, 2024 7:24 pm
Forum: Wiki Talk
Topic: Console / stdin especially on windows
Replies: 5
Views: 1425

Re: Console / stdin especially on windows

Thanks. I thought it would be a better fit for the wiki, but I didn't really know how to submit a request for information on the wiki.
by Gweneph
Tue Apr 23, 2024 12:41 am
Forum: Wiki Talk
Topic: Console / stdin especially on windows
Replies: 5
Views: 1425

Console / stdin especially on windows

I've been debugging an issue with communicating to stdin on windows for a few days now and would love some insight. I was surprised to learn that the in-game console commands are available over stdin while running a headless server. I haven't really found much official documentation on it other than...

Go to advanced search