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 / Finished products

Author
Message
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 12th Jul 2007 23:54 Edited at: 13th Jul 2007 00:03
I just recently finished a game (sort of :/), and when i sent the file to one of my friends, it gave him a .dll err (D3D i believe), and then a runtime error. The runtime error said that the objects being loaded didn't exist (even though the .exe was in the same folder as the models, and textures. Ugh, what happened?


Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Jul 2007 00:20 Edited at: 13th Jul 2007 00:20
I dont know. Did you try restarting the editor and/or your computer?

n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 13th Jul 2007 00:30 Edited at: 13th Jul 2007 00:30
It worked fine on my comp., btw. If thats what you mean. It just didn't work on his. When you're done with something, do you just give the .exe and media? Or are you supposed to include .dlls?

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
malcom2073
21
Years of Service
User Offline
Joined: 12th Mar 2003
Location:
Posted: 13th Jul 2007 02:00
You should not have to give him any DLL's. Is it possible he does not have the latest version of DirectX installed?
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Jul 2007 03:31
Ohhh sorry I misread. I'm actually not sure why it isn't working. You can try malcom's idea, although you would probably get a different error for that

n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 13th Jul 2007 15:52
He said he installed it, but then he got a runtime error for the objects. The .exe couldn't find them. But they were in the same folder :-s.

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Jul 2007 05:44
You added all the media to the project (the blue Media button)?

TDK_Man

n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 14th Jul 2007 15:56
Yes. And i included it in the .RAR archive.

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Jul 2007 18:20 Edited at: 14th Jul 2007 18:23
If you've used the blue Media button then you shouldn't need to include the media in the rar file as well.

Make sure that only the files your program uses are in the same folder as your .dba file and if they are jpg files, use *.jpg when you add them to the project.

Then, check that in your program you use only the media filename, Eg:

Load Image 1,"picturename.jpg"

If you are using a hard coded path like:

Load Image 1,"C:\foldername\foldername\picturename.jpg"

then there's a very good chance that path doesn't exist on other machines. Media included in the exe doesn't use a path - only the filename, so using a specific path doesn't look where the files actually are.

[Edit] Actually, all that is true for DBC - it might still be the same for DBP too, so worth checking...

TDK_Man

n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 14th Jul 2007 20:09
Yea, i did that just before packaging it. But it works now... For whatever reason. But thanks anyhow .

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
Brain111
17
Years of Service
User Offline
Joined: 5th Feb 2007
Location: In my own little world.
Posted: 14th Jul 2007 21:42
Well thats cool that you got it working. Maybe it was possible that your friend forgot to unrar the files? I send my friends .zips alot, and they've had that problem before when they just try to open it straight up and run the exe. Theyre not exactly... computer literate.

Anarchy Burger - hold the Government!

Login to post a reply

Server time is: 2024-11-25 15:20:53
Your offset time is: 2024-11-25 15:20:53