Hacking WiiFlow - an open source GUI USB-Loader

  • Thread starter Thread starter zorglub07
  • Start date Start date
  • Views Views 3,102,672
  • Replies Replies 16,228
  • Likes Likes 6
@BostonBC - I fixed the emuflow categories code dump but I'm using r351 because r352 freezes on startup.

@Fix94 - r352 freezes on startup for me on the loading screen. here is my wiiflow log
Welcome to WiiFlow (Mod 3.1-r352)!
This is the debug output.
Now hide wait message
Loading cIOS: 249
Reloading into IOS 249 from 58 (AHBPROT: 0)...
Going to show a wait message screen, delay: 15, # images: 5
OK, Current IOS: 249
Loaded cIOS: 249 has base 56

SECTORS: 976773166
SEC SIZE: 512
HDD SIZE: 465 GB [512]
Wiiflow boot.dol Location: usb1:/apps/wiiflow
Force enabling DML view
Loading cIOS map
Found base 37 in slot 245
Found base 38 in slot 246
Found base 53 in slot 247
Found base 55 in slot 248
Found base 56 in slot 249
Found base 57 in slot 250
Found base 58 in slot 251
Data Directory: usb1:/wiiflow

Loading files containing .ogg|.mp3 in usb1:/wiiflow/themes/DEFAULT/music
Loading music list from path: usb1:/wiiflow/themes/DEFAULT/music
Calling list to update filelist

Loading files containing .ogg|.mp3 in usb1:/wiiflow/music
Loading music list from path: usb1:/wiiflow/music
Calling list to update filelist

r351 works fine. hope you can figure it out. need more info let me know
 
Here's mine, I think my problem is more with my hard drive being old than wiiflow.

Welcome to WiiFlow (Mod 3.1-r348)!
This is the debug output.
Now hide wait message
Loading cIOS: 249
Reloading into IOS 249 from 58 (AHBPROT: 0)...
Going to show a wait message screen, delay: 15, # images: 5
OK, Current IOS: 249
Loaded cIOS: 249 has base 56

SECTORS: 1953525167
SEC SIZE: 512
HDD SIZE: 931 GB [512]
Wiiflow boot.dol Location: usb1:/apps/wiiflow
DML is installed as MIOS
Loading cIOS map
Found base 37 in slot 245
Found base 38 in slot 246
Found base 53 in slot 247
Found base 55 in slot 248
Found base 56 in slot 249
Found base 57 in slot 250
Found base 58 in slot 251
Data Directory: usb1:/wiiflow

Loading files containing .ogg|.mp3 in usb1:/wiiflow/themes/CARBONIK/music
Loading music list from path: usb1:/wiiflow/themes/CARBONIK/music
Calling list to update filelist

Loading files containing .ogg|.mp3 in usb1:/wiiflow/music
Loading music list from path: usb1:/wiiflow/music
Calling list to update filelist
Loading usb1:/wiiflow/themes/CARBONIK/click.wav using voice 3
Loading usb1:/wiiflow/themes/CARBONIK/survol.wav using voice 4
Trying to open 'usb1:/wiiflow/settings/wiitdb.xml'...failed
Now hide wait message
Stop showing images
Loading usb1:/wiiflow/music/59-forest-temple.mp3 using voice 0
 
okay I was wrong - it doesn't freeze on startup it just pauses for at least 30 seconds. I managed to run a game but on second try it froze when launching a different game either that or it was paused for a very long time and I got tired of waiting.
 
using r348

fceugx- exits immediatly back to priiloaders installed file without attempting to load game
snes9xgx- exits same as fceugx
Wii64- actually runs my games now. before, I always got an error about invalid ROM format (when playing from wiiflow mod). But, it does quit to black screen...
genplus- games won't show. tried everything. added .bin to ini file, moved, zipped etc...

edit: took a look and a couple of the dols errored when copying i guess. as they showed a 0kb. recopied them.

fceugx- loads and runs fine. But, blackscreens on exit to wiiflow
snes9xgx- loads and runs fine. but returns to wii menu
 
r354
-using cfg-loader entry point now, its a bit lower ;)
-clearing screen properly now, no green screens or things like this
-added a few more low mem settings, fixed a missing flush in set
video mode (thanks dimok)
-partially clearing mem1 too now, using the code of cfg-loader for that
(thanks)
-using asm volatile instead of __asm__ to really call what we want
(thanks dimok for explaination)
-deiniting usb device properly
-shutting down system properly now on game boot, games should boot
more often now, its still not fully fixed

r355
-removed MEM2 cleanup, and set up MEM1 cleanup higher
-fixed a bug in IOS reload which might result in blackscreen

