rrath / Wire3D

3D engine for Wii and PC (C++)
GNU Lesser General Public License v3.0
40 stars 6 forks source link

Issue running Demo and Game samples #5

Closed h3xstream closed 2 years ago

h3xstream commented 2 years ago

This is a follow up to an interrogation I had in this other issue... https://github.com/rrath/Wire3D/issues/3#issuecomment-1107798185

Compilation of both Demo and Game succeed but contrary to the other sample. They don't run in Dolphin or actual Wii.

Abrupt exit

image

This is the log in Dolphin:

14:13:846 Core\ConfigManager.cpp:178 N[CORE]: Active title: 
14:13:848 Core\Core.cpp:1060 N[COMMON]: Want determinism <- false
14:13:876 Core\ConfigLoaders\BaseConfigLoader.cpp:81 N[CORE]: Disabling WC24 'standby' (shutdown to idle) to avoid hanging on shutdown
14:13:964 beb\src\cubeb_wasapi.cpp:1332 N[Audio]: default device period: 100000
14:13:964 beb\src\cubeb_wasapi.cpp:1340 N[Audio]: Minimum latency in frames: 480
14:13:964 beb\src\cubeb_wasapi.cpp:1679 N[Audio]: (0000015D7CB5D670) Setup render: device=0000000000000000
14:13:968 beb\src\cubeb_wasapi.cpp:1587 N[Audio]: Setup requested=[f=0 r=48000 c=2 l=stereo] mix=[f=0 r=48000 c=2 l=stereo]
14:13:986 beb\src\cubeb_wasapi.cpp:1730 N[Audio]: Target sample rate: 48000
14:13:986 beb\src\cubeb_wasapi.cpp:151 N[Audio]: COM was already initialized in MTA
14:14:306 beb\src\cubeb_wasapi.cpp:1190 N[Audio]: Stop and join render thread.
14:14:306 beb\src\cubeb_wasapi.cpp:1233 N[Audio]: Closing thread.
14:14:306 Core\Boot\Boot.cpp:527 N[BOOT]: Booting from executable: C:/Code/Wire3D/Samples/Demo/Demo.dol
14:14:489 beb\src\cubeb_wasapi.cpp:1190 N[Audio]: Stop and join render thread.
14:14:489 beb\src\cubeb_wasapi.cpp:1233 N[Audio]: Closing thread.
18:01:148 Core\ConfigLoaders\BaseConfigLoader.cpp:81 N[CORE]: Disabling WC24 'standby' (shutdown to idle) to avoid hanging on shutdown
18:01:194 beb\src\cubeb_wasapi.cpp:1190 N[Audio]: Stop and join render thread.
18:01:194 beb\src\cubeb_wasapi.cpp:1192 N[Audio]: No thread present.
18:01:194 beb\src\cubeb_wasapi.cpp:1190 N[Audio]: Stop and join render thread.
18:01:194 beb\src\cubeb_wasapi.cpp:1192 N[Audio]: No thread present.

Paths

It was mentionned that if the resources can not be loaded it will exit. These seems like a very probable code path. So, I verified that the different resources fonts and textures were using the correct path.

https://github.com/rrath/Wire3D/blob/69e1f13b46689fd5019eab639846d2d3a874d970/Samples/Demo/src/Demo.cpp#L21-L26

Here is the directory structure where i can see that all resources are presented in Data/

image


If you have any ideas, let me know. And btw I am new to both devkitpro, Dolphin and PowerPC... It is likely something very basic.

h3xstream commented 2 years ago

Ok. I realise it works on actual Wii with the Data folder place correctly. This is just a Dolphin question after all.

h3xstream commented 2 years ago

The easiest workaround I found to load Wired3d applications/games on Dolphin is to use the homebrew channel and the virtual SD card.

image

Some details

I followed this guide : https://wiki.dolphin-emu.org/index.php?title=Virtual_SD_Card_Guide

Tools

For reference, I used :

File structure

The file structure is using the typical homebrew apps path. (/apps/[YOUR_GAME]/)

image

Homebrew configuration

The meta.xml is needed to have an entry in the Homebrew Channel.

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<app version="1">
    <name>Wire3dDemo</name>
    <coder>rrath</coder>
    <version>1.0</version>
    <release_date>20140216000000</release_date>
    <short_description>Wire3d Demo</short_description>
    <long_description></long_description>
    <ahb_access/>
</app>

I am closing the issue because I found a way to run Wire3d applications.. But if you have alternative solution feel free to comment.

h3xstream commented 2 years ago

Dolphin release last month a change that allow to sync the SD card to a folder directly. Once enable the sync. You can update your application directly : C:\Users\USER\Documents\Dolphin Emulator\Load\WiiSDSync (Default path) September release include this commit : https://dolphin-emu.org/download/dev/master/5.0-16891/