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 / Bugs with software

Author
Message
GeneralRandom 1
13
Years of Service
User Offline
Joined: 13th Mar 2013
Location:
Posted: 13th Mar 2013 23:44
Hi everyone, Just got a small issue with DarkBasic. Not to sure which thread is the right one for this to fit, but ah well.

Currently doing a game project (Maze) for school. At a high level it consists of a 50,52 maze with 1 character which is free moving, 6 enemies with randomly generated directions and 10 collectibles.

Been working on DBPro in school and everything working fine. Take work home and i'm using DBPro free. This is where the problems start. Every time i run the code, the game runs, no error messages in the output window. It loads the maze, the 10 collectibles, the timer, collection score, lives. but it refuses to load the character sprite, or 1 of the 6 enemy sprites, the other 5 are fine.

I'm really at a loss as to why the thing wont work properly. because the character wont load, i can't test the other aspects of the game the way i want to - hampering development time.

I've tried removing the multiple elements of the enemy sprites array so I just have 1 enemy, (less pressure on the processing of my computer to see if it was performance based) But it still refuses to show.

I've uninstalled the software, and reinstalled. No luck. My teacher and I have no clue whats wrong and its not showing anymore. So any advice or idea as to why its doing this would be greatly appreciated.

Luck is on the side of those who work hard
ShellfishGames
13
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 14th Mar 2013 13:43 Edited at: 14th Mar 2013 13:44
Quote: "but it refuses to load the character sprite, or 1 of the 6 enemy sprites, the other 5 are fine."


So you get a runtime error? What exactly does it say?
Did you check whether right before loading those sprites "file exist( <sprite file> )" returns 1? Maybe you're in the wrong directory.

Have you tried writing a new code that loads those sprites and does nothing else?

Are you running the same version of Dark Basic on both computers you worked on?

Maybe you could post the part of your code where the sprites loading takes place.

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 14th Mar 2013 15:37
Post the code here. Use the code button to enclose your code with [ code ] tags.

Likely the sprite image file location is not the same as it is in school.

GeneralRandom 1
13
Years of Service
User Offline
Joined: 13th Mar 2013
Location:
Posted: 14th Mar 2013 23:15
The thing is, there are no errors being shown as a message box, or in the output window. So the code working..slightly.

As for the Images, I've saved them all in the same directory as the DBPro and DBa file, so that there would be no need for constantly changing the file directory. Works perfectly.

Quote: "Are you running the same version of Dark Basic on both computers you worked on?"


At school its DB Professional, at home i'm using DBPro Free. My knowledge of the limitations of the free version is small, so i dont know if i'm pushing the boundaries of it.

I'll post another post with the code

Thanks guys !

Luck is on the side of those who work hard
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 16th Mar 2013 00:44
Check that both the free version and the 'pro' version have the same updates.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]

Login to post a reply

Server time is: 2026-07-07 04:10:56
Your offset time is: 2026-07-07 04:10:56