Homebrew - External files?
Moderator: cheriff
Homebrew - External files?
I'm new at this so I don't know the inner workings yet, but one thing just struck me. How do you access external files/models/textures etc in ps2 homebrew using ps2link?(Or naplink even)
I have a modded ps2, am I right in thinking once you require external media you have to either A) pack them in the source like on a gba etc or B) Start burning your game and media to cd every time and running directly?
I can do either without problem, I'd just rather know for sure I'm using the best method everyone else is.
I have a modded ps2, am I right in thinking once you require external media you have to either A) pack them in the source like on a gba etc or B) Start burning your game and media to cd every time and running directly?
I can do either without problem, I'd just rather know for sure I'm using the best method everyone else is.
ps2link provides this nifty 'host0' filesystem, which lets you read files from your pc
Shoot Pixels Not People!
Makeshift Development
Makeshift Development
The PS2 ethernet hardware is 100mbps. But the PS2 IP stack is very slow and unoptimized at the moment, you're lucky if you see 5-10mbit/sec.
And ontop of that "host:" is still a bit flakey, music will skip when streaming audio for example.
Some of us are in the process of fixing the PS2 IP stack, so it should get better in the future.
But for now, I wouldn't expect any decent speed out of the "host:" filesystem.
And ontop of that "host:" is still a bit flakey, music will skip when streaming audio for example.
Some of us are in the process of fixing the PS2 IP stack, so it should get better in the future.
But for now, I wouldn't expect any decent speed out of the "host:" filesystem.
In the majority of cases you are likely to hit anytime soon, it should be 'good enough' ...
The main thing to keep in mind is to be smart about things; probably the biggest no-no to avoid is doing lots of small reads. Doing lots of small reads is horribly slow.
The main thing to keep in mind is to be smart about things; probably the biggest no-no to avoid is doing lots of small reads. Doing lots of small reads is horribly slow.
Shoot Pixels Not People!
Makeshift Development
Makeshift Development
yeah it should be enough, I'm just learning at the moment so I don't expect to be greating 50gb games with a hundred levels.
Just very cool that I can stream data if needed.
jbit, expect to gain any big speed increases with your IP stack fix or will it just be more consistant? (I'm guessing it stalls based on his no small reads comment)
Just very cool that I can stream data if needed.
jbit, expect to gain any big speed increases with your IP stack fix or will it just be more consistant? (I'm guessing it stalls based on his no small reads comment)
Use the files Luke, the files.
Hey drak is it possible to write a file on the pc side as well?
I mean what would happen if I did something like (And the code will be wrong, I've been using C# for too long) fwrite("host:screenshot.raw")
could I then dump the screenbuffer pc side?
If not I suggest adding it please :) I think it would be a great feature for those of us without screen captures etc.
I mean what would happen if I did something like (And the code will be wrong, I've been using C# for too long) fwrite("host:screenshot.raw")
could I then dump the screenbuffer pc side?
If not I suggest adding it please :) I think it would be a great feature for those of us without screen captures etc.