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
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 22nd Dec 2005 00:20
Okay! i think i have the compilation done

here it is. sorry it took me so long, first i was busy with school, then family came home for christmas...

--Peter

"We make the worst games in the universe..."

Attachments

Login to view attachments
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Dec 2005 00:34
Dont appologise! I'm gratefull for the help! I'm just about to hit the sack, but I'll take a look tomorrow. Have ur family left already?! Christmas hasn't really started here yet

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 22nd Dec 2005 14:59 Edited at: 22nd Dec 2005 14:59
Nope, they (the two who come back from college) are still around.

Quote: "Christmas hasn't really started here yet"

if the includes shopping you might want to get a move on it... christmas is in only 3 days you know

"We make the worst games in the universe..."
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Dec 2005 16:41 Edited at: 22nd Dec 2005 16:45
Ahh there is loads of time for shopping!

Those code files are great peter, thanks very much! I should have said that although I have the robotics limbs entry in the list, I haven;t actually got any code for them yet Can you remember what page the STD was on?

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 22nd Dec 2005 18:15
Ok, i added it. it wasn't much extra work since i already knew were it was

"We make the worst games in the universe..."

Attachments

Login to view attachments
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 23rd Dec 2005 01:28
Good job Peter.

@Nick: Did we agree on a revised deadline for this current challenge? I'll be off with family tomorrow for five days, so I'll have to post my progress on this challenge when I get back.

I'll take this opportunity to wish everyone here a happy christmas.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Dec 2005 10:15 Edited at: 3rd Mar 2008 23:11
We didn't - I was waiting for people to decide if they thought it was ok. The answers so far have said yes - so I announce a 1 week extension. This will make the deadline Tuesday 6th January 2006 (my first day back at work )

[center]
David Gervais
Retired Moderator
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 23rd Dec 2005 12:44 Edited at: 23rd Dec 2005 13:34
TDK, I saw your medialess texture code for the brick wall and was wondering if the bricks could be shaded,.. I came up with this..



the only thing is the light is comming from the wrong direction, does anyone have an idea on how to reverse the shading?

Cheers!

EDIT: Wow, this is my first code snipet posted here,.. I think I'm in danger of addiction lol

Edit v2.0: I found the answer to my own question,.. in line 9 change the Dot N,TT to Dot 127-N, 63-TT and voila,.. shaded in reverse.

Edit v3.0: I managed to figure out how to make the gradient go from the top left to bottom right,..



Comments are welcome, cheers!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Dec 2005 15:34
Cool - I wonder if that could be modded for a racing game

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 24th Dec 2005 02:46 Edited at: 24th Dec 2005 02:48
Good news - an early christmas present if you will, with the excelent (and much appreciated) help of Peter, I have completed another bi-annual update to the challenges database.
http://www.thingy-ma-jig.co.uk/new/

On the left, you can see a block called DB-CDb (Dark Basic - Challenge Database). From there you can view all the code entries, search for anything specific (for exameple, my Ants RPG entry) or you can view a new feature - the leaderboard. I spent an hour restructuring it slightly to allow a few stats to be brought out Interesting to see that Riidii and Ric have entered 27 of 31 challenges followed by myself and Phaelax on 11 (difference is, Phaelax has yet to win hehe... (j/k)).

Anywho - comment please!!

