473,321 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Random Map Progress

I asked for some advice a few months back about how to generate a
"random" map for a game I was writing. I got sidetracked but here is
the latest version of it in case anyone is interested:

http://www.ogreview.org/view_map.php

It's going to need a lot of refirnement before it is going to be good
enough to be useful of course.

Oct 10 '07 #1
6 1425
sk**********@googlemail.com wrote:
I asked for some advice a few months back about how to generate a
"random" map for a game I was writing. I got sidetracked but here is
the latest version of it in case anyone is interested:

http://www.ogreview.org/view_map.php

It's going to need a lot of refirnement before it is going to be good
enough to be useful of course.
Looks ok, seemed a little slow, but I don't know what it's doing in
the background :-)

What game are you writing?
Oct 10 '07 #2
On Oct 10, 4:03 pm, Tyno Gendo <tyno.ge...@example.netwrote:
skulkrinb...@googlemail.com wrote:
I asked for some advice a few months back about how to generate a
"random" map for a game I was writing. I got sidetracked but here is
the latest version of it in case anyone is interested:
http://www.ogreview.org/view_map.php
It's going to need a lot of refirnement before it is going to be good
enough to be useful of course.

Looks ok, seemed a little slow, but I don't know what it's doing in
the background :-)

What game are you writing?
It is a bit slow but that's not a problem as it will be a turn-based
game where the map will be generated in a way that the players wont
notice, I intend generating maps in 100 x 100 (for example) sized
blocks and then generating a new block whenever a player explores
beyond what is currently generated.

Each block will be in effect an island, to avoid the trouble of having
to make each block match up with it's neighbour.

The game doesn't have a name yet, but it is loosely based on the old
1980's game "Empire" if you're familiar with that. The map is fairly
key to the game so I'm not coding that until I am fairly happy with
the map although most of the ideas are already down on paper.

I'll post updates on here if there is any interest.

Oct 11 '07 #3
On 11 okt, 08:11, "skulkrinb...@googlemail.com"
<skulkrinb...@googlemail.comwrote:
On Oct 10, 4:03 pm, Tyno Gendo <tyno.ge...@example.netwrote:
skulkrinb...@googlemail.com wrote:
I asked for some advice a few months back about how to generate a
"random"mapfor a game I was writing. I got sidetracked but here is
the latest version of it in case anyone is interested:
>http://www.ogreview.org/view_map.php
It's going to need a lot of refirnement before it is going to be good
enough to be useful of course.
Looks ok, seemed a little slow, but I don't know what it's doing in
the background :-)
What game are you writing?

It is a bit slow but that's not a problem as it will be a turn-based
game where themapwill be generated in a way that the players wont
notice, I intend generating maps in 100 x 100 (for example) sized
blocks and then generating a new block whenever a player explores
beyond what is currently generated.

Each block will be in effect an island, to avoid the trouble of having
to make each block match up with it's neighbour.

The game doesn't have a name yet, but it is loosely based on the old
1980's game "Empire" if you're familiar with that. Themapis fairly
key to the game so I'm not coding that until I am fairly happy with
themapalthough most of the ideas are already down on paper.

I'll post updates on here if there is any interest.
Looks nice! Did you resolve your problems with the 'dead end' lakes? I
would like it if you could post updates.

Oct 11 '07 #4
On Oct 11, 12:05 pm, Franko <frankkoorns...@gmail.comwrote:
On 11 okt, 08:11, "skulkrinb...@googlemail.com"

<skulkrinb...@googlemail.comwrote:
On Oct 10, 4:03 pm, Tyno Gendo <tyno.ge...@example.netwrote:
skulkrinb...@googlemail.com wrote:
I asked for some advice a few months back about how to generate a
"random"mapfor a game I was writing. I got sidetracked but here is
the latest version of it in case anyone is interested:
http://www.ogreview.org/view_map.php
It's going to need a lot of refirnement before it is going to be good
enough to be useful of course.
Looks ok, seemed a little slow, but I don't know what it's doing in
the background :-)
What game are you writing?
It is a bit slow but that's not a problem as it will be a turn-based
game where themapwill be generated in a way that the players wont
notice, I intend generating maps in 100 x 100 (for example) sized
blocks and then generating a new block whenever a player explores
beyond what is currently generated.
Each block will be in effect an island, to avoid the trouble of having
to make each block match up with it's neighbour.
The game doesn't have a name yet, but it is loosely based on the old
1980's game "Empire" if you're familiar with that. Themapis fairly
key to the game so I'm not coding that until I am fairly happy with
themapalthough most of the ideas are already down on paper.
I'll post updates on here if there is any interest.

Looks nice! Did you resolve your problems with the 'dead end' lakes? I
would like it if you could post updates.- Hide quoted text -

