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.

Author
Message
hatothedee
12
Years of Service
User Offline
Joined: 3rd Oct 2013
Location:
Posted: 3rd Oct 2013 02:38
I have saved a file (as a project) on a USB and once I open it again later, there is no code. (this is the same computer, by the way) Also, if I happen to have something load in, how will I make a correct path if I want to play on another computer with Darkbasic Pro? Example:



^say that is the current code, but how will it find this file on a different computer?
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd Oct 2013 02:53
Quote: "say that is the current code, but how will it find this file on a different computer? "

it wont!!!

files that you reference in your code need to be in the project folder and you need to reference them using relative paths like this load image "images/water.bmp"

hatothedee
12
Years of Service
User Offline
Joined: 3rd Oct 2013
Location:
Posted: 3rd Oct 2013 03:13
So will I have all my files with that game? As in, I create a folder with the game and all the files and have those files in their own separate folders? Thank you for your help. I still don't understand how all my code isn't showing up if I saved the project.
hatothedee
12
Years of Service
User Offline
Joined: 3rd Oct 2013
Location:
Posted: 3rd Oct 2013 03:13 Edited at: 3rd Oct 2013 05:00
So will I have all my files with that game? As in, I create a folder with the game and all the files and have those files in their own separate folders? Thank you for your help. I still don\'t understand how all my code isn\'t showing up if I saved the project.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Oct 2013 08:41
Not sure I follow the problem. You're saving your project to a usb drive and then you can't view it? My guess is you're saving the project file to the usb but the source file is located elsewhere.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 3rd Oct 2013 12:00
Hi there.
I test all .exe , in several PC of my familly at home to see compatibility in different operative systems . I have darkbasic instaled in all of PC, and I just have to open the project saved in folder into usb drive ...project works in all PCs

I'm not a grumpy grandpa
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 5th Oct 2013 01:32
Actually the IDE always fails to open a project for me if I just double click on it to open it from explorer. Just open it manually from inside the IDE instead (ctrl + o).


"Why do programmers get Halloween and Christmas mixed up?"
hatothedee
12
Years of Service
User Offline
Joined: 3rd Oct 2013
Location:
Posted: 5th Oct 2013 07:15
Oh haha, I actually figured it all out today. With the path issue, I forgot that I had to pack the images/sounds/etc. with the game. Then the problem with opening a game from a USB is that I did not save the source along with the project. Anyway, thank you guys.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th Oct 2013 18:14
Quote: "I did not save the source along with the project."


Isn't that what I said?

hatothedee
12
Years of Service
User Offline
Joined: 3rd Oct 2013
Location:
Posted: 8th Oct 2013 05:01
Haha, sorry about that. I didn't pay attention to that, but I should have. Forgive me?
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 10th Oct 2013 21:06 Edited at: 10th Oct 2013 21:08
Outside of testing at home, you don't want to load your files with specific drive names in the path like "C:\..."
This is because a player on another computer might have their hard drive or flash drive named E:,G:,F: or whatever.

D.D.

Login to post a reply

Server time is: 2026-07-06 10:36:03
Your offset time is: 2026-07-06 10:36:03