r356
-readded protection of mem region for apploader, should be more
safe now and prolly work even better, hopefully as good as with
the linker script :P
-readded dsp shudown, some games want to have it so the get it

r357
-ok I revert the thing about protection, we dont have proper mem1
things even anymore so its useless :P

r358
Update Spanish translation (Thanks Galen)
 
People, be carefull with the latest revs, from 352 and up, a lot has changed in memory management again, use at your own risk..

ECSS, Please only let the devs post links...they can determen if it is safe for people to use..
 
People, be carefull with the latest revs, from 352 and up, a lot has changed in memory management again, use at your own risk..

ECSS, Please only let the devs post links...they can determen if it is safe for people to use..

so sorry
 
So I basically deleted all my emulator roms and am starting over with just them. So far I have put nes, snes, and gb back on, and I moved my entire wiiflow folder back to sd again (except for nandemu which I need on usb to load my wiiware games). So far the emulator games load instantly from the plugin menu. I will add games one system at a time and see if it stays instant. The key for me was not only changing the extended list check to no, but I deleted my entire cache, not just the list folder. I noticed an immediate difference in speed. Im on r348, and everything *knock on wood* is working perfectly for me right now. The question is will it after adding back the rest if my roms? Zipping/compressing them seems to be helping with my speed as well.
 
I'm on 358 and cleaned everything and disabled extended list check and Wiiflow starts faster now.
However Emulator mode is very slow to load (as if no cache is there)
Nand mode is not working (I can only see real nand), here's a screenshot for this problem:
6p7uc0.jpg
 
I'm on 358 and cleaned everything and disabled extended list check and Wiiflow starts faster now.
However Emulator mode is very slow to load (as if no cache is there)
Nand mode is not working (I can only see real nand), here's a screenshot for this problem:
6p7uc0.jpg
I wanna see your log file ;)
 
Using r358 now and load times were insanely slow (30+ seconds to get to coverflow and also from exiting a game). Ended up deleting the cache and ini files and it was still coming up slow. I then killed the ini's in the plugins folder and it came up almost instantly.

Re-added the ini's to the plugins folder from a fresh download and it came up instantly. I can't remember but I may have had an alternate cover path in one or more of the plugin ini's. Could be it's retrying opening the cover path and taking a lot of time there, might be worth a look.

Anyway, I tried emu mode and got the following results:

Wii64: Games work, blackscreens on quitting.
VBAgx: Code dumps trying to load a game.
SNESgx: Games run, black screens on quitting for about 10 seconds, heard a drive recalc (might be re-initing the USB?) and it returns to Wii menu.
SCUMM: Don't have any of them
FCUEGX: Games run, black screens on quitting.
GenPlus: Games run, black screens on quitting.

I also tried with the plugins folder on an SD card (SD:\WiiFlow) which allowed it to return to WiiFlow before with no change, still blackscreens or codedumps.

Also I don't think the cache is working for emu games. It's taking 1 minute and 17 seconds to display emu when just my NES games are selected in the plugins (FCEUGX). I have 3370 of them but taking over a minute is nuts.

