[Abandoned Fork] Squaresville C [squaresville]

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

[Abandoned Fork] Squaresville C [squaresville]

by duane » Post

Squaresville is a world full of ruinous cities. Unlike the original mod, this is a C++ "mapgen", in its own fork of Minetest. For those who've seen my earlier mods, this fork incorporates most of Geomoria, Fun Caves, Zigg, Exeter, Passages, Chaos, Loud Walking, and Big Trees.

Note that this is not a mod -- you can't just copy it into your mods directory and expect it to run. It's a mapgen of sorts, so the entire game has to be compiled with it, in the same way you'd compile Minetest normally. This makes it inconvenient, but faster than lua. At the same time, it's not strictly a mapgen, so don't expect to see it in the main branch of the game any time soon.

If you absolutely refuse to compile, you can try this appimage (for Linux) or this windows binary. For Linux, just make the appimage executable (chmod u+x *.AppImage), then run it (./minet*AppImage). The windows version should work like any other windows program. (See also sfan's windows builds.) Note that I don't have the resources to test binaries exhaustively (I don't have windows at all), so they may not work. If you have problems, first try installing the normal minetest binary for your system, then try my binary.

The mapgen produces some nice wilderness with rivers, roads, and an occasional grid of streets with ruins scattered about. There are undergound passages, dungeon geomorphs, and pyramids to explore. The cave system is based on Fun Caves with a few tweaks. It's not strictly dependent on minetest_game, but it does use some of the game's nodes, such as doors and different types of stone.

There is a chaos dimension, accessible with the Trump of Chaos, full of familiar terrain twisted into bizarre shapes. High above, is a network of glass and steel pods, assembled by unknown entities, that protect samples of a variety of plants and animals.

Using the geomoria-based geomorph system, you can add any sort of ruin or dungeon you can imagine with simple lua code. You can also modify or create new cave biomes as easily as surface biomes. The results will be placed by the C code. See the lua documentation.

For the curious, the Lua versions of Squaresville and Fun Caves took about a full second to generate a "chunk" of terrain on my system. This version averages around 150 ms per chunk, so about six times faster.

I strongly recommend my bad_terrain, booty, inspire, nmobs, status, and xlocate mods with this mapgen, as they handle treasure, terrain properties, etc. However, with a bit of tweaking, you can get other treasure and mob mods to work, or just ignore them.

This is a work in progress.

Screenshots
Spoiler
Image
Image
Image
Image
Image
Image
Image
Image
Image
The source is available on github.

Original Code: LGPL2
Original Textures: CC-BY-SA and CC0

https://github.com/duane-r/minetest/arc ... sville.zip


Edit: I'm no longer maintaining this.
Attachments
t11.jpg
t11.jpg (657.62 KiB) Viewed 3109 times
t02.jpg
t02.jpg (862.78 KiB) Viewed 3109 times
t16.jpg
t16.jpg (570.9 KiB) Viewed 3109 times
Last edited by duane on Tue May 28, 2019 08:15, edited 23 times in total.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Problems

by duane » Post

Problems:

- Needs option to ruin geomoria
- Possible memory abuse
- Buildings are not ruined (and not usable either)
- Needs lua integration for cave biomes
- Needs lua integration for geomorphs
- Needs option to turn off lights in geomoria
- Needs settable parameters
- No cave decorations or biomes
- Non-repeatable
- Not enough ruins
- No water in the heights


Not Problems (won't fix):

- Cities are still basically flat despite being covered by terrain.
- Jungle trees are too far apart.
- Land rises up to meet the roads.
- "My guy can run over blocks without jumping." (Shhh. It's a secret.)
- No floating islands (Don't like 'em.)
- Pyramids are hard.
- Rivers are flat and slop out near ruins.
- "The sky's really dark." (I like it like that.)
Attachments
t07a.jpg
t07a.jpg (995.57 KiB) Viewed 3109 times
t11.jpg
t11.jpg (651.24 KiB) Viewed 3109 times
Last edited by duane on Mon Nov 06, 2017 04:19, edited 15 times in total.
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Fork] Squaresville C [squaresville]

by azekill_DIABLO » Post

yay! +1
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

Added underground passages and shafts (which occasionally go somewhere).
Spoiler
Image

Image

Image
Attachments
t21.jpg
t21.jpg (890.69 KiB) Viewed 3109 times
t23.jpg
t23.jpg (825.13 KiB) Viewed 3109 times
t24.jpg
t24.jpg (478.65 KiB) Viewed 3109 times
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Fork] Squaresville C [squaresville]

by azekill_DIABLO » Post

they glow, apparently. or it was for debug.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

azekill_DIABLO wrote:they glow, apparently. or it was for debug.
Definitely debug.

Now I'm working on pyramids.
Spoiler
Image

Image
Attachments
t29.jpg
t29.jpg (790.42 KiB) Viewed 3109 times
t28.jpg
t28.jpg (726.88 KiB) Viewed 3109 times
Last edited by duane on Wed Sep 27, 2017 05:50, edited 1 time in total.
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Fork] Squaresville C [squaresville]

by azekill_DIABLO » Post

woooo. this mapgen should be merged in minetest, i would always use it.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
the_raven_262
Member
Posts: 343
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: [Discord unfortunately] corvus262

Re: [Fork] Squaresville C [squaresville]

by the_raven_262 » Post

I might be dumb or something, but i compiled this fork i couldn't find the mapgen when creating a new world.
And I can't resist from trying this one out! :D

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

the_raven_262 wrote:I might be dumb or something, but i compiled this fork i couldn't find the mapgen when creating a new world.
And I can't resist from trying this one out! :D
Squaresville should be the last choice in the drop-down list. However, if you've cloned the project, you have to remember to checkout the squaresville branch in git. The master branch is just a copy of the regular development branch. I may try to swap them at some point. If you download the zip file, you only get the squaresville branch.

Also note that I've got a mod tracked in the default game which does nothing but create some new nodes. It might get in the way if you forget that it's there, since it gets selected automatically. Of course, if you change branches, it should go away by itself.
Believe in people and you don't need to believe anything else.

User avatar
the_raven_262
Member
Posts: 343
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: [Discord unfortunately] corvus262

Re: [Fork] Squaresville C [squaresville]

by the_raven_262 » Post

A road between two towns.
Image
It works :)

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [Fork] Squaresville C [squaresville]

