GregorSamsanite / nullius

Nullius overhaul mod for Factorio
18 stars 21 forks source link

Sorting images / relinked them in the code / resized some images / compressing images / removed trailing whitespaces / replaced tab characters #1

Closed snouz closed 3 years ago

snouz commented 3 years ago

The number of changes seems overwhelming (>14k lines) but it's actually pretty simple:

Sorting images in categories: Also added a fluid folder in icons.

Relinked them in the code: I added variables for paths at the top of files

Resized some images: some icons were 80x80, 32x32... I put them all at 64px, sometimes adjusting the scale of other icons in coposites. I temporarily removed the mipmaps on images to work more easily on them, but will generate them all at once later.

Compressing images: I just used PNGGAuntlet to remove about 1.7 MB of data. PNGGauntlet is lossless, so you don't lose detail/colors

Removed trailing whitespaces: My Sublime Text is set to remove whitespaces at the end of lines automatically at save.

Replaced tab characters: In Sublime Text at least, the indentation was all over the place: lines were randomly preceded by tabs or spaces, and indent was inconsistant (because tabs were taking the space of 4 spaces)

I included the changes of 1.2.7 and tested in a game (it loads and displays everything).

snouz commented 3 years ago

All right, I don't have much to add right now, it's tested and seem to work fine. Thumbnail is in too.