minetest / minetestmapper

Generates a overview image of a minetest map.
BSD 2-Clause "Simplified" License
112 stars 40 forks source link

Creating a map for MineClone 2 v0.72.0 (Minetest v5.4.1) mapgen v7 world but getting a blank PNG file. #83

Closed CC-Hsu closed 3 years ago

CC-Hsu commented 3 years ago

Hi, Team,

I hope to get a map of my single-player MineClone 2 world with the latest release 20200328-win64 on Win10.

But I get the following message and a blank png picture.

PS D:\Portables\minetest\minetestmapper-20200328-win64> & .\minetestmapper.exe  -i "D:\Portables\minetest-5.4.1-win64\worlds\mineclone" -o ./map.png
Warning: Falling back to using colors.txt from current directory.
Unknown nodes:
        mcl_flowers:lilac
        mcl_sponges:sponge_wet
        mcl_fire:fire
        mcl_monster_eggs:monster_egg_stonebrickmossy
        mcl_stairs:stair_stonebrickmossy
        mcl_portals:end_portal_frame
        mcl_mushrooms:red_mushroom_block_cap_001010
        mcl_mushrooms:red_mushroom_block_cap_000010
        mcl_mushrooms:red_mushroom_block_cap_101010
        mcl_mushrooms:red_mushroom_block_cap_100010
        mcl_mushrooms:red_mushroom_block_cap_100110
        mcl_mushrooms:red_mushroom_block_stem
        mcl_mushrooms:red_mushroom_block_cap_100100
        mcl_mushrooms:red_mushroom_block_cap_001000
        mcl_mushrooms:red_mushroom_block_cap_001001
        mcl_mushrooms:red_mushroom_block_cap_101001
        mcl_ocean:seagrass_gravel
        mcl_core:cactus
        mcl_flowers:allium
        mcl_core:jungleleaves
        mcl_flowers:sunflower_top
        mcl_flowers:peony
        mcl_doors:trapdoor
        mcl_core:sprucetree
        mcl_core:bedrock
        mcl_flowers:oxeye_daisy
        mcl_colorblocks:hardened_clay_silver
        mcl_torches:torch_wall
        mcl_stairs:stair_stonebrickmossy_outer
        mcl_mushrooms:mushroom_red
        mcl_doors:spruce_door_b_1
        mcl_farming:melon
        mcl_flowers:tulip_pink
        mcl_core:dirt_with_grass_snow
        mcl_colorblocks:hardened_clay
        mcl_wool:light_blue_carpet
        mcl_ocean:seagrass_dirt
        mcl_core:andesite
        mcl_core:obsidian
        mcl_core:spruceleaves
        mcl_core:jungletree
        xpanes:pane_magenta_flat
        mcl_core:vine
        mcl_flowers:dandelion
        mcl_chests:chest_right
        mcl_wool:red_carpet
        mcl_fences:fence_gate
        mcl_core:snowblock
        mcl_flowers:fern
        mcl_flowers:poppy
        mcl_core:ladder
        mcl_core:tree
        mcl_stairs:slab_wood
        mcl_mushrooms:red_mushroom_block_cap_100101
        mcl_core:leaves
        mcl_flowers:tulip_orange
        mcl_tnt:tnt
        mcl_mushrooms:mushroom_brown
        mcl_colorblocks:hardened_clay_yellow
        mcl_flowers:azure_bluet
        mcl_wool:white_carpet
        mcl_stairs:slab_sandstone
        mcl_core:sandstonesmooth
        mcl_jukebox:jukebox
        xpanes:pane_brown_flat
        mcl_core:sprucewood
        mcl_core:bone_block
        mcl_core:lava_flowing
        mcl_torches:torch
        mcl_wool:silver_carpet
        mcl_core:deadbush
        mcl_flowers:rose_bush
        mcl_core:mossycobble
        mcl_ocean:kelp_gravel
        mcl_core:void
        mcl_flowerpots:flower_pot_azure_bluet
        mcl_core:cobble
        mcl_core:dirt
        mcl_stairs:stair_cobble_outer
        mcl_core:diorite
        mcl_flowers:lilac_top
        mcl_core:stone_with_redstone
        mcl_mushrooms:red_mushroom_block_cap_101000
        mcl_core:stone_with_coal
        mcl_mobspawners:spawner
        mcl_monster_eggs:monster_egg_stone
        mcl_core:sandstonecarved
        mcl_core:clay
        mcl_beds:bed_red_top
        mcl_stairs:slab_stone_top
        mcl_wool:brown_carpet
        mcl_core:stone_with_lapis
        mesecons_pressureplates:pressure_plate_wood_off
        mcl_core:sand
        mcl_flowers:rose_bush_top
        mcl_core:sandstone
        mcl_farming:carrot
        mcl_core:water_source
        mcl_flowerpots:flower_pot_cactus
        mcl_core:cobweb
        mcl_core:darkleaves
        mcl_core:gravel
        mcl_mushrooms:brown_mushroom_block_cap_101010
        mcl_flowers:double_fern
        mcl_core:stone_with_gold
        mesecons_torch:mesecon_torch_on
        mcl_flowerpots:flower_pot_blue_orchid
        mcl_stairs:stair_sandstone
        mcl_mushrooms:brown_mushroom_block_cap_100001
        mcl_ocean:seagrass_sand
        mcl_mushrooms:brown_mushroom_block_cap_100000
        mcl_core:stone
        xpanes:pane_natural_flat
        mcl_core:reeds
        mcl_core:granite
        xpanes:pane_orange_flat
        mcl_core:stone_with_iron
        mcl_farming:pumpkin_face
        mcl_colorblocks:hardened_clay_orange
        mcl_ocean:kelp_sand
        mcl_chests:chest_small
        mcl_flowers:double_fern_top
        mcl_core:stone_with_diamond
        mcl_walls:cobble_6
        mcl_flowers:tallgrass
        mcl_mushrooms:red_mushroom_block_cap_000001
        mcl_minecarts:rail
        mcl_fences:fence
        mcl_core:acacialeaves
        mcl_core:grass_path
        mcl_chests:chest_left
        mcl_mushrooms:red_mushroom_block_cap_100000
        mcl_flowers:double_grass_top
        mcl_core:coarse_dirt
        mcl_core:stonebrickcarved
        mcl_flowerpots:flower_pot_tulip_orange
        mcl_flowers:double_grass
        mcl_core:lava_source
        mcl_flowers:tulip_white
        mcl_stairs:stair_wood_inner
        mcl_core:birchleaves
        mcl_ocean:seagrass_redsand
        mcl_core:snow
        mcl_core:stone_with_emerald
        mcl_walls:stonebrick_1
        mcl_monster_eggs:monster_egg_stonebrick
        mcl_core:birchtree
        mcl_walls:cobble_1
        mcl_doors:spruce_door_t_1
        mcl_core:stonebrick
        mcl_mushrooms:red_mushroom_block_cap_000100
        mcl_core:stonebrickmossy
        mcl_core:stonebrickcracked
        mcl_core:redsand
        mcl_stairs:slab_wood_top
        mcl_flowers:peony_top
        mcl_flowerpots:flower_pot_tulip_white
        mcl_flowers:blue_orchid
        mcl_flowerpots:flower_pot_allium
        mcl_stairs:stair_stonebrick
        mcl_mushrooms:brown_mushroom_block_cap_100010
        mcl_stairs:stair_stonebrick_outer
        mcl_mushrooms:red_mushroom_block_cap_000110
        mcl_core:wood
        mcl_wool:green_carpet
        mesecons_pressureplates:pressure_plate_stone_off
        mcl_mushrooms:brown_mushroom_block_cap_100110
        mcl_stairs:stair_wood
        mcl_villages:stonebrickcarved
        mcl_core:ice
        mcl_doors:wooden_door_t_1
        mcl_itemframes:item_frame
        mcl_doors:wooden_door_b_1
        mcl_walls:stonebrick_0
        mcl_doors:trapdoor_open
        mcl_mushrooms:brown_mushroom_block_cap_100100
        mcl_stairs:stair_cobble
        mcl_crafting_table:crafting_table
        mcl_flowers:tulip_red
        mcl_stairs:stair_sandstone_outer
        mcl_walls:cobble_3
        mcl_core:brick_block
        mesecons_torch:mesecon_torch_on_wall
        mcl_furnaces:furnace
        mcl_colorblocks:hardened_clay_red
        mcl_books:bookshelf
        mcl_cauldrons:cauldron_2
        mcl_core:water_flowing
        mcl_stairs:stair_sprucewood
        mcl_stairs:slab_stone_double
        mcl_stairs:slab_stone
        mcl_doors:jungle_trapdoor_open
        mcl_mushrooms:red_mushroom_block_cap_100001
        mcl_core:glass
        mcl_ocean:sea_lantern
        mcl_stairs:slab_sprucewood
        mcl_walls:cobble_9
        mesecons_walllever:wall_lever_on
        mcl_doors:iron_trapdoor_open
        mcl_monster_eggs:monster_egg_stonebrickcracked
        mcl_walls:stonebrick_9
        mcl_beds:bed_red_bottom
        mcl_core:packed_ice
        mcl_stairs:slab_cobble
        mcl_walls:stonebrick_12
        mcl_flowerpots:flower_pot_oxeye_daisy
        mcl_stairs:stair_stonebrickcracked
        mcl_walls:stonebrick_6
        mcl_walls:stonebrick_3
        mcl_core:darktree
        mcl_walls:cobble_12
        mcl_farming:potato
        mcl_farming:soil_wet
        mcl_farming:wheat
        mcl_core:podzol
        mcl_core:acaciatree
        mcl_mushrooms:brown_mushroom_block_cap_100101
        mcl_core:dirt_with_grass
        mcl_mushrooms:brown_mushroom_block_cap_101001
        mcl_mushrooms:brown_mushroom_block_cap_101000
        mcl_mushrooms:brown_mushroom_block_stem
        mcl_wool:purple_carpet
        mcl_flowers:sunflower
        mcl_mushrooms:red_mushroom_block_cap_000101
