Attached is a command to cause events (open a thing to trigger it). The first command was to "reset" the code someone else was testing at the time, who brought up the issue.
Documentation Improvement Requests
Re: Small documentation improvement requests
Attached is a command to cause events (open a thing to trigger it). The first command was to "reset" the code someone else was testing at the time, who brought up the issue.
- Attachments
-
- testing.jpg (30.55 KiB) Viewed 5167 times
-
- open_close_order.lua
- (956 Bytes) Downloaded 313 times
Last edited by Honktown on Fri Dec 24, 2021 8:28 pm, edited 1 time in total.
I have mods! I guess!
Link
Link
Re: Small documentation improvement requests
-> Nice catch, fixed for the next version.
-> The Position concept has been removed for the next version, everything now uses the specialized positions like MapPosition (with fractional coordinates) and TilePosition. So these descriptions should no longer be confusing.
Re: Small documentation improvement requests
https://lua-api.factorio.com/next/Conce ... rintEntity: "The representation of an entity inside of a blueprint. It has at least these fields, but can contain additional ones depending on the kind of entity."
What are the additional fields?
-> There's dozens, it's on the TODO list to write them down at some point, just FYI.
What are the additional fields?
-> There's dozens, it's on the TODO list to write them down at some point, just FYI.
-
- Smart Inserter
- Posts: 2768
- Joined: Tue Apr 25, 2017 2:01 pm
- Contact:
Re: Small documentation improvement requests
That’s what “rounds […] down to whole numbers” means, yes.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics
Re: Small documentation improvement requests
Thanks!
-> Thanks, noted for the next release.
My mods: Multiple Unit Train Control, Smart Artillery Wagons
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
Re: Small documentation improvement requests
Seems to me like you are missing the point. There is nothing to round down, the coordinates are already integer.FuryoftheStars wrote: ↑Sun Dec 26, 2021 3:20 pm That’s what “rounds […] down to whole numbers” means, yes.
Re: Small documentation improvement requests
The documentation goes both ways, so its describing read behavior and write behaviorcuriosity wrote: ↑Sun Dec 26, 2021 5:15 pmSeems to me like you are missing the point. There is nothing to round down, the coordinates are already integer.FuryoftheStars wrote: ↑Sun Dec 26, 2021 3:20 pm That’s what “rounds […] down to whole numbers” means, yes.
When reading a TilePosition, naturally it is only integers
But when writing it to the game engine, you can give it any number, and that will be rounded internally,
For instance with this 'Get hidden tile': https://lua-api.factorio.com/latest/Lua ... idden_tile
You don't have to give it integers, but whatever position you give it, it will be rounded down
So for instance, you can read an entity MapPosition, which has a precision of 1/256 tiles,
and then use that same table to call a method asking for a TilePosition, without any worry
Re: Small documentation improvement requests
Klonan wrote: ↑Sun Dec 26, 2021 6:14 pm But when writing it to the game engine, you can give it any number, and that will be rounded internally,
...
So for instance, you can read an entity MapPosition, which has a precision of 1/256 tiles,
and then use that same table to call a method asking for a TilePosition, without any worry
-> The Position concept has been removed for the next version, everything now uses the specialized positions like MapPosition and TilePosition. So this is now fixed by it no longer being confusing what Position is for.
Re: Small documentation improvement requests
-> Good spot, thanks, fixed for the next release.
Re: Small documentation improvement requests
-> Description added on the page.
Re: Small documentation improvement requests
Seems to be the locations that the eye_light is placed.
-> Thank you for adding this yourself!
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Re: Small documentation improvement requests
-> Fixed in the new prototype docs.
Re: Small documentation improvement requests
https://lua-api.factorio.com/latest/Con ... ventFilter:
This looks incomplete -- perhaps somebody removed the rest of the sentence accidentally?
-> This is actually just a bit of unfortunate formatting. That filter only supports "type", and is the only one to do so. I added a period at the end of those sentences for the next release though, to make it clearer that there's nothing missing. Thanks for bringing it up!
Fields
filter
:: string
The condition to filter on. One of "type"
-> This is actually just a bit of unfortunate formatting. That filter only supports "type", and is the only one to do so. I added a period at the end of those sentences for the next release though, to make it clearer that there's nothing missing. Thanks for bringing it up!
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Re: Small documentation improvement requests
-> It's listed on all prototypes where it matters (maximum number is 255 or less).
-
- Burner Inserter
- Posts: 12
- Joined: Sun Jan 09, 2022 1:18 pm
- Contact:
Re: Small documentation improvement requests
-> This was fixed.
Re: Small documentation improvement requests
-> Thanks, added for the next release. It's [0, 1].
Re: Small documentation improvement requests
The description for `scroll_mode` for `scroll_to_element` seems to be identical, it is correct in that case, just make sure to not break that one if they are shared.
-> Thanks Jan. If I were pedantic, it could be interpreted as 'in the scroll-pane of the list-box', but you're right that it's confusing, so I changed it for the next release. No worries about them being shared, documentation like this is almost always just copy-pasted, not actually shared. Which is probably where the mistake came from in the first place!
Also known as JanSharp. jan1i3 was/is my old name ;)
Re: Small documentation improvement requests
Speaking of which:
jan1i3 wrote: ↑Mon Jan 10, 2022 4:44 pm The description for `scroll_mode` for LuaGuiElement::scroll_to_item mentions "scroll-pane", contrary to the function's (correct) description saying "listbox".
-> Not sure if it didn't show when you made this comment, but the 'Can only be used if this is X' lines are present in the most recent version of the docs website. In that specific case, it only work for listboxes. 'scroll_to_element' can be used for scroll-panes.
Re: Small documentation improvement requests
Class LuaEquipment
The role of the power armor is not really clear in this example: Is the armor the item that can be placed in the equipment grid, or is the armor the grid where other things can be placed in? I'd put it this way:
-> Good spot, that is indeed confusing. Appreciate the alternate wording, fixed for the next release.
Code: Select all
An item in a LuaEquipmentGrid, for example one's power armor.
Code: Select all
An item in a LuaEquipmentGrid, for example a fusion reactor placed in one's power armor.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Re: Small documentation improvement requests
Pi-C wrote: ↑Thu Jan 06, 2022 7:16 pm https://lua-api.factorio.com/latest/Con ... ventFilter:This looks incomplete -- perhaps somebody removed the rest of the sentence accidentally?Fields
filter
:: string
The condition to filter on. One of "type"
-> This is true, see response in the next comment.
I have mods! I guess!
Link
Link