0
Commit Graph

2898 Commits

Author SHA1 Message Date
InrcedibleHolg
66ef67bb78 soul lightning 2020-08-23 09:55:29 +02:00
InrcedibleHolg
619ce0a219 add advanced blocks, nether roof update
crying_obsidian, lodestone, respawn_anchor
ancient_debris part of the nether roof
2020-08-15 10:10:29 +02:00
Lieuwe Westra
113a3a6f09 Added crimson and warped wood 2020-08-14 14:53:59 +02:00
InrcedibleHolg
629b43370e add stone nether blocks 2020-08-09 21:50:13 +02:00
Nicolas F
4c0a69dd28 Merge PR #1826 from Auron956
Resolve stair & stem rendering issues
2020-08-07 23:05:48 +02:00
Joseph Camp
a839fa437d C: Amend logic in block_class_is_wall()
Resolves an issue where this function would mistakenly identify
various non-wall blocks as walls
2020-08-06 23:24:12 +00:00
Joseph Camp
b29c9e9ffc world: Fix melon/pumpkin/mushroom stem rendering
Previous check for warped & crimson stem blocks was too inclusive,
causing stems of melons, pumpkins, and mushrooms to be interpreted
as air blocks
2020-08-06 23:18:07 +00:00
Nicolas F
50b84e95b5 Merge pull request #1791 from overviewer/116-blocks 2020-08-05 19:05:57 +02:00
Nicolas F
1d40ea77d4 nether: move nether roof blocks into new class 2020-08-05 19:01:52 +02:00
Nicolas F
0776bf0a93 textures: fix various small nitpicks
- don't redundantly declare a side image when it's the same as top
- change wood blocks to get textures from a dict
2020-08-05 18:52:21 +02:00
Nicolas F
ba173698f3 Merge PR #1812 from IncredibleHolg 2020-08-05 18:14:27 +02:00
InrcedibleHolg
0a9d1961c5 add soul_soil, nether_gold_ore, removelist 2020-08-04 19:38:23 +02:00
Nicolas F
08e8c21d0c web: don't clutter up web console by default
If one wishes to add debug output, they should use overviewer.utils.debug.
To see the output produced by that, set overviewerConfig.map.debug to true.

Fixes #1816.
2020-07-28 13:22:07 +02:00
Nicolas F
11aabbfd9f world: fix 1.16 block unpacking
Fixes #1797.
2020-07-28 13:08:43 +02:00
InrcedibleHolg
3ac090a7a0 nether biomes 2020-07-17 00:21:29 +02:00
Nicolas F
fcb3f2644d Shuffle around wall IDs, change wall check
Previously, walls were all numbered at 21000+. This is bad because
our blockmap is an array, so this caused our blockmap to take up
80 MiB of RAM in each worker process.

This commit changes the wall numbering, and exploits some bitmasking
to have the wall check run in constant time no matter how many walls
there are. This is done with a simple mask and xor to check the prefix.

RAM usage for the blockmap thus drops to like 44 MiB.

This is in preparation for adding more walls for 1.16.
2020-07-13 19:15:47 +02:00
Nicolas F
3282791bc4 Merge PR #1796 from DragonDev1906
Make icons in legend OptIn
2020-07-11 14:19:00 +02:00
Jens
d7f6f3ebd5 Make icons in legend OptIn
Make them OptIn
Add option to docs
2020-07-11 14:03:18 +02:00
Nicolas F
8c0028495d world: work around minecraft palette bugs
Instead of trusting that Minecraft will only request up to index
num_palette_entries - 1, we'll assume Mojang occasionally produces
a weird file where it tries to request past that, up to the maximum
palette index it can based on the bits per value. To facilitate this,
this commit extends the translation palette array to this maximum size.

Such invalid palette picks will simply be replaced by ID 0 (aka air),
so it should cause minimal weirdness in the output.

Works around #1797.
2020-07-09 18:33:39 +02:00
Nicolas F
8ec2a998e2 build-tools: remove unused garbage 2020-07-07 23:36:56 +02:00
Nicolas F
a3e4812ca9 world: skip zero-size region files
Minecraft 1.16.1 loves writing these in singleplayer, and they
cause a whole bunch of corruption warnings if we don't handle them
in a special way like this.
2020-07-03 13:10:23 +02:00
Nicolas F
fd2c0a057a Add blackstone and netherite blocks 2020-07-03 13:10:23 +02:00
Nicolas F
bc56346bad Initial 1.16 block work
- Add ancient debris
- Add basalt
- Add polished basalt
- Add soul campfire
2020-07-03 13:10:23 +02:00
Nicolas F
d362e1512d overlay-mineral: fix tuple parse data type
Was a byte, should've been an unsigned short.

Fixes #1801.
2020-07-03 13:06:46 +02:00
Nicolas F
27eabb08a5 web_assets: make poi control icons look less bad
using rem here is probably wrong because we want to be the height
of the line in the span we're inside of, not of some global thing.

