Angeldust

YouTube Twitch Facebook Instagram Discord Twitter
Steam (Windows, macOS, Linux) Windows iTunes App Store

Terrain importing tool

dans English dans Forums





Message 1–8 sur 8

1


Auteur du sujet

par

obi-

4 mois plus tôt


Last livestream we talked about importing terrain into Angeldust using heightmaps. This is that, the tool to do that. The tool supports importing terrain using heightmaps, colored images to choose the blocks, masks for oceans, and masks to place trees. The settings to create a world are inside a json file, which tells the tool how to build the world: what blocks/trees to use, the png files and some other special settings (more on that at the bottom of this post) Here are the files: - generate_terrain.py: https://cdn.discordapp.com/attachments/512236322291712002/1253296762366595092/generate_terrain.py?ex=66755711&is=66740591&hm=cbc0d2ac775b3a794c5eeed4fe83e8d490bb56b54f6a7e86eb717f9161af8930& - block_data.py: https://cdn.discordapp.com/attachments/512236322291712002/1253296763205320805/block_data.py?ex=66755711&is=66740591&hm=22d1f2d9df95af7e285ebb6429115a5c7cc6fdc53b9d75535861d6b73b472ed5& - readme.txt: https://cdn.discordapp.com/attachments/512236322291712002/1253296762723237938/readme.txt?ex=66755711&is=66740591&hm=6fdf7ea3d2bf1bcf91e77a911c2ddffab3e209d765864dc37b1d5d286c4c7c15& (yes the files are hosted on discord and links must be this long, otherwise they won't work) Here are three example worlds: I made the heightmaps and other stuff using World Machine v4031, for 2 of these worlds I've included the worldmachine source file. The zips also contain the already generated chunk files, if anyone doesn't want to run the python scripts. Valley world images: https://imgur.com/a/t0rrN3T setup folder: https://cdn.discordapp.com/attachments/512236322291712002/1253272859321700423/00_valley.zip?ex=667540ce&is=6673ef4e&hm=b591e44be8a92719b760aa5e9b6cd04221d9c5af3a9a30aefa5011db3de0fc27& Ice world images: https://imgur.com/a/W6RfKKU setup folder: https://cdn.discordapp.com/attachments/512236322291712002/1253272890317602876/01_ice.zip?ex=667540d5&is=6673ef55&hm=156bee83313aa30f46c4899c8d4cce3f0026d43cc1a720feb205d866b762a306& Island world images: https://imgur.com/a/5Pdizjg setup folder: https://cdn.discordapp.com/attachments/512236322291712002/1253272911515488298/02_island.zip?ex=667540da&is=6673ef5a&hm=ede62c8c701a91b99c60b10d207c09259775bf61e0f2d55c5acff5f38bfe2cab& The tool also allows you to import images into the game, here's a setup for that: images: https://imgur.com/a/IkQsykb setup folder: https://cdn.discordapp.com/attachments/512236322291712002/1253272943728005140/03_just_blocks.zip?ex=667540e2&is=6673ef62&hm=403c00f35956f0085145439009488afb48f1fa674cac9b773fa43460de0dc0fc& Some early images of terrain that isn't scaled right for the 64 block limit: https://imgur.com/a/UGCXUxn And some fun images that pop up when you run the tool: https://imgur.com/a/M1FPhLS --- Some instructions --- Place generate_terrain.py and block_data.py in the folder where you want to create chunk files, then in the same folder add a folder containing json and png files for the terrain (one of the four extracted zips included in this forum thread will work). run examples: generate_terrain.py help generate_terrain.py valley\valley.json generate_terrain.py ice\ice.json generate_terrain.py island\island.json generate_terrain.py just_blocks\just_blocks.json just_blocks/ff.png generate_terrain.py just_blocks\just_blocks.json just_blocks/logo.png --- Help printout from the python file --- .png inputs: blockmap - rgb 8bit image heightmap - grayscale 8bit image oceanmap - mask for ocean blocks treemap - mask for tree placement place these png files in a folder together with a .json file json file structutre example: { "claimed_by": "account_name", "blockmap": "blockmap.png", "heightmap": "heightmap.png", "oceanmap": "oceanmap.png", "treemap": "treemap.png", "blocks": ["Rock", "Grass"...], "trees": ["Spruce","Elm"...], "override_block_color": {"Dirt": "Sand", "Gravel": [45, 50.0, 70.0]}, "just_blocks": false, "random_seed": 123, "ocean_expand": true, } "claimed_by": name of claim owner "blocks": list of blocks to use "trees": list of trees to use "override_block_color": dictionary of blocks and their replacement colors, either name of block you want it to take the color from, or hsv values "random_seed": seed for tree type selection and height randomisation "ocean_expand": expand the ocean to fill every part of the map that is lower than the ocean "just_blocks": for when you want to specify the png files through cmd arguments example: generate_terrain.py just_blocks.json blockmap.png heightmap.png oceanmap.png treemap.png everything except "blockmap" and "blocks" is optional. if "just_blocks" is used, "blockmap" is not needed


# 2

par

Loki The Witful

4 mois plus tôt


Wow omg! I can’t wait to try this and see what madness I can do hehe


# 3

par

Hummm

4 mois plus tôt


my kind of "building" :)



# 5

par

Loki The Witful

4 mois plus tôt


Some of my first test Treasure island! https://imgur.com/a/jE8Jqye


# 6

par

Loki The Witful

4 mois plus tôt


Large island test https://imgur.com/a/CoRCl6J


# 7

par

Loki The Witful

3 mois plus tôt


More test hehe https://imgur.com/a/W5Gd8iT


# 8

par

Loki The Witful

3 mois plus tôt


This is a fun project I made using obi’s terrain tool Maze https://imgur.com/a/r7t5JHA It takes about 9 minutes to get out Limited time download link for the chunk files: https://we.tl/t-Vppya4Lsux


Message 1–8 sur 8

1