Search found 222 matches

by PyroFire
Wed Dec 11, 2019 1:48 am
Forum: Modding interface requests
Topic: [Request] Check train station availability by name
Replies: 1
Views: 36

Re: [Request] Check train station availability by name

LuaSurface.train_station_available(station_name :: string) -> boolean Train stations are grouped by name, not by surface. And apparently trains currently make no distinctions for rails or stations on other surfaces, so putting this on LuaSurface doesn't make much sense (i see where you're going wit...
by PyroFire
Wed Dec 11, 2019 1:41 am
Forum: Modding interface requests
Topic: on_nth_tick but with an offset, and "on_tick_n"
Replies: 4
Views: 87

Re: on_nth_tick but with an offset, and "on_tick_n"

On nth tick is kinda useful for me, but I was hoping for a "modulo+offset" effect. For certain cases, I would like to run a function every n ticks from now . Edit: (bootstrap vs event, still relevant) on_tick(tick) if(tick%n==offset)then ... end end There's also not an event I see which specifies a...
by PyroFire
Tue Dec 10, 2019 6:20 pm
Forum: Outdated/Not implemented
Topic: Increase Big Electric Pole Wire Reach to 32 to = Chunk Size
Replies: 30
Views: 934

Re: Increase Big Electric Pole Wire Reach to 32 to = Chunk Size

Sadly, “double pole” solution looks irrational, inelegant and redundant. It’s not a solution, it’s a workaround. I’m not a chunk-addicted player, but I haven’t read any serious thoughts against 32. Please quote it for me if I missed something really important. You missed the part where player sugge...
by PyroFire
Tue Dec 10, 2019 4:53 pm
Forum: Mods
Topic: [0.17] Delayed Regeneration
Replies: 4
Views: 98

Re: [0.17] Delayed Regeneration

Not bad for one of your first mods. A lot of room for improvement - but don't worry, you'll always do it better the second time. One area is where you're comparing strings in an on_tick function (heal_effect) and tick timers on all entries in a table. You can save the expensive detour through on_tic...
by PyroFire
Tue Dec 10, 2019 3:56 pm
Forum: Ideas and Suggestions
Topic: Working with trains is a pain in the..
Replies: 35
Views: 1586

Re: Working with trains is a pain in the..

It's a solved problem. Theoretically and Practically. The electric network has such IDs. The fluid system has such IDs. Even belts have segments that are basically the same and they merge and split constantly as items are added and removed. You're so very, very wrong it almost hurts to see it, and ...
by PyroFire
Tue Dec 10, 2019 2:22 pm
Forum: Ideas and Suggestions
Topic: Deconstruction in blueprints
Replies: 2
Views: 54

Re: Deconstruction in blueprints

This is interesting. Options to treat the blueprint as a square to deconstruct any non-matching entities/tiles in the area, e.g. random belts and pipes or concrete or whathaveyou are removed if they don't match the blueprint. I don't know if mods can do the blank tile thing without doing very weird ...
by PyroFire
Tue Dec 10, 2019 2:15 pm
Forum: Ideas and Suggestions
Topic: Area effects when editing blueprints
Replies: 1
Views: 29

Re: Area effects when editing blueprints

Solid idea. Problem is i don't think the functions needed to do this exist in the gui system. I'd imagine the blueprint window is unique to render the entities in a menu like that. So, suggestions/workarounds time. The first obvious one is, perhaps try editing your blueprints in a sandboxed save usi...
by PyroFire
Tue Dec 10, 2019 10:22 am
Forum: Modding discussion
Topic: Factorio, Lua and OO
Replies: 5
Views: 158

Re: Factorio, Lua and OO

It will take any value, visit all keys and values (if applicable), checks for class information on the deserialized object and uses it to recreate the class around that object. Non class objects are left alone. Sounds almost like you could put it in _ENV, but that'd be a little weird i think. I don...
by PyroFire
Tue Dec 10, 2019 10:02 am
Forum: Outdated/Not implemented
Topic: Increase Big Electric Pole Wire Reach to 32 to = Chunk Size
Replies: 30
Views: 934

Re: Increase Big Electric Pole Wire Reach to 32 to = Chunk Size

Feel free to downplay reddit community as much as you wish, just wanted to show it's a topic that is being raised time and time again and people agree. If you don't really care if it's 30 or 32, this is not a topic for you. Distance/game balance-wise a 6.66..% distance difference is very minor to m...
by PyroFire
Tue Dec 10, 2019 5:36 am
Forum: Outdated/Not implemented
Topic: Increase Big Electric Pole Wire Reach to 32 to = Chunk Size
Replies: 30
Views: 934

