Search found 55 matches

by _CodeGreen
Thu Feb 22, 2024 5:54 pm
Forum: Modding interface requests
Topic: Ability to copy string to clipboard using api
Replies: 9
Views: 1799

Re: Ability to copy string to clipboard using api

Sometimes, though, I have something sitting in my clipboard that's semi important to me that I just haven't had the chance to paste somewhere, yet. Sometimes, too, it's currently the only existing copy, or would require some time and hassle to get back to the original. If you're on windows, you can...
by _CodeGreen
Wed Feb 21, 2024 10:09 pm
Forum: Resolved Requests
Topic: NothingModifier missing type::"nothing"
Replies: 1
Views: 105

NothingModifier missing type::"nothing"

As the title says, NothingModifier is missing the type field, while all of the other technology effect modifiers have it.
by _CodeGreen
Fri Feb 09, 2024 8:04 pm
Forum: Wiki Talk
Topic: Suggestions for the Wiki regarding Factorio Expansion Add-ons
Replies: 14
Views: 3923

Re: Suggestions for the Wiki regarding Factorio Expansion Add-ons

The Binding of Isaac wiki does a decent job of handling different DLC items and such, here's a page with a lot of them (scroll down to synergies): https://bindingofisaacrebirth.fandom.com/wiki/Brimstone Just a small icon next to the thing it's related to, slightly large for my liking, but it's very ...
by _CodeGreen
Fri Feb 09, 2024 7:47 pm
Forum: Implemented mod requests
Topic: LuaRendering::send_to_back()
Replies: 1
Views: 95

LuaRendering::send_to_back()

I have a bunch of sprites that are increasing in "height", that when created start at a "height" of 0. Right now I have to call LuaRendering::bring_to_front() on every single rendering object in reverse order every time a new one is made, whereas a send_to_back() method would onl...
by _CodeGreen
Fri Feb 02, 2024 11:50 pm
Forum: Documentation Improvement Requests
Topic: LuaSurface::create_entity missing variant parameter for loader types
Replies: 0
Views: 91

LuaSurface::create_entity missing variant parameter for loader types

LuaSurface::create_entity allows the use of the `type` field for use with underground belts, and that is listed. However, you can set "input" and "output" on loaders as well, and this isn't listed on the method doc. I assume this is not intentional, and I'm glad I guessed that i...
by _CodeGreen
Thu Jan 11, 2024 4:31 am
Forum: Documentation Improvement Requests
Topic: What is maximum_corner_sliding_distance?
Replies: 1
Views: 271

Re: What is maximum_corner_sliding_distance?

It's for when characters are running against a collision box, how close they have to be to "slip" in a different direction to avoid getting caught on the corners of collision boxes too much. You'll notice it whenever you try to run between two entities right next to each other, like stone ...
by _CodeGreen
Tue Jan 09, 2024 6:01 am
Forum: Resolved Requests
Topic: Use string unions instead of generic string
Replies: 3
Views: 395

Re: Use string unions instead of generic string