Basically emu mode is still unusable for me :(

One other thing... it looks like the rom detection code is only checking 1 directory deep. I had folders setup like:

usb:\fceugs\roms\USA Retail\A\Abadox.nes
usb:\fceugs\roms\Other versions\2 Player Games\Atari RBI Baseball (VS).nes

Unless I put the A\Abadox.nes etc folders directly under roms it didn't pick them up.

I really like the folder structure I have and if I use the stand-alone emulator channel it has no problem traversing the entire trees to get to the game I want.

Here is my log for running Wiiflow, switching over to emu mode, changing my plugins from just Wii64 to just FCEUGX and running a NES game:


Welcome to WiiFlow (Mod 3.1-r358)!
This is the debug output.
Now hide wait message
Loading cIOS: 249
Reloading into IOS 249 from 58 (AHBPROT: 0)...
Going to show a wait message screen, delay: 15, # images: 5
OK, Current IOS: 249
Loaded cIOS: 249 has base 56
SECTORS: 3907029166
SEC SIZE: 512
HDD SIZE: 1.956 TB [512]
Wiiflow boot.dol Location: usb1:/apps/wiiflow
DML is not installed as MIOS
Loading cIOS map
Found base 37 in slot 245
Found base 38 in slot 246
Found base 53 in slot 247
Found base 55 in slot 248
Found base 56 in slot 249
Found base 57 in slot 250
Found base 58 in slot 251
Data Directory: usb1:/wiiflow
Loading files containing .ogg|.mp3 in usb1:/wiiflow/themes/DEFAULT/music
Loading music list from path: usb1:/wiiflow/themes/DEFAULT/music
Calling list to update filelist
Loading files containing .ogg|.mp3 in usb1:/wiiflow/music
Loading music list from path: usb1:/wiiflow/music
Calling list to update filelist
Trying to open 'usb1:/wiiflow/settings/wiitdb.xml'...success
Checking game offsets
Loading items of usb view from usb1
Loading files containing .wbfs|.iso in usb1:/wbfs
Database file: usb1:/wiiflow/cache/lists/usb1_wbfs.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/wbfs
Now hide wait message
Stop showing images
Coverflow started!
Now hide wait message
Thread running. Stop it
Loading items of Going to show a wait message screen, delay: 15, # images: 5
channel view from NAND, which is refreshing.
NandPath = /wiiflow/nandemu
nandpath = sd:/wiiflow/nandemu/
Updating channels
Trying to open 'usb1:/wiiflow/settings/wiitdb.xml'...success
Checking game offsets
Now hide wait message
Stop showing images
Coverflow started!
Now hide wait message
Thread running. Stop it
Loading items of Going to show a wait message screen, delay: 15, # images: 5
emu view from usb1
Loading files containing .nes|.fds|.nsf|.unf|.nez|.unif|.zip|.7z in usb1:/fceugx/roms
Database file: usb1:/wiiflow/cache/lists/usb1_fceugx_roms.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/fceugx/roms
Loading files containing .smd|.gen|.zip in usb1:/genplus/roms
Database file: usb1:/wiiflow/cache/lists/usb1_genplus_roms.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/genplus/roms
Parsing scummvm.ini
Loading files containing .smc|.fig|.sfc|.swc|.zip|.7z in usb1:/snes9xgx/roms
Database file: usb1:/wiiflow/cache/lists/usb1_snes9xgx_roms.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/snes9xgx/roms
Loading files containing .agb|.gba|.bin|.elf|.mb|.dmg|.gb|.gbc|.cgb|.sgb|.zip|.7z in usb1:/vbagx/roms
Database file: usb1:/wiiflow/cache/lists/usb1_vbagx_roms.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/vbagx/roms
Loading files containing .n64|.v64|.z64|.zip in usb1:/wii64/roms
Database file: usb1:/wiiflow/cache/lists/usb1_wii64_roms.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/wii64/roms
Now hide wait message
Stop showing images
Coverflow started!
Current Partition: 1
Coverflow started!
Now hide wait message
Thread running. Stop it
Now hide wait message
Launching game
Going to show a wait message screen, delay: 15, # images: 5
Game title: 10000000-in-1 [p1][!].nes
Filepath of homebrew: usb1:/wiiflow/plugins/fceugx.dol
SHND: Stopping sound thread
SHND: Stopped sound thread
Cleaning up video...

Memory cleaned up
Now hide wait message
Invalidate GX
Going to show a wait message screen, delay: 15, # images: 10
Clear coverflow
Saving configuration files
Wait for dvd
Done with main
 
REQ: add support for DeSmuMe Wii? It's getting updated again :D
http://gbatemp.net/t...ost__p__4220899
desmume is a proof of concept emulator, it will never be fullspeed and is not at all worth supporting as a plugin in wiiflow... not trying to be a naysayer... just pointing out the facts. Mednafen would be the next best thing to support in Wiiflow IMHO..
You're right, but i think the same thing about Wii64...
Mednafen :) WiiColem :)
I personally think a standard plugin argument format should be published somewhere easy to get at so anyone with a little programming skill could make plugins out of their favorite emulators.
(This would actually make creation of plugins for OTHER apps possible too, E.G. the WiiMC feature people have been requesting.).

Hopefully, at that point any plugin dropped into the plugins folder would just automatically added to the list.
just wondering, if this(above post for maxternal) would fix the most recent problems everyone is having. seems like memory space is getting low with every thing being added. if i could do coding, i would try to do it myself. ( but then again since i know nothing of coding, i could be totally wrong on this point.). i can say with out plugins.( i don't use them, as i use neek2o to play vc/wiiware.an emulators.). it does run fine, with no crashing code dumps. an loads real fast. when i do go into the loader, cause at this point crapp/wiigcs still works.
 
I'm on 358 and cleaned everything and disabled extended list check and Wiiflow starts faster now.
However Emulator mode is very slow to load (as if no cache is there)
Nand mode is not working (I can only see real nand), here's a screenshot for this problem:
6p7uc0.jpg
I wanna see your log file ;)
What shall I do? do I have a create a file on SD root or something?
 
When I set this log option to yes the nand opened fine but nand and emu modes are v. slow to load (2 mins for nand and 5 mins for Emu) , Here you go:
Welcome to WiiFlow (Mod 3.1-r358)!
This is the debug output.
Loading cIOS: 249
Reloading into IOS 249 from 58 (AHBPROT: 0)...OK, Current IOS: 249
Loaded cIOS: 249 has base 56
Now hide wait message
Going to show a wait message screen, delay: 15, # images: 5

