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 / [STICKY] Beginners Guide to DBPro

Author
Message
Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 16th Sep 2008 23:29 Edited at: 16th Sep 2008 23:36
I've started compiling Dark Basic tutorials from around the boards into a single PDF file, mainly for myself as I learn but I though I share it with you. Also, if you have a tutorial you want see in the guide then by all means send it in, preferably in MSWord format.

Those who use FPS Creator may already be familiar with the guide I wrote for it, which has become the Official Community guide to FPSC.

http://www.madladdesigns.co.uk/extras/dbproguide.pdf

NOTE: If there is anyone who finds their tutorial in the guide but doesn't want it in, then please don't hesitate to email me and I'll remove it immediately.

Random color object
15
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Montreal Canada
Posted: 17th Sep 2008 14:09
Sticky

When it is too complicated it is because you are trying at the wrong door.
nackidno
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Där solen aldrig skiner
Posted: 17th Sep 2008 17:51
Very interesting. Can come in handy.

"Ja, för det är jävligt manligt att ligga fosterställning i duschen och raka röven! Testa det! "
calcyman
16
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 17th Sep 2008 18:21
Looks good. I'm not so sure about confusing the beginners with assembly language, though.

I've read the introduction to variables, it informs people much more than the official DBPro user manual (included in the box). Unfortunately, it contains an error.

DarkBASIC Professional (unlike other BASIC languages) can store arbitrary-length strings, rather than the standard limit of 255 characters. It can store about 2^24 characters before it slows down bigstyle.

The optomist's right, The pessimist's right.
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 30th Sep 2008 00:02
awesome this should be mentioned in the news letter
batvink batvink
Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 8th Oct 2008 08:39
Looks good Nickydude

[url=][/url][href]http://www.rampagemod.webs.com[\href]
DarkBasic Pro Guy
19
Years of Service
User Offline
Joined: 4th Jun 2004
Location: Broomfield, Colorado
Posted: 16th Jan 2009 05:10
Why is this thread dying? I am a little experienced in Dark Basic already, but this is AMAZING!

I have been going through the FPSC guide lately, I don't know what I would do without it. This guide could become the same for other people!

BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Jan 2009 15:20
Stickied for 2 reasons:

1. It would be embarassing for Nickydude to have to sticky his own thread

2. He has a reputation for maintaining and releasing updates in the FPSC guide, so it should be a good resource for a long time to come.

Sph!nx
15
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 16th Jan 2009 16:18
Excellent! This will most definitely help me in learning the code!

many thanks!

Regards,
Sph!nx
feiting shadow
17
Years of Service
User Offline
Joined: 12th Sep 2006
Location:
Posted: 21st Jan 2009 03:04
Why not just start a thread and anytime somebody gets bored they can add a section to it?

Say I get bored so I write down "How to use variables", the next person writes "Loops and using them as the main function in your game"... and so on and so on...

eventually you'll have a huge, somewhat disorderly-yet-still-linear runthrough of the whole language. And all at the convenience of browsing the forum?

I recently responded to a newbie and realized, I can't point him anywhere that will actually go from the "Basics" of the language to "using the language"... so that idea came to mind.

I'll probably start one if it isn't done in a few days.

Signed
------
aarrowh
16
Years of Service
User Offline
Joined: 19th Oct 2007
Location:
Posted: 21st Jan 2009 05:10
Thanks so much! I've been looking for something like this for a while! This will help a ton!



Image thanks goes to AndrewT
Ambitious Guy
15
Years of Service
User Offline
Joined: 1st Aug 2008
Location: Florida, USA
Posted: 21st Jan 2009 17:19
Very nice thanks alot BatVink

The Geek of our time
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 21st Jan 2009 23:27
Don't thank me, thank NickyDude.

Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 23rd Jan 2009 23:03
Wow! I forgot about this. I started using DBPro then stopped as other things got in the way. When i have time I'll start this up again.

Its Pure Will
15
Years of Service
User Offline
Joined: 22nd Jan 2009
Location: Australia
Posted: 25th Jan 2009 05:05
The link doesn't work for me?

How can you have a high moral when you're playing a private server?
logical sifter
15
Years of Service
User Offline
Joined: 1st Feb 2009
Location: Tampa,FL
Posted: 4th Feb 2009 05:19
Thanks NickyDude Great dark basic tutorials so far!!!!
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 11th Feb 2009 21:28 Edited at: 11th Feb 2009 21:29
thanks mate, i dont own darkbasic pro, i am planning to buy it, just want to check some tutorials, great guide

looks like your gonna do the same as you did with FPSC Guide

GREAT IDEA


Red Eye - The Game: Work In Progress - W.I.P. Red Eye Productions
kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 17th Feb 2009 04:27
hey guys.
great .pdf. but in the pdf it mentions to downlaod the tutorial files for the space invaders game. but i couldnt find any link for it so where do i downlaod it form.

programmign is stressful yet great. remeber one thing keep keep trying and you will succeed.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 17th Feb 2009 20:37 Edited at: 17th Feb 2009 20:49
the space invaders tut was in newsletter issues 45, 46, and 47. find everything there.


