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
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 2nd Oct 2008 05:38
Damn, I keep forgetting to do that. I will get right on it as soon as I finish my homework. Expect it up by tomorrow afternoon (possibly tonight, but I don't want to make any promises).

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: 2nd Oct 2008 06:52 Edited at: 2nd Oct 2008 06:54
My charger died again. I write this from my mac, which doesn't support DBC as said before. $90 for a charger is not within a budget I have. I will be without an unknown amount of time. The charger chirps, but energy is not making it through. It's some problem with a lose wire. Worse comes to worse, I'll pull apart my charger, and check it out. Can't lose anything...

Apologies. This means I cannot Attach Files/Code/Test Code.

I will keep up with the project, however there is little I can do. There is also problems with the Credits not fitting on screen that I had planned on fixing...

Any code on my laptop cannot be retrieved for the time being. I guess desktops have their charms don't they?

Well that's all I've got. I seem to keep on bailing on you guys... :S

Sorry,
Irojo


I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 2nd Oct 2008 07:28
Can your mac run exe generated by dba?
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 2nd Oct 2008 08:14
Thats no problem man, don't worry about it.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 2nd Oct 2008 18:00
Quote: "Can your mac run exe generated by dba? "

No, since it doesn't support DirectX.


"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: 2nd Oct 2008 18:09
Although, newer macs use intel, so you COULD install windows on it and thus direct x

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: 2nd Oct 2008 20:52 Edited at: 2nd Oct 2008 21:50
Here's a screen shot of the next project, still in the map maker.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 2nd Oct 2008 22:08
Ashingda. You are realllly good.


I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 2nd Oct 2008 22:33 Edited at: 2nd Oct 2008 22:34
Quote: "Ashingda. You are realllly good.
"

Why thanks, I'm proud of my the functions that I just learned how to do but the graphics I mostly just took off of a free tiles site that was a link in the 2d-all the way thread.

If you know any cool free media let me know.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 2nd Oct 2008 22:45
Actually, what I have found for good free 2d media, is to look for RPG maker 2000 or 2003 resources. There are thousands of character sets, tile sets, monter graphics, and some animation tilesets. Just google it and you can find it. All of it is community made with no strings attached.

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: 2nd Oct 2008 23:03
WOW you are right, I just struck a gold mine here!
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 2nd Oct 2008 23:27 Edited at: 2nd Oct 2008 23:29
Alright, updated the webpage with new code and media and such. Everything should be up to date now.

Also updated the to-do list

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: 3rd Oct 2008 00:25 Edited at: 3rd Oct 2008 10:13
I'm going to run through the code and see what I can do. There might be alot of changes to the structure, like a grip load of tab indents and a tangible main loop. Everything should probly stay the same otherwise.

[edit]

@BN2
You did something interesting, I didn't know you can run functions off a different file. How does that work, is it as long as it's in the same folder or do you have to connect it somehow?

[edit]

I made alot of changes to the team codes. Here's the update.

Codes:
- First of all, we have a very obvious Main Loop now.
- The main sections are structured in States now and easier to find.
- Got rid of alot of left over REMs.
- Erased some functions that are also not used.

Intro:
- I shorten the FadeIn FadeOut by speeding it up from 1 to 50.
- Fixed how it always flashes after Fade befor loading next screen.

Main Menu:
- The main titles don't flicker anymore.
- Arrow keys now use flaging instead of timming and are faster now.
- Exit sub now clears sprites and images befor END
- Extras: System: I recoded this sub to shorten it up. It no longer uses the ----|---- anymore for I switched it wich a box command and added text numbers above it.

Loading:
- Swaped the File scanner mode to Keys only. The whole game uses no mouse now.
- The loading bar is no longer there.

Game:
- Random music are now played everytime you load a new stage.
- During game:
BackSpace - returns to main menu
Spacebar - Reloads the Map
Return - Loads new map
Dead or Clear Stage - Loads new map
- Added a clear Rock array sub used befor loading new map.

Media:
- Modified the crystals pictures to have black background so it can be transparant instead of white in game.
- Changed the file name for my modified main charactor so he can be used. This guy actualy has a pickaxe.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 3rd Oct 2008 09:06
you use the command #include and then the filename with the functions. It ONLY works with functions. It tells the compiler to compile the functions in the other file into the main exe

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: 3rd Oct 2008 10:17 Edited at: 3rd Oct 2008 10:21
Quote: "It ONLY works with functions"

Thanks, I didn't know it only works with functions.

@Irojo
How come your map editor dont have a selection 3 "Player"? I can insert one if you want. Anyways your editor is fully operational now everthing works from save - load - exiting.

Here's the codes, a few things changed, actually alot of things changed but test it out. I mostly just rearanged the codes.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 3rd Oct 2008 17:22
I'm dying to test it out!!


And I'm extremely curious: How did you keep it from doing the blinking after fading? I thought I tried everything.

And I don't recall the menu titles flickering...

It seems like you've done loads of work.

And it's obvious you've already done tons...

Put yourself in the credits!

Keep up the good work, because the game's almost finished.


I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 3rd Oct 2008 18:25 Edited at: 3rd Oct 2008 18:38
Quote: "And I'm extremely curious: How did you keep it from doing the blinking after fading?"

Just right after the fade you CLS, Wait, then Sync.



Afterwards you can reset the gamma.

Quote: "And I don't recall the menu titles flickering..."

The reason why the larger title is doubled is because after setting the size = 40(large) it's then changed to 20(small), this causes it to redraw itself. In my case it flickers back and forth between the larger and smaller.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 3rd Oct 2008 18:43
I never would have thought of waiting: Good idea.


I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 4th Oct 2008 05:08 Edited at: 5th Oct 2008 23:25
Because BN2 pointed me to a load of resources which I haven't even gone through all of them yet the map editor looks like this now.

[edit]
Ok I updated the editor by adding layers and modified the tiles to overlap.

Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 4th Oct 2008 05:10
Wow.


I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 6th Oct 2008 00:16 Edited at: 6th Oct 2008 00:16
And here's more screen shots.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Oct 2008 01:30
So, how is our project coming? Any more progess?

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: 6th Oct 2008 03:57 Edited at: 6th Oct 2008 03:58
Other than the game itself everything is working properly.
Rock falling and pushing needs some adjustments. I have it working in my version but the terain array I used was multidimensin. I can throw my rock & pushing codes in but the array will have to be 3 dimensioned.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Oct 2008 04:52
3 dimensioned? what is the third

also, pushing code and falling does work, at least every time I have tested it, it does. What happens when you do it?

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: 6th Oct 2008 05:53
The rocks and the player does not move separetly. After moving sideways then to under a rock, you cannot move downwards or you instantly die. I belive you should be able to move the player down then to the sides and get out of the falling rock's way.

3 dimensions Terrain(x,y,Layers). This is to map the different tile types so you know where they are.

I used 9 layers in mines.

Dim Map(14,14,8)

Layer0 = Original map
Layer1 = Ground
Layer2 = Rocks
Layer3 = Walls
Layer4 = Gems
Layer5 = Player
Layer6 = Moving Rocks
Layer7 = Moving Player
Layer8 = Animation Frame for Moving Objects

I'm still a bit new to this, I'm thinking now that maybe I didn't need this many layers, although it works I think it could be done with fewer.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Oct 2008 06:01
All you need for the array is 14,14.

The value of the second 14 is where you would store the terrain data. You would do it this way since there is no possibility of a tile being both ground and rock and gem and player.

Re: the dropping, that is how it is supposed to be. This will force you to think more when you play it, since it is a very real possibility that you can put yourself into a position where you can't survive. The game is a logic game. Besides, if you make the rock drop at the same time that the player can move, it could fall on the player while standing there, which kind of removes from the logic end of it, in my mind.

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: 6th Oct 2008 06:21 Edited at: 6th Oct 2008 06:22
Ok, as I'm not too sure how the rocks are supose to function, I just left it as is. I might have messed up the Left push as I arranged the codes. Only the Right push works lol.

I also converted some of the BMP to PNG to save space and made a few maps and modified some old ones. Here's a RAR of the updated Code+Media.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Oct 2008 06:28
Ok, could you post a zip, I can't open a rar file and don't want to download the problem to open it.

What exactly did you change code wise?
I need to know so that I can fix it if it doesn't work anymore.

Also, before you start making changes to the entire program code in the future, could you please tell me before you do it, just so that I can know whats going on?

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: 6th Oct 2008 06:51
I cannot believe you do not have winrar. Ok Zipped it up.
Quote: "Also, before you start making changes to the entire program code in the future, could you please tell me before you do it, just so that I can know whats going on?"

I believe I did mention something about it.

Quote: "What exactly did you change code wise?"

Mostly it was the way it was sturctured. The other large change was the Key Press in the main menu/extra menu. I finnished up the MapEditor so it can now Load/Save properly and swaped the rocks/walls/etc tiles with the ones in game.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 8th Oct 2008 23:49
Sunshine. Sunshine, beautiful clouds....


I bought a new charger, so I can code again!


I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 8th Oct 2008 23:51
Awesome, glad to have you back!

Now, everyone, lets (finally) finish this project!

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: 9th Oct 2008 00:04
Alright, lets get this rolling again.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 9th Oct 2008 00:18
Yes Indeed!


I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 9th Oct 2008 07:39 Edited at: 9th Oct 2008 07:41
Alright, so what do we have left to do?

Ashingda, your updated code is a lot neater, but for some reason I keep getting an out of memory error just as it loads your loading screen. It worked the first time which is why I am puzzled.

Also, when you die it should just start the level over, no need to re-call the open window. The load level button will be in the ingame menu.

Irojo, could you work out the code for the in-game menu?

Ashinda, your job is to try to track down this memory leak. I did fix the pushing code, so no worries there (there was a variable called playerx being used, in our program, that variable is just px, not playerx)

NOTE: From now on, all code should be made outside of the main project code, to stop us from having multiple versions. Also, check with me before making any changes and get my ok before doing so.

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: 9th Oct 2008 09:36 Edited at: 9th Oct 2008 09:41
Here's some changes that I thought out, let me know which one's are ok.

- Changing all the Main Menu backgrounds to pre-rendered images.
- Get rid of the variable 'Bright' and the gamma option in systems. I find it not very useful, what we can do instead is to have option to change the color of the menu boxes.
- Remove the Functions 'Messegebox' and 'Rockbox' as they aren't being used.

Quote: "for some reason I keep getting an out of memory error just as it loads your loading screen"

I'm not sure about that cause it never happened to me. Was it right at the main menu? I can track it down or change the screens into images as suggested above, that will also make coding much much shorter and simpler.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 9th Oct 2008 17:48
Sure BN2. What do you want for the selections?


I download memory.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 9th Oct 2008 18:31
Quote: "Was it right at the main menu?"


No, it was after I chose play. The error line was in your file loader code.

I do like your suggestions ashingda, but they are things we should wait till the end to do. Lets make the game run 100% first THEN we can make those changes.

@Irojo

The in game menu should have these things (if you think of anything else, let me know):

-Resume (Since the game will be paused)
-Load New Map
-Restart (We might even want to make this set to a key, for quick resets)
-Quit (With a sub-menu)
-To Menu
-To Windows

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: 9th Oct 2008 18:52
Alright gotcha!


It will be fancy...


I download memory.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 9th Oct 2008 21:08
Ok the problem might have been that it was using too many 'Get' commands and posibly some 'Bitmaps' also had a left over sprite and extra use of arrays.

I've completed a newer version where it doesn't use any of those except for 2 arrays. It now only use simple 'Box' command to drawn onto the screen and much more compatible.

Syntax:
filename$ = FileIO("maps",160,120,2)

- "maps" is the Folder you wish to access. This can also be any other folders.

- '160,120' are the XY coordinates, these values should center the window or you can place it anywhere else.

- Last variable '2' is the Mode.
Mode0 = Open using mouse
Mode1 = Save using mouse
Mode2 = Open using KeyBoard

You'll have to erase the function from the main code and use this as #include. Also need to replace the old command to access the function to new ones.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 9th Oct 2008 22:53
awesome I will check that out shortly. Thanks. A good tip, just delete all the bitmaps and such that you use at the end of the function, just to prevent any kind compatability errors.

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: 10th Oct 2008 01:06 Edited at: 10th Oct 2008 01:27
sounds like you're nearing the end of this project.
I'll lend a hand with the editing if you need me.

I tried to cobble together bits from the thread; I only got as far as loading the game with the jeopardy music but then it crashed.
Can someone upload the full new code, I'm not sure what the latest build is.

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: 10th Oct 2008 01:30 Edited at: 10th Oct 2008 01:42
Roger that, will post in a few

@Ashingda
Getting some weird font problems with your updated code, make the necessary changes to the main code io calls and repost it, if you would please.

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: 10th Oct 2008 02:17
What exactly is the problem?

Changes:

-The functin uses Font="system", Size=10. What I changed was to save the previous font+size then load the default, after the function is done, load back the previous font+size.

Maybe that should help.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th Oct 2008 02:27
It looks like the name in the entry section is quickly cycling through all files and the text is black with a black background.

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: 10th Oct 2008 02:46 Edited at: 10th Oct 2008 02:54
Ok that I know of, It's actually got nothing to do with the FileIO function.

It's related to the fadein/fadeout and the use of changing the font back and forth, I ran across that also and don't know where it starts doing that.

Even befor I changed the main code that would happen after going back to the Main Menu from the game section. That is also a reason why I made all the Main Menu into images.

I don't know how to make the INK background transparent again, I think that's the problem.

[edit]
In this example, it shows you cannot use multiple text size effectively. This is the main reason for storing the screens in images instead of generating it in a loop.

It's just a simple; Set Size, Text to screen then Sync, but it messes up.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th Oct 2008 03:56
Hmmm, I didn't notice anything with the example, what is supposed to be messing up?

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: 10th Oct 2008 04:05 Edited at: 10th Oct 2008 04:11
That's funny maybe it's just my computer then.

[edit]

Can you post the codes so I can test out what's wrong?
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th Oct 2008 04:27
The codes are exactly what you posted, never really got past that. My guess is that I just made an error somehow when I called the function, but since you know how to make it work (I assume), then just make the changes.

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: 10th Oct 2008 04:50 Edited at: 10th Oct 2008 05:14
Because of compatibility issues I swaped all the 'Text' commands into 'Print'. This should get rid of the black background on text.

It's odd how it doesn't work the same for everyone, what works perfetly fine for me does not for you and vice versa.

[edit]

I can stay quite active tonight so if there's any post I should be able to actively respond.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 10th Oct 2008 05:28
Ashingda-


Isn't that black background called Opaque?
You could cancel it out with set text transparent then I think.


I download memory.

Login to post a reply

Server time is: 2026-06-10 21:50:48
Your offset time is: 2026-06-10 21:50:48