View previous topic :: View next topic |
Author |
Message |
ickylevel
Joined: 26 Feb 2009 Posts: 4
|
Posted: Thu Feb 26, 2009 4:05 am Post subject: Program not working on other's machine |
|
|
Hey , do you know , by any chance what could cause this problem :
When others try to test my game made with derelict-sdl , the screen is black but the program is running. It's like the graphic part only isn't working.
I tried to include some dlls in the folder. I added some from a D working game I have downloaded. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Thu Feb 26, 2009 5:00 am Post subject: |
|
|
It could be absolutely anything. If it were a problem with a missing SDL DLL, Derelict would throw an exception when trying to load it. Without more data, all anyone can do is guess. And even that's hard to do without knowing what your program does.
I suggest you implement some logging in your graphics code to monitor the state of things as it runs. Then examine the output after running on your tester's machines. And make sure that you are testing the return values for errors when calling SDL functions. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
ickylevel
Joined: 26 Feb 2009 Posts: 4
|
Posted: Thu Feb 26, 2009 11:05 am Post subject: |
|
|
Anything ? Why is it working on my computer then ?
I think it's related to sdl image because I have the same kind of problem if I remove the images from the game folder. |
|
Back to top |
|
|
aliloko
Joined: 31 Jan 2008 Posts: 15
|
Posted: Thu Feb 26, 2009 12:45 pm Post subject: |
|
|
Maybe you used absolute file paths. |
|
Back to top |
|
|
ickylevel
Joined: 26 Feb 2009 Posts: 4
|
Posted: Thu Feb 26, 2009 3:11 pm Post subject: |
|
|
No. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Thu Feb 26, 2009 6:25 pm Post subject: |
|
|
ickylevel wrote: | I think it's related to sdl image because I have the same kind of problem if I remove the images from the game folder. |
Are you checking error codes? Are you ensuring that the images are actually loading? What you say here suggests to me that you aren't. It's quite possible that, for whatever reason, the images aren't being loaded on the other machines. Again, all anyone can do here is guess. You need to try debugging your program to figure out what's going on. Logging is a great place to start in this case. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
ickylevel
Joined: 26 Feb 2009 Posts: 4
|
Posted: Sat Feb 28, 2009 10:22 am Post subject: |
|
|
aldacron wrote: | ickylevel wrote: | I think it's related to sdl image because I have the same kind of problem if I remove the images from the game folder. |
Are you checking error codes? Are you ensuring that the images are actually loading? What you say here suggests to me that you aren't. It's quite possible that, for whatever reason, the images aren't being loaded on the other machines. Again, all anyone can do here is guess. You need to try debugging your program to figure out what's going on. Logging is a great place to start in this case. |
Probably. Trying ... |
|
Back to top |
|
|
|