[Mod] Cityscape [cityscape]

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

[Mod] Cityscape [cityscape]

by duane » Mon Feb 29, 2016 10:51

This mod makes rudimentary roads and buildings. It's more of an experiment than anything, but might be fun for someone to play with. It could be terrain for zombie attack games or just blowing things up.

Roads and city terrain are located by perlin noise. Natural terrain is left alone everywhere else. Cityscape only works with the new "valleys" mapgen at the moment, because the road noise has to match the terrain. It may be possible to accomodate other mapgens in the future.

Image

The source is available on github.

Note that the original code is still available in the "original" branch on github.

Code: CC0 and others, textures: CC0 and others

Mod dependencies: default, stairs, doors

Download: https://github.com/duane-r/cityscape/archive/master.zip

Recipes:
+ Spoiler
Attachments
cityscape-14.jpg
cityscape-14.jpg (240.95 KiB) Viewed 1596 times
Last edited by duane on Wed Mar 23, 2016 09:01, edited 13 times in total.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Mon Feb 29, 2016 11:05

Among the problems I'm already aware of are:

- No rails
- No roadmarks
- No sewers
- No cars
- Roads fall into rivers
- Rivers slop over onto the roads.
- Highways frequently dive under buildings.
- Highways frequently form two levels.
- Buildings get overwritten partly or completely by different buildings.
- Highway road marks don't always show up.
- Roads tend to interfere with highways.
- Roads often go up a mountain, even if there's an easy way around.
- Problems at y chunk boundaries.
- Trees grow in the air over roads.
- Roads are uneven.
- Lighting issues
- Excessive memory use
Last edited by duane on Tue Mar 29, 2016 02:02, edited 23 times in total.
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [Mod] <Cityscape> [<cityscape>]

by cd2 » Mon Feb 29, 2016 17:16

looks cool :D
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] <Cityscape> [<cityscape>]

by Minetestforfun » Mon Feb 29, 2016 19:13

A city mapgen like that should be very interesting for shooter like subgame :)

Keep up the good work
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: [Mod] <Cityscape> [<cityscape>]

by MineYoshi » Mon Feb 29, 2016 23:28

Yes something for a shooter FPS style server!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] <Cityscape> [<cityscape>]

by paramat » Wed Mar 02, 2016 03:12

Interesting.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Wed Mar 02, 2016 12:08

I've put in ramps connecting every block with the next, except at the corners. (A four-level connection is beyond me.) You can get some serious air time shooting down these in fast mode.

Image

I also added sidewalks to avoid doors opening onto drop-offs. Next I'm thinking of making the buildings modular, with several basic types. I may put in stairs first. They all need stairs.
Attachments
c-demo-92.jpg
c-demo-92.jpg (182.72 KiB) Viewed 1595 times
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] <Cityscape> [<cityscape>]

by Don » Wed Mar 02, 2016 12:11

Nice! I can see this turning into a great mod.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Fri Mar 04, 2016 06:32

Started a new building type with "Gotham" in mind, but now I think it looks more like "General Hospital". I'm not sure if the gargoyles are appropriate.

+ Spoiler
Attachments
cityscape-03.jpg
cityscape-03.jpg (171.64 KiB) Viewed 1595 times
cityscape-02.jpg
cityscape-02.jpg (184.91 KiB) Viewed 1595 times
cityscape-01.jpg
cityscape-01.jpg (154.67 KiB) Viewed 1595 times
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Fri Mar 04, 2016 19:40

I had to put some lights in. Darkness withers the heart.

Image

Image
Attachments
cityscape-05.jpg
cityscape-05.jpg (82.83 KiB) Viewed 1595 times
cityscape-04.jpg
cityscape-04.jpg (87.52 KiB) Viewed 1595 times
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [Mod] <Cityscape> [<cityscape>]

by cd2 » Sat Mar 05, 2016 12:03

duane wrote:I had to put some lights in. Darkness withers the heart.

Image

Image

nice :D
 

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: [Mod] <Cityscape> [<cityscape>]

by Nathan.S » Sat Mar 05, 2016 13:14

This is pretty cool. Can't wait to see where this goes.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Sat Mar 05, 2016 19:09

I added streetlights and road markings. I've also put in a vacancies setting to control how many lots are left empty (for players to fill). You could conceivably have nothing but empty lots.

The terrain profiling is less picky now, so more city blocks should show up, especially near the sea. So far, I haven't seen any problems.
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] <Cityscape> [<cityscape>]

by Don » Sat Mar 05, 2016 19:55

No screenshots? You're the screenshot king.
Keep up the great work.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Sat Mar 05, 2016 19:58

Don wrote:No screenshots? You're the screenshot king.
Keep up the great work.


Oh well, IF you INSIST. I added two new building types as well. I think that's about all I can do with blocky types. All of the doors need work...

Image
Attachments
cityscape-07.jpg
cityscape-07.jpg (188.41 KiB) Viewed 1595 times
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] <Cityscape> [<cityscape>]