by paramat » Post

Good work, the lua version looks impressive too.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

paramat wrote:Good work, the lua version looks impressive too.
Thanks, guys.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

Added lots of trees.
Spoiler
Image

Image
Edit: And fixed the crappy game tree placement.
Attachments
t04.jpg
t04.jpg (933.82 KiB) Viewed 3109 times
t03.jpg
t03.jpg (958.36 KiB) Viewed 3109 times
Believe in people and you don't need to believe anything else.

User avatar
v-rob
Developer
Posts: 970
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

Re: [Fork] Squaresville C [squaresville]

by v-rob » Post

Is this Squaresville on the ground instead of way up in the air?

(And is the Lua version that way? I don't think it is.)
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

v-rob wrote:Is this Squaresville on the ground instead of way up in the air?

(And is the Lua version that way? I don't think it is.)
This Squaresville is the main world. You can make the lua version the main world, if you set "singlenode" on in the mod's settings.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

I've just pushed the geomoria code. I'm going to use that as the basis for creating some more interesting ruins on the surface.
Spoiler
Image

Image

Image
Attachments
t09.jpg
t09.jpg (357.71 KiB) Viewed 3109 times
t08.jpg
t08.jpg (231.96 KiB) Viewed 3109 times
t05.jpg
t05.jpg (322.23 KiB) Viewed 3109 times
Believe in people and you don't need to believe anything else.

User avatar
Devy
Member
Posts: 133
Joined: Sat Jan 21, 2017 02:31
GitHub: DevyHeavy
In-game: devy

Re: [Fork] Squaresville C [squaresville]

by Devy » Post

This is really cool. If you keep it up and refine it, then I hope it can be merged with the main Minetest branch someday. Maybe you should give some instructions (maybe even a compiled version or installer?) so that other people can help test it without too much hassle.

Minetest as of now is very barebones and doesn't have many interesting features in its terrain when using the basic mapgens. I'm not saying there is anything wrong with that, but having an option for more interesting terrain and structures right out of the box may help Minetest become more popular.

The only problem I see with it is that there are a lot of features to be reviewed before it would ever make it into Minetest officially, and it would have to be maintained by someone throughout Minetest's development.

I really want to see this go far, so if you need anything specific tested just ask.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

Devy wrote:This is really cool. If you keep it up and refine it, then I hope it can be merged with the main Minetest branch someday. Maybe you should give some instructions (maybe even a compiled version or installer?) so that other people can help test it without too much hassle.

Minetest as of now is very barebones and doesn't have many interesting features in its terrain when using the basic mapgens. I'm not saying there is anything wrong with that, but having an option for more interesting terrain and structures right out of the box may help Minetest become more popular.

The only problem I see with it is that there are a lot of features to be reviewed before it would ever make it into Minetest officially, and it would have to be maintained by someone throughout Minetest's development.

I really want to see this go far, so if you need anything specific tested just ask.
Honestly, I wouldn't hold my breath for that, if I were you. I've already done a lot of things that the developers would likely grit their teeth over, and I intend to do more. This is mostly for my own entertainment.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

I got tired of dark caves, so I started on the cave biome system. The data is in place, but only one biome is active so far (and not very active yet).
Spoiler
Image

Image
It's not caverealms, but it'll do for now.
Attachments
t12.jpg
t12.jpg (346.14 KiB) Viewed 3109 times
t11.jpg
t11.jpg (448.91 KiB) Viewed 3109 times
Believe in people and you don't need to believe anything else.

User avatar
TumeniNodes
Member
Posts: 2941
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [Fork] Squaresville C [squaresville]

by TumeniNodes » Post

Can't wait to check this out duane!!! My pc will probably get along better with this fork than it's Daddy :P
A Wonderful World

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

Ok, the cave biomes are in place. I should probably work on more ruins next, or even try to sweep up all the loose constants into proper settings.
Spoiler
Image

Image
Attachments
t12.jpg
t12.jpg (505.99 KiB) Viewed 3109 times
t11.jpg
t11.jpg (583.53 KiB) Viewed 3109 times
Believe in people and you don't need to believe anything else.

User avatar
Devy
Member
Posts: 133
Joined: Sat Jan 21, 2017 02:31
GitHub: DevyHeavy
In-game: devy

Re: [Fork] Squaresville C [squaresville]

by Devy » Post

It would be really cool to be able to find partially buried (maybe even some fully) ruins. They could juuust barely be sticking out of the surface for you to find.

You could be an archeologist!

Also, I haven't had time to look at where you get the ruins from, but are you generating the ruins procedurally? Or do you have a sort of schematic way of placing/making/generating ruins?
Last edited by Devy on Fri Sep 29, 2017 04:19, edited 1 time in total.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

Devy wrote:Also, I haven't had time to look at where you get the ruins from, but you generating the ruins procedurally? Or do you have a sort of schematic way of placing/making/generating ruins?
So far, they're all procedural, at the chunk level.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Fork] Squaresville C [squaresville]

by duane » Post

Devy wrote:It would be really cool to be able to find partially buried (maybe even some fully) ruins. They could juuust barely be sticking out of the surface for you to find.

You could be an archeologist!
You mean like this?

Image

Yeah, I can probably do that. : )

I've about decided that planting treasure would be better left to a mod though. It's easy to calculate where the ruins are, since they follow the usual big squares, and are made of cobble instead of stone.
Attachments
t11.jpg
t11.jpg (744.68 KiB) Viewed 3109 times
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Fork] Squaresville C [squaresville]

by azekill_DIABLO » Post

amazing as always. it's a brand new world you got there. +1
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest