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 / - DBPro Coding Challenges -

Author
Message
Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 17th Jun 2005 10:28
1. [C++ How To Program] by [Deitel Deitel] <- Great
2. [AI Game Programming Wisdom] by [Steve Rabin] <- Even Better
3. [Introduction to 3D game programming with DirectX 9.0]
by [Frank Luna] <- Not very good but quite useful.

3 books which i used to learn it.

try and get these from a library or amazon or somewhere cos it really breaks it down for you.

However:

be warned, C++ is MUCH harder than DB. however after you manage to get something to work its worth much more satisfaction.

good luck,

Tomu



- 3.4Ghz - 2048MB RAM - RADEON X800SE -
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 17th Jun 2005 10:44
HAHA!!! Thx well i will release something rly cool on here with DB soon and dont wry im ready for the challenge cause i already read a 200 page books but it was like 10 yrs old and sucked so i didn't get far lol thx again Tomu (btw if i do get these books where can i get a good reliable compiler,linker etc. preferably one that does it all by itself(not all that confusing stuff with commands) and that is up-to-date and not TOOOO expensive

My Website:

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 17th Jun 2005 11:57
Welcome back Kimo, master at taking threads off topic.

KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 17th Jun 2005 13:51
lol thx well... just for the sake of it i think i'll stay in the DB business i've had some time to brew up some ideas (a month is a looong time especially when you have all day at a new job while sweeping and washing lol) and btw here is my first program on my new computer (had to finish it in one night )
Download at [href]www.godlywingsentertainment.com/Computer Tester.exe[/href]
Sorry you have to download but i didn't want to give away this code lol
plz post your scores here is mine:
247
With:
Athlon 64 3500+ 512KB Cache
512MB DDR Ram(soon going to 1GB just waiting to get it in mail)
80GB Hard Drive w/8MB Cache
ATI Radeon 9550SE 128MB Graphics Card
(not bad for $936 AND ALIENWARE!!! )

My Website:

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 18th Jun 2005 18:58
Updated my typing game to improve the presentation:



Still to do, although I don't know if I'll get time this weekend as I'm going away in about half an hour:

-remove timer, and instead have new word boxes appear automatically at the top of the screen, at a faster rate the further the game progresses - the idea being to keep up with typing them before they fall off the bottom of the screen. Should make it a bit more fun!

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Jun 2005 21:22
Kimo, we can't download that exe. How about a zip?

PETA - People for the Eating of Tasty Animals
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 19th Jun 2005 01:55
im not sure y you couldn't download it but here is the zip
[href]www.godlywingsentertainment.com/Computer Tester.zip[/href]
btw my actuall score after some more tweaking was:170

My Website:

Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 19th Jun 2005 02:24
Kimo for #4. You can do "create hidden" in DBPro to not have the taskbar Icon. The with BlueGUI2 you can turn the DBPro main window into a Blue Gadget and and then set it's shape to what ever you want. Let's say a little alien that walks around the destop and you can add a right click menu with it too. At 20$ it adds a lot of functionality to DBPro. With DBPro itself though. Nope not that I know of.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Jun 2005 10:49
Kimo, I scored a 140

P2.8e
1GB (2x512 ddr400 dual channel)
geforce FX5900 128mb

PETA - People for the Eating of Tasty Animals
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 19th Jun 2005 12:07 Edited at: 19th Jun 2005 12:43
kewl do you think it works well?(other ppl need to test it)

<EDIT>Create Hidden What???

My Website:

Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 19th Jun 2005 22:47
Create Hidden AKA in the DBPro/Blue IDE it hides the taskbar item and the app. This makes it run in the back ground. It doesn't hog any less resources, but it's not visible to the user except as a process in the Task Manager (Ctrl-Alt-Del). You would have to close it from there. unless it had a window, but then it shows on the task bar again. Yes I think BlueGUI works well I use it and RobK provides good support.
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Jun 2005 00:46
the "Create Hidden" command doesn't work for me (i think i need to update )

My Website:

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 20th Jun 2005 16:07
shouldn't this be judged today? can we contact robocat? (he's the challenge setter, right?) bob.

http://astrumgames.com
completed games: Astrum Erus, Centipoid, Hero Of Garaven, WarpFlight, Higher Ground , Circular Breakout
robo cat
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 20th Jun 2005 16:23
Yeh, I'll judge it later today as I've got to rush off in a minute.

Simple... yet fun!
robo cat
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 21st Jun 2005 01:52
Its a tricky choice as the entries are all very different. Ric's had nice visuals and both RiiDii's and IBOL's had very original concepts. Its very difficult to choose a winner as they are all pretty much equal, but the winner is...



I can't name a runner up as it was so difficult even to seperate a winner. If I was to judge it again another day then the decision may have gone another way, as they are all equally good; but I had to make a decision.

Simple... yet fun!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 21st Jun 2005 09:01
Cheers RC, I'll set a new challenge tomorrow evening. Still going with my word game too - will keep updating here.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 21st Jun 2005 09:03
any news on the collation for the challenge-db?

My Website:
qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 21st Jun 2005 10:43
what if there was a challenge to clean up spaghetteo code or messy code or something? whoever made it the most readable and efficient won? that would be interesting

Check out the DB Freebie Archive: http://lysergium.net/dbfree/ thanks to DARKGuy
Want your game hosted free and a forum for feedback, or want media hosted? Click the email button below
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 21st Jun 2005 11:00
interesting but dull and boring especially as im guessing u would want us to do some of ur code lol(although it would be odd to see who could get it to have the most fps lol) by the way is some1 gonna tell me y i can't use the "Create Hidden" command?

My Website:

qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 21st Jun 2005 11:02
we could find some in the codebase or something

i suppose it is pretty dull. getting a certain code to have the most FPS is also interesting though

Check out the DB Freebie Archive: http://lysergium.net/dbfree/ thanks to DARKGuy
Want your game hosted free and a forum for feedback, or want media hosted? Click the email button below
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 22nd Jun 2005 02:36 Edited at: 22nd Jun 2005 05:13
I actually find that challenge idea interesting, as I've thought about writting similar code myself; like a code that can tear apart a 20-line challenge code and simply put it all on seperate lines would be useful.

Edit: Or inversely, write a code that does it's best to compile a code into 20 lines or less.

Edit 2: Congratulations Ric!

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Jun 2005 08:21
Some good suggestions - although that would be three text manipulation challenges in a row, so I'd rather come back to that theme later. The idea I have is a bit difficult to explain:

____________________________________________________________________

Challenge ## (I'll put the number in when I figure it out!)

Robotic Limbs!

The idea is to practice/perfect the use of limbs and 3d rotation (which always does my head in) by making a robotic arm, or similar. The arm must be controllable by using the keyboard to rotate the various sections of the arm, in order to pick up/drop an object. A bit like controlling a JCB digger to pick up something. you could even make a game - using the arm to move objects frrom one place to another.

Hope I've explained that well enough!

Two weeks seems to be the going rate at the moment - so Tuesday night, 5th July is the deadline.



p.s. @Rii - congrats on the 20 liner!
p.p.s. @Nick - it's now at the top of my to do list! Was going to do it tonight but didn't get a minute to myself.

robo cat
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 22nd Jun 2005 16:27
Nice challenge, I could use my Intelligent Ragdolls to come up with something here.

Simple... yet fun!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 23rd Jun 2005 07:10 Edited at: 23rd Jun 2005 07:16
Intelligent ragdolls? Sounds intriguing!

Update on my typing game (now called 'Word Panic!'):

(Needs 5.8, and sorry the code is in such a mess - it's all over the place, and there's even a goto in there for good measure!)



Rules are slightly different, but still very obvious - you type like hell before the word reaches the bottom of the screen. If you don't make it, they pile up tetris style. The screen will clear, though, for every 10 correct words you type.

I improved the 'typing engine' () to prevent keypresses being missed when another key is depressed, and to prevent keypresses getting registered more than once. Also added sound!

Any suggestions for improvement, or bugs, please let me know.

KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 23rd Jun 2005 07:57
ummm... it didn't do anything

My Website:

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 23rd Jun 2005 08:24
Then you probably don't have 5.8

KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 23rd Jun 2005 09:12 Edited at: 23rd Jun 2005 09:27
lol good point

<edit> I GOT 29

My Website:

KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 23rd Jun 2005 09:37
Quote: "Create Hidden AKA in the DBPro/Blue IDE it hides the taskbar item and the app. This makes it run in the back ground. It doesn't hog any less resources, but it's not visible to the user except as a process in the Task Manager (Ctrl-Alt-Del). You would have to close it from there. unless it had a window, but then it shows on the task bar again. Yes I think BlueGUI works well I use it and RobK provides good support. "


"Create Hidden" doesn't work in DBPro and yes i have 5.8

My Website:

Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 24th Jun 2005 11:25 Edited at: 24th Jun 2005 11:27
Hmmm.. Is it an IDE bug. You might give BlueIDE a shot. It's free. As to the challenge that's it? Hmmmm...Ahhh I have an idea. Is it ok to mod some else's work and add the challenge in to it?

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 24th Jun 2005 12:30
yes but u have to change it alot

My Website:

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 24th Jun 2005 16:11
CREATE HIDDEN is not a 5.8 command. At least not on my system. You must have an added on DLL or something (like an expansion pack).

Its funny how everyone seems to recommend BlueIDE as a solution to problems. Its just another text editor - its that simple. If anyone here uses UltraEdit, I'm sure there is a way I could turn that into a DBP editor quite easily (you can add custom menu commands and bind keys to them, you can also load up a command set for parsing and highlighting). IMHO I didn't like BlueIDE. I thought it felt a little like a Visual Basic project rather than a tool I'd like to use and I also had this feeling it was about to fall apart at any time - not sure why, I'm sure its stable, but I did anyway..

My Website:
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 24th Jun 2005 17:07
are we able to use dll's in these competitions?
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 24th Jun 2005 21:54
u can use anything that doesn't have to be attached it all has to be code that some1 can plug into dbpro and test

My Website:

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 25th Jun 2005 02:27
Quote: "are we able to use dll's in these competitions?"

Not that it's stated as such in the rules, but no one has ever used a dll.

The purpose of the compo was to rely on coding skills, ingenuity, and creativity. In general, there seems to be a simple undocumented "no attachments" rule that prevails. So, if someone else needs something besides DBPro to run the code, it probably doesn't qualify. I can think of a few exceptions where attachement might be acceptable, such as including a sample text file for a code to 'read' - which would have probably been acceptable for the encryption/compression challenge or the parser challenge.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 25th Jun 2005 05:23
Yes - no EZrotate, if that's what you were thinking. Not everyone has it so your code may not run on their system.



qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 25th Jun 2005 17:02
ive never used limbs before. ill give it a shot though

Check out the DB Freebie Archive: http://lysergium.net/dbfree/ thanks to DARKGuy
Want your game hosted free and a forum for feedback, or want media hosted? Click the email button below
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 25th Jun 2005 18:47
i cant think of doing euler without ezrotate(free version) on the limbs.

also newton(another free one) has built in joints that you can make an arm in a few commands.
anyways
qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 25th Jun 2005 20:43
us hardcore c0d3rz make our own code!

Check out the DB Freebie Archive: http://lysergium.net/dbfree/ thanks to DARKGuy
Want your game hosted free and a forum for feedback, or want media hosted? Click the email button below
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 26th Jun 2005 05:13
Here's something I did a while ago.



Quote: "i cant think of doing euler without ezrotate(free version) on the limbs."


What I learned is to not work the angles from the object, but to work the object from the angles. I found it a lot more accurate if I kept track of the angles I needed in variables, manipulate those variables as needed for the rotations, then apply the results to the object. This allowed me to perform some pretty complex rotations only using DBPro commands.

This code sample demonstrates keeping objects in sync with each other as if they were attached limbs.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Jun 2005 10:00 Edited at: 26th Jun 2005 10:18
Quote: " i cant think of doing euler"


Basically means WONT think.. I admit that addons such as EZRotate take a LOT of work out of things like eular roation and things, but until you really know how they work, you cant fully understand WHY you're using them and how to make it more efficient.

For example, a LOT of people dont realise that bit-shifting 1 to the right is exactly the same as divide by 2 and its much slower to do a divide function that a bitshift (generally).

If you know how eular works, you can optimize your own function to work in that situation. For example, you might not NEED to do a boundary check for 0 < x < 360 if you KNOW your angles are going to be 180 +/- 45 degrees.

