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.

Newcomers DBPro Corner / need some tips to start with

Author
Message
outblaze
13
Years of Service
User Offline
Joined: 25th Jul 2011
Location: den haag NL
Posted: 26th Jul 2011 01:47
hi all,

i'm complete new to this world but i'm a fanatic gamer mainly mmorpg's and fps.

I have been reading for a while here en saw the pack that is selling here bonanza and bought it to begin with a good start. I have little experience in gaming and did some of the tutorials. To refresh my mind. In the earlier day's i made counterstrike maps and chat bots and such using vb.

Still i have some questions:

First of all:
When i have created a terrain (empty one) How can i use in in dbp for the scripting?
Same as for the characters how do i get them into te game?
And do i have to fill in the rocks and the trees and such in the map it self or adding it by scripting?

Sorry for my bad english and for the stupid questions...

best regards
Delano
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Jul 2011 12:58
There are commands for terrains and you could make the terrain in Dbpro and litle by litle adding your object to the game (houses trees and so on). You had better work in low poly objects specially if you are going to have lot of them in your game. We can make aswell our level in any 3D program that facilitates the work.All depends in how is going to be our game. If we choose to make our terrain with Dbpro, there are commands to place objects on top of it like get ground height...if we make our terrain in a 3D program and we load it to our project we need to make our own collision system....(sometimes I prefer this last method )...all depends on your skills .


cheers.

I'm not a grumpy grandpa
outblaze
13
Years of Service
User Offline
Joined: 25th Jul 2011
Location: den haag NL
Posted: 26th Jul 2011 13:35
i'm working with catography at the moment but i'm looking for something else can't make up my mind yet. Is there some kind of manual of tutorial how to make it work? i have learned allot the past days so it is time to do something new.

and how can i place my characters in the game?

sorry for the noob questings...

best regards
Delano
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Jul 2011 16:01
Quote: "Is there some kind of manual of tutorial how to make it work? "

I have not CartographyShop....but I think it is something like mapscape. You could try aswell with Deled.Try to make something easy and export to .x then use this piece of code to check.




Cheers.

I'm not a grumpy grandpa
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 26th Jul 2011 16:33
Look into the commands:

make matrix
get ground height()


It allows you to make a landscape and make objects walk around on it easily I'll try and post an example when I get home.

TheComet

outblaze
13
Years of Service
User Offline
Joined: 25th Jul 2011
Location: den haag NL
Posted: 26th Jul 2011 21:34
and whatkind is terrain maker do you advise?
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 26th Jul 2011 22:57 Edited at: 26th Jul 2011 23:01
Hello Outblaze

There many tools and functions for creating different types of terrains for different purposes. Sometimes it is best to model them seperately; usually this route is for building a static (unchanging) terrain. If you game has a dynamic terrain; something that is generated, or something that needs to change midway into your game, then the route to take is terrain generation.

These are the tools I use for static terrains:
3D World Studio
Blender

There is also the Terrain Editor

For generating your terrains, you have the advanced terrain functions in DBPRO; these work by generating a terrain out of a heightmap image.

You place characters and objects on top using GET TERRAIN GROUND HEIGHT( Terrain ID, X, Z )



here is a copy of the example file which features a terrain and character movement:




Ultimately, you will find ready made code for such things as walking characters and terrains in the Codebase and the forums. Use the search features. I have written a guide for finding useful things easily.

Advance Terrain help is here on your hard disk:

*C:\Program Files\The Game Creators\Dark Basic Professional Online\Help\Advanced Terrain

* Change your drive letter and TGC path accordingly

Attachments

Login to view attachments
outblaze
13
Years of Service
User Offline
Joined: 25th Jul 2011
Location: den haag NL
Posted: 27th Jul 2011 00:51
hi chris,

Thank you for your posting!

i currently own this :
DarkBASIC Professional
DarkBASIC Classic
DarkGDK
Dark Edit
DarkMATTER
DarkVOICES
DarkSHADER
Game Creator Store
FPS Creator FREE
Tree Magik
Plant Life
Cartography Shop

I thought i could create terrains also with darkgdk? but don't have that one yet (by mail) so i tried some thing out with cartographer but it isn't what i look for. i hope dark gdk will bring the solution.

Still busy atm with how to texture everything properly cause it really looks bad at the moment..
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 27th Jul 2011 12:14
here's a rough example of how to get some basic terrain happening.
it needs no media so just copy and past into your editor and run.




using a matrix is probably the quickest and easiest way to create terrain.

I personally use the full version Blitz terrain, and made my own editor. It's an awesome plugin if you need to edit terrain. well worth the money.

Hope this helps

kezzla

Sometimes I like to use words out of contents
outblaze
13
Years of Service
User Offline
Joined: 25th Jul 2011
Location: den haag NL
Posted: 27th Jul 2011 17:03
hi kezzla ,

