[PS2] POPS stuff & POPStarter
Sony Programming and DevelopmentThis is an interesting problem. It isn't impossible for this to be a combination of glitches...
I haven't managed to check if old versions of uLaunchELF has a workaround for this, but the old (Before 2014/12/13) homebrew PFS driver had a bug in truncating existing files (O_TRUNC did not work).
To work around this glitch, old versions of OPL would first delete the file, before creating the new file. Not doing so, would result in the file retaining some of its original content if the new file is smaller than the old one. This would explain why file sizes seem to be "carried over".
But that does not explain if/why files seem to take the names (and perhaps the spot of?) of other similarly-named files. I will let you guys know if new bugs are found.
Potential errors in PFS.IRX:
dir.c/pfsGetDentry(): dentryLen has the wrong value (AND'ed with ~4 instead of ~3), logic at the "hmm" comment does not include the equals case.
dir.c/pfsDirRemoveEntry(): the code around the "strange?!?;" comment is just a check against the inode's 64-bit size field. Wrong thing being checked against.
I haven't managed to check if old versions of uLaunchELF has a workaround for this, but the old (Before 2014/12/13) homebrew PFS driver had a bug in truncating existing files (O_TRUNC did not work).
To work around this glitch, old versions of OPL would first delete the file, before creating the new file. Not doing so, would result in the file retaining some of its original content if the new file is smaller than the old one. This would explain why file sizes seem to be "carried over".
But that does not explain if/why files seem to take the names (and perhaps the spot of?) of other similarly-named files. I will let you guys know if new bugs are found.
Potential errors in PFS.IRX:
dir.c/pfsGetDentry(): dentryLen has the wrong value (AND'ed with ~4 instead of ~3), logic at the "hmm" comment does not include the equals case.
dir.c/pfsDirRemoveEntry(): the code around the "strange?!?;" comment is just a check against the inode's 64-bit size field. Wrong thing being checked against.
I think this trojan about color fix. I mean Tomb Raider game's problem not about missing textures but dark textures. So it wont work with games which have missing textures. Tried Duke Nukem Total Meltdown game and didn't work.
Apparently, it freezes trying to open POPSTARTER/usbd.irx or POPSTARTER/usbhdfsd.irx from the memory card. And this portion of code IS the one I modified between OBT13 and OBT14 !
So I reviewed that piece of code, but haven't find anything wrong...
What happens if you run POPStarter in USB mode with and without a memory card inserted ? Does it make any difference ?
Also, please someone try to run POPStarter with POPSTARTER/usbd.irx and POPSTARTER/usbhdfsd.irx in mc0 or mc1.
I've tried only 2 flash drives. One has a capacity of 8GB, second 32GB.
Both are able to launch game from a USB.
Although I don't know how to run POPStarter in a debug mode, so I do not know if it will help.
Edit : @Jolek the IRX modules need to be lowercase in mc?:/POPSTARTER/ - yours are uppercase.
POPStarter is getting stuck in the same moment as @diegoginard previously mention.
![[IMG]](https://web.archive.org/web/2im_/https://snag.gy/wzjNLq.jpg)
Thanks for your test. Could the IRX modules be the problem ?
What happens if you use same modules, still named lowercased, but with POPStarter OBT 13 ?
What happens if you use same modules, still named lowercased, but with POPStarter OBT 13 ?
Thank you. Looks like the memory card stuff in USB mode is broken and there's a file I/O problem.
@diegoginard , did you have one of the IRXs in your MC when you tried POPStarter ?
@diegoginard , did you have one of the IRXs in your MC when you tried POPStarter ?
I've made a test and everything is ok. Game boots.
Maybe because of that:
Unfortunately I've got BSOD.
EDIT: I also try USB drivers from a FMCB 1.94, nothing has changed.
I think POPStarter look for lowercase files, right? From my experience uppercase and lowercase matters on Memory Card and HDD.
Minha pasta “POPSTARTER” no memorycard contém estes arquivos (Não existe os arquivos “usbd.irx e usbhdfsd.irx”), veja:
![[IMG]](https://web.archive.org/web/2im_/https://s31.postimg.org/6hz31os07/POPStarter.jpg)
Será que o problema são os arquivos “usbd.irx e usbhdfsd.irx”, porque eu executo o POPStarter perfeitamente sem estes dois arquivos na pasta “POPSTARTER”.
Meu PS2:
-- Versão “SLIM”;
-- Chip “MATRIX 2.0”;
-- Não uso o “FreeMCBoot”, somente o “OPL_896_DB_V2” renomeado como “BOOT”.
Translated by Chrome
The “POPStarter_r13_WIP_06_OBT_20160723” worked perfectly on my stick “Kingston DTSE9”.
My folder “POPSTARTER” on memorycard contains these files (no files “usbd.irx and usbhdfsd.irx”), see:
![[IMG]](https://web.archive.org/web/2im_/https://s31.postimg.org/6hz31os07/POPStarter.jpg)
Does the problem are the files “usbd.irx and usbhdfsd.irx”, because I run perfectly POPStarter without these two files in the folder “POPSTARTER”.
My PS2:
-- Version “SLIM”;
-- Chip “MATRIX 2.0”;
-- I do not use the “FreeMCBoot”, only “OPL_896_DB_V2” renamed “BOOT”.
When the beta 13 use does not give me any problem only when using the beta 14 black screen gives me so I do not think it's a problem of the memory card IRX

Actually IT IS a problem related to the USB IRX files on the MC :
The beta 13 noes not give you a black screen because it does not load the files at all.
The beta 14 gives a black screen because it crashes trying to load these files.
Like Jolek wrote, the thing that was supposed to fix the beta 13 bug is bogus :facepalm: .
So the solution here is : delete or rename the USB drivers. They still cannot be loaded + POPStarter crashes trying to open them.
@Paco, have you tried increasing the USB delay ? In most cases it helps with the USB errors...
I climbed the dalay to 04 and follows the same error
I'm just wonderinq is that possible you write a dreamcast emulator for ps2. if ps2 system power's enuogh for this?
Original thread: https://assemblergames.com/threads/ps2-pops-stuff-popstarter.45347/