[PS2] POPS stuff & POPStarter

Run POPStarter in debug mode & report back.
http://prntscr.com/bygie0
This 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 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.
Thanks for running POPStarter in debug mode. Now I can see where it gives a black screen.
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 copied the files (usbd.irx, usbhdfsd.irx) from a SYS-CONF (FMCB 1.952) to a POPSTARTER in mc0:
[​IMG]
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.
You need to apply DEBUG_AND_HALT.PPF to POPStarter.ELF using a PPF patcher (such as PPF-O-Matic) to turn debug mode ON.

Edit : @Jolek the IRX modules need to be lowercase in mc?:/POPSTARTER/ - yours are uppercase.
Thanks for the tip.
When I rename IRX modules from uppercase to lowercase (usbd.irx, usbhdfsd.irx),
POPStarter is getting stuck in the same moment as @diegoginard previously mention.
[​IMG]
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 ?
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 ?
You mean POPStarter_r13_WIP_06_OBT_20151207?

I've made a test and everything is ok. Game boots.
Maybe because of that:
I have also made an another test without debug mode in POPStarter Revision 13, WIP 06, OBT 14 (2016/07/23).
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.
O “POPStarter_r13_WIP_06_OBT_20160723” funcionou perfeitamente no meu pendrive “Kingston DTSE9”.
Minha pasta “POPSTARTER” no memorycard contém estes arquivos (Não existe os arquivos “usbd.irx e usbhdfsd.irx”), veja:

[​IMG]

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]

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
usb0729_001407.jpg
Thanks for confirming.
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
Try 6, that's what I use and it works for me.
We managed to find the bug of black screen in beta 14 USB usbd.irx was, it only took him to delete the beta pops 14 by my pendrive worked perfectly. Thanks to all friends who helped me and did not give up.
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/