Thanks for fixing those! I went through every class searching for [or "] and found a couple more: LuaCustomInputPrototype::consuming LuaFluidBoxPrototype::production_type LuaRendering::set_alignment LuaRendering::set_vertical_alignment LuaSurface::create_entity.type for underground-belt
by _CodeGreen
Thu Dec 28, 2023 6:33 am
Forum: Resolved Requests
Topic: LuaItemStack::set_mapper() needs optional parameter
Replies: 1
Views: 192

LuaItemStack::set_mapper() needs optional parameter

LuaItemStack::set_mapper() has an UpgradeFilter parameter that says it can be nil to remove a filter in the description, but isn't marked as optional in the actual documentation. This trickles down to a LuaLS warning, either missing-parameter or param-type-mismatch.
by _CodeGreen
Thu Dec 28, 2023 6:30 am
Forum: Resolved Requests
Topic: Use string unions instead of generic string
Replies: 3
Views: 395

Use string unions instead of generic string

There are a number of places where things like function parameters and concept fields have a type of string, but can only be strings from a defined list. Would it be possible to make those unions, that way they show up in the autocomplete list when using FMTK + LuaLS? It's not the end of the world b...
by _CodeGreen
Wed Dec 27, 2023 10:47 am
Forum: Resolved Requests
Topic: Change dictionaries to tables (when applicable)
Replies: 2
Views: 382

Re: Change dictionaries to tables (when applicable)

Just realized I never responded, awesome and thanks! I've noticed another place that just has string instead of a string union, which is a slightly different issue but has the same effect: LuaItemStack::get_mapper() and set_mapper() I couldn't find any other instances of parameters that should be st...
by _CodeGreen
Mon Dec 04, 2023 6:36 pm
Forum: Modding help
Topic: [RESOLVED] Determine if a belt is a corner/turn belt
Replies: 3
Views: 396

Re: [RESOLVED] Determine if a belt is a corner/turn belt

It's actually pretty simple to tell if a belt is curved and which direction (clockwise/counterclockwise) it's turning, due to the belt_neighbours field. If belt_neighbours.inputs has only one entry, then it's (edit: potentially) a curved belt (only if the input belt direction is different). Then, (b...
by _CodeGreen
Fri Dec 01, 2023 5:25 am
Forum: Resolved Requests
Topic: Change dictionaries to tables (when applicable)
Replies: 2
Views: 382

Change dictionaries to tables (when applicable)

There are a few things that are displayed as dictionaries, such as LuaEntity.belt_neighbours , but they have specific keys. ("input" and "output" here) This trickles down to the typedefs and doesn't give autocomplete, which is technically an issue, albeit a minor one. Some places...
by _CodeGreen
Sun Oct 15, 2023 6:00 am
Forum: Resolved Requests
Topic: LuaRendering.draw_rectangle() "filled" field marked as required
Replies: 1
Views: 317

LuaRendering.draw_rectangle() "filled" field marked as required

LuaRendering.draw_rectangle() says the "filled" property is required, but I have accidentally omitted it and it still works without.
by _CodeGreen
Sun Oct 15, 2023 5:39 am
Forum: Resolved Requests
Topic: PipeConnectionDefinition positions not marked optional
Replies: 1
Views: 256

PipeConnectionDefinition positions not marked optional

PipeConnectionDefinition doesn't have positions (plural) marked as optional, when it depends on whether or not position (singular) is defined. Is this intentional, or should it be optional? It's trickling down to the Lua typedefs making me disable diagnostics every time.
by _CodeGreen
Wed Oct 11, 2023 11:32 pm
Forum: Documentation Improvement Requests
Topic: LuaSurface.get_tile missing param type
Replies: 0
Views: 268

LuaSurface.get_tile missing param type

LuaSurface.get_tile (and set_tile) says it takes two parameters, x and y, which are both integers. However, in the description it says it can instead take a singular TilePosition, but it is not actually included in the typedef, which trickles down into sumneko LuaLS giving me a warning for both mis...
by _CodeGreen
Mon Sep 25, 2023 7:57 pm
Forum: Releases
Topic: Version 1.1.92
Replies: 17
Views: 13611

Re: Version 1.1.92

woa that research queue change is great ! Even though i'm not sure it's 100% realistic because in real life you don't know what you are going to research after your current research since it's often time the result your current research that will decide the future research. :mrgreen: may I interest...
by _CodeGreen
Mon Sep 25, 2023 7:40 pm
Forum: Releases
Topic: Version 1.1.92
Replies: 17
Views: 13611

Re: Version 1.1.92

Can't wait for the onslaught of posts praising the research queue change...
by _CodeGreen
Mon Jul 31, 2023 4:42 pm
Forum: Modding interface requests
Topic: Ability to copy string to clipboard using api
Replies: 9
Views: 1799

Re: Ability to copy string to clipboard using api

I've found myself wanting this feature as well. I want to be able to make my own custom exchange string, like blueprints and such, however the closest we can get is only selecting the text for the player to manually copy. Perhaps a reasonable compromise would be an api to open the vanilla copy text ...
by _CodeGreen
Fri Jul 28, 2023 12:14 am
Forum: Documentation Improvement Requests
Topic: Documentation Improvement Requests
Replies: 316
Views: 79800

Re: Documentation Improvement Requests

The "filled" parameter in Rendering.draw_rectangle is marked as required, but it is in fact optional and defaults to false.

-> Fixed. See 109201.
by _CodeGreen
Sat Jul 22, 2023 3:30 am
Forum: Bug Reports
Topic: [1.1.88] add-temporary-station custom-input event does not fire when adding temporary stations
Replies: 0
Views: 306

[1.1.88] add-temporary-station custom-input event does not fire when adding temporary stations

When you have a custom-input linked_game_control = "add-temporary-station", the only time it fires is when you are not adding temporary stations to train schedules. Attached is a minimal reproduction mod, all you have to do is ctrl + click in the world anywhere, which will fire the event, ...

Go to advanced search