Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Inspired Terrain

Author
Message
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 9th Apr 2006 11:32 Edited at: 9th Apr 2006 11:39
Okay, just got that new game... you get to figure out which one. Anyway, it inspired me to try and do that style of terrain in DBPro. Well, here's what I got. Not too shabby. It's still a work in progress, but I think it's decent. And no, I'm not comparing it to that game's terrain by any means. But you can see the inspiration.

Would like feedback. There are a few minor issues I am aware of, but I'll keep quiet in hopes of getting more feedback.

Enjoy.

Edit: PS. Ignore the name (I was just thinking in terms of the concept when I named it). And here's a screenshot:




Open MMORPG: It's your game!

Attachments

Login to view attachments
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 9th Apr 2006 17:05
Don't know which game it's from, but it's good anyway.

Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 9th Apr 2006 22:08
Awesome

Theme park simulator wip

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 10th Apr 2006 14:27
Looks pretty good. Downloading.

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.dbspot.com
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 11th Apr 2006 13:53
Nice idea. Food for thought - might want to look at optimising the code somehow.
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 11th Apr 2006 19:39
Working on it. One step I'm taking is dividing the update area into quadrants and updating only one section per frame. This helps to distribute the load.


Open MMORPG: It's your game!
Evil Booger
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: My evil lair
Posted: 14th Apr 2006 06:44
Was the game Metal Gear Solid 3: Snake Eater

boogers will take over the world
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 29th Apr 2006 04:45
I think it was Oblivion

NARUTO IS THE NINJA.....not really

WIP...4 Elements
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 1st May 2006 00:04 Edited at: 1st May 2006 02:39
That could be it.

Here's an update. A little more artwork. The code has been optimized quite a bit (if you are getting 60+ FPS, you can try setting the Sync Rate to 0 to get a higher FPS if you want).

Also added is a parser text file (Statics.txt). This file makes it easy to modify the Static Objects. So now the entire "zone" can be modified without changing the code. Change the Advanced Terrain object and associated textures. Change the Color Map.png file to tell the code where to place the static objects. And finally, add in your own static objects and textures, and adjust the Statics.txt file accordingly (instructions are in the file). Enjoy!

Edit: Note, this was made using 5.9 and may not work properly in 6u10. For 6u10, try changing Instance Object to Clone Object.

Brought to you by the Open Source MMORPG Project!


Open MMORPG: It's your game!

Attachments

Login to view attachments
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 1st May 2006 00:06 Edited at: 1st May 2006 00:06
And here is a screenshot.




Open MMORPG: It's your game!

Attachments

Login to view attachments
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 1st May 2006 02:49
Probably something they "fixed" in U6 but I get variable name max not valid (I fixed thisby replacing them with _max) and an array subscripts out of bounds error at line 256 [supposedly this line : StaticStats(i).Fog=Val(PFile(i,12)) ].

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 1st May 2006 11:08
Thanks for giving it a go LiT. Yeah, I'm probably not going to upgrade to 6.0 until it's a little more stable. The 'variable name not valid' I can live with, but the 'array subscript out of bounds' is an issue. Also, the fact that Object Screen X() and Object In Screen do not work properly with Instanced Objects has me concerned as well.

It's odd that that particular line would give it a problem. I'm thinking this one...
Static(i,0)=Load_Static(i)

...for no reason other than if the code went through the first 12 parts of the array, why stop on the last one? It looks like the text file is loading correctly, so there should be 13 items (you can check the text file).

Anyway, here's the .exe file if you want to try it straight off. Just export the exe to the same folder as all the media.
http://forum.openmmo.co.uk/index.php?action=dlattach;topic=288.0;attach=1298


Open MMORPG: It's your game!
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 1st May 2006 23:14 Edited at: 1st May 2006 23:15
The exe works fine. The only place it slows down is when walking through the purple flowers. The U6 array error goes away if I add one element to the PFile()'s second demension, but the code is way off. There is something weird there lol.

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 16th Jun 2006 21:19
Updated. Still DBPro 5.9.

Demo


Open MMORPG: It's your game!

Login to post a reply

Server time is: 2024-11-23 03:26:57
Your offset time is: 2024-11-23 03:26:57