confusing problem with setup
Posted: Wed May 25, 2005 1:00 pm
Heya's, Ive got a problem and hopefully you guys will be able to point me in the right direction.
Basically I spent the past few days finally trying to get my development setup running which included grabbing the ps2sdk from the cvs and compiling it and then the latest gskit from the website.
After compiling gskit I thought i'd start playing with the texture example and thats when I hit a snag... using texture.elf via inlink I noticed it would fail with:
open name host:bitmap.raw flag 1 data 41378
open fd = 2
[NET] : Sent bitmap.raw at 190KB/s
Texture 1 Height: 256
Texture 1 Width: 256
open name host:bsdgirl.bmp flag 1 data 41378
open fd = -1
Could not load bitmap: host:bsdgirl.bmp
So I have a look at the texture.c and nothing really stands out so I modify the example so that it only does one texture with
gsKit_texture_bmp(gsGlobal, &Tex2, "host:bsdgirl.bmp");
now, I get
open name host:bsdgirl.bmp flag 1 data 41378
open fd = 2
Get Reboot Request From EE
After playing around gstexture source I came to the conclusion that the offending line in gsKit_texture_bmp was:
FTexSize = fioLseek(File, 0, SEEK_END);
which was returning -1 when it should be working fine. My only solution was to move it to the top of the function when the file is first opened. Once that was done, my example would at least show a black box where the bmp should be and not crash out.
Finally I try to load the texture example using the above mod to gstexture.c and it still fails with
open name host:bsdgirl.bmp flag 1 data 41378
open fd = 2
Texture 2 Height: 384
Texture 2 Width: 256
open name host:bitmap.raw flag 1 data 41378
open fd = -1
Could not load texture: host:bitmap.raw
and right about now im frustrated, is this a problem with my fileio compile, is it something I dont see in gskit or is it inlink not sending the 2nd file etc.
Im sorry if this hasnt made sense to anyone but im at a total loss
Hed
Basically I spent the past few days finally trying to get my development setup running which included grabbing the ps2sdk from the cvs and compiling it and then the latest gskit from the website.
After compiling gskit I thought i'd start playing with the texture example and thats when I hit a snag... using texture.elf via inlink I noticed it would fail with:
open name host:bitmap.raw flag 1 data 41378
open fd = 2
[NET] : Sent bitmap.raw at 190KB/s
Texture 1 Height: 256
Texture 1 Width: 256
open name host:bsdgirl.bmp flag 1 data 41378
open fd = -1
Could not load bitmap: host:bsdgirl.bmp
So I have a look at the texture.c and nothing really stands out so I modify the example so that it only does one texture with
gsKit_texture_bmp(gsGlobal, &Tex2, "host:bsdgirl.bmp");
now, I get
open name host:bsdgirl.bmp flag 1 data 41378
open fd = 2
Get Reboot Request From EE
After playing around gstexture source I came to the conclusion that the offending line in gsKit_texture_bmp was:
FTexSize = fioLseek(File, 0, SEEK_END);
which was returning -1 when it should be working fine. My only solution was to move it to the top of the function when the file is first opened. Once that was done, my example would at least show a black box where the bmp should be and not crash out.
Finally I try to load the texture example using the above mod to gstexture.c and it still fails with
open name host:bsdgirl.bmp flag 1 data 41378
open fd = 2
Texture 2 Height: 384
Texture 2 Width: 256
open name host:bitmap.raw flag 1 data 41378
open fd = -1
Could not load texture: host:bitmap.raw
and right about now im frustrated, is this a problem with my fileio compile, is it something I dont see in gskit or is it inlink not sending the 2nd file etc.
Im sorry if this hasnt made sense to anyone but im at a total loss
Hed