Hacking NEW Wiigator Modified Loader

thetonman

Active Member
Newcomer
Joined
Oct 17, 2008
Messages
38
Trophies
0
Age
47
Website
www.freegamesforwii.info
XP
81
Country
I would tend to agree with Zapu. No offence or disrespect meant to the people that are releasing these programs. I would prefer that they reported these to Wiigator so that he can integrate them with his existing loader and check that they are compatible and work fine and then give them credit for their work in the next release. I would feel more comfortable installing the fixes then.

Thetonman
 

requiem4d

Well-Known Member
Member
Joined
Oct 25, 2008
Messages
181
Trophies
0
XP
54
Country
United States
Actually, as I stated before I do not intend to release ANY binaries. Sources only.

Edit:
Ok, I think I'm giving up for tonight. Some insight on what I'm working on. (Though I've been fairly quiet about it up until now.)

I contacted Waninkoko around the time his loader was leaked asking if I could help with anything in the future, and respectfully received no reply. Understandable, he's a busy man, I'm sure.

Likewise, I contacted WiiGator via PM here, and again received no reply. Again understandable.

However, I realized that the only way "scratch the coding itch" was to start from scratch, using what I've learned from studying their respective source releases to attempt to
build a more "open" loader project. It contains ZERO code from either Waninkoko or WiiGator, and is 100% my work. I have received PMs from knowitall599, however, as of yet we are not collaborating directly. I believe his version is based on WiiGator's.

Starting from scratch has helped me to eliminate bits of code that aren't directly related to backup loading to make the code easier to read, easier to understand, and hopefully will perform well with less errors.

Side note, the new loader is coded almost entirely in C++, and uses classes for most everything except where I needed some ASM for relocation.

Again, I don't want to get anyone's hopes up, but fixed or not, I will be setting up a PUBLIC SVN where anybody can check out the latest revision of the code. I will NOT be releasing ANY binaries at any time. Since any and all development is OPEN, after I get the code uploaded to SVN absolutely ANYONE can compile and test the code as they wish, as it is updated.

I apologize for any confusion, and hope this has cleared a few things up.
 

roy_hu

Active Member
Newcomer
Joined
Oct 21, 2008
Messages
29
Trophies
0
XP
28
Country
United States
requiem4d said:
Actually, as I stated before I do not intend to release ANY binaries. Sources only.

Edit:
Ok, I think I'm giving up for tonight. Some insight on what I'm working on. (Though I've been fairly quiet about it up until now.)

I contacted Waninkoko around the time his loader was leaked asking if I could help with anything in the future, and respectfully received no reply. Understandable, he's a busy man, I'm sure.

Likewise, I contacted WiiGator via PM here, and again received no reply. Again understandable.

However, I realized that the only way "scratch the coding itch" was to start from scratch, using what I've learned from studying their respective source releases to attempt to
build a more "open" loader project. It contains ZERO code from either Waninkoko or WiiGator, and is 100% my work. I have received PMs from knowitall599, however, as of yet we are not collaborating directly. I believe his version is based on WiiGator's.

Starting from scratch has helped me to eliminate bits of code that aren't directly related to backup loading to make the code easier to read, easier to understand, and hopefully will perform well with less errors.

Side note, the new loader is coded almost entirely in C++, and uses classes for most everything except where I needed some ASM for relocation.

Again, I don't want to get anyone's hopes up, but fixed or not, I will be setting up a PUBLIC SVN where anybody can check out the latest revision of the code. I will NOT be releasing ANY binaries at any time. Since any and all development is OPEN, after I get the code uploaded to SVN absolutely ANYONE can compile and test the code as they wish, as it is updated.

I apologize for any confusion, and hope this has cleared a few things up.
This is awesome! Just to make sure, if the loader went wrong or wrote something to a wrong memory address, it's not going to brick my wii, is it?
 

requiem4d

Well-Known Member
Member
Joined
Oct 25, 2008
Messages
181
Trophies
0
XP
54
Country
United States
Possible. That's why I'm keeping any hard-coded direct memory accesses to a minimum in my code. That's also why I want to be sure I have at least a working version (even if it isn't perfect) before I upload the sources. I have 6 kids who all love to play the wii, and not enough money to buy a new one yet. As I'm sure there are others out there in similar situations, I'd like to keep the number of bricks caused by my loader down to a zero.

(I hope that made sense... It's late here, and I'm a programmer, not an english professor.)
 

roy_hu

Active Member
Newcomer
Joined
Oct 21, 2008
Messages
29
Trophies
0
XP
28
Country
United States
OK, do people seriously think this change speeds up game loading? This could not be possible!
Because the changed code is enclosed in this if-block:
if(geckoattached){
...
}
We're not using any USB Gecko, so we're not receiving any gecko commands. Therefore, that code is never executed!

roy_hu said:
requiem4d said:
diff -ruN = man's best friend.


Code:
--- Desktop/main-old.cÂÂÂÂ2008-10-30 17:20:00.000000000 -0400
+++ Desktop/main.cÂÂÂÂ2008-10-30 17:20:02.000000000 -0400
@@ -546,7 +546,7 @@
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂnowiird = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂmemset((void*)0x80001800,0,kenobiwii_size);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂmemcpy((void*)0x80001800,kenobiwii,kenobiwii_size); 
-ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂfrozenvalue = *(u32*)0x80001808;
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂfrozenvalue = *(u32*)0x80001800;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ*(u32*)frozenvalue = 1;ÂÂÂÂ
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂDCFlushRange((void*)0x80001800,kenobiwii_size);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂusb_recvbuffer_safe(EXI_CHANNEL_1,&configbytes,2);ÂÂÂÂ// Get config

Hey guys,

Do you really believe this change is going to speed up game loading? I know nothing about Geck OS, but from reading the source code, the original code seems to be correct.

The buffer kenobiwii is the raw binary generated from newasmpatch/kenobiwii.s. The first two words are filled with 0, and the third word stores the address of frozenvalue. So the original code loads the address of frozenvalue from *0x80001808, which seems correct to me. The change loads 0 into the pointer instead, and then dereferences the pointer for writing. This means we are writing something to address 0. I don't know about wii, but on PC writing to 0 will crash the program.

In summary, I think the change is incorrect. Besides, I don't think it's even relevant. The frozenvalue thing seems to be used for debugging with USB Gecko oS. I don't think this piece of code is executed in normal processes.

I got other two questions as well:
1. Why pad the first two words of kenobiwii with 0?
2. Why do we need memset before memcpy?

Of course, I could be sooo wrong because I'm an idiot. I'd appreciate your comments.
 

fuuuuuu

Well-Known Member
Newcomer
Joined
Jan 31, 2007
Messages
93
Trophies
0
XP
73
Country
Why don't all you guys just get together and make some sort of uber loader! Everyone looks at the code and points out bits that can be improved, Any news from wiigator on a 0.4 as of yet?
 

fishears

fishears
Member
Joined
Sep 28, 2008
Messages
696
Trophies
0
Website
code.google.com
XP
126
Country
I've tried both of Knowitall's releases and timed results for Mario Kart show it is exactly the same speed as WiiGator's release at initial loading AND loading tracks.

Which games have you found load quicker? Please post your findings so we can verify...
 

..::MaxWell::..

Well-Known Member
Member
Joined
Sep 13, 2008
Messages
138
Trophies
1
XP
382
Country
Canada
Jesse Sander said:
With the new possibility of bigger icons I couldn't resist creating another channel, with updated icons and an improved banner. (In my opninion, since I found the other one quite 'empty'. )

Video:

Screenshot: (bad quality)

Icons I (partially) created:


Download here
(Sorry WiiShizzza, I stole your B button. , Sorry Forsaekn I replaced your music. (Made it more Wii-ish )

Hey guys, I have injected the .dol for the new modified loader into the channel above so that we can have a channel version.

Download
Also note this is not the autoboot channel, it doesn't autoboot. It is JUST THE .DOL FILE ON THE 2ND POST INJECTED INTO THE CHANNEL BANNER ABOVE!
 

..::MaxWell::..

Well-Known Member
Member
Joined
Sep 13, 2008
Messages
138
Trophies
1
XP
382
Country
Canada
All I did was inject the .dol file in the 2nd post to the channel in the Modified Loader thread and uploaded it to Mediafire, I made no changes whatsoever...
 

..::MaxWell::..

Well-Known Member
Member
Joined
Sep 13, 2008
Messages
138
Trophies
1
XP
382
Country
Canada
That is just a somewhat fix for Super Paper Mario, it doesn't fix the "disc error" problem.
Btw, it is a cIOS but for some odd reason it never installs for me...
Also if you have any problems with the channel, please tell me.
 

knowitall599

Banned!
OP
Banned
Joined
Oct 1, 2008
Messages
213
Trophies
0
XP
36
Country
United States
ebdynasty said:
Has anyone tried 007 Quantum with this by any chance?

Quantum of Solice has a disk read error. All disk read error's have not been repaired yet. This code is very confusing and takes a while to understand, but give it some time and I will get those error's out. I am also very excited about playing Quantum of Solice on my Wii.
 

ebdynasty

Well-Known Member
Member
Joined
Oct 29, 2008
Messages
125
Trophies
0
XP
35
Country
Oh ok, thanks a lot for any attempts in advance. I hope to be playinh QoS with people here soon
biggrin.gif
 

forbore

Well-Known Member
Member
Joined
Oct 30, 2008
Messages
247
Trophies
0
Location
/dev/canada/quebec
XP
84
Country
Canada
fuuuuuu said:
Why don't all you guys just get together and make some sort of uber loader! Everyone looks at the code and points out bits that can be improved, Any news from wiigator on a 0.4 as of yet?

Yeah! Just like linux distros! Thats what makes them work so well, because so many people check whats wrong with it
 

Shadowluigi323

Well-Known Member
Newcomer
Joined
Aug 12, 2008
Messages
73
Trophies
0
XP
43
Country
United States
; ) Im glad someone is fixing the "ERROR TURN POWER OFF" Error, I hope this version gets released soon.(With a channel too)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Materia_tofu @ Materia_tofu:
    hey sylv? do you know why gameyob crashes on the EZP?
  • Materia_tofu @ Materia_tofu:
    @SylverReZ forgor to tag lol
  • SylverReZ @ SylverReZ:
    @Materia_tofu, Maybe ask the EZ-Flash team.
  • Materia_tofu @ Materia_tofu:
    maybe tomorrow lol
  • SylverReZ @ SylverReZ:
    You can make a post on the DS forum about your findings, and they'll do their best to respond. They have a GBAtemp account here, you know.
  • Materia_tofu @ Materia_tofu:
    oh ye i made a post i did forget they had an account i prob shouldve tagged them in the post
    tbh
    +1
  • SylverReZ @ SylverReZ:
    @Materia_tofu, Would've been a great idea, because they'll notice.
    +1
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
    Veho @ Veho: Ah, you mean furries.