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.

DarkBASIC Professional Discussion / I'm starting to give up on DBPro :(

Author
Message
3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 23rd Oct 2011 15:19
Hi guys.

I've been programming for abour 4 months, and I thought it was awesome the whole time. But I'm still kind of a noob... So I don't really have much to do with Dark Basic Pro. I can't find any decent tutorials, and I haven't programmed in a few weeks, and I'm starting to give up on Dark Basic Pro... It would be great if anyone could give me any decent tutorials on DBPro.
Otherwise, I've spent 50 bucks on nothing
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 23rd Oct 2011 15:30 Edited at: 23rd Oct 2011 15:31
The tutorial are "Hello World".. and working up from there. Starting with an advanced tutorial just gets even more confusing. Just mess around with the DB Pro examples.

CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 23rd Oct 2011 15:33
This book is a really good start.

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd Oct 2011 18:56
The best place to start is TDK's Tutorials. He'll help you learn the basics of Darkbasic.

http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

Daniel wright 2311
User Banned
Posted: 23rd Oct 2011 19:00
Hey friend, Its called the search feature bellow, its not about any one tutt, its about learning one command to the next.If you want to build some thing make a plan, write that down on papper. As you are starting your code search each command you want to know about then use the code. You can also look in the help files for each command.

Like load object

well we already know this loads a 3d object into a 3d space.
There is also a dark basic mode you can load your modle into by just adding a one to the end of your object number and this is something not known unless you learn the command. there are 5 modes you can choose that object to be.

My point is unless you are willing to learn it you will never use it and no tutt will help with that but only time with the code.

my signature keeps being erased by a mod So this is my new signature.
Daniel TGC
Retired Moderator
19
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 23rd Oct 2011 19:24
Go to the bottom of the page, there's a box entitled Thread Subject Search. Type in the word tutorial.

Now start reading
zenassem
23
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 23rd Oct 2011 19:55 Edited at: 23rd Oct 2011 19:57
This is going to really make me look like an antique, but I truly believe that the years I spent typing in programs helped me. I never had a paid subscription to Compute! or Compute!'s Gazette (which contained the source code on diskettes),, so I would read the articles, and then type in the programs line by line.

If I would have been able to just copy and paste the code, or just execute/run a program listing... I don't think I would have gotten as much out of them. There was definitely a different conciousness and learning that took place when one actually typed in code, even if it was merely copying. It's like writing words and definitions and a sentence using the word to increase vocabulary. It gives the brain time to make the connections necessary for a deeper understanding.

There are a number of good tutorials around here,, but how often do I find myself skimming them, or just copying and pasting code in a hurry to execute them.

Your signature has been erased by a mod please reduce it to 600 x 120.
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 23rd Oct 2011 20:25
Why exactly did you rush to purchase an otherwise free program with zero knowledge?..

Four months, and a conlusion of "i'mah noob!" leads me to think you may find your way of expressing yourself elsewhere.

-In.Dev.X: A unique heavy story based shoot'em ~35%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 23rd Oct 2011 21:00
My friend, it would be a complete shame to give up on Dark Basic. There is no programming language out there that is as easy to make decent programs in the least amount of time. TDK's Programming Tutorials For Beginners is a great source of tutorials. I know the first few tutorials seen boring and mundane. But to gain a good background in programming you should still read them.
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 23rd Oct 2011 21:37
Its called Basic because it is not difficult, it is basic.

You just need to explain what it is you don't understand, and take the advice of the above posts.

DevilLiger
22
Years of Service
User Offline
Joined: 21st Nov 2003
Location: Fresno,CA,USA
Posted: 23rd Oct 2011 23:55
Quote: "
The tutorial are "Hello World".. and working up from there. Starting with an advanced tutorial just gets even more confusing. Just mess around with the DB Pro examples.
"

just do what Pincho Paxton says. after that you can mess around with some open source or do some mods. im in the middle of modding that open source game called NOX on DB pro. just learn the Basics of BASIC than you can go on learning the graphical stuff.

CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 24th Oct 2011 06:07
I have to agree with everyone here, 3than. If after 4 months of trying you can't use the search function here or nut things out yourself using the help files, perhaps programming isn't the correct vocation for you. No-one else has a problem. Most questions have already been answered either here or in the Newcomer's board, otherwise, if you have a specific question, you just have to ask.

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame
3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 24th Oct 2011 10:25
I know guys, I know all the basics of DBPro, and I bought it when it wasn't free. I'm not asking a specific question, I'm asking where I can find decent tutorials. Thanks to whoever suggested TDK's tutorials, I'll check those out. I'm not a noob, I just want good tutorials to follow and learn more advanced things...
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 24th Oct 2011 11:09
If you're not a newbie you should check out Zotoaster's Tutorial List too.

