eranimo / hexgen Goto Github PK
View Code? Open in Web Editor NEWA Python-based hexagonal world map generator
License: GNU General Public License v3.0
A Python-based hexagonal world map generator
License: GNU General Public License v3.0
Hexgen is beautiful! It does everything I've been looking for for world generation, building detailed data about the world and exporting it to JSON, just like I need... except it puts it on a flat map.
Would it be possible to extend this concept to the generation of a spherical hex map (ie. the subdivided icosahedron "sphere")?
I was generating with the "num_territories" param set to 10, and the size set to 200. It crashed when merging barren territories
Making 10 territories Merging barren territories Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/__init__.py", line 240, in generate hex_grid = MapGen(params=params, debug=debug) File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/mapgen.py", line 248, in __init__ self.generate_territories() File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/mapgen.py", line 331, in generate_territories if t.avg_temp < 0 and (avg_x / self.hex_grid.size) < 0.5: File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/territory.py", line 47, in avg_temp return round(sum([h.temperature for h in self.members]) / self.size, 2) TypeError: unsupported operand type(s) for +: 'int' and 'tuple'
Hi, I am using python 3.9 and when generating a map I get a MemoryError: Stack Overflow
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.