EDIT: There is a known "bug" where some large code entries can take a while to appear or sometimes time out due to being too long to parse :-(

Segan
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Canada
Posted: 24th Dec 2005 05:31
wow. While looking at the leaderboard, I saw some pretty consistant winners. CPU: Wins 2/2 challenges, while Tinkergirl is 2/4...

(BTW: I'm bowing out of this challenge and am trying to put some more work into last challenge. I figure if I can get an entity/level editor that exports code fit for challenges such as this, I will be better off in future challenges!)
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 24th Dec 2005 14:36
Wow - that's an amazing collation of work there. Truly stunning and for usefulness could easily give the codebase a run for its money!

Well done Nicholas, well done Peter, well done Ric, and well done everyone who's ever entered!
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 25th Dec 2005 00:51
nick you cant copy the code without the numbers being copied they dont get selected tho...how about a "download code" link for it raw?

New site!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 25th Dec 2005 01:06
Yeah, this is something I have been considering. Its strange, its a Mozilla thing. IE doesn't copy the numbers, but ironically, IE is too crap for my site to work in right now. It has trouble figuring out how wide to make things :-(

Good idea though! I'll chuck in a feature to download the file Cheers.

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 25th Dec 2005 01:46


Now to plot the death of father christmas

New site!
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 25th Dec 2005 04:58
Or even easier, how bout just skipping the numbers entirely and just adding like a little comment header that states how many lines the file is at the top and just having the rest without any side numbers?

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 25th Dec 2005 23:37 Edited at: 25th Dec 2005 23:40
I could easily do that (count the number of newlines (n) in the text), however the line numbers are there in case anyone wished to refer to a specific line of code(s).. For example "Ah.. you want to create a speckly green texture for grass? Thats achieved in my RPG entry on lines n to m"

I do appreciate input to this though as, at the end of the day, I'm providing it for others, not for myself.

Whats peoples opinion on removing line numbers (it would save me bandwidth )? What about a "download source code" button? Any other suggestions? The site as a whole is still in development, however I would appreciate anything in the form of critisism or suggestion (or praise ) about the site.

CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 26th Dec 2005 02:35
How bout a compromize: When you first click on the code it displays the line numbers with a link below the code box to switch between line numbers and no line numbers? And don't think that a download source button would be of any use, seeing how you should be able just to paste the code into the editor.

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
Segan
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Canada
Posted: 26th Dec 2005 05:06
Just a thought:

Most people who are going to be looking around the website are people who are going to pretty much just copy and paste the source strait into their IDE which has the line numbers in it already.

Oh, and I would also like to point out that I have been able to make it around the site using IE, so it is possible (some things are slightly off where they are supposed to be, but I only really care about the features, which all seem to work )
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Dec 2005 12:45
yeah, I've put some stuff in to make IE work, but I'm quite picky and I hate to see my site all out of alignment when looking at it through IE.

Thanks for the comments - Ill see what I can do about the line numbers... Currently think that it could be made a cookie-based preference, so once you have set it, it will remember it for you. I agree about the copy/paste rather download. Its kind of the point of the challenges

Are there any other features people would like to see? Maybe some kind of rating system?

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 26th Dec 2005 14:56
I've said this before, but maybe order them in reverse chronological order? (so the newest is at the top)

"We make the worst games in the universe..."
Digger
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 26th Dec 2005 15:21
well. it's been SOME time since i last posted anything here.
so... this is as good a place as any so here it is.




damn it's been a long time...
any comments?

cya

Life is hell.
...and then you die.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Dec 2005 16:02
David Gervais
Retired Moderator
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 27th Dec 2005 00:18
Digger, when I try to compile/run your code I get this Error..

Runtime Error 118 - Array does not exist or array subscript out of bounds at line 107.

Line 107 is the following..



Cheers!
Xzaero
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 27th Dec 2005 02:38
could someone maybe give me a brief summary on what this whole topic is about i dont have the patience to read 2000+ posts

I Sneak up on people
Segan
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Canada
Posted: 27th Dec 2005 03:45
@Digger: I've got the same error that David did.
andre
18
Years of Service
User Offline
Joined: 19th Dec 2005
Location:
Posted: 27th Dec 2005 04:17
get me free copy of darkbasic prof

DARK_VIRUS
andre
18
Years of Service
User Offline
Joined: 19th Dec 2005
Location:
Posted: 27th Dec 2005 06:01
why is that

DARK_VIRUS
pm me to help start a game making company!
--------------------if you worry you die and if you dont worry you die. f#%k worry
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 27th Dec 2005 08:07 Edited at: 27th Dec 2005 08:14
i got it to compile by stopping it from running certain lines when the array indeces would be invalid (x or y > size or x or y < 0) but it ran so slowly i couldn't even move my mouse :/

Here's my modified version of digger's code. Why it runs so slow is prolly the massive size of everything.. if you can run this full speed digger i want ur pc (or my pc's graphics are playing up again :\)



New site!
Segan
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Canada
Posted: 27th Dec 2005 17:54
@Xzaero: It's not important that you know everything that has happened here already. The most important part is the very first post (the rules). After that all of the posts are related to the current challenge (you will find the most recent one about 20-30 posts back I think.) If you want to see what has been done so far, Nicholas Thompson has a website with the entire archieve of challenges on it, so check it out!

@andre: What???
Digger
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 29th Dec 2005 11:42
oh dear. yes the array errors.
for some reason those got forgotten in there. see the brackets on (size)? it was supposed to be (size-1) etc.

Neofish, thanx for the editing. about speed...

Athlon xp 1900+ (overclocked to 2400+)
Geforce FX 5700 (some tuning with Rivatuner)
512 Mb Ram, WinXP.
and i get a solid 40 fps.
are you sure you want MY pc???

at line 90 something reduce the value of SIZE to lets say 300. or less. that will make the landscape "flatter" but at least it will run at a desent speed. provided you are interested in making it run

so, should i even bother turning that pile of lines into some sort of propper code?
cya?

ps. is there a spell checker? i hate ASSUMING that i was mostly correct.

Life is hell.
...and then you die.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 29th Dec 2005 22:15
Quote: "Athlon xp 1900+ (overclocked to 2400+)
Geforce FX 5700 (some tuning with Rivatuner)
512 Mb Ram, WinXP.
and i get a solid 40 fps.
are you sure you want MY pc???"


I know I sure don't.

what was the deadline?


Deadly Night Assassins
blinky
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: in my seat waiting patiently
Posted: 29th Dec 2005 22:21
January 7th I think

Blink to live
blinky
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: in my seat waiting patiently
Posted: 29th Dec 2005 22:22
January 6th actually

Blink to live
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 29th Dec 2005 23:51 Edited at: 29th Dec 2005 23:57
digger my pc is better than urs how can you get that fps?

does the car even move?


i changed it to 100 and i get to move the car

i can get 45 fps with these settigns:


dude is ur pc insane or somethign?
maybe my dbp version is just making it gehy :\

New site!
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 30th Dec 2005 08:27
Hey Nic. I just was looking for some old code I posted in this thread, and I noticed it wasn't in your database. The code was for the Encryption/Compression challenge. It was a large code, so I put it in the Source Code box, which is probably why it got missed. Anyway, that was about page 25 or so (I currently have 61 pages showing in this thread).


Open MMORPG: It's your game!
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 30th Dec 2005 09:30
i have 122 :\

New site!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 30th Dec 2005 14:49
Just back from holiday - hope everyone had a great Christmas. Nick's challenge database looks great, and I love the new leaderboard feature - I knew it was tight at the top, but didn't realise just how tight it was! I better get coding!

Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 30th Dec 2005 18:47
Hey can i put the 3d models i have on my site then ftp them from there please then i have a game already made basiclly for this compo

Experienced DB http://www.greatgames3d.com (work in progress site)
DarkBasic Pro Guy
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location: Broomfield, Colorado
Posted: 30th Dec 2005 19:26
this is the 25th page

If you are asking for available DLLs, Go here
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 30th Dec 2005 19:39
Quote: "Hey can i put the 3d models i have on my site then ftp them from there please then i have a game already made basiclly for this compo "


No media allowed - as I think you know!

Quote: "this is the 25th page"


Depends on your browser I guess - this is page 62 on my PC.

DarkBasic Pro Guy
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location: Broomfield, Colorado
Posted: 30th Dec 2005 21:22
go to profile>user/forum profile>forum>scroll down and find messages per page and set it to 100.

If you are asking for available DLLs, Go here
Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 30th Dec 2005 23:34
Quote: "
No media allowed - as I think you know!

"

But it's not coming from the project file's it's off the net

Experienced DB http://www.greatgames3d.com (work in progress site)
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 31st Dec 2005 00:21
The point is that it's a challenge board, if you want 3d models then you are challenged to make them, otherwise if you make them on an editor, there's no real challenge.

Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 31st Dec 2005 11:56
ahhh ok i'll make them on the editer then then output it to save then reload it as one object

Experienced DB http://www.greatgames3d.com (work in progress site)
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Dec 2005 12:06
i dont think you entirely get the point of this thread Its a media-less challenge thread. Anything to do with models you have made should probably go in a different board, let alone thread!

Sorry bout the lack of replies. Been with family in a lovely place called Wales...
Riidii - I'll have a look into the missing code entry. Due to the hundreds of entries, its more than possible one of two have been missed!

Hows everyones christmas been?

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 31st Dec 2005 16:59
No rush Nic. I probably wouldn't have noticed myself if I didn't need to find that one entry. But I figured it was better to mention it. I can't begin to describe how valueable your database has been.


Open MMORPG: It's your game!
DarkBasic Pro Guy
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location: Broomfield, Colorado
Posted: 31st Dec 2005 19:55
You can include upto 1 MB in media in the beginners challenge thread.

If you are asking for available DLLs, Go here
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Dec 2005 22:08
thats nice... you dont seem to get why there is a "no media" rule though do you

DarkBasic Pro Guy
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location: Broomfield, Colorado
Posted: 1st Jan 2006 07:54 Edited at: 1st Jan 2006 08:03
well for beginners it is harder to make all media in code don't you think?

it is 2006 here now. I am 1 hour behind server time

Login to post a reply

Server time is: 2024-11-24 04:04:19
Your offset time is: 2024-11-24 04:04:19