@NickyDude (and all),
i know the guide is a WIP, but nothing is more frustrating than digging into something only to find that it's incomplete. this is especially so when you're new. a mention of where the SI tut came from, for example, could save many a newcomer some frustration.

atleast the tgc-hosted stuff, like SI, still exists... there are so many other tutorials, guides, etc, on the forums here that were abandoned, hosted on now-defunct servers, etc, it's ridiculous.

just a friendly reminder to keep things tidy (especially for a "newcomer" audience)

Virtual Nomad @ California, USA
AMD Phenom™ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
Rorschach
15
Years of Service
User Offline
Joined: 20th Mar 2009
Location:
Posted: 20th Mar 2009 21:36
Since I'm a complete noob, do the same principles hold up for Dark GDK in this guide? I can't find a beginners guide for Dark GDK as good as this one, so I'm hoping the two languages don't differ too much from each other.
daveyt
14
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Birmingham
Posted: 7th Apr 2009 23:03
Hello there,

My name is David Tamplin; I am 18 years of age and currently studying a BTEC National Diploma in Software Development.

I have only recently started to use Dark Basic Professional and find it extremely difficult to understand. I am currently undertaking a Games Assignment, in which requires for a game containing Menu, Sound, Scoring as well use of interactivity is required. I don’t suppose you have any games containing these four requirements in which I could use.

Any help would be greatly appriciated. Thankyou

hello
feiting shadow
17
Years of Service
User Offline
Joined: 12th Sep 2006
Location:
Posted: 10th Apr 2009 09:59
I just glanced over some pages and read the Table of Contents, and must say, should Virtual Nomad's suggestion be held over time, that contains (cough DaveyT) everything you can find in any of the basic programming books you can buy for 30 bucks off the shelf

I am quite glad someone compiled that, as it is now a free resource that contains the same thing you can buy otherwise. (assuming it works/compiles).

Rorschach: They ARE the darkbasic pro commands, afaik. The only difference is you're compiling them directly in C++. So the upside is you can now use C++'s power. The downside is you're also in C++'s syntax, which is not good if you're new and don't know about placing definitions before main and missing brackets being a bad thing. (Learn C++ before using that)

DaveT: Have you programmed before? If not, just remember two things, 1) There are data and functions, which must be declared and defined. (created then assigned values, like A is a number, A is now 2.5). 2) Flow goes from top-down.

That is the only thing you need to know to write a basic program. Unlike DarkGDK, Darkbasic ends automatically when "flow" ends, so if you type:

Print "Text"
Print "Second line"

and that's all, your program will start then end automatically, too fast to see anything. Remember to type an input or wait/sleep command to stop the program so you can see what you're doing.

And that's all the help I'll give lest you read the tutorial (for your own good)

Signed
------
daveyt
14
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Birmingham
Posted: 10th Apr 2009 17:24
I havent ever coded, all the examples i have gone through just dont work, the code i find quite difficult to get grips with. I have been looking for examples & trying to understand how the code functions. do you recon you could help me ??

hello
Gingerkid Jack
18
Years of Service
User Offline
Joined: 15th May 2005
Location: UK
Posted: 28th Apr 2009 09:48
If your doing a games assignment, they must have shown you how to use a tool?

TheCleverGuyz
Indicium
15
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st May 2009 01:01
Sometimes, you would be suprised, my school often asks me to do things i have no idea how to do

Omricon W.I.P
Gingerkid Jack
18
Years of Service
User Offline
Joined: 15th May 2005
Location: UK
Posted: 17th May 2009 14:12
Like: Write a funcional game in DBpro now!!!???

TheCleverGuyz
Raybrite2
14
Years of Service
User Offline
Joined: 16th May 2009
Location: Cyberspace
Posted: 23rd Jun 2009 05:24
I went to the newsletters mentioned and they have the same thing that is in the tutorial.
What is missing is the example 1 and the code they refer to throughout the tutorial.
There must be a file somewhere that has the framework in it as this is referenced a lot beginning on page 104 of the Tutorial.
Stig Design Stig Magne
18
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Norway
Posted: 7th Aug 2009 02:33 Edited at: 7th Aug 2009 02:33
yes Thanks alott ( Nickydude )for this its realy helping
keep going Nickydude

**StigDesign** cheap 3D Modell Pack`s at www.stigdesign.piczo.com (for Home&Comersial use)soon other aplication`s
Sickly
14
Years of Service
User Offline
Joined: 14th Jul 2009
Location: Does it matter?
Posted: 11th Aug 2009 23:00
thanks. U da man

