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

30 Commits

Author SHA1 Message Date
unknown
a5555323fd add lavalamp 2022-04-24 11:27:20 -04:00
wsor4035
3ba59dc2d5
fix almost all warning spam (#26) 2022-03-29 07:44:05 +02:00
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
0800810530 MT5 translation for lavalamp 2020-08-05 16:01:47 +02:00
Vanessa Dannenberg
9dcc6c2b4d use Unified Dyes on_dig where needed - requires Unified Dyes commit 9ff40a7f or later 2019-07-18 02:16:46 -04:00
Vanessa Dannenberg
854e96d4c0 add "light" to lava lamp desc. 2019-05-03 12:06:43 -04: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
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 Dannenberg
fc781daca0 get rid of old 89->256 color LBMs 2018-09-12 23:03:41 -04:00
Vanessa Dannenberg
a8729575ab switch to colored itemstacks
with full crafting recipes
(requires Unified Dyes commit 2a816534 or later)

known issues:

standing lamp bypasses vertical stack check
bed expansion changes the color of the first-placed bed
to match the second when creating a king bed.
2018-08-22 05:09:55 -04:00
Vanessa Ezekowitz
f391bc59b0 use texture overlays on lava lamps
(water is now blue like it used to be)
2017-06-25 03:12:13 -04:00
Vanessa Ezekowitz
1eb1e87f08 use unified dyes auto-colorization feature
also fixed some bugs in bed handling
also got rid of the old, obsolete "placeholder" node, aliased it to air.
2017-06-25 03:10:59 -04:00
Vanessa Ezekowitz
27eae09d93 use unified dyes on_construct handler
to set 256-color palette meta key on place
for those nodes that use it
2017-06-25 03:10:53 -04:00
Vanessa Ezekowitz
c1eda2246a convert lavalamps to UD extended palette 2017-02-25 02:11:47 -05:00
Vanessa Ezekowitz
e9477dd45d don't run LBM at every load 2017-02-16 16:59:19 -05:00
Diego Martínez
2df6dbcad9 Fix warnings issued by luacheck. 2017-02-15 23:53:52 -03:00
Vanessa Ezekowitz
a493933105 unified dyes uses on_use now, instead of on_rightclick 2017-02-04 19:41:36 -05:00
Diego Martínez
27e1175fb0 Add missing translations. 2017-01-29 21:57:15 -03:00
Vanessa Ezekowitz
f96f8ac86b lavalamp depends on unifieddyes 2017-01-29 11:44:47 -05:00
Vanessa Ezekowitz
0e68696566 remove debug prints
localized a misc. variable
2017-01-29 04:36:39 -05:00
Vanessa Ezekowitz
59ae86ec0f convert lavalamps to use param2 coloring
Side effect:  Now all of Unified Dyes' colors can be applied.
2017-01-29 04:32:26 -05: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
Tim
337dc05e70 Always return the ItemStack for on_rightclick to comply with the API. 2016-07-31 13:07:21 +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
eaa4358c14 use inventory images for lava lamps 2015-04-15 03:49:59 -04:00
Vanessa Ezekowitz
3dd6fbb3d4 don't put "off" lava lamps in creative inv 2015-04-15 03:27:11 -04:00
Vanessa Ezekowitz
7e05a9a8f0 use mesh nodes for the lava lamps 2015-04-15 00:56:00 -04:00
Vanessa Ezekowitz
d1e4b01049 import familygrog's lava lamp mod 2015-04-15 00:12:34 -04:00