Hi! I have put together a little something of a project called Monty. It
is a rougue like dungeon game, and it is developed in Anjuta as a
consolebased project.
Now, if I put the binary, and the datafiles just somewhere else in my
catalogue tree, like ‘cp $HOME/Projects/Monty $HOME/games’, THEN SDL
likes to Parachute my app. I think, “What the [heaven] is this?!”
I’d like to be able to distribute my work, but not like this.
I just wonder if there is someone else having my problems, or what can I
do to find enlightenment?–
Patrich Bj?rklund <@Patrich_Bjorklund>
Home Factory
Almost certainly this has nothing to do with SDL. Not really, anyway.
Probably you’re loading data files with SDL_Image or just bmp’s with SDL
and not checking the surface to see if the load worked. When you move
your files the path doesn’t match your data files anymore so the file
doesn’t load, and as soon as you use that surface (which is actually
NULL, now) it seg-faults and the SDL Parachute opens.
Make sure you’re using relative paths everywhere in your project. Check
permissions and make sure all your files were moved correctly.On Fri, 2003-06-06 at 15:38, Patrich Bj?rklund wrote:
Hi! I have put together a little something of a project called Monty.
It is a rougue like dungeon game, and it is developed in Anjuta as a
consolebased project.
Now, if I put the binary, and the datafiles just somewhere else in my
catalogue tree, like ‘cp $HOME/Projects/Monty $HOME/games’, THEN SDL
likes to Parachute my app. I think, “What the [heaven] is this?!”
I’d like to be able to distribute my work, but not like this.
I just wonder if there is someone else having my problems, or what can
I do to find enlightenment?
Thanks for your answer!
Yeah, I never told you like I should have. I do have relative paths.
That is the strange thing. I have in my console output confirmed loading
of .wav files too, so before the output came this far, all .png files
have been loaded.
Furthermore, I have now successfully made an install via configure &&
make && make install, so this is obviously not at all SDL-related.
One thing you were correct in that, I did not check if every file I have
loaded is ok. That will be corrected shortly. AND convert surfaces to
the right format, and…and…and…a bunch of other things.
/Patrich
fre 2003-06-06 klockan 22.38 skrev Jimmy:> Almost certainly this has nothing to do with SDL. Not really,
anyway. Probably you’re loading data files with SDL_Image or just
bmp’s with SDL and not checking the surface to see if the load
worked. When you move your files the path doesn’t match your data
files anymore so the file doesn’t load, and as soon as you use that
surface (which is actually NULL, now) it seg-faults and the SDL
Parachute opens.
Make sure you’re using relative paths everywhere in your project.
Check permissions and make sure all your files were moved correctly.
On Fri, 2003-06-06 at 15:38, Patrich Bj?rklund wrote:
Hi! I have put together a little something of a project called
Monty. It is a rougue like dungeon game, and it is developed in
Anjuta as a consolebased project.
Now, if I put the binary, and the datafiles just somewhere else in
my catalogue tree, like ‘cp $HOME/Projects/Monty $HOME/games’, THEN
SDL likes to Parachute my app. I think, “What the [heaven] is
this?!”
I’d like to be able to distribute my work, but not like this.
I just wonder if there is someone else having my problems, or what
can I do to find enlightenment?
Patrich Bj?rklund <@Patrich_Bjorklund>
Home Factory
–
Jimmy
Jimmy’s World.org
–
Patrich Bj?rklund <@Patrich_Bjorklund>
Home Factory