1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 08:20:21 +01:00
Commit Graph

23 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
3bc711b9e3 MT5 translation for inbox 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
tjnenrtn
ad4790f74c verify inbox owner when taking items 2017-06-25 03:11:19 -04:00
frodon1
d18bee7fa0 Fix calls to check_player_privs with player name instead of player userdata
Fixes #357
2017-02-27 21:56:16 +01:00
Diego Martínez
fe92fdc373 Minor fixes to inbox.
* Don't trigger global variable warning.
* Change form name to avoid possible bugs in the future.
* Actually (opt-)depend on screwdriver mod.
2017-02-03 00:27:02 -03:00
Diego Martínez
27e1175fb0 Add missing translations. 2017-01-29 21:57:15 -03:00
Foz
a14722eb98 Add support for protection_bypass priv.
Closes #330
2017-01-06 21:05:58 -08:00
Auke Kok
923198a2dd Fix most luacheck issues.
There are 3 false positives remaining after this patch, so
the bulk of the issues are fixed now.
2016-12-31 12:33:46 -08:00
Tim
32ef2377d4 fix wrong reference introduced in 436fdfac causing can_dig for mailboxes always to fail 2016-08-27 21:11:55 +02:00
Tim
9e7ddd4a40 add listring support to homedecor inventories 2016-08-27 21:10:43 +02:00
Tim
436fdfac55 Prevent crashs in can_dig on nil-player. 2016-07-31 13:07:25 +02:00
Tim
337dc05e70 Always return the ItemStack for on_rightclick to comply with the API. 2016-07-31 13:07:21 +02: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
4a7d89f948 new inventory images for mailbox, copper pans, towel rod 2015-03-31 11:37:34 -04:00
Vanessa Ezekowitz
e74b87bcb7 use mesh node for inbox mailbox 2015-03-30 18:51:48 -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
c26d52ebdd PNGCRUSH _ALL_ THE TEXTURES! "\_:D/ 2014-08-04 13:47:16 -04:00
Vanessa Ezekowitz
c406094b72 import bas080's inbox mod 2014-07-18 19:45:26 -04:00