Search found 1033 matches

by Honktown
Tue Jan 10, 2023 12:51 pm
Forum: Modding interface requests
Topic: Make it an error to access global outside of events
Replies: 4
Views: 825

Make it an error to access global outside of events

A common mistake I've been seeing for new modders, is that they either use the global table right away (naively assuming it's a constant for the mod) or possibly come from other modding environments, which don't use events and/or don't have the explicit behavior of Factorio's global table. Their use...
by Honktown
Sat Jan 07, 2023 2:34 am
Forum: Modding interface requests
Topic: hiding the "expected resources"
Replies: 3
Views: 1234

Re: hiding the "expected resources"

For the uranium, there was a simpler option: void-powered lamps. Then at night the invisible lamps could start to emit uranium glows. registering uranium for destruction on chunk gen (LuaBootstrap.register_on_entity_destroyed) and using that to localise the lamp when the uranium is gone, would work....
by Honktown
Thu Jan 05, 2023 12:57 am
Forum: Resolved Problems and Bugs
Topic: [1.1.74] Cloned item-on-ground loses to_be_looted = true
Replies: 2
Views: 1703

[1.1.74] Cloned item-on-ground loses to_be_looted = true

If an item on the ground is to_be_looted, it loses the status when cloned: /c local player = game.player local surface = player.surface local position = player.position position.x = position.x + 5 local spill_items = surface.spill_item_stack( position, --[[position]] {name = "iron-plate", ...
by Honktown
Wed Jan 04, 2023 7:11 am
Forum: Resolved Requests
Topic: VehiclePrototype expand on properties that use $either
Replies: 2
Views: 508

Re: Documentation Improvement Requests

What are the units of the *_force version? It's likely not to matter: See: https://wiki.factorio.com/Types/Energy Also: core/lualib/util.lua, line 552: function util.parse_energy(energy) If the game sees joules, it uses those, else, divide watts by 60 (a lot of values in the prototype explorer are ...
by Honktown
Wed Jan 04, 2023 6:53 am
Forum: Modding interface requests
Topic: LuaPlayer.pickup_from_belts
Replies: 0
Views: 442

LuaPlayer.pickup_from_belts

A boolean to allow/disable picking up from belts would be nice. With an increased character_item_pickup_distance_bonus, it becomes easier to hold f to pick up non-lootable item-on-ground's... except near belts. I hate grabbing stuff on belts when I just want to pick up item-on-ground's, and I would ...
by Honktown
Thu Dec 29, 2022 10:25 pm
Forum: Minor issues
Topic: [1.1.74] GUI Tags stringified keys in nested table
Replies: 2
Views: 1153

Re: [1.1.74] GUI Tags stringified keys in nested table

As side information, when discussed on the Discord, it based on PropertyTrees being [compatible with/existing as] json. json has the two types of containers: arrays and objects. Arrays only have numbered indices (from 1-N, a Lua sequence) and objects only have strings keys. Anything not a sequence c...
by Honktown
Thu Dec 29, 2022 12:31 am
Forum: Documentation Improvement Requests
Topic: Documentation Improvement Requests
Replies: 316
Views: 97842

Re: Documentation Improvement Requests

game.force_crc()

[code]Tells all peers to calculate their current map CRC;[/code]
Just the map, or, map and global?


-> Updated for 1.1.79.
by Honktown
Wed Dec 28, 2022 12:00 pm
Forum: Won't implement
Topic: request for supports_bar() on entity prototypes
Replies: 3
Views: 1815

Re: request for supports_bar() on entity prototypes

This request can be moved to a graveyard or whatever: After discussing it with rseding at length, it turned out supports bar is only a GUI modification: it shows or doesn't show the [X]. The inventory of the entity doesn't actually change. This behavior was then added to the wiki: https://wiki.facto...
by Honktown
Tue Dec 27, 2022 11:50 am
Forum: Documentation Improvement Requests
Topic: Documentation Improvement Requests
Replies: 316
Views: 97842

Re: Documentation Improvement Requests

https://lua-api.factorio.com/1.1.74/LuaSurface.html#LuaSurface.request_path path_resolution_modifier :: int? Defines how coarse the pathfinder's grid is. Smaller values mean a coarser grid (negative numbers allowed). Allowed values are from -8 to 8. Defaults to 0. A meaning to apply to this number w...
by Honktown
Tue Dec 27, 2022 2:20 am
Forum: Documentation Improvement Requests
Topic: Documentation Improvement Requests
Replies: 316
Views: 97842

Re: Documentation Improvement Requests

A small bit with settings (global variable) and writing settings, it upsets github's Lua Lint or something, as it's listed as read only? I don't know how to better describe it: e.g. https://github.com/ILLISIS/Constructron-Continued/actions/runs/3782031980/jobs/6429423111 Related, under the descript...
by Honktown
Sun Dec 25, 2022 9:28 pm
Forum: Modding interface requests
Topic: item prototype flag: "hide-from-module-tooltip"
Replies: 0
Views: 461

item prototype flag: "hide-from-module-tooltip"

"hide-from-fuel-tooltip", "hide-from-bonus-gui", "hidden" exist, but not hiding a module. There is also ammo tooltips, guns... any place in theory that can't hide things, supposing, but I am currently only desiring hiding a module. Obvious mod to see: Alien Loot Economy...
by Honktown
Wed Dec 07, 2022 5:42 am
Forum: Documentation Improvement Requests
Topic: Documentation Improvement Requests
Replies: 316
Views: 97842

Re: Documentation Improvement Requests

https://lua-api.factorio.com/1.1.74/LuaTechnologyPrototype.html#LuaTechnologyPrototype.research_unit_count_formula The count formula used for this infinite research. nil if this research isn't infinite. Technology with multiple levels also have a research count formula, and it comes up. Since a tech...
by Honktown
Wed Dec 07, 2022 5:33 am
Forum: Minor issues
Topic: [1.1.73] LuaTechnology artillery upgrades has upgrade set to false
Replies: 3
Views: 1311

Re: [1.1.73] LuaTechnology artillery upgrades has upgrade set to false

I wouldn't call this a bug - there is only one technology. upgrade = true is for when there are multiple technologies and "they should be shown as one that keeps going". https://wiki.factorio.com/Prototype/Technology#upgrade That's how upgrade's behavior is described, and that's how it's u...
by Honktown
Wed Dec 07, 2022 5:02 am
Forum: Resolved Problems and Bugs
Topic: [Genhis] [1.1.74] Paste doesn't work with cursor_stack_temporary
Replies: 1
Views: 2020

[Genhis] [1.1.74] Paste doesn't work with cursor_stack_temporary

cursor_stack_temporary returns false for a paste, but it's a blueprint that disappears when clear cursor is pressed.
by Honktown
Fri Dec 02, 2022 8:59 am
Forum: Resolved Problems and Bugs
Topic: [Genhis] [1.1.73] Locale fallback groups do not work on captions or tooltips set after creation
Replies: 3
Views: 2317

Re: [Genhis] [1.1.73] Locale fallback groups do not work on captions or tooltips set after creation

Adding: it also doesn't work in just game.print:

Code: Select all

/c game.print({"?",{"item-name.ice-cream"},"no ice cream"})
by Honktown
Wed Nov 30, 2022 4:52 am
Forum: Resolved Problems and Bugs
Topic: [1.1.72] Bonuses window, inserter stack bonus, small detail for inserters with stack_size_bonus > 0
Replies: 1
Views: 1798

[1.1.72] Bonuses window, inserter stack bonus, small detail for inserters with stack_size_bonus > 0

In the bonuses screen, the bonus listed has 1 pre-added, which makes it incorrect for non-1 inserters.

The normal stack inserter capacity would be 1+2 = 3, the modded one in the tooltip, 4+2 is obviously not 3. Same thing for non-stack inserters.
inserter hand size.png
inserter hand size.png (58.59 KiB) Viewed 1798 times
by Honktown
Fri Nov 25, 2022 6:43 pm
Forum: Resolved Problems and Bugs
Topic: [1.1.72] Error when trying to unzip the downloaded file
Replies: 4
Views: 1047

Re: [1.1.72] Error when trying to unzip the downloaded file

This also occurs to me on Windows 7. For some reason another archive tool like 7-zip works fine.
by Honktown
Fri Nov 25, 2022 6:37 pm
Forum: Modding discussion
Topic: api /next/ address exists, but is outdated?
Replies: 1
Views: 781

api /next/ address exists, but is outdated?

https://lua-api.factorio.com/next/ exists, and at the time of this post, shows an outdated 1.1.53 version (neither stable nor experimental) I did a google search for LuaInventory, and noticed /next/ was one of the results, but... as mentioned, is outdated (current version 1.1.72) It appears /next/ c...
by Honktown
Mon Nov 14, 2022 6:56 am
Forum: Documentation Improvement Requests
Topic: Documentation Improvement Requests
Replies: 316
Views: 97842

Re: Documentation Improvement Requests

Maybe should be documented somewhere around map_gen_settings: "if there are no tiles defined to autoplace, the result for generation is always the first prototype tile, likely grass-1"

-> This is very specific and not 100% correct, we decided not to write this down.

Go to advanced search