#Fan's bigger boiler
1 messages · Page 1 of 1 (latest)
since there is a debate in the modding chat sure
for now everything I change is working
So far, collision_box and selection_box would make it bigger as an obstacle, and bigger to highlight/select
Are we at the point where it feels bigger, but is still visually the same size?
yes
It should complain about the plumbing, though
working fine for now
The selection box is bigger. The collision box is probably not because the pipe locations should error.
I purposefully left it smaller as a quality of life feature
so It would be possible walking through them in a line
But... bigger
It's ok, I've just seen other mods go really big
For now, you can make more changes if you like? I will soon be doing other stuff, but I can check my phone
ok
Another thing, with respect to assigning values
You've been doing one-table-deep to reach the place you're assigning
You can also do something like
bigger_boiler.energy_source.emissions_per_minute = 150
As long as the table(s) exists in-between, you can reach as "deep" into a table as you want
using the . or ["full-indexing-that-handles-hyphens-and-stuff"] multiple times
. only works for simple string names of letters, underscores, and numbers after a letter or underscore
[] is needed when the key you want is in a variable, or is a number, or has language meaning like a minus/hyphen
More complicated indexing, such as a loop or a table which might not exist gets more complicated
lol I saw the first half
the point was that I have a lot of stuff I want to add
I'll ask, are you using a code editor? Notepad++ is a simple one
Looks like it
I use it, I only ask because having the highlighting, and ability to "close" brackets is very useful.
I use Notepad++
It does have an ability to find-in-files, so if you want to search many files at once you can do that, without any extra tools.
I recommend taking a look at other prototype mods. Some can be very complicated but others are less so. I have one that might be readable... https://mods.factorio.com/mod/AdvancedNuclear3
I do some unnecessary/stupid/wrong things at the top of the entity file, but the code is readable
My mod is kinda inspired by bobspower with advanced boilers