I personally have no idea how Eular works - but its one thing I'd LIKE to know.. I'd also LIKE to do this compo. but what with work not letting me get home till 7pm and be not getting time to myself at all - I can barely excuse time to get drunk, let alone time to programme... and when I do get time to programme (for fun, not for work) I always get forcefully distracted by a parent unable to find the start button or my washing pile getting in the way of my office chair reversing away from my keyboard so I am in a comfortable position

@Ric: Any news on the your know what? Hehe.. I know what its like to be busy.. I haven't done any recreational programming in weeks.. :-(

My Website:
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Jun 2005 17:38 Edited at: 27th Jun 2005 01:55
@Nick; I'm going to do it today - finally have some time I'll mail you tonight.

<edit> extracted 54 code snippets from 13 pages so far, and organised into a table with clickable links. Half way nearly - taking longer than I thought!

@All; I'm sure all this talk of Euler angles is making this challenge sound more difficult than it really is. (Famous last words!) I'm going to have a go at this today.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Jun 2005 04:04
OK - finally got there. 1191 posts trawled to extract and collate 90 pieces of code for the DBChallenge Database. Only took me all day! Mailing you now, Nick.

5 days into the robotic limb challenge - noone managed anything yet?

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Jun 2005 09:39
I'd love to enter this challenge as limbs have always interested me and I find you can do LOADS of interesting things with them, like turrents on tanks and stuff - but recently I haven't had ANY time to do anything.

I should have gone to bed hours ago due to work tomorrow but I wanted to get this DB Challenge DB up and running - and now it is! Thanks for the time you put into this Ric

Here is ThingyMaJig V2. Its still very much a beta, so please dont break it When I get time I am going to make as many features as possible for this - maybe even an RSS feed

btw: I wouldn't worry about signing up just yet.. there isn't much point as there is no forum, guestbook or anything else really.. In fact, the login feature is only really there so I can get to the admin side of things.

Cheers guys - good luck with this compo!

My Website:
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Jun 2005 10:07
Looking great! Nice work, Nick. Adding the link to the first post now.

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 27th Jun 2005 10:31
Nic & Ric: Awesome!!! Great work!

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Jun 2005 21:03 Edited at: 27th Jun 2005 22:18
I have today off ill and am working on the challenge... Quite fun actually!

Does it HAVE to be keyboard controlled?

EDIT: Basically, I started work on it and have made it mouse controlled.. Lol..

EDIT 2:
This is my code so far.. Going well me thinks.. Not sure what to do from here though Was tempted to make it a "pick up and place" game.. or maybe sort of football like where the end limb "kicks" a ball?!



Controls:
* hold left mouse button to angle the strut
* roll the mouse wheel the change strut selected. Sorry to those of you who dont own a mouse with a wheel - but to be honest.. well.. Spend £5 and get one that does and is optical Hehe..

Has anyone here got the shadow shaders to work? Cos that would make it much easier to see how far from the ground you are.. I couldn't get it to work at all. It'd either load and do nothing, or maybe everything go dark! Lol..

My Website:
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 28th Jun 2005 00:46
That's pretty nifty Nick! I can see you making some kind of game from that. As far as the shadows go, I haven't tried (or seen anyone) using the new shadow commands. I would do them manually as triangles straight down from the limb at the plain (or matrix) height +.05 (or whatever works).

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Jun 2005 01:47
hmm... thats not a half bad idea Riidii!

I wonder if that could be done with linked limbs... Somehow they take the y angle and the x,z coords of the limb... Unfortunately I dont think you can tell a limb to ignore 2 axis of rotation and 1 axis of movement without doing it all manually....

My Website:
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 28th Jun 2005 01:51
Yeah, limbs would be tough, especially if you want to make it a game and put it on a matrix with variable heights. For small codes like these, creating the triangle shadows on-the-fly shouldn't slow things down. I wouldn't try it with a lot of objects (>100 +/-).

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Jun 2005 01:54
True - I might look into that - or maybe just laser distance sensors on the joints.. As with all good games, any problem can be covered by story line Hehe..

PS: Post 1200!!!

My Website:

Login to post a reply

Server time is: 2024-11-23 02:04:30
Your offset time is: 2024-11-23 02:04:30