http://forum.thegamecreators.com/?m=forum_view&t=115633&b=7

3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 24th Oct 2011 14:58
Whoa. Thanks dude, that is a lot of tutorials. I'll see them soon.
Thanks CumQuaT for the book suggestion, but I'm not willing to spend any more money on something that might not even help me... Sorry dude.
What I really want to try to do is do a text based adventure kinda thing, with a plan such as

This is in pseudo code (i dont think thats how you spell pseudo) Plot:You've got to save the city from an evil monster (LOL.)

Print You're walking down a street.
1-You walk home
2-You walk to the store and browse
3-You go party in a nightclub

if you press 1
Print you come across a homeless person wanting money
1:give money to him
2:walk off
endif

if you press 2
ect, ect
endif

if you press 3
ect, ect
endif [code\]

Something like that. Do you get the idea? Then I can move on to placing sprites for each selection, then animated sprites, then 3-D objects, and so on. Is there a tutorial for that? And I know someone told me I should do that, but I need a tutorial. I'm not the kind of guy that learns by messing around with examples.
3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 24th Oct 2011 14:59
wtf... My [code\] didnt work :/
3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 24th Oct 2011 15:01
wtf... Code in [brackets] didnt even come up
revenant chaos
DBPro Master
19
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 24th Oct 2011 15:18
that would be because the slash goes between "[" and "c", and isn't a backslash.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 24th Oct 2011 17:43
Code snips are like this:
[ code ]
Your code here.
[ /code ]

Remove the spaces between the brackets and we see this:


