1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-09 20:00:39 +01:00
Commit Graph

21 Commits

Author SHA1 Message Date
ExeVirus
f9ca183f2a # Compression Commit
This commit performs both lossless and lossy compression on every .obj and .png in homedecor. The .png files were all 100% losslessly compressed using ect.exe and optipng.exe (more details below) at maximum settings. The .obj files were lossy-compressed so that comments were removed, trailing 000's were removed and all numbers rounded to 3 decimal places max. Blender exports at 6 decimal places but for minetest, 3 decimal places is the absolute maximum a person with anything under a 256K screen will ever need.

## Results
```
Original entire modpack size: 6343.5 KB
New entire modpack size:      5312.2 KB
Total Reduction:              1031.3 KB  (16.3% less)
```
Please note that actual media size is likely more like 4,500 KB so media reduction is more around 20-25%.

## Details / What actions were actually performed

Used these programs:

https://github.com/ExeVirus/Compress-Obj

https://sourceforge.net/projects/optipng/

https://github.com/fhanau/Efficient-Compression-Tool

Ran this command on every .obj: (fast)

```
luajit.exe compress.lua -f <file> -precision 3
```

Ran these commands on every .png: (slow)
```
ect.exe  -9 -strip --allfilters-b <file>
optipng.exe -o7 -strip all -clobber <file>
```

Note that for future compression, I recommend only using optipng.exe instead of both. ECT can get better results but it takes a LOT longer and only ever saves another 1-2% of the file size. Not worth an extra 10-20 seconds per texture file in my opinion.

## Time spent

Roughly 2 Hours from start to finish + commit + PR
2021-01-23 07:28:20 -05:00
Louis Royer
1090c9139c .luacheckrc on each mod 2020-08-05 16:01:47 +02:00
Louis Royer
f0ab7a6c78 MT5 translation for plasmascreen 2020-08-05 16:01:47 +02:00
TenPlus1
0cd8bd7780 remove homedecor_i18n and merged into homedecor_common, fixed meseon global error 2019-04-21 16:25:21 +01:00
Vanessa Dannenberg
18d74e2f09 fix a couple of wrong depends 2019-04-21 07:47:09 -04:00
Vanessa Dannenberg
e291a45d99 license fixups: use LGPL 3.0 for code,
CC-by-SA 4.0 for media and everything else
2018-11-08 18:58:34 -05:00
Vanessa Ezekowitz
f09481c3f0 switch over all punch-operated objects
to use on_rightclick instead, for consistency with other parts of minetest,
minetest_game, etc.
2017-02-20 18:30:59 -05:00
Diego Martínez
27e1175fb0 Add missing translations. 2017-01-29 21:57:15 -03:00
Auke Kok
138e078f1b Whitespace damage fixes.
This is cleaned up by `cleanfile` (from the linux kernel tree
tool set).
2016-12-31 12:33:46 -08:00
kilbith
f1dca4e990 Fix screwdriver variables 2015-05-15 13:22:05 +02:00
kilbith
e374b83bc0 Disallow partially or entirely some items to rotate with the screwdriver 2015-05-14 12:41:11 +02:00
Vanessa Ezekowitz
f59e0448c7 optimize all PNGs 2015-05-11 12:51:03 -04:00
kilbith
4dee35893a Cleaning and tweaking node params 2015-04-29 16:58:33 +02:00
Vanessa Ezekowitz
4279d90049 fix bad facedir setting on punch to turn on/off 2015-04-16 03:55:27 -04:00
Vanessa Ezekowitz
9869520097 fix missing "back" image (used for plasma screen stand) 2015-04-16 03:53:06 -04:00
Vanessa Ezekowitz
3c430b1791 use mesh node for plasma screen
also, add an "off" variant, accessible by punching.
2015-04-15 21:56:30 -04:00
Tim
be4ed12b6c whitespace cleanup:
* remove all trailing whitespaces
* make inbox and computer use the prevalent indentation rules
* CRLF->LF where found
2015-01-21 00:44:23 +01:00
Vanessa Ezekowitz
4de58abc31 minetest.env:* --> minetest.* 2014-11-30 12:21:28 -05:00
kilbith
5c07015447 Plasma TV emit realistically a slight light
Plasma emit realistically a slight light : https://cdn.mediacru.sh/B1WfkMBfneZs.png
2014-09-20 18:38:52 -03:00
Vanessa Ezekowitz
c26d52ebdd PNGCRUSH _ALL_ THE TEXTURES! "\_:D/ 2014-08-04 13:47:16 -04:00
Vanessa Ezekowitz
51e9f20a6c import plasmascreen mod 2014-07-18 19:38:31 -04:00