#Fan's bigger boiler

1 messages · Page 1 of 1 (latest)

delicate mist
#

@balmy salmon want to continue over here?

balmy salmon
#

since there is a debate in the modding chat sure

#

for now everything I change is working

delicate mist
#

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?

balmy salmon
#

yes

delicate mist
#

It should complain about the plumbing, though

balmy salmon
#

working fine for now

delicate mist
#

The selection box is bigger. The collision box is probably not because the pipe locations should error.

balmy salmon
#

I purposefully left it smaller as a quality of life feature

#

so It would be possible walking through them in a line

delicate mist
#

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

balmy salmon
#

ok

delicate mist
#

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

balmy salmon
#

the point was that I have a lot of stuff I want to add

delicate mist
#

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.

balmy salmon
#

I use Notepad++

delicate mist
#

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 do some unnecessary/stupid/wrong things at the top of the entity file, but the code is readable

balmy salmon
#

My mod is kinda inspired by bobspower with advanced boilers