Now if you want colored commands in the code do this:
[ code lang=dbp ]
` Print something
print "Hello"
wait key
[ /code ]

Looks like this (after removing the spaces between the brackets again):


3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 25th Oct 2011 10:32
lol i know how to do it guys but i was on my phone then so i had to type it in manually.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 25th Oct 2011 11:07
Quote: "Is there a tutorial for that? And I know someone told me I should do that, but I need a tutorial. I'm not the kind of guy that learns by messing around with examples."

I don't know about a tutorial for exactly what you want to do. More often than not you will not find a tutorial for exactly what you need to do work out how things work by yourself or through looking at other people's examples.

You will never learn if you aren't prepared to work things out as that is the crux of programming. It's actually the fun part

EdzUp
23
Years of Service
User Offline
Joined: 8th Sep 2002
Location: UK
Posted: 25th Oct 2011 13:09 Edited at: 25th Oct 2011 13:10
3than: From what I see the commands you require are simple print commands, cls and maybe commands to change the text colour. As others have stated here look at the tuts and do searches for the information you require I know the information is in the help files.

Back in the day when I learned how to program computers I started back in 1981 on a ZX81, all you had was the computer, a manual with listings and a drive to code. I started by adjusting and playing with the code that was in the listings once I learned enough from them I moved to writing my own listings. I taught myself C/C++ as there was no internet as we have it today back in 1989 so I got a good book and once again played with the commands (if your learning C NEVER play with AbsWrite I found out the hard way and corrupted me 40Mb (yes Megabytes)hard disk).

We all start somewhere just play with the commands, toy with peoples code and listings and go from there you will soon pick it up. Everyone can be a programmer they just need drive, determination and the will to learn.

-EdzUp
Graveyard Dogs
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 25th Oct 2011 14:02
In agreement with the above posts; playing around with code really demonstrates how things work and how they don't work.

A comment about what you posted 3than

What you have written is actually a good starting point.

All you need to do is take one step at a time and refine your design into a program. For each of your steps, do some research to find out how to convert the english into code. Each line can represent a conditional block, sub-routine or function, then the code inside performs what is required.

Quote: "Print You're walking down a street."


This one is easy, you just add your speech marks: print "You're walking down the street"

Quote: "1-You walk home
2-You walk to the store and browse
3-You go party in a nightclub"


This is an option, and what must we do with options? We select one. In the case of 1, do task 1, in the case of 2, do task 2, Hence:


The next step, is to refine the code down further; you need to add a prompt for the input in a form of a message in a loop or by using the input command, then you need to pause the screen for the resulting message to be read by the user.

After this, it can be refined further into drawing boxes and shading the background to make things look good.

Every project started from something simple, then the developer improves it as she goes along.

3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 25th Oct 2011 15:11
Wow. Thanks Chris Tate. I'll look further into those 'Case' commands. Btw, do you mind if i e-mail you for questions? You sound pretty good at programming lol And I also want to know more about those 'select' commands. I'll just email you...
3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 25th Oct 2011 15:14
What's you're email?
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 25th Oct 2011 16:38
I do have an email address, but I would prefer if you posted up questions here; I get alot of spam on my email address and rearly check it.

I do not know everything, so others can also answer your questions as well; and others can benefit from the answers.

BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 25th Oct 2011 19:06
Hey,

I felt the same way when I first started but Don't give up, if your looking for any examples check the link below.

Also, when I was a noob, dcformans's youtube tutorials helped so have a look at them aswell


Good luck,

Check out my website -> Ameadus Project <- Free Project files, Examples and Over 2,000 textures
3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 25th Oct 2011 23:19
Ok thanks guys. I've already seen all of dcforeman's videos(well, not all of them but most of them i have)
And one question I already have is how to use the 'select' command.
3than
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 25th Oct 2011 23:19
Ok thanks guys. I\'ve already seen all of dcforeman\'s videos(well, not all of them but most of them i have)
And one question I already have is how to use the \'select\' command.
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 26th Oct 2011 04:31 Edited at: 26th Oct 2011 04:37
Select is used where you need the program to choose one of (normally) many paths. They're generally a cleaner way of implementing the same logic as blocks of IF Statements.


Example.

Let's imagine we need a section of code that reacts to a particular value in many given ways. One such situation that programmer often use, is different AI modes that a character in a game might have.

Depending upon the game, a character might need the following four modes WALK, RUN, STAND, JUMP for it's AI. In this example we'll just assume that when a character is in walk mode, then WALK ='s 1, RUN ='s 2, STAND ='s 3 and JUMP ='s 4.

The programmer would often define these as constants previously to make the code more readable and less error prone, but i'm not going to bother with that here.






So what happens is the language uses the CharacterMode variable to choose which CASE section to execute. So if CharacterMode equals one, then it'll execute the code between CASE 1 -> END CASE, then JUMP to END SELECT. So it runs the chunk of run, then jumps to the end and continues on.

When CharacterMode equals three say, it'll jumps directly to CASE 3 and executes the code between CASE 3 and it's END CASE. When that's done, it jumps to the END SELECT and continues on.

So the SELECT is used to clean up blocks of decisions. You could write the same logic (a few different ways) using IF/ ENDIF Statements for example, but it soon gets messy. Hence, if you need to your program to make a series of clean cut decisions, then SELECT/CASE statement blocks are often the best option.

Pro Noob 4u
14
Years of Service
User Offline
Joined: 24th Oct 2011
Location:
Posted: 26th Oct 2011 16:52
Dont give up man!!!

I have only been programming for little over 2 weeks the guys an gals around here are awesome iv spent many a long hour going through pretty much everything on the forums reading things posted way back in 06/07
watching an reading everyones videos, tutorials, code snippets , I have NO previous programming knowledge but from reading an playing around with everyones code examples i have learned alot an my project is coming along uite nicely take a look from NO codeing experiance to actually making something

http://www.youtube.com/watch?v=SfnrnEHSlKk

http://www.youtube.com/watch?v=RBFOBmJX3Ug

If i can do it anyone can !!!
EdzUp
23
Years of Service
User Offline
Joined: 8th Sep 2002
Location: UK
Posted: 26th Oct 2011 19:32
IIRC all commands are covered in the DBPro documentation that installs with DBPro, at least the version i have does have it. There are some examples with commands too that will show you the basics, the best way to learn programming is to play with the commands and when you get more proficient at it learn more and more commands.

Unlike C you cannot corrupt your harddisk with DBPro

-EdzUp
Graveyard Dogs
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 26th Oct 2011 20:41
If you use the standard DBPro editor you can type in a word like 'Select' then press F1 and you get...

Quote: "SELECT

Use this command in combination with CASE, ENDCASE and ENDSELECT to create a select statement.

Syntax
SELECT Variable
Parameters
Variable
Value
Enter the appropriate value here.

Returns

This command does not return a value.

Description

A select statement allows you to branch to different actions based on the value of the provided variable.
The variable can be an integer, real or string value.

Example Code
var=2
SELECT var
CASE 2:
PRINT "var is two"
ENDCASE
ENDSELECT
WAIT KEY
"


Daniel wright 2311
User Banned
Posted: 26th Oct 2011 21:21 Edited at: 26th Oct 2011 23:18
Here is a real good example about case, end case, select, this helps in so many ways.

So I want my game player and other game guys to talk to each other in game and in seqence,so this is all I would do.




And here is how my code looks like in my code if it helps at all



and here is all of my text story case and select sequence



my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-11 14:37:46
Your offset time is: 2026-07-11 14:37:46