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.

Newcomers DBPro Corner / music problem

Author
Message
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 7th Aug 2011 17:14 Edited at: 7th Aug 2011 17:14
hey guys

iv run into a small problem that is in the "load sound command"
heres the problem



not much am i right? and it gives me a "runtime error cannot load sound" Any ideas?
thanks

cheers, Tokyomage

.....the feel of solitude hurts inside....
Zorkonian12
14
Years of Service
User Offline
Joined: 28th Jul 2010
Location: Why would I tell you?
Posted: 7th Aug 2011 19:28
Did you import the music into the media folder? If you didn't, that is probably the problem.
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 7th Aug 2011 19:31
yes its in my media folder
any other ideas?


-Tokyomage

.....the feel of solitude hurts inside....
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 7th Aug 2011 22:34
You're not loading it from the media folder, you've told the program that its in the project folder. (Where your executable is)

Change the line to Load sound "media/song1.wav",1 (Replacing "media" with the path for the file from your project folder)

Hope that helps.

tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 7th Aug 2011 22:51
strange, still no diffrence...
i just tried it on my laptop and it says the same thing.
any ideas? thanks for the help though.

-Tokyomage

.....the feel of solitude hurts inside....
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 7th Aug 2011 23:29
Can you tell me the absolute path of the sound file, and your project folder? (By Absolute, I mean the whole thing from c:\)

Also double double double check that the file is actually called song1.wav.

tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 8th Aug 2011 00:24
sure thing, heres the path:

c\program files (x86)\the game creators\dark basic pro\projects
\my games\dodge game\media


well there you have it.
And i double checked it, the song is named correctly and is in .wav format.

-Tokyomage

.....the feel of solitude hurts inside....
Mugen Wizardry
User Banned
Posted: 8th Aug 2011 00:56
load sound "my games\dodge game\media\song1.wav", 1

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Aug 2011 01:12 Edited at: 8th Aug 2011 01:12
Ok, so assuming your executable is in the Dodge game folder, you'd need to load the sound like this. load sound "media/song1.wav",1

tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 8th Aug 2011 04:11
sadly neither of those lines are working, im not sure if it has to do with my computer, or my copy of dbp...


-Tokyomage

.....the feel of solitude hurts inside....
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 8th Aug 2011 13:05
Try loading the sound into a sound editing program like audacity and export it again as a new wave or mp3. Try to load an other wave sound and see if that works.

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 8th Aug 2011 23:42
i have done that many times actually, i even tried exporting as ogg.
I will try testing 3 different songs, and see what happens.

-Tokyomage

.....the feel of solitude hurts inside....
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 8th Aug 2011 23:48
all three tests failed... now im really confused...



-Tokyomage

.....the feel of solitude hurts inside....
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Aug 2011 23:55
Try loading it using the absolute path (I wouldn't recomend this in a finished product, but to help us with the debug it'll be ok)

e.g.

load sound "c\program files (x86)\the game creators\dark basic pro\projects\my games\dodge game\media\song1.wav",1

tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 9th Aug 2011 02:41
Hmph, still no change. Im going to look into it more after i finish my homework...


-Tokyomage

.....the feel of solitude hurts inside....
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 9th Aug 2011 11:15
There is a working load sound project attatched to this post. run it and see if it works.

If it works, try it again substituting my wave with yours.
if it wont work with your wave its your file.

if it doesnt work with either wave, its your db software and I recommend a re-install.

kezzla

Sometimes I like to use words out of contents

Attachments

Login to view attachments
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 9th Aug 2011 22:03
sadly no, the test did not work and said the same thing as when i had tested it with the sound i was originally using.


-Tokyomage

.....the feel of solitude hurts inside....
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 10th Aug 2011 00:54
I'm pretty sure its something wrong with your install. It can do strange things when the install is screwed up.

I advise a complete reinstall of dark basic. update it to the latest version from the site(I think its 7.6) and make sure you have the latest version of directx 9.

hope you get it going

kezzla

Sometimes I like to use words out of contents
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 10th Aug 2011 01:10 Edited at: 10th Aug 2011 01:14
Just a random thought, but you are using a project file? (.dbpro)?

I know the executable would run from the temp folder if you are just loading the source from the .dba file, that would mess up any local paths used.

>edit<

Ignore that, we've already tried using absolute paths so it's not that.

Just to be on the safe side, check that the sound file is where DBP expects it to be with the file exist() command; and if that comes back as 1 (Yes, the file exists), then I agree with Kezzla that its a DBP installation problem and will probably be fixed with a reinstall.

Login to post a reply

Server time is: 2024-11-24 02:49:21
Your offset time is: 2024-11-24 02:49:21