Also, add a margin to the left.
2020-07-01 18:59:34 +02:00
Nicolas F
f54e398a2a docs/signs: fix escape example and add note
Concerns #1795.
2020-07-01 18:46:56 +02:00
Nicolas F
a424744762 Merge PR #1734 by DragonDev1906 2020-06-29 18:49:34 +02:00
Nicolas F
f6b7e67b85 Merge PR #1793 from eminence
Show the Overviewer version in the "welcome" message
2020-06-28 00:30:42 +02:00
Andrew Chin
d6e21757db Show the Overviewer version in the "welcome" message
Old message:

    Welcome to Minecraft Overviewer!

New message:

    Welcome to Minecraft Overviewer version 0.15.75 (9605bd8)!

This might make is easier to quickly see what version of Overviewer
people are running when they ask for support
2020-06-27 13:48:07 -04:00
Nicolas F
9605bd8098 Add a FUNDING.yml for a sponsor button
After discussing this with the other folks on IRC, everyone seemed
to be cool with me adding myself to this. It makes it so people see
a little sponsor button that tells them how they can monetarily
support the project if they choose to do so.
2020-06-25 21:42:25 +02:00
Nicolas F
a04ca9ca81 genPOI: fix dumb dimension handling mistake
lol
2020-06-25 19:10:29 +02:00
Nicolas F
d3a5786642 world: work around Minecraft lighting nonsense
Minecraft occasionally generates chunks which are not yet lit.
In the past, I'd have said to just make them not render, but these
can sometimes be large areas of the world.

Instead, render them with full bright SkyLight. This looks less bad
than whatever is stored in the SkyLight property in these cases.

Closes #1787, probably. Only one person bothered providing a sample file.
2020-06-25 18:55:48 +02:00
Nicolas F
0143ad63a6 genPOI: code style fixes
E129 can suck me off. Get a better syntax, Python.
2020-06-25 18:36:00 +02:00
Nicolas F
2b550fdf66 genPOI: fix handling of new dimension format
Fixes #1778.
2020-06-25 18:17:21 +02:00
Nicolas F
1355f8c49e world: retry chunk read on OSError too
Closes #1790.

If a chunk fails reading due to an underlying operating system
IO error, we can invoke the retry logic too. No clue what could
cause this to happen beyond hardware faults.

Also lower the sleep time to 0.25s down from 0.5s because half a
second of sleeping for each chunk this happens on seems incredibly
overkill.

Making the nbt code raise a CorruptChunkError in this case also means
that failing to read a chunk due to an IOError is not a fatal error
anymore, it'll simply skip it and move on.
2020-06-25 15:37:17 +02:00
Nicolas F
c53268e8fe assetmanager: don't choke on existing icons dir
Fixes #1789.
2020-06-25 00:17:12 +02:00
Nicolas F
780597d7b2 Merge pull request #1780 from dreamwraith 2020-06-24 18:10:18 +02:00
Nicolas F
cadb24a015 assetmanager: rename icons dir to markers, symlink
This fixes a name collision with Apache's default config.

Closes #1773. Install nginx already.
2020-06-24 17:57:12 +02:00
Nicolas F
07e6be4b43 Merge pull request #1788 from Auron956 2020-06-24 17:16:45 +02:00
Joseph Camp
ab0f6ab388 overviewer.h: Bump extension version 2020-06-23 23:35:43 +00:00
Joseph Camp
297a940a4b Amend loom rendering
- Account for render direction & block facing data
2020-06-23 23:35:43 +00:00
Joseph Camp
9ee1a6a3dd Amend table block rendering
- Account for render direction & flip bottom-right face of
  crafting, fletching, smithing, and cartography table blocks
2020-06-23 23:35:43 +00:00
Joseph Camp
83db30da66 Amend coarse dirt texture
- Correct texture used for coarse dirt
- Code formatting
2020-06-23 23:35:43 +00:00
Joseph Camp
efc345313d Add bell texture 2020-06-23 23:35:43 +00:00
Joseph Camp
99864d99a7 Add campfire texture 2020-06-23 23:35:43 +00:00
Joseph Camp
9365cce160 Amend lectern rendering
- Replaces exising implementation with a texture that better
  resembles the in game block, accounting for its facing & whether
  a book has been placed or not
2020-06-23 23:35:43 +00:00
Joseph Camp
cde059e9a6 Amend stonecutter rendering
- Account for facing when generating textures
- Render block top at the appropriate height & add saw blade
2020-06-23 23:35:43 +00:00
Joseph Camp
3bfe52013d Amend grindstone rendering
- Replaces existing implementation with a texture that better
  resembles the in game block and accounts for its facing & what
  surface it is attached to (ceiling, wall, or floor)
2020-06-23 23:35:42 +00:00
Joseph Camp
d0ddab3b20 Amend anvil texture generation
- Fix gap between sides & top in anvil texture
2020-06-23 23:35:42 +00:00
Joseph Camp
8e1eeb2170 Amend glazed terracotta rendering
- Reduce data range to prevent excessive texture generation
- Correct rotation of side 4 texture
- Simplify texture generation code
2020-06-23 23:35:42 +00:00