Re: Increase Big Electric Pole Wire Reach to 32 to = Chunk Size

But you'd wonder why radar coverage was so blocky. Personally, i find symmetrical factories ugly. Currently the workaround i have to use to account for 30 length poles is by placing them less than 30 length so that they connect in the middle of radar chunks. Now the only way to know if i'm placing ...
by PyroFire
Tue Dec 10, 2019 5:30 am
Forum: Technical Help
Topic: The given sprite is outside the actual sprite size
Replies: 13
Views: 183

Re: The given sprite is outside the actual sprite size

They don't have modified versions,and we all get the mods from the mod manager in the game it self. the one hosting just game me his 5Dim logistic file and it still gave the error. everything is updated and everything is the same Let's go through this. 1. You, and 2 other people (3 total) have an i...
by PyroFire
Mon Dec 09, 2019 6:22 am
Forum: Ideas and Suggestions
Topic: Automation 4: Miniaturization / Super-tiny inserterless 1x1 assembly machines
Replies: 3
Views: 91

Re: Automation 4: Miniaturization / Super-tiny inserterless 1x1 assembly machines

It doesn't do the ejecting onto belts, but my nanotorio mod resizes basically everything to 1x1.

https://mods.factorio.com/mod/nanotorio

Image
by PyroFire
Mon Dec 09, 2019 6:16 am
Forum: Outdated/Not implemented
Topic: Increase Big Electric Pole Wire Reach to 32 to = Chunk Size
Replies: 30
Views: 934

Re: Increase Big Electric Pole Wire Reach to 32 to = Chunk Size

ssilk wrote:
Sun May 07, 2017 2:29 pm
Just make a mod. This is about 10-20 lines of code. :)
I think you mean one line.

data.raw["electric-pole"]["big-electric-pole"].wire_reach=32
by PyroFire
Mon Dec 09, 2019 6:13 am
Forum: Technical Help
Topic: The given sprite is outside the actual sprite size
Replies: 13
Views: 183

Re: The given sprite is outside the actual sprite size

but they've updated everything Then they are using altered versions of mods that are not available on the mod portal and you will need to ask for a copy of those altered versions. Basically - you're all friends right? Share around a modpack zip so everyone has the same stuff. no room for error. If ...
by PyroFire
Mon Dec 09, 2019 2:49 am
Forum: Technical Help
Topic: The given sprite is outside the actual sprite size
Replies: 13
Views: 183

Re: The given sprite is outside the actual sprite size

Sounds like your friends are using outdated versions of the mods, and it now isn't working because you updated and your friends haven't.
by PyroFire
Mon Dec 09, 2019 2:15 am
Forum: Technical Help
Topic: The given sprite is outside the actual sprite size
Replies: 13
Views: 183

Re: The given sprite is outside the actual sprite size

correct,the friend that hosts the game and another friend dont have this problem, only me Then, bottom line, you don't have (and never had) the same mod list as your friends to begin with, changed or not. Try removing all your mods then sync with the server - that way you're guaranteed to not have ...
by PyroFire
Mon Dec 09, 2019 1:47 am
Forum: Modding discussion
Topic: Factorio, Lua and OO
Replies: 5
Views: 158

Re: Factorio, Lua and OO

inferis wrote:
Sun Dec 08, 2019 6:33 pm
Why do you ask?
Because metatables (the whole point of your library) are not kept between save/loads.
If you have a simple way to fix that i'd love to see it.
by PyroFire
Sat Dec 07, 2019 4:51 pm
Forum: Modding discussion
Topic: Factorio, Lua and OO
Replies: 5
Views: 158

Re: Factorio, Lua and OO

does it work with on_load?
by PyroFire
Wed Dec 04, 2019 1:20 pm
Forum: Not a bug
Topic: damage isn't rounded well?
Replies: 14
Views: 376

Re: damage isn't rounded well?

This will leave the biter alive at 1hp from tiny=0.01 to exactly tiny=0.00001. make it a single zero longer or shorter than this range and it kills the biter. Yep, and they regen 0.01 per tick, so even with the shortest delay between shots, they would always survive 2. Moving to not a bug unless so...
by PyroFire
Wed Dec 04, 2019 11:03 am
Forum: Not a bug
Topic: damage isn't rounded well?
Replies: 14
Views: 376

Re: damage isn't rounded well?

Biters also have resistances. Are you accounting for that? The biters have health regen, which applies every tick, So in the time between the shots, they can regen a tiny bit of health Confirmed "issue". /c local e=game.player.selected local pt=game.entity_prototypes[e.name] game.print("Resistances...

Go to advanced search