i tried to run the code in dbpro but doesn't work do i have to put it in a other program... ??

or do i have to make the textures?
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 28th Jul 2011 00:24
ok, my bad, I had the program on greater resolution when I coded it.

if you change the resolution so the width is larger than 1000 it will work

or use this appended code for the 600 x 800 window



now it should work, and it contains all the commands you'll need to make a matrix terrain and place objects on its surface.

kezzla

Sometimes I like to use words out of contents
29 games
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 28th Jul 2011 00:25
@ outblaze: when I ran kezzla's code I got:

Runtime Error 504 - Cannot grab image due to an illegal area at line 21

So I change line 21 from:



to



and it ran fine.

I don't know if this was the problem you were having but I was passing through so thought I'd mention it.
outblaze
13
Years of Service
User Offline
Joined: 25th Jul 2011
Location: den haag NL
Posted: 28th Jul 2011 01:54
it gives a error @ //set up fog and the rest with // tried to remove it but didn't work..
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 28th Jul 2011 08:34 Edited at: 28th Jul 2011 08:37
hmmm which editor are you using?

what exactly is the error?

try replacing all the
//
with
rem
(via find and replace function)
it may be a case of not recognizing the double slash as a comment.

kezzla

and as a last resort, no comments. just check the earlier post for details if needed.


Sometimes I like to use words out of contents
outblaze
13
Years of Service
User Offline
Joined: 25th Jul 2011
Location: den haag NL
Posted: 28th Jul 2011 12:34
hi kezzla,

First off all thank you for your time / help.
It's gives a command error @ all the // lines
i will try that this afternoon.

i have another questing .

I'm using dbpro four de coding
FPS creator for he terrain and such(think about buying darkgdk blitz terrain.)
Also i'm going to buy the books from dbpro for more documentation.
But still i have the questing which programs can i use the best to create the game i want i know i need dbpro and a terrein maker.

So which combination of software do you advise to use?
in combination with dbpro?

Thank you in advance

Delano
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 28th Jul 2011 17:21 Edited at: 28th Jul 2011 17:27
Hello Outblaze

Kezzla's code is fine. You are using the old editor.



// is an alternative remark seperator; like ` and rem. Providing you have the latest version of DBPRO, you should be running the new Synergy editor. This editor should be installed automatically.

(About remarks)

The same comment seperator works in CodeSurge also; an alternative editor if you do not like Synergy; Codesurge supports /* and */

Quote: "I'm using dbpro four de coding
FPS creator for he terrain and such(think about buying darkgdk blitz terrain.)
Also i'm going to buy the books from dbpro for more documentation.
But still i have the questing which programs can i use the best to create the game i want i know i need dbpro and a terrein maker.

So which combination of software do you advise to use?"


DBPRO alone can create any decent game; it's about the game design and programmer/s, not the tool. Whether a 2D pong game or a large MMORPG, so as long as the code is functional and bug free, at the end of the day, its a game; what makes it work is the code you give it.

In my opinion, if you have no C++ knowledge, then you shouldn't bother with Dark GDK; you will find it more difficult to use than DBPRO. Note that DBPRO supports Blitzwerks Terrain.

Go ahead and try out the extensions and plugins, in due time your skills will improve and then you will be able to decide what is best for what.

I use DBPRO, VB.NET and Dark GDK.NET, but I started by learning DBPRO first because the GDK is based on the DBPRO function library. Now I use VB.NET for database driven applications and games, simply because I don't need to reinvent the wheel to perform XML and SQL functions; but I still use DBPRO for general applications because it is easier to build certain scenes in DBPRO than in the GDK, due to wide DBPRO plugin support.

This is not to say that you couldn't start off with C++ and DarkGDK.

I'm sure others will also post up their opinions...

outblaze
13
Years of Service
User Offline
Joined: 25th Jul 2011
Location: den haag NL
Posted: 28th Jul 2011 17:40
wow thank you very much for your post really appreciate that!

but the synergy link doesn't work

ok i will start with dbo pro i think i will buy the 2 books to learn more about it and learn how to put a terrain together with characters and make it work. ?I tried mapscape for a simple map but couldn't load it into dbpro only in basic.

If anyone has some more information feel free to post it i'm learning every day now and the codings are in my head until now haha. still trying to learn some 3d drawing but thats really hard without a descent step by step tutorial.
outblaze
13
Years of Service
User Offline
Joined: 25th Jul 2011
Location: den haag NL
Posted: 28th Jul 2011 17:46
oh yeah and kezzla it's working now! thank you very much!

Login to post a reply

Server time is: 2024-11-22 18:30:03
Your offset time is: 2024-11-22 18:30:03