The darkest minds, are often the brightest.
Want to know
14
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 26th Sep 2009 03:22
How do you create people or animals with DarkBasic pro?
Wind28
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location:
Posted: 11th Oct 2009 03:30
i just bought DarkBasic Pro and i also bought the book from Jonathan S harbour and R Smith it says on page 23 and 24 how to render bitmap spirtes but neither work i updated my version dose anyone know how to fix this probelm
Username Arpegios
14
Years of Service
User Offline
Joined: 31st Oct 2009
Location: Philippines
Posted: 5th Nov 2009 06:45
can i ask what is the best place for learning an aerial combat game using darkbasic pro? please i need some answers.. tnx..
Username Arpegios
14
Years of Service
User Offline
Joined: 31st Oct 2009
Location: Philippines
Posted: 5th Nov 2009 06:55
please can someone help me in my aerial combat game... can someone give me some tutorials in this one.. thnx..
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 12th Nov 2009 20:40
Quote: "Looks good. I'm not so sure about confusing the beginners with assembly language, though."


It's supposed to confuse them!

I was trying to emphasize how much easier BASIC is to what we had to do years ago...

Quote: "Unfortunately, it contains an error.

DarkBASIC Professional (unlike other BASIC languages) can store arbitrary-length strings, rather than the standard limit of 255 characters. It can store about 2^24 characters before it slows down bigstyle."


In my defence, these tutorials were written for DB Classic - not DBPro and it does say that - and as such they are 99.9% DBPro compatible.

You just highlighted the 0.1% I was talking about!

The rest I hope will have been useful by newcomers to both DBC and DBPro...

TDK

bobbybostick
14
Years of Service
User Offline
Joined: 24th Nov 2009
Location:
Posted: 24th Nov 2009 07:42
Hello, everyone....was having a problem trying to run the castle01.dbpro tutorial in the tutorial version I downloaded from the game creators site along with dark pro...
after entering the constants....I load images bhut the editor is not recognizing the commands.....The error message begins at
function drawcastle()....and all following function are not recognized... hoping someone can help with this...thank you all for your time and attention.
Bobby

#constant grass 1
#constant road 2
#constant tree 3
#constant flooring 4
#constant wall 5
#constant roofing 6
#constant cover 8
#constant trellis 9
#constant transport 10

#constant lawn 1
#constant approach 2
#constant floor1 3
#constant ceiling 5
#constant tree1 7
#constant frontwall 51
#constant backwall 52
#constant leftwall 53
#constant rightwall 54
#constant innerwall 55
#constant turret1 56
#constant turretroof1 57
#constant turret2 58
#constant turretroof2 59
#constant turret3 60
#constant turretroof3 61
#constant turret4 62
#constant turretroof4 63
#constant roof1 64
#constant column 67




set display mode 1280, 1024, 32

function drawcastle()
wait key
end

LoadImages()
DrawGrounds()
DrawExternalWalls()
DrawRoof&Ceiling()
DrawTurrets()
DrawInternalColumns()
end function

function LoadImages()
Load Image "grass1.jpg",lawn
Load Image "cobbleStones.jpg",road
Load Image "tree.jpg",tree
Load Image "rock2.jpg",flooring
Load Image "stone.jpg",wall
Load Image "tiles.jpg",roofing
Load Image "ceil_u3_01.jpg",cover
end function
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 30th Nov 2009 00:19
bobbybostick:

Please don't hijack other people's threads it's rude - read the stickies!

You should also use the code boxes - read the stickies!

Important Info For Forum Newcomers

As for your problem, it's probably to do with the fact that 'end function' doesn't exist - it's 'EndFunction' (without the space).

But next time, please start your own thread...

TDK

Master Man Of Justice
16
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 17th Jan 2010 05:31
Hi, i am reading the PDF right now and from what i understand you are adding more? maybe? well i hope so because so far it is very helpful!!! This a ,,, congratulatory/thankful bump?

luxgud
User Deleted
Posted: 25th Feb 2010 20:48
Thanks
Hustlerman
13
Years of Service
User Offline
Joined: 31st Mar 2010
Location:
Posted: 31st Mar 2010 21:10
I am new to darkbasic. I tried to use the dungeon tutorial. i did everything but when i compile and run it it says early exit error because i have a function in it. Can someone help me?
complete noob
13
Years of Service
User Offline
Joined: 2nd Apr 2010
Location:
Posted: 2nd Apr 2010 17:59
First post on here.
I know very little about all this stuff.

Hope I didn't break any rules by posting.

I only know a few very basic fundumentals
Orion_Uk
13
Years of Service
User Offline
Joined: 14th Jul 2010
Location: Isle Of Wight
Posted: 16th Jul 2010 03:32
Going through the PDF tut now, just wanted to thank all involved in its creation for the hard work they put in to it
annawu
User Banned
Posted: 20th Jul 2010 13:02
Maybe it is worthy to enjoy this useful things. We have had some great to see these in the past but seems to be changing now. Come On!

djfjrjfd
annawu
User Banned
Posted: 22nd Jul 2010 13:22
Seems to be a big difference. Maybe it is worthy to enjoy this useful things. We have had some great to see these in the past but seems to be changing now. Come On!

djfjrjfd

Login to post a reply

Server time is: 2024-03-29 00:02:11
Your offset time is: 2024-03-29 00:02:11