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 Discussion / DarkNOOBS Project 1

Author
Message
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 10th Oct 2008 05:39 Edited at: 10th Oct 2008 05:51
Hmm I'll run some test on that then, thanks.

[edit]

LOL that IS the problem with the black background. Why the heck is it even turned on anyways.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 10th Oct 2008 06:00
The compatibility issue with TEXT is because of the DBC update.
When you SET TEXT FONT the font uses a character set, the old DBC defaulted this to 1 (normal text), the update defaults this to 0 (large text).
The remedy is simple: specify the character set as 1.


Thanks to Latch for that trick

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 10th Oct 2008 06:11
Which is problamatic, because it glitches if you do that in my version. I really should get it updateable...


+

I don't have anymore time for today, so here's the menu for now. Tear it apart or whatever it needs:



I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 10th Oct 2008 06:30
@Obese
Thanks for bringing this up. Will look into it.

@Irojo
Nice use of colors.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th Oct 2008 06:35
@Irojo
Nice work. Thats pretty awesome. Tomorrow, lets get it into a function and then we can quickly call it when necessary.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 10th Oct 2008 06:48
Thanks guys! Okay BN2. I think we'll need to save it as another image file...


I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 10th Oct 2008 06:56
Any progess with the file scanner, does it still need more adjustments?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 10th Oct 2008 07:01
Wait I'm making a file scanner or is that BN2?


I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 10th Oct 2008 07:25
No, I made a file scanner but it needs adjustments. I was asking if BN2 is getting it to work properly or not.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th Oct 2008 08:24
I haven't had a chance to work on it. Can't today, will check it out tomorrow or the next day, depending on when I have time.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 10th Oct 2008 14:52
Okay Ashingda, gotcha.


I download memory.
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 10th Oct 2008 18:39 Edited at: 10th Oct 2008 18:40
Hello everyone!
Sorry I haven't been much help. Maybe I could start getting back in the team...

I got some time to make this level (attached). Suggestion: Make something that goes up, instead of the rocks, that go down. I was thinking of Spike Balloons, but I don't think anyone has seen of those in a mine.

If there's something you need help on, I might just be able to help. Happy Coding!

By the way, for some reason the file isn't a .map, but it still works.


"I reveal my trap card, GEORGE DUBYA BUSH!
America loses 2000 Life Points! America loses." -Deucalion2
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 10th Oct 2008 18:47
It doesn't need .map It filters every file the same, however, It is .map so we can filter out the other files ideally.


I download memory.
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 12th Oct 2008 04:12
I just noticed one big problem in this game: While playing it, you can't return to the main menu! So If I made a level, tested it, and found a flaw, I would have to close the game and re-open it.

I'll try to alter the code and see if I can fix the project.


"I reveal my trap card, GEORGE DUBYA BUSH!
America loses 2000 Life Points! America loses." -Deucalion2
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 12th Oct 2008 08:16 Edited at: 12th Oct 2008 08:18
Don't worry about it, we are working on that. We are going to put in a menu button from in-game.

Again, I reiterate my point: I don't want anyone to mess with the main code without my approval



@ashingda
How is it going with the bug fixes? Have you finished and integrated it yet?

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 12th Oct 2008 12:25 Edited at: 12th Oct 2008 12:30
I posted it a while back, I changed the 'Text' command to 'Print' so in the FileIO function, it shouldn't have the black background anymore.

Irojo pointed out the the black background was also caused by the 'Set Text Opaque' Command.

File is attached.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 12th Oct 2008 21:05 Edited at: 12th Oct 2008 21:34
Alright, must have missed it.

Irojo, do you have an update on how the menu is going?

[Edit]
Awesome, it works ashingda.

Everyone, the code is uploaded on the website! Please update your code and media to the latest version if you are working on something.

I had an idea. We could set it up so that so that a level file can contain up to 5 levels inside of it. That way, when you beat a level, it will move into the next level in the series. If you want to change level series we can use the menu.

What do you guys think? I think it would be relatively simple to integrate.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 13th Oct 2008 06:02 Edited at: 13th Oct 2008 06:07
Yeah sounds good.

[edit]

