Fix compilation on latest PSL1GHT#2
Conversation
|
I tried a lot but I cannot for the life of me figure out why it won't display |
|
Thanks for your attempts, the toolchain was painful to use in my experience in such a way where I could modify it easily to see what had broken things. If you've managed to get a setup going where you can easily compile and test changes to PSL1GHT I'd be keen to hear what you did :) |
I was using the ScummVM Docker Container) |
|
I forgot to mention, cgcomp broke with the shaders Wii64 uses, these rules seemed to work to by pass it #---------------------------------------------------------------------------------
%.fpo : %.fcg
#---------------------------------------------------------------------------------
@echo $(BUILD)
cgc -profile fp40 ../$(SHADERS)/$(notdir $<) -o $(notdir $<).asm
cgcomp -f -a $(notdir $<).asm $@
#---------------------------------------------------------------------------------
%.vpo : %.vcg
#---------------------------------------------------------------------------------
@echo $(BUILD)
cgc -profile vp40 ../$(SHADERS)/$(notdir $<) -o $(notdir $<).asm
cgcomp -v -a $(notdir $<).asm $@ |
Got back to this and nope |
|
I have a bugfix PR for the cgcomp issue ps3aqua/PSL1GHT#2 Thank you for this PR @Fancy2209 Ive also looking at getting this compiling and thank you @emukidid for the original work!! |
|
Nice to hear @solstice0 ! |
|
Nice work, I'll merge this once you're happy and the PSL1GHT PR has been merged. |
For this PR I don't think I'll do much |
|
@emukidid I just talked with solstice, it works if you use an old cgcomp version before the shaders broke |
the cgcomp thing was a red herring, I thought newer versions were making invalid shaders that made wii64-ps3 crash. but turns out shaders work fine in with my fixed cgcomp. its a texture issue in this PR, theres a few small fixes I have then it should be good to merge but yeah it is booting in rpcs3 now, going to validate on my real ps3, get everything cleaned up and make a PR to your fork this weekend, then I think we are good to merge
yes cube64 is glitched lol I'll try to get that figured out |
|
Awesome @Fancy2209 ! I do think the ps3aqua fork of psl1ght is the way to go here, ps3dev psl1ght is outdated and hasnt been maintained in over a year. btw I was thinking of making a docker image based on the ps3squa one with the cgcomp fix, and maybe a few other enhancements like lua.h etc, and the work you did on PSGL etc edit: cause yeah I think the toolchain is a major pain point for many would be ps3 homebrew devs, having a nice tidy docker image with everything you need already compiled is much easier than building from source. ps3 aqua docker image you linked already covers this except the Cg fix |
I added what I thought was relevant from PSGL into the tree, which is just the flipping changes |
Has depth issues, but very close to intended output
|
It seems this is only a partial fix |


Unfortunately seems to crash because of an invalid texture format (at least on RPCS3, I do own a PS3, just haven't loaded the elf in it yet), but it compiles
The video to videoOut changes are because I'm using the ScummVM fork of PSL1GHT, can revert them if it's desired to target normal PSL1GHT
I'm investigating on getting this to actually work again as I wanted to fix the menu issues mentioned, will submit a separate PR to fix the menu and crash on boot when I figure it out (or simply mark this as a draft until I fix running the app if desired)