by paramat » Sat Mar 05, 2016 21:56

Very interesting.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Sun Mar 06, 2016 07:09

You can now adjust the size/number of buildings by setting the number of divisions in each block from one to four (three is the default). I think three looks best, but it doesn't give you a lot of interior space. (Four is downright cramped.) You can set the divisions of the X- and Z-axes separately, to make rectangular buildings.

Sadly, I still see no way to get around the ramp issue for single-building blocks, so that's not likely to improve. Likewise, changing the number of divisions between blocks would give you mismatched ramps.

Image

Don! How'd you get into my HQ?! Oh, wait...

Image
Attachments
cityscape-10.jpg
cityscape-10.jpg (72.48 KiB) Viewed 1595 times
cityscape-09.jpg
cityscape-09.jpg (227.77 KiB) Viewed 1595 times
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] <Cityscape> [<cityscape>]

by Don » Sun Mar 06, 2016 12:57

Looking good!
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
D00Med
Member
 
Posts: 712
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med

Re: [Mod] <Cityscape> [<cityscape>]

by D00Med » Sun Mar 06, 2016 23:34

This is very cool!
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

User avatar
Napiophelios
Member
 
Posts: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] <Cityscape> [<cityscape>]

by Napiophelios » Mon Mar 07, 2016 12:23

This is an excellent mod Duane!

But its would look way better if you could make your own textures for the concrete and plaster and light panels,
so there could be options with texture packs.

The ones I made for the screen shot below are too dark for most
but it looks much more modern;Default stone just looks like ass.

Image
screenshot_20160307_070800.png
screenshot_20160307_070800.png (386.86 KiB) Viewed 1595 times
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Mon Mar 07, 2016 16:21

Napiophelios wrote:But its would look way better if you could make your own textures for the concrete and plaster and light panels,
so there could be options with texture packs.


Great minds think alike. I've already worked out some different looks. The changes I've made are still based on the same texture, but I added bricks. It does need separate texture names.

Image

I'll probably do some more work on it, but right now I'm trying to get the issue of schematics bleeding over from the original landscape solved. I'm making progress, but there may not be a perfect solution. At least I've removed the overly-complicated abm.
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] <Cityscape> [<cityscape>]

by Don » Mon Mar 07, 2016 16:23

Wow Duane! That looks awesome.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Tue Mar 08, 2016 10:09

I've changed most of the textures to cityscape_ prefixes to make them easy to modify. I added floors, ceilings, roofs and sidewalks with placeholder textures.

Image
Attachments
cityscape-11.jpg
cityscape-11.jpg (152.65 KiB) Viewed 1595 times
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Mod] <Cityscape> [<cityscape>]

by rubenwardy » Tue Mar 08, 2016 10:15

There's no need to duplicate default textures - it'll make it look odd in a say 32 or 62 texture pack which doesn't support cityscape. Texture packs can override the texture of a node like this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
mod:name all texture_name.png


In overrides.txt
See doc/texture_overrides.txt
For more info (same folder as lua_api.txt)
 

User avatar
maikerumine
Member
 
Posts: 946
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

Re: [Mod] <Cityscape> [<cityscape>]

by maikerumine » Tue Mar 08, 2016 15:08

This looks like a remarkable mod, thanks for posting this!
 

User avatar
Napiophelios
Member
 
Posts: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] <Cityscape> [<cityscape>]

by Napiophelios » Tue Mar 08, 2016 22:35

its so much fun messing with textures.
Image
screenshot_20160308_172041.png
screenshot_20160308_172041.png (16.99 KiB) Viewed 1596 times
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Wed Mar 09, 2016 04:16

rubenwardy wrote:Texture packs can override the texture of a node like this:


Yet another thing I didn't know about minetest. Thanks.

And thanks to everyone for the feedback.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Wed Mar 09, 2016 04:17

Napiophelios wrote:its so much fun messing with textures.


Nice!
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Wed Mar 09, 2016 05:29

I've added gargoyles, roof boxes, and sewers. The latter can, and frequently do, intersect with caves. They always occur at the bottom of the chunk (to make the connections straight-forward), so the manholes may go down quite a way. Goblins will get in and steal your torches.

(Torches not included.)

Image

Put your sewer worker on danger money baby.

Image
Attachments
cityscape-13.jpg
cityscape-13.jpg (123.21 KiB) Viewed 1596 times
cityscape-12.jpg
cityscape-12.jpg (79.76 KiB) Viewed 1596 times
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod] <Cityscape> [<cityscape>]

by duane » Wed Mar 09, 2016 09:58

I don't know which is more terrifying -- giant sewer spiders or flying sewer sharks.

Image

Image
Attachments
cityscape-16.jpg
cityscape-16.jpg (107.49 KiB) Viewed 1596 times
cityscape-15.jpg
cityscape-15.jpg (79.46 KiB) Viewed 1596 times
 

Next

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 40 guests