- Show quoted text -
I've not started working on rivers/lakes as yet but I do have some
ideas.

However, I've had a completely different idea about how to generate
maps that will work with my game design better as I want it to produce
islands, so I am going to explore that first to see how it turns out.

I'll update here when I've got something worth showing.
Oct 11 '07 #5
On 11 okt, 13:18, "skulkrinb...@googlemail.com"
<skulkrinb...@googlemail.comwrote:
On Oct 11, 12:05 pm, Franko <frankkoorns...@gmail.comwrote:


On 11 okt, 08:11, "skulkrinb...@googlemail.com"
<skulkrinb...@googlemail.comwrote:
On Oct 10, 4:03 pm, Tyno Gendo <tyno.ge...@example.netwrote:
skulkrinb...@googlemail.com wrote:
I asked for some advice a few months back about how to generate a
"random"mapfor a game I was writing. I got sidetracked but here is
the latest version of it in case anyone is interested:
>http://www.ogreview.org/view_map.php
It's going to need a lot of refirnement before it is going to be good
enough to be useful of course.
Looks ok, seemed a little slow, but I don't know what it's doing in
the background :-)
What game are you writing?
It is a bit slow but that's not a problem as it will be a turn-based
game where themapwill be generated in a way that the players wont
notice, I intend generating maps in 100 x 100 (for example) sized
blocks and then generating a new block whenever a player explores
beyond what is currently generated.
Each block will be in effect an island, to avoid the trouble of having
to make each block match up with it's neighbour.
The game doesn't have a name yet, but it is loosely based on the old
1980's game "Empire" if you're familiar with that. Themapis fairly
key to the game so I'm not coding that until I am fairly happy with
themapalthough most of the ideas are already down on paper.
I'll post updates on here if there is any interest.
Looks nice! Did you resolve your problems with the 'dead end' lakes? I
would like it if you could post updates.- Hide quoted text -
- Show quoted text -

I've not started working on rivers/lakes as yet but I do have some
ideas.

However, I've had a completely different idea about how to generate
maps that will work with my game design better as I want it to produce
islands, so I am going to explore that first to see how it turns out.

I'll update here when I've got something worth showing.- Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -
You could have a look at this http://www.idevgames.com/forum/archi...hp/t-5136.html

Looking at this I also had an idea which is a mix of some of the
others.
1. divide your main area in a number of sub areas (for example 9)
2. assign a random height to each sub area (independent of its
neighbours)
3. go to sub area 1 and divide this into a number of sub sub areas
(again, let's say 9)
4. for each sub sub area that is a neighbour of a sub area (for
instance sub area 2) you could do (height_sa1 + height_sa2) / 2 +
rand(-x, x)
5. repeat 4 for each sub sub area and go on to the next sub area

I haven't realy thought this trough but maybe it helps :)
Oct 11 '07 #6
If anyone is interested, this is the latest version of the prototype:

http://www.ogreview.org/map/map_viewer.php

There's still a lot of work to do, rivers are not showing up correctly
for example and the coastlines are too straight as well.

I will add a legend at some stage but in essence sea is blue,
mountains grey, hills brown and plains yellow. Sometimes the rivers
show up OK, other times you get a missing image placeholder.

Once I get rivers/lakes working I will add forests and cities.

Thanks!

Nov 2 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Danny Smith | last post by:
Hi, I need to read a file and be able to: 1. Find the current position in the stream 2. Have access to a handy ReadLine() method. Obviously the FileStream class supports random access, so...
3
by: SpamProof | last post by:
I got an animated gif that is a barber pole spinning that I want to use as a progress bar. The problem is that is stops spinning (shows 1 frame) when my browser is processing a submited request...
7
by: Pepi Tonas | last post by:
I have a form that takes some time to load because it has to populate some Data. I was trying to display a form on top of it with an activity bar so that user can see that something's going on. ...
3
by: Kza | last post by:
Hi, I am currently using xerces sax parser for c++, (I use DOM too, but I think SAX is more relevant here) for processing and displaying fairly large xml files. Usually I give xerces a filename,...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
15
by: eladla | last post by:
Hi! I am creating a composite control the does some of it`s own data access. I want to display a progress bar between the time the page is loaded and the control place holder is displayed and...
39
by: Alan Isaac | last post by:
This may seem very strange, but it is true. If I delete a .pyc file, my program executes with a different state! In a single directory I have module1 and module2. module1 imports random and...
9
by: JimmyJava694 | last post by:
Hey everyone, I need help trying to mutate a String. For example.. I ask the person to input a number. Then I ask them to input a String. (The string they input can be any length, but must...
0
by: jags_32 | last post by:
Hello We use MFG-PRO as our ERP system which in turn uses Progress databases. In the old version of SQL 2000, using DTS packages, we used to set the code page via command prompts and execute DTS...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.