Im not sure how we're going to combine the different maps inside one file. Are we going to use a third dimension?
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 13th Oct 2008 09:01
We could, or we could just reload the next map (loading really doesn't take any time). Just use a multiplier to know where to start. Updating every function to make it work with a third dimension would be painful and annoying.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 13th Oct 2008 17:12
Im not so sure about that....


I haven't had any time to work on the menu. I've been very busy. I should be able to get cracking soon though.


I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 13th Oct 2008 21:51 Edited at: 13th Oct 2008 21:54
Made a FileNext() function. This checks the folder specified and the current file then loads up the one directly after it.

filename$ = FileIO("Maps",160,120,2)
After using this to get the current filename$

filename$ = FileNext("Maps",filename$)
Use this to get the next file alphabetically &or numerically.

Note: If there are no more files left it will return nothing.

The Function is attached, use #include.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 14th Oct 2008 02:59
That works, but we would need code should we not have anymore maps in the given level (or whatever)

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 15th Oct 2008 01:19
There's a problem with this once you go quit>"<--"

The menu isn't there. I have no clue what is wrong, and I've tried deleting sprites, deleting images, showing sprites,scaling, Everything.

So What's wrong?





I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 15th Oct 2008 06:21 Edited at: 15th Oct 2008 06:24
@Irojo
Fixed the problem. It really was just dbc being retarded (it happens sometimes). Here are the changes I made (both fixes for the bug and a couple things)

-placed sync right after the get image 1 command
-placed sync right before the sprite 1 command
-Made all of the sprites outside of the game loop and just let them get hidden through the first iteration, to prevent a bob doesn't exist error.
-Switched the gosub mainmenu with a goto, since you won't be returning at all, you are just going to that position and starting over.



Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th Oct 2008 06:04
sorry for the double post

@ashingda:
For some reason when your FileIO function is called, it works the first time, but not the second. The problem is probably in some variable values that get carried over from call to call (a weird but still existant issue). Try to figure out which flag variable or counter it could be and then have it get reset at the beginning of the function and repost the fileio file.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 16th Oct 2008 08:10 Edited at: 16th Oct 2008 08:15
Ok working on it.
It was the varable 'esc' just like you said, I forgot to reset it lol.

It's now fixed and attached.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th Oct 2008 08:34
Awesome thanks, figured it was a simple fix, I just don't like diving into and changing others' function unless I know EXACTLY what everything does.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 21st Oct 2008 18:14
Perhaps we should... start a different project...? This doesn't seem like it's going to be finished.


I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 21st Oct 2008 21:01
Well, once we get that menu code done, we are done really, with just a little compilation. Then I will call it because work has slowed down considerably

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd Oct 2008 23:17
@Irojo
You want to give up now?
When you've put all the hard work in?

@BN2
I was hoping to help with the editing of this project but since I've had very little involvement the code is quite hard for me to follow.
I have a day off tomorrow so I'll be able to help if you need it.
You said you made a website and put the code on it, what is the url?
I'll have a look at the code you posted a few posts up.

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 23rd Oct 2008 23:41
the url is: http://darknoobs.cjb.net

Unfortunately, our code is a little hard to follow right now. Hopefully next time it will be better.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd Oct 2008 23:51
I've made an alteration to that menu code, don't want to stick the oar in too much (it's not my game after all) but that backdrop was being drawn a lot of times so I put it in a subroutine. I also simplified the gradient effect, I gave it a very subtle colouring but I'll let you guys play around with that.


There are two other things I think we could make better: the do loop can be changed so that the loop ends when a button is clicked on. There is also a very clever way of simplifying area detection which I'll put in. I'll work on these in a minute.

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th Oct 2008 00:18 Edited at: 24th Oct 2008 00:19
Ok so it turns out it's not that simple, I took this:

and turned it into this...

I swear it was simpler than that
The idea is instead of checking X against A and then against B, you check X against the average of A and B (the middle). Then you have to check that against a tolerance, A-B will give the distance between the two points so that's the most obvious tolerance to use.
Oh dear that doesn't sound very simple at all!

Anyway I did manage to cut down the detection code: the X area is always the same so we only need to check it once.


A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 24th Oct 2008 02:04 Edited at: 24th Oct 2008 16:54
ARGH! You changed the colors... *sob*

Why does the menu speed matter?



[EDIT]

Perhaps our next project, or one of my own:


Ingame, use d to switch to line tracking, and n to switch to normal mode.



I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Nov 2008 02:01 Edited at: 5th Nov 2008 02:05
Let there be LIGHT (on this almost dead thread).

Took the initiative to take the menu code and insert it into the main code. Also updated the gui to include words and a timer/gem counter.

Ashingda, your fileio function for some reason has trouble working a second time. Probably a variable that tells it to exit isn't properly reset at the beginning/end (remember, variables in functions retain their value even after the function is finished and then recalled). Look that over, fix it and we are done with this (finally).

Everything is zipped. Enjoy!

[EDIT]
Sorry, upload is giving me trouble. Uploading it to fileden, will post a link in a couple minutes.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 5th Nov 2008 02:04
How dare you! Finish it without my permission!!! How horrible....

*Gives award*
You are amazing.


I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Nov 2008 02:08 Edited at: 5th Nov 2008 02:10
Thanks, but it isn't really done yet, like I said, there is a major bug, but it should be the easiest fix.

Besides, all I did was put your code in, so give yourself the award.

http://www.fileden.com/files/2007/7/27/1301559/DNG_Pro1_Final_Build1.zip

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 5th Nov 2008 02:12
Quote: " all I did was put your code in, so give yourself the award."

But it's pretty difficult to find the right spot for that in the thousands of lines of code.


I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Nov 2008 02:14
Yeah, one thing is for sure, lets try to keep the code next time a little cleaner and easier to follow. To be honest, I didn't care for the way ashingda re-wrote the code. While it was cleaner looking at first, it was irritating because it was hard to edit the code.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 5th Nov 2008 02:16
Agreed. At that point, all I wanted was to be done with it.


(Check out DBC challenge thread, I edited my post with some code )


I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Nov 2008 02:23
I know, I felt the same way, but was afraid that if we never finished this one, the entire thing would just die. So, I put it in, and about an hour or so later (mostly testing) it was done.

Side note: I didn't enjoy testing it over and over having to go through the main menu and such. Next time, lets build it modular enough that we can just cut stuff out and keep it working (that way we can test it and jump straight into the level, rather than having to restart the menu and load the level and such).

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 5th Nov 2008 02:26
Okay. Before I download it, are the credits and Instructions not running off the screen?


I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Nov 2008 02:30
Hmmm, never realized that they did that Must be fixed along with ashingda's stuff. I figure, if he doesn't come on soon, I will dive in and see what I can do, though I do loathe modifying large sections of completely un-commented code that someone else wrote...it is annoying.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Nov 2008 20:44
Sorry for the double post but:

Irojo, I am not seeing those run off screen. Double check it and make sure that what you remember has or hasn't been fixed yet.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 5th Nov 2008 21:27
The Credits work, but the bottom line of the instructions runs off the screen.

I do remember fixing the credits come to think of it..


I download memory.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Nov 2008 00:36
I'm quite impressed, this has turned out great!
I tried to load a map I made but it crashed
Don't spend too long debugging BN2, it's great that you've put a lot of effort it in but you don't want to get sucked in to making it perfect.

I will try to be much more active from the start of the next project, it was impossible to edit anything after not being involved so long.

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Nov 2008 01:34
I actually figured out the problem with ashingda's code. It was just a flag variable that needed to be reset. so thats good.

Which map did you try to load?

On that note, anyone want to spend some time making real maps for it? I am if you are.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 6th Nov 2008 06:39
I'll put together some maps. I'm busy right now, but I should have some within 48 hrs.


I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Nov 2008 09:03
awesome, i will make a few as well

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 6th Nov 2008 23:03 Edited at: 6th Nov 2008 23:22
I downloaded it, and I don't get it... Most of the text is surrounded by black spots, and the code is so changed as far as going from place to place, I can't make head, nor tail of it. Even the editor is alot different. The loading bar is gone, and the brightness control is different. And the arrow no longer goes back and forth.

File loading was failing as well.

I'm lost as far as this program goes now...


I download memory.

Login to post a reply

Server time is: 2026-06-10 03:17:26
Your offset time is: 2026-06-10 03:17:26