PolyMarsDev / Terri-Fried

A multi-platform C++ game made for Ludum Dare 46
200 stars 55 forks source link

PSVITA VPK Execution: psvita C2-12828-1 #11

Open JoseOcasio opened 3 years ago

JoseOcasio commented 3 years ago

Running into psvita C2-12828-1 error code when running the game.

JoseOcasio commented 3 years ago

I suspect and error when drawing the loaded assets. Been debugging for a bit and it seems it in the drawing process or the images are not being properly loaded.

I noticed all paths to the images have a app0:resources/* . What does app0 mean?

xfangfang commented 3 years ago

app0:resources/* means ux0:app/APPID*/resources/


I notice that the CMake doesn't copy the resource files when building vpk.

The cmake file should be added as follows:

vita_create_vpk(${SHORT_NAME}.vpk ${VITA_TITLEID} ${SHORT_NAME}.self
  VERSION ${VITA_VERSION}
  NAME ${VITA_APP_NAME}

 # resources
 src/resources/click.ogg resources/click.ogg
......

  # Livearea files
  FILE sce_sys/icon0.png sce_sys/icon0.png
  FILE sce_sys/pic0.png sce_sys/pic0.png
  FILE sce_sys/livearea/contents/bg0.png sce_sys/livearea/contents/bg0.png
  FILE sce_sys/livearea/contents/startup.png sce_sys/livearea/contents/startup.png
  FILE sce_sys/livearea/contents/template.xml sce_sys/livearea/contents/template.xml
)
JoseOcasio commented 3 years ago

I submitted a merge request that fixes this. It was missing a key dependencies and the location of the resources to be capture in the make file. Require no change on the code, just on the CMAKE

JoseOcasio commented 3 years ago

Fully tested and working as intended with the new changes. Please review.