Olvand is a little multiplayer sandbox RPG, where the players live in self-built towns and can go on all kinds of adventures together. Imagine living with your friends in a small town in the mountains, or creating a new group of friends in a pub in the metropole you all live in. There will be several minigames the inhabitants of a server can play together, among which will be combat based games like King of the Hill or Capture the Flag. You will be able to play against other people in your city, or as a city against another city, or as a whole server against another server. The combat works with self-built guns, in which all kinds of powers can be combined to create unique effects. You can sign up to be a tester on olvand.com.

Some pictures of what I want to add in the future:

Image RSS Feed Latest Screens
Building a little town together A fishing contest Mining for materials
Blog RSS Feed Report abuse Latest News: The cave generator

0 comments by Woseseltops on Jul 20th, 2014

Hi all, all right then: the cave generator. The nice thing about generator algorithms is that they are almost standalone pieces of code; they don't depend on anything already in the game, and thus I can work on them anywhere, without access to my latest additions to the Olvand codebase, or even access to the internet. The cave generator is no different: I started it almost a year ago in the plane to Bratislava, where I had to be for a business trip, and then worked on it on and off for months in the train between my home and my job. I say months, yes, because it took my quite some time to get it right. Let me tell you why.

First attempt
So what we have is a large piece of rock, and what we want is to 'carve' a nice and interesting level out of that. How to start? My first try was to randomly take out blocks, in the hopes that caves would form naturally. Well, they did, but most of the beautiful things that emerged turned out to be unreachable by the player. This picture should give you an idea of what went wrong:


Once I saw this, I passionately started to add code that kept track of which blocks where removed, and then made sure all of these blocks where connected. After several iterations this still didn't work as intended, and with each iteration my code had almost doubled in complexity. While planning for a next iteration that made things even more complicated, I realized this all should and could work in a much simple and elegant way, so I deleted everything and started over.

The better solution
The code is now based on something which I would like to call 'the mole': an object that starts at the entrance, and digs tunnels in random directions. After every intersection, the mole makes a random decision whether to duplicate or not. If so, the cave splits in two. It works more or less like this:


This approach hopefully looks super-simple and straightforward to you, but it took me quite some time to realize this was the way to go. And on top of this, while the idea might be simple, for the implementation there all kinds of details I have to take care of. For example, the mole should never leave the piece of rock I'm working with (otherwise you get a corridor that leads to nothing), there should be a boss room that is always reachable from the entrance, etc.

And besides this all, the algorithm also keeps track of what the various blocks looks like. For example, if the mole digs north into new territory, the block should behave as a vertical corridor, but if it discovers there already is a horizontal corridor there, it should turn this into a crossing. I don't want to waste client resources for this, so this is all done server side and then sent to the client as well.

To quickly see if a new addition works as intended, the generator can also show an ascii art version of what it created. This way, I don't have to load every creation into the game before I can inspect it. [Here] [are] [some] [examples] .

Unfortunately, I've discovered that building a cave generator algorithm is one thing, but going from the the blueprint to an actual cave you walk around in is another; there are several practical hurdles to overcome... but let's save that for next week :). See you then!

If you want more development, see [twitter] or [facebook]. If you want to be a tester, you can subscribe on [olvand.com].

Media RSS Feed Latest Video
Post comment Comments  (10 - 20 of 390)
YellowGaming
YellowGaming Apr 29 2014, 3:52pm says:

Hey I'm a youtuber sort of interested in your game do you mind if I make a vid on it if i get a key?

oh lol im a small youtuber with like no influence but if you dont mind that

+2 votes     reply to comment
gamer110199
gamer110199 Apr 19 2014, 11:31am says:

Can someone help me?
When i try to run the game it is loading and then not responding
What can i do?

+2 votes     reply to comment
gamer110199
gamer110199 Apr 19 2014, 6:42pm replied:

I can not fix it what ever i try.
My video card is up to date and the cmd version to launch it did not work as well plz help
I really want to play the game.

+2 votes     reply to comment
Woseseltops
Woseseltops Apr 21 2014, 1:33pm replied:

Hi gamer110199! Sorry, I missed your comment here. Please use the forums Desura.com or contact at me olvandgame@gmail.com for help. Also, this page Desura.com could be useful to you.

+1 vote     reply to comment
ZeroInFo56
ZeroInFo56 Apr 16 2014, 9:22am says:

I want an inviiiiiiite xP
Seriously can't wait to try this game out.

+3 votes     reply to comment
szastak
szastak Feb 22 2014, 8:20pm says:

Wow , its looks awesome i can wait for the gift code :D

+2 votes     reply to comment
indoge
indoge Jan 31 2014, 6:24pm says:

looks amazing been waiting for something to take my social life away lol

+3 votes     reply to comment
Wildhells
Wildhells Jan 25 2014, 3:56pm says:

Nice trailer ;)

+3 votes     reply to comment
Woseseltops
Woseseltops Jan 5 2014, 6:34am replied:

It is not only allowed, it is encouraged! In fact, you get your key a lot faster when you can prove you are willing to make a video.

+3 votes     reply to comment
CatBerry
CatBerry Jan 5 2014, 6:31pm replied:

Well, actualy i am looking for a good reason to start streaming again. I did neglegt my stream because i had some bad depressions.... (who wouldnt when losing theire father and then havbing the first birthday without him... don't feel bad now im just very open about this stuff)
Anways if you want to check out my stream channel: De.twitch.tv
its nothing super fancy though ^^
oh and i applied for beta already i think o.o wish me luck xD

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Olvand
Platform
Windows
Developed By
Woseseltops
Engine
Custom Built
Contact
Send Message
Official Page
Olvand.com
Release Date
Released Aug 18, 2012
Game Watch
Track this game
Share
Community Rating

Average

9.3

67 votes submitted.

You Say

-

Ratings closed.

Highest Rated (5 agree) 10/10

Looks really interesting and really needs a good playerbase!

Oct 8 2012, 8:30am by fastfire10

Style
Genre
Role Playing
Theme
Fantasy
Players
Multiplayer
Project
Indie
Boxshot
Boxshot
Twitter

Latest tweets from

It can take up to a few hours for tweets to begin appearing.

Embed Buttons

Promote Olvand on your homepage or blog by selecting a button and using the HTML code provided (more).

Olvand Olvand
Olvand
Statistics
Rank
543 of 22,775
Last Update
5 days ago
Watchers
514 members
News
97
Reviews
20