PS2 mini-OPL v1.0

@TnA I don't understand what You asking for. When it hangs on black screen, only thing which I can do is power off by long keeping pressed power button.

Yesterday I was so sure that issue only lies in logo but it looks like it is not the only one but some other setting interfere (from conf_game and/or conf_network which is rather strange... because conf_opl is still the same in working and not working environment; I don't have conf_apps as I'm start to use new apps system).
Reseting the IOP, to reload modules etc. or something more "special"? It has to do with "coding".
 
try this one, just swap out the OPL on hdd.. same launcher

Okay. I replaced the OPL on the HDD. Same issues.

Dark Cloud - white screen
Ico - white screen
Twisted Metal Black Online - black screen
Sly Cooper - white screen
Shinobi - white screen
God Hand - white screen
 
well i thought it could be https://github.com/ps2homebrew/Open...8cbfa3886728470b6d45fd0f67be7d11145a94c3R1689 because the string is being converted to unsigned long instead of ui since there is no standard function for it but it seems even using the way opl currently converts the string ie eecore/util.c _strtoui produces the same result.. also changed https://github.com/ps2homebrew/Open...8cbfa3886728470b6d45fd0f67be7d11145a94c3R1703 to only read opl & game cfg since network, last etc aren't needed but a conflict there doesnt really make sense since all games would then be affected..

last one, unfortunately I dont have time to work on this anymore so i'll just close the pr and leave the commit on my branch for a cherry-pick or something if someone wants to try continue with it.

PS. IOP reset before and after launching is normal OPL at work so.... idk what TnA means.. it's using normal OPL reset() function which resets iop and loads modules etc .. it's just a custom init() function basically.. anyway check the code it's pretty straight forward.

Best Regards
 

Attachments

Last edited:
@akuhak good concept but this won't work as is.

You're doing stuff too early if using OPLs init(), in the init function there is setDefaults() this will force everything to 'off' before trying to load the users config so the stuff you've forced 'on' before init will be reverted, so you'll probably want to just do all this like you are with the other variables in _loadConfig() including forcing ps2logo off since that seems to cause issues from HDDOSD.

Also you're calling configGetByType() to save to conf_last.cfg, this needs to be done after conifInit() for specific device is called so the config index is allocated. Also don't forget to initialise your variable cause currently the chances of LaunchFromArgs ever being 0 are pretty slim.
 
Last edited:
@Krah thank you, especially configGetByType(), didn't know that conifInit() isn't initialized in init(). I will make "good code practice" later on, but i think that this concept should work now as it is.
Regarding ps2logo - I am pretty sure that it crashed in your concept due to alternate initialization, in my case init() is the same so this problem should be gone. I am also a bit afraid that HDDGameCache can affect the compatibility, as it is somehow used in latplayedgame feature...
 
didn't know that conifInit() isn't initialized in init()
Sorry that was a typo, I meant configInit() as obviously conifInit() isn't anything… but it is called in init(), the problem I was pointing out is that you're calling configGetByType() before init and therefore it'll just return null and OPL with either crash before logo or it'll just load the gui without actually booting the game.. my moneys on crash.

Regarding ps2logo - I am pretty sure that it crashed in your concept due to alternate initialization
Yea could be, I didn't bother to check because at that point I was already away from my environment but checking now checkPs2Logo() does have guiWarnings if error which would cause a lock up..

Anyway I'm curious to see the results also.
 
@Krah ah yes, I forgot that i did it before init() completely. Yes, in such cases currently my concept is not working :( probably I will need one more external variable for game startup elf fule
 
@Krah I've been trying this new OPL out myself and yes akuhak's OPNPS2LD-v1.1.0-Beta test does auto select the game and if you look at the settings Auto Start is set to 0. (once set to 1 like you listed, I'm sure it will boot)
 
Currently there is a problem with ps2sdk - opl just produce black screen - once problem will be solved, I will made necessary changes.

Never mind - my pc still is on old commits - so I put a new test version.
 

Attachments

Last edited by a moderator:

Similar threads

Back
Top