PS D:\Portables\minetest\minetestmapper-20200328-win64>

The following PNG file is the result I obtained. map

It seems that minetestmapper can not generate picture with unknown nodes.

Is it possible to improve minetestmapper to fix this issue?

Or it there any way to bypass these unknown objects?

Thanks.

sfan5 commented 3 years ago

see https://github.com/minetest/minetestmapper/issues/75#issuecomment-750878015

CC-Hsu commented 3 years ago

Hi, sfan5,

Thanks a lot for your help.

I apply the enhanced color.txt (below I rename it to colors-mineclone2_0.69.0.txt) and I obtain my current map successfully, although there are some flower pot color are not set. 😀

PS D:\Portables\minetest\minetestmapper-20200328-win64> & .\minetestmapper.exe  -i "D:\Portables\minetest-5.4.1-win64\worlds\mineclone" -o ./map.png --colors ./colors-mineclone2_0.69.0.txt
Unknown nodes:
        mcl_flowerpots:flower_pot_oxeye_daisy
        mcl_flowerpots:flower_pot_tulip_orange
        mcl_flowerpots:flower_pot_tulip_white
        mcl_flowerpots:flower_pot_allium
        mcl_flowerpots:flower_pot_blue_orchid
        mcl_flowerpots:flower_pot_azure_bluet
PS D:\Portables\minetest\minetestmapper-20200328-win64>

map

Thanks again.

Calinou commented 3 years ago

Should we make minetestmapper abort if it only generates background color pixels, then complain about a likely invalid colors.txt? This would make troubleshooting easier.