The above video goes away if you are a member and logged in, so log in now!
|
| |
Would you like to get all the new info from PSX-Scene in your email each day?
| |
|
1Likes
-
12-12-2006,05:03 PM
Why not embed all of the files into the program as defaults, and if the user wants to change some of them, look in those folders for files and use them instead of the ones compilied in.
This has the added advantage of making it easier for new users, as well as not doing subfolders on a memory card(which can cause corruption). A single elf is much easier to deal with then a set of files.
Granted this has the disadvantage of taking up more space when the user uses custom content, but you could always make a release that depends on external files, thus negating the filesize increase.(Although that means more work for the devs)
-
12-12-2006,05:14 PM
For compression I'm already using zlib, but I want to keep them in one file, so
- If tar library is fast enough - using that (I think that putting gz files in a tar file should be faster than the other way);
- Developing some half assed format, like putting all these gz files in one file and adding some part that holds offsets to individual files.
I've added an attachment to the previous post. You can test that independently - just compare loading some files in a loop using SetIconFromFileGzp() and loading them using smth. like SetIconFromFileTarGzp().
Got to check if the tar library is in SVN.
@ubergeek42:
I hate these subfolders and trying to get rid of them, but I hate the whole embedding idea even more.
-
12-12-2006,05:35 PM
@EEUG
when i run Scratch.elf with InLink 1.3.7 i get
Login command received: 0 (-2147483648)
Mount: -128
Logout: -128
then nothing after that
I tried loading your ps2client.elf but it just gave a black screen and i was unable to connect
maybe has something to do with the ip address of the ps2?, cause my ps2 is connected to my router, and not directly to the pc
-
12-12-2006,05:49 PM
@EEUG:
Is your ps2ip still compatible with ps2ips?
@ps2ibm:
Check main.c. My bad, there is only the PC ip address.
-
12-12-2006,05:59 PM
whats the header for the gzip stuff,
and where should i get the tar lib from? i looking svn and could not find it
edit:nvm for the gzip stuff i just took the stuff from the svn and built it
Last edited by ps2ibm; 12-12-2006 at 06:05 PM.
-
12-12-2006,06:31 PM
For that Scratch.elf try getting smap.irx and ps2ip.irx from the latest SMS version, reset the IOP and then load them.
Try compiling that - http://www.feep.net/libtar/
-
12-12-2006,07:52 PM
it only allows me to open the first .gz file and has the errors
opening file:host:files/Square_721_BT_B.fnt.gz
open name host:files/Square_721_BT_B.fnt.gz flag 1 data 44278
open fd = -1
for the rest of them, ne idea what causing this (im using InLink v.1.3.7)
and i'll try that smb stuff later because it requires resetting iop and i dont want to move :P
-
12-12-2006,10:10 PM
i'll work on porting the lib tar you linked to earlier, i looked through the code, and should be pretty easy, prob be done tomorrow or something
edit:
i got the libtar to run on the ps2, however, one problem (so far)
when it wants to extract it wants to extract the file to some sort of disk (which is a problem with the ps2)
so i have a few ideas to solve this problem
1. put the whole file in memory and pass the pointer back
2. implement a buffer that reads part of the file, and when the application request that more of the file be read, the buffer is filled again
2. seems like the better option but idk how that would work with the gz functions
i'll work on it more tomorrow but respond if you have ne ideas
Last edited by ps2ibm; 12-12-2006 at 11:51 PM.
-
12-13-2006,02:03 AM
...smb.irx doesn't work with "stock" ps2ip.irx from ps2dev (at least here with Windowx XP). It uses modified ps2ip.irx provided by that ps2link above (as test program does not reset IOP). Note, that you can't just launch ps2link.elf as "ordinary" program. You must replace your ps2link (after backup!!!) on MC or wherever by this one as it must be the "first" program to be launched. Modified ps2link also switches display mode to "interlaced" (as my USB TV card doesn't support "non-interlaced" display mode). Modified ps2ip.irx is fully compatible with the "stock" one (at least everything works here with it), but SMS in SVN doesn't have it yet, as I've made modifications after SVN update. Try to use 'ethereal'/'wireshark' software to trace NetBIOS tcp port 139. It will really help to watch the things that happen (here it helped to discover and fix the problem with "stock" ps2ip.irx)...
Edit: ...SMB protocol also has "read raw" command, so, I'll try to use it in future to see if it makes any difference...
Last edited by EEUG; 12-13-2006 at 04:06 AM.
-
12-13-2006,10:02 AM
i noticed with the libsmb port 139 caused problem,s but port 445 also works for smb, there is a note in the samba source that says
"/*
* Port 139 connection failed. Try port 445 to handle
* connections to newer (e.g. XP) hosts with NetBIOS disabled.
*/
"
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|