SECTORS: 975400959
SEC SIZE: 512
HDD SIZE: 465 GB [512]
Wiiflow boot.dol Location: sd:/apps/wiiflow
DML is installed as MIOS
Loading cIOS map
Found base 37 in slot 245
Found base 38 in slot 246
Found base 53 in slot 247
Found base 55 in slot 248
Found base 56 in slot 249
Found base 57 in slot 250
Found base 58 in slot 251
Data Directory: sd:/wiiflow

Loading files containing .ogg|.mp3 in sd:/wiiflow/themes/CARBONIK/music
Loading music list from path: sd:/wiiflow/themes/CARBONIK/music
Calling list to update filelist

Loading files containing .ogg|.mp3 in sd:/wiiflow/music
Loading music list from path: sd:/wiiflow/music
Calling list to update filelist
Loading sd:/wiiflow/themes/CARBONIK/click.wav using voice 3
Loading sd:/wiiflow/themes/CARBONIK/survol.wav using voice 4
Trying to open 'sd:/wiiflow/settings/wiitdb.xml'...success
Checking game offsets
Loading items of usb view from usb2

Loading files containing .wbfs|.iso in usb2:/wbfs
Database file: sd:/wiiflow/cache/lists/usb2_wbfs.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb2:/wbfs
Now hide wait message
Stop showing images
Coverflow started!
Now hide wait message
Thread running. Stop it
Loading items of Going to show a wait message screen, delay: 15, # images: 5
dml view from usb1

Loading files containing boot.bin|.iso in usb1:/games
Database file: sd:/wiiflow/cache/lists/usb1_games.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/games
Now hide wait message
Stop showing images
Coverflow started!
Now hide wait message
Thread running. Stop it
Loading items of Going to show a wait message screen, delay: 15, # images: 5
channel view from usb1, which is refreshing.
Written SYSCONF to: usb1:/nands/nand1/shared2/sys/SYSCONF
Written Mii's to: usb1:/nands/nand1/shared2/menu/FaceLib/RFL_DB.dat
Enabling NAND Emulator
nandpath = usb1:/nands/nand1/
Updating channels
No title found
Trying to open 'sd:/wiiflow/settings/wiitdb.xml'...success
Checking game offsets
Now hide wait message
Stop showing images
Coverflow started!
Now hide wait message
Thread running. Stop it
Disabling NAND Emulator
Going to show a wait message screen, delay: 15, # images: 5
Loading items of emu view from usb1

Loading files containing .nes|.fds|.nsf|.unf|.nez|.unif|.zip|.7z in usb1:/NES
Database file: sd:/wiiflow/cache/lists/usb1_NES.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/NES

Loading files containing .gen|.zip in usb1:/Sega
Database file: sd:/wiiflow/cache/lists/usb1_Sega.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/Sega
Parsing scummvm.ini

Loading files containing .smc|.fig|.sfc|.swc|.zip|.7z in usb1:/SNES
Database file: sd:/wiiflow/cache/lists/usb1_SNES.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/SNES

Loading files containing .agb|.gba|.bin|.elf|.mb|.dmg|.gb|.gbc|.cgb|.sgb|.zip|.7z in usb1:/GBoy
Database file: sd:/wiiflow/cache/lists/usb1_GBoy.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/GBoy

Loading files containing .n64|.v64|.z64|.zip in usb1:/wii64/roms
Database file: sd:/wiiflow/cache/lists/usb1_wii64_roms.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
usb1:/wii64/roms
Now hide wait message
Stop showing images
Coverflow started!
Now hide wait message
Thread running. Stop it
Loading items of Going to show a wait message screen, delay: 15, # images: 5
homebrew view from sd

Loading files containing .dol|.elf in sd:/apps
Database file: sd:/wiiflow/cache/lists/sd_apps.db
update_games=0 update_homebrew=0 update_dml=0, update_emu=0
sd:/apps
Now hide wait message
Stop showing images
Coverflow started!
Home pressed, quit
Now hide wait message
Thread running. Stop it
Invalidate GX
Clear coverflow
Saving configuration files
Going to show a wait message screen, delay: 15, # images: 5
Wait for dvd
Done with main
SHND: Stopping sound thread
SHND: Stopped sound thread

I ran the app a second time now and Nand modes loads fast. It's only Emu mode which is really v slow now. (I'm using old versions of nes, snes and gba cause newer one don't work for me)
 
5 MINUTES? Damn thats long, the log is just fine, when it's loading, is the wiiflow logo still moving or does it freeze? Oh and you may test r360.
 

Site & Scene News

Popular threads in this forum