watabou / towngeneratoros Goto Github PK
View Code? Open in Web Editor NEWThe source code of the Medieval Fantasy City Generator
License: GNU General Public License v3.0
The source code of the Medieval Fantasy City Generator
License: GNU General Public License v3.0
It would be really nice to have the city's castle keep inside the the center of the city (with walls around it). It may not be particularly realistic but it would be really nice to have.
Is it at all possible to add a boolean to the settings that indicates whether the river should connect to the ocean?
Because large is sometimes too small :)
Hi,
I love your towngenerator. I'm interested to see if I can modify it to generator Roman or other ancient kinds of cities. I can follow along in the hx files more or less, and see what's happening. I hadn't encountered haxe before, so now I'm trying to compile things.
If I understand the haxe documentation correctly, I make a compile.hxml file with something like:
-js test.js
-main Main
in it, and then from the command line, haxe compile.hxml
. Forgive me for what must be a simple question, but the error I get is puzzling - Invalid commandline class : Main should be com.watabou.towngenerator.Main
. I switch that into my compile file, then I get other odd errors. I do have the other packages installed with haxelib.
Thank you,
Shawn
Add a unique ID (either a number or letter combo) per building, so that I can use that to note more details about the different buildings.
I love TownGeneratorOS and I'd like to work on it.
I am new to haxe. I have a problem with building the project.
$ haxe -main com.watabou.towngenerator.Main -cp Source -lib openfl:7.1.1 -lib msignal:1.2.4 -lib lime:6.1.0 -xml project.xml
Source/com/watabou/towngenerator/Main.hx:11: lines 11-33 : Invalid -main : com.watabou.towngenerator.Main does not have static function main
Am I missing something? I think it would be helpful if there is more information in README.mb file.
Thank you for your help in advance!
When I try to get the project running, i am getting an error with the lime package.
Source/com/watabou/utils/Updater.hx:3: characters 7-29 : Type not found : lime.graphics.Renderer
versions:
lime: [7.0.0]
msignal: [1.2.4]
openfl: [8.4.1]
Is there any chance of an update of the repository with the last version of the Town generator (as seen in http://fantasycities.watabou.ru)? Thanks a lot
Using Medieval Demographics Made Easy by S. John Ross [1] perhaps it would be possible to assing trades to different buildings?
Is there a way to generate c++ code out of this source?
Internet say that Haxe can generate cpp but i can find any helpful examples or documentary.
I want to try to use generated source in UE4.
add output to blender mesh file please for blender 2.9x - thanks.
Many game books will have town/city maps in them that look almost exactly like your city generator. I also see that you have a 3d rendered version called Toy Town. Is there any chance we could create some of these from images of maps in game books? Would be amazing to take them and label them and have cleaner print outs for players.
Provide some metadata to the user about buildings. As a table and maybe also some baked into the svg.
How many buildings are there? How long is the wall? How many small/medium/big buildings?
This information can hopefully make it easier for a GM user to say something more about the city.
Someone on the Azgaar FMG discord was telling me that there's a problem with larger cities producing too much recursion for the browser (on Firefox and Chrome at the least). In practice it seems the examples they gave both produce errors for me as well, but sometimes different errors; probably because of different settings we have. For example, the second one only produce errors if Improved Lots are turned off.
In any case, the problematic cities:
For me at least, this exact link causes the whole interface to be squished into the corner, totally unusable:
However, if I change the size to something other than 29, or change the seed, or indeed change anything else, everything works fine. It's just that exact combination of parameters.
In README.md
:
You'll need OpenFL and msignal to run this code, both available through haxelib.
However, msignal is pointed to Openfl repo.
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.