Search found 12 matches

by repne-scasb
Sun May 28, 2023 5:00 pm
Forum: Modding interface requests
Topic: Request: WireConnectionPoint from LuaEntityPrototype
Replies: 1
Views: 508

Re: Request: WireConnectionPoint from LuaEntityPrototype

I would really like to have this! I think it would be a good idea to also add a shorthand method to LuaEntity to get the offset of a connection point for some wire + connector/wire_id for the current direction of the entity, also for electric-poles, which always report the same direction while wire ...
by repne-scasb
Mon Mar 06, 2023 2:50 pm
Forum: Modding help
Topic: Event when biters despawn?
Replies: 2
Views: 441

Re: Event when biters despawn?

Pretty sure that register_on_entity_destroyed + on_entity_destroyed is the way to go here. I think you might be right after all, I thought it didn't fire but maybe it does. Do you know any way to reproduce, i.e. get biters to despawn? EDIT: I waited along on a group of biters without spawner and ev...
by repne-scasb
Mon Mar 06, 2023 1:44 pm
Forum: Modding help
Topic: Event when biters despawn?
Replies: 2
Views: 441

Event when biters despawn?

Hi! Is there an event that fires when a biter despawns? (or when it is removed from the world in any other way.) I need it to remove the biter from some list in my mod. Currently I listen for on_entity_died (with type unit), but I don't think that event is fired in this case. Should I instead use re...
by repne-scasb
Mon Mar 06, 2023 12:10 pm
Forum: Ideas and Suggestions
Topic: Signal letters fonts
Replies: 7
Views: 1919

Re: Signal letters fonts

Old topic I know, but wanted to link my mod here: https://mods.factorio.com/mod/rs-better-zero
It changes the zero signal (but currently not the Q signal) to be more different from the O signal.
EDIT: Now it changes the Q signal too
by repne-scasb
Mon Jan 10, 2022 5:59 pm
Forum: Resolved Problems and Bugs
Topic: [1.1.50] New API docs lack enum values
Replies: 16
Views: 3265

Re: [1.1.50] New API docs lack enum values

robot256 wrote: ↑
Mon Jan 10, 2022 1:45 pm
Oh wow, I never even knew that page had a table of contents with types in the list, since links always jump to the definition. Guess putting the type at the definitions would be another helpful change!
Well you're in luck because they did just that in the new version ;)
enum.png
enum.png (8.43 KiB) Viewed 2964 times
by repne-scasb
Mon Jan 10, 2022 10:42 am
Forum: Resolved Problems and Bugs
Topic: [1.1.50] New API docs lack enum values
Replies: 16
Views: 3265

Re: [1.1.50] New API docs lack enum values

And once again, you also wouldn't find it because it's not an "enum", it's a set of valid string literals. Factorio is written in C++, where an enum is a C type mapping symbol names to numbers, not a list of strings. Other actual enums are exposed in Lua, differently than this one. Ah oka...
by repne-scasb
Mon Jan 10, 2022 10:37 am
Forum: Resolved Problems and Bugs
Topic: [1.1.50] New API docs lack enum values
Replies: 16
Views: 3265

Re: [1.1.50] New API docs lack enum values

I'm sorry, what do you mean? Is this a known problem? I searched for 'enum' but can't find anything. It is known now. Posting about it once is enough. Ok sure, but go easy on me okay, comments like "With great reluctance I give you this link, but beg you: stop reposting this issue everywhere.&...
by repne-scasb
Sun Jan 09, 2022 11:21 pm
Forum: Resolved Problems and Bugs
Topic: [1.1.50] New API docs lack enum values
Replies: 16
Views: 3265

Re: [1.1.50] New API docs lack enum values

Thanks for that link! Although, it seems that it is mostly intended for suggestions on clarification, and less about bugs, so maybe this thread would not really fit, but I can post a link anyway. With great reluctance I give you this link , but beg you: stop reposting this issue everywhere. I'm sor...
by repne-scasb
Sun Jan 09, 2022 10:09 pm
Forum: Documentation Improvement Requests
Topic: Documentation Improvement Requests
Replies: 316
Views: 83081

Re: Small documentation improvement requests

Bug: The new API docs lack enum value lists: viewtopic.php?f=7&t=101185
-> This was fixed.
by repne-scasb
Sun Jan 09, 2022 10:08 pm
Forum: Resolved Problems and Bugs
Topic: [1.1.50] New API docs lack enum values
Replies: 16
Views: 3265

Re: [1.1.50] New API docs lack enum values

You are right, I misunderstood. There is a thread for small documentation bugs where you could also post this: https://forums.factorio.com/viewtopic.php?f=28&t=97880 Thanks for that link! Although, it seems that it is mostly intended for suggestions on clarification, and less about bugs, so may...
by repne-scasb
Sun Jan 09, 2022 5:16 pm
Forum: Resolved Problems and Bugs
Topic: [1.1.50] New API docs lack enum values
Replies: 16
Views: 3265

Re: [1.1.50] New API docs lack enum values

This was probably intentional. The numeric values of the enums are theoretically subject to change without notice. It's much better to structure your code so the numeric values don't matter. I'm not talking about those, it's the value list that is missing in its entirety, compare the linked definit...
by repne-scasb
Sun Jan 09, 2022 1:32 pm
Forum: Resolved Problems and Bugs
Topic: [1.1.50] New API docs lack enum values
Replies: 16
Views: 3265

[1.1.50] New API docs lack enum values

Not sure where to report this as there does not seem to be a bug report section for the API docs. The new Lua API docs page looks awesome but I noticed that values for enums on the Concepts page are missing. Compare 1.1.48 vs 1.1.49 : from version 1.1.49 onwards the enum values are missing from the...

Go to advanced search