WiiRd forum

USB Gecko Related => USB Gecko Dev => Topic started by: James0x57 on July 13, 2010, 11:58:40 AM



Title: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 13, 2010, 11:58:40 AM
+ on any connected Wii Remote will display its controls.
+ on any connected Classic Controller will display its controls.
X on any connected GameCube Controller will display its controls.
As is, no warranty; If it causes a dead cat or two, I'm not responsible; Use at your own risk; And other things I'm supposed to say.


(http://geckocodes.org/AccioHacks/icon.png)
Download: http://geckocodes.org/AH.php?dl
Put the "AccioHacks" folder into your "apps" folder on the root of your SD Card and use it with Homebrew Channel.
Hope you enjoy it. =)


7-13-2010
Code:
Initial (pre v1.0) release.

Known Bugs:
None.

Planned Features:
Merge Files (for universal code support)



Please post any bugs you find, or any requests you have, here.

Any/all feedback is very appreciated.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: Panda On Smack on July 13, 2010, 12:53:30 PM
ooh, wassit do?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 13, 2010, 01:00:52 PM
Connects to GeckoCodes, downloads codes, allows you to look through the codes, edit the codes, turn the codes on, and create GCT files. And it's not all dos-y.

This is the closest thing I have to a(n outdated) screenshot:
(http://cdn.dailybooth.com/7/pictures/large/83ba9e4946b85ec787136b2b7f478739_6199752.jpg)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 13, 2010, 04:16:09 PM
http://www.wiibrew.org/wiki/Accio_Hacks


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: Romaap on July 13, 2010, 05:22:03 PM
(http://i108.photobucket.com/albums/n31/Romaap/AccioHacks.jpg)

Here ya go ;)

Nice app btw.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 14, 2010, 02:33:49 AM
Sweet, thanks man. =)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 14, 2010, 01:05:22 PM
I'd love it if someone could use their fancy shmancy capture card and take a small 1min-ish video for me so I can finally use my James0x57 account on YouTube..

I just feel so lame pointing my crappy web cam at my tv. :<



Also, I added a readme and switched it to zip since for some reason everyone seems to use zip instead of rar. (Why?!)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 14, 2010, 02:02:40 PM
http://www.youtube.com/watch?v=64xo6r8LJWY

Found one! :D

But it showed me a VC Arcade bug; which is fixed now.


To anyone who has Accio Hacks already: Start it up and initialize the network*, you will be prompted to update!


*(Press B at the channel select to get to the main menu, there is an option for initialize network.)



edit: Article on WiiNewz!
http://wiinewz.com/forums/index.php?/topic/12489-accio-hacks-v09/
Love that site =D


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: giantpune on July 14, 2010, 07:41:51 PM
That auto update prompt...  can it be turned off?  I think thats the only bad part about HBC.  If you like to use on older version for some reason, it will pester you to update every time you use it.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 15, 2010, 01:35:47 AM
For now, no, it can't be turned off. Updates will be to make significant improvements (such as fixing bugs that kill part of it). And it only prompts you when you connect- so you can still use the offline functions without being pestered.

...and I think I'm going to need convincing that I should change that. Why would you want to use a more buggy version?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: giantpune on July 15, 2010, 02:20:47 AM
Just because the program's author thinks that the new version is better doesn't mean that the user agrees.  For example, when an update for HBC comes out, it pesters you to update until you do, even if there are bugs in the new version.  What happened when HBC 1.0 first came out?  Some bug and within a day it was HBC 1.0.1 or something like that.  Remember when HBC 1.0.5 first came out?  It had a bug made it freeze for many people.  Within like 3 days it was up to 1.0.6.  And still, if i could do it, I would be using HBC < 1.0.5, as they removed the network-init retry and reload functionality.  A higher version number doesn't always mean a better program.

What would you do if you liked windows XP, but every time you turned on your computer it complained that windows vista or 7 was available?


Some people like to use older versions of programs until there has been significant time since its release that the bugs should have been found and fixed.  Some people like older versions of programs because they have features that the author has removed in later ones.  Regardless, any auto-update should always have an option to disable it.  Otherwise you are saying to the user, "You are free to use this program.  However, if I ever decide to change the program from how it is now, it will annoy the piss out of you.  And if you don't agree with me, the author, with any future changes I may make to this program, you can suck it.  I am right and my opinion is always right and yours doesn't matter."


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 15, 2010, 02:43:18 AM
I've never been prompted to update HBC so I don't exactly know what you're on about.

But you obviously take this silly thing pretty seriously.. So, I'll figure something out for you to let you skip an update. Then you can use the self-update to use that version. haha

The next time I release a version it will include this. Cool? :)


(Just so I'm on the same page, you're fine with being prompted once for a new version, right?)



Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: giantpune on July 15, 2010, 12:48:07 PM
Yeah, being prompted once is fine.  but i think saying no to the update should be enough to not have the program pester you about it every time you use it. 

thanks :)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on July 15, 2010, 02:28:27 PM
So this is like a code manager, only better?

It's difficult for me to even remember how to use gct files after using a USB Gecko for so long...lol


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 15, 2010, 03:23:57 PM
It's a code downloader (from geckocodes) and code manager (acitvates/edits codes and creates gct) in one. Plus it's way faster and has a shiny GeckoCodes-like GUI.
Nobody really needs to know what gct files are with it. lol


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: ZiT on July 16, 2010, 06:22:21 AM
Nice Work!!!!

I introduce this APP to everyone in its JP forum ;D

Completion!!
http://bb2.atbb.jp/wiicode/viewtopic.php?t=993


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: Zetta_X on July 16, 2010, 04:34:54 PM
It's so pretty full!

It even auto-updates! This thing being added to my apps faster then a midget can run from a T-rex


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: Skyground95 on July 16, 2010, 05:10:22 PM
this app looks awesome! ;) unfortunately, I can't use it, because of a problem to intialize network on my wii :(


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 16, 2010, 05:57:40 PM
Thanks ZiT!

@Zetta_X lol, thanks =P

@skyground95 Sorry to hear that!


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: deviwii on July 16, 2010, 11:26:40 PM
I'd love it if someone could use their fancy shmancy capture card and take a small 1min-ish video for me so I can finally use my James0x57 account on YouTube..

I just feel so lame pointing my crappy web cam at my tv. :<



Also, I added a readme and switched it to zip since for some reason everyone seems to use zip instead of rar. (Why?!)

http://www.youtube.com/watch?v=bP5D4ScM4Kw


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 17, 2010, 08:12:26 AM
Thanks man! =)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: ZiT on July 17, 2010, 04:23:17 PM
Is not an additional function of the code added to this APP?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 17, 2010, 05:48:57 PM
I'm sorry, ZiT, I don't understand your question.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: ZiT on July 17, 2010, 06:03:50 PM
Code Edit > OK!!
Code Add >  No

Will you be added to "Accio Hacks" in the future?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 17, 2010, 06:17:28 PM
Ohh! Okay, sure thing my friend. I'll add that in after the next update! =)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: ZiT on July 17, 2010, 07:59:12 PM
OH!!Yes!!

If it is added, it is perfect ;D

If it added, it is exactly Wii Action Replay!!


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 17, 2010, 08:36:01 PM
Well, it can't boot games, unfortunately. ;)

I'd have to work with brkirch for something like that. (and I'd LOVE to do so.. Brkirch?) Link might know how to help with that too..


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on July 18, 2010, 03:13:30 AM
Do you need to boot games, or could you just automatically call Gecko OS?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 18, 2010, 05:01:28 AM
I did originally plan to have an option for booting to GeckoOS but I ran into a bunch of difficulty on that path.

That was 1 year ago, when Accio Hacks was a week's work away from being where it was when I released it a few days ago. (Like an idiot, I put school before learning, creativity, and creation.)
Anyway, now I've got a seemingly worthless bachelors in computer science to show for the delay. (not getting a job SUCKS)

But I digress.

I think booting Gecko OS would be a great option but it would be way cooler to boot the games. =P


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: christian.remboldt on July 19, 2010, 10:54:32 PM
Awesome work. This is much more polished then either of my attempts at this software. I agree with you sentiment that booting the games directly would be perfect, but in the absence of completely incorporating geckoOS, a boot option would be very sweet.

Id add boot geckoOS and geckoOS mod options to the main menu after exit to homebrew channel. This would allow for creation of one custom channel for Accio Hacks. That could handle everything cheat related with out need for entering Homebrew Channel

Code:
u8 *bufPtr = 0x92000000;

int size_of_file
FILE *fp = fopen("path to file starting from root","rb")
fseek(fp, 0, SEEK_END);
size_of_file = ftell(fp);
fseek(fp, 0, SEEK_SET);
fread(bufPtr,1,size_of_file,fp)
void (*entry)();
entry = (void *)relocateDol(bufPtr)
IOS_ReloadIOS(correctIOS)
//Do clean up stuff, like deallocating memory
entry();
source: http://forum.wiibrew.org/read.php?11,54849

This code should be helpful if you want to try implementing the boot geckoOS option again.

I have never made a custom channel before, but this would be a good reason to try it out. If I come up with one I'll let you know. I think a forwarder channel is the best option that way if you update the software the end user doesn't have to reinstall it.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 20, 2010, 01:04:33 AM
Sweet, thanks for the support man =)

That code looks much more simple than what I what I remember dealing with a year ago... I'll try it out. Thanks! =)

Also, I was going to change the "Exit to HBC" to "Exit to..." then have a sub menu that listed HBC and all results for all apps containing "gecko" in the folder name. (I personally have 2 versions of Gecko OS and one of Gecko OS Mod)

Does that sound like a good solution?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: christian.remboldt on July 20, 2010, 06:08:50 AM
Sound like a very elegant solution. That way no matter how the folders are named you're covered. Right now my folder is gecko1931 or something similar, but if you installed with the Homebrew Browser the name is completly different.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: [email protected] on July 20, 2010, 01:18:52 PM
James, could you PLEASE add a function on it, to delete gct files from the sd card. >:D
Because sometimes, you want to use debugging without a gct cheat file, and you don´t like to remove it by running to the pc everytime.

Greets :)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 20, 2010, 02:59:32 PM
You can just turn off all the codes and save. It creates a GCT with no codes; which still works fine.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on July 20, 2010, 03:43:15 PM
you don´t like to remove it by running to the pc everytime.

I highly recommend the FTPii app.  It makes an FTP server on your Wii; you can then use a standard FTP client like FileZilla when you want to make changes to your SD card.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: giantpune on July 21, 2010, 04:50:37 AM
@ christian.remboldt

theres no reason to bother reloading IOS right before you load geckoOS.  as part of libogc, it will load IOS36 before its main() is started.  then it also does its checks to decide what IOS it wants to use and reloads IOS again.  also, you are neglecting the addresses of both the loader program and the loadee program.  if they have overlapping memory, you can end up overwriting your own program while you try to load the second one and crash.

since geckoOS wants to be loaded @ 0x80004000 or whatever it is, you would want to either move the loader program to a different location ( as in loadmii ), or use a tiny tertiary loading program ( ala wiixplorer ) to make sure your program is not actually running as the loadee program is being moved to the correct location in RAM.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: [email protected] on July 27, 2010, 11:56:00 AM
You can just turn off all the codes and save. It creates a GCT with no codes; which still works fine.
nice, your app is really a trophy in my hbc :rolleyes:
one of the best ones for sure. :p


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on September 21, 2010, 02:45:37 AM
v1.0 Will have Region Select and Universal Code support and be released soon.

The next version will have add/delete code option [thanks ZiT] and delete gct [thanks Bully]. And maybe scroll bars if I feel like it. =P [thanks random friend who doesn't even own a game system]


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on September 21, 2010, 05:34:23 AM
Released! http://geckocodes.org/AH.php


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: ZiT on September 21, 2010, 07:00:07 AM
Nice Work!!
Next time is the enjoyment ;D


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on September 21, 2010, 04:44:24 PM
Ohh... I just got a cool idea for adding codes to it. Next release, along with normal code adding that anyone can do, the hackers will probably be able to send some codes over admin and add it to a game for testing BEFORE being posted publicly to the site..

Later I will /probably/ open this feature up to everyone when I add the ability for users to join GeckoCodes and subscribe to games and/or hackers.

This should be fun =D


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: hawkeye2777 on December 09, 2010, 04:22:03 AM
Hey, not sure if this is just on my end, but when I download the codes text file for Zelda TP [RZDE01], I don't get any of the codes that I added within the past few weeks.

Just thought I'd mention it; let me know if you need more info.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: biolizard89 on December 09, 2010, 04:56:55 AM
Does Accio Hacks have any mechanism to allow end-of-line comments within codes in a .txt file?  E.g.

04123456 60000000 # This is a comment about this specific line

If so, what is the syntax for the .txt file to do that?  I couldn't find any info about this in the forum; sorry if I'm asking a stupid question.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: Link on December 09, 2010, 10:49:41 AM
Does Accio Hacks have any mechanism to allow end-of-line comments within codes in a .txt file?  E.g.

04123456 60000000 # This is a comment about this specific line

If so, what is the syntax for the .txt file to do that?  I couldn't find any info about this in the forum; sorry if I'm asking a stupid question.

Unfortunately - if the format has not changed - no that's not possible. It really basically only comes up to:

Name of code (ONE LINE!)
AAAAAAAA AAAAAAAA
AAAAAAAA AAAAAAAA
AAAAAAAA AAAAAAAA
AAAAAAAA AAAAAAAA
Comments of code line 1
Comments line 2
Comments line 3

All which is possible would be to include comment only areas (without code) unless the format has been changed.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on December 09, 2010, 02:44:27 PM
Hey, not sure if this is just on my end, but when I download the codes text file for Zelda TP [RZDE01], I don't get any of the codes that I added within the past few weeks.

Just thought I'd mention it; let me know if you need more info.
The logic doesn't appear to be broken... It /might/ have been caused by server move..
I cleared the accio hacks universal files so they are forced to be recreated; if you add more codes to TP and this happens again (or is really fixed now), please let me know again.
Thanks man


@biolizard89 What Link said is still true
What you're asking about could work in future versions though if you need it to..?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: hawkeye2777 on December 09, 2010, 11:27:20 PM
It seems to be fixed now; I modified a code and it grabbed the changes in AH. Thanks. I'll let you know if it does end up happening again.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on December 09, 2010, 11:33:11 PM
Thanks for letting me know about that. It probably happened because ownership/permissions changed when the files were copied to the new server. =)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: biolizard89 on December 10, 2010, 04:31:54 AM
@biolizard89 What Link said is still true
What you're asking about could work in future versions though if you need it to..?
Okay, thanks.  Yes, it would be really nice if support for that feature were added, if it's not too much bother for you.

If you're curious why I'd like that feature, I'm working on a tool which synchronizes multiple Wiis via the USB Gecko (enabling LAN/netplay for offline games), and the list of variables that get synced is a single Gecko code (one fairly long code per game).  Allowing comments in that code would make it easier for other people to contribute variables to the code, as I could label one line of the code as pad data, another as player coords, etc.  (Hope I explained that okay....)  As a more general case, I think allowing end-of-line comments for codes would facilitate community-built codes.

Thanks!


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on December 10, 2010, 08:40:43 PM
I did that with a large custom-color Wind Waker code years ago. ( to see it scroll up a bit from here: http://gcn.jaytheham.com/index.php?show=codes&sys=GCN&game=zeldaww#lstcs )


I'll see what I can do about adding this..


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: Sorceror on February 24, 2011, 10:47:14 AM
Accio Hacks is plain awesome! Thanks James0x57!

Apart from being able to boot a game directly from Accio, the only change I would like to see is to select the game region before going to the letter selection menu. I only have PAL games, and only intend to have PAL games. Oh, and maybe some music :)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on February 24, 2011, 08:48:24 PM
Thanks!


@Game boot: Yes, I would like this too. Or at least be able to boot to Gecko OS.
@Region select: There is one when you look online. You don't need one for offline- especially if you only download PAL ones.
@Music: This will likely never happen mostly because of personal taste. Srry.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on February 24, 2011, 10:02:40 PM
@Music: This will likely never happen mostly because of personal taste. Srry.
Could you load a user-provided sound?  And just tell users to put their preferred sound file into the Accio Hacks directory and rename it to whatever Accio Hacks expects?  In the absence of a file, play nothing.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on February 24, 2011, 10:54:00 PM
Potentially. I've never looked into it. I would need to load the whole music file at startup though since SD Card handling is built to be swapped..
I didn't ever expect anyone to care about a lack of music.


*shrugs* It's not going to be a priority but I'll look into it I suppose.



BUT... I still haven't got Accio Hacks to compile on this new computer (and last one is gone)..


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 16, 2011, 01:11:33 PM
Can you guys let me know if the new update is letting you list the online games?

Someone on twitter said they still have an issue...

Don't forget to restart it after you run the Self-Update



If it doesn't work, please tell me what list you tried to load. eg:
Accio Hacks - Wii - M - All Regions


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 16, 2011, 04:17:57 PM
Can someone do the update and check for me that it's working, please?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 16, 2011, 04:19:21 PM
I never used Accio Hacks because I always used a USB Gecko, but just for you I'll try it tonight. :)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: [email protected] on May 16, 2011, 07:39:03 PM
I´ll give some feedback soon, too (about on Saturday)
I once noticed that you can´t find any games in AH under the letter "S" but they are on the database.
Idk if it is fixed. AH is totally awesome (even when owning a gecko)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 17, 2011, 12:44:43 AM
I tried Accio Hacks just now and it was able to fetch the code list for Tales of Symphonia without any trouble.

One thing that I did find myself wanting was a pageup/pagedown button.  Either that, or the up/down arrows should continuously scroll when held down.  That's because ToS has a hefty code list (almost 600 codes)

Looks good though. ^_^


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 17, 2011, 02:10:31 AM
Thank you, I appreciate you checking and letting me know. The twitter person just must not have restarted after updating.

Pressing right/left jumps like 10 codes.
Pressing minus lets you scroll by subcategories.
But you're right- a "scroll while held" function would be useful.

Whenever I do the next update, I'll probably include that. Adding codes manually will be my first priority though since ZiT requested it after the first release. =)

Thank you, dcx2.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 17, 2011, 05:35:14 AM
There's definitely a bug in there somewhere... I currently cannot list the games.
*grinds teeth*


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 17, 2011, 12:39:50 PM
I had some trouble listing games.  I thought I had clicked on it right, but it just gave me a screen with one "Accio Hacks" line.  When I clicked on that, though, all the games were listed.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 17, 2011, 12:59:05 PM
That's the normal step. The menu with "Accio Hacks" is your local games under the system/letter you selected.
After that, you select the region and you're online.

I should make the online list more distinguishable than the local though.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 17, 2011, 01:13:54 PM
Oh, I see how it works now.  I think that step should have "Accio Hacks (connect to database)" or something so that it stands out.

You're right, I can't list games either now.  =(


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 17, 2011, 01:49:54 PM
How is it even possible to change like that? It worked fine for me the night I released it

Link said he didn't change anything on the server... ;_;


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 17, 2011, 02:42:13 PM
Thinking technically- what are the possibilities for this breaking?


Released:
- Working for me
- not working for twitter guy (at least some lists- maybe all)

18 hours after release
- Working for me
- Working for dcx2
- not working for twitter guy (at least some lists- maybe all)

24+ hours after release
- not working for anyone who let me know




The program didn't change in this time frame.

The php didn't change in this time frame (and still spits out what it should in a browser).

The potential listing bug that Bully mentioned having before (didn't know about until then) is probably still there...

If it's the alleged listing bug, then it's been amplified a lot- because I never experienced it before.

Link said that he didn't change anything on the server.




W.T.F.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 17, 2011, 02:51:16 PM
It's difficult to say.  What goes to the server?  What comes back?

Do you have WireShark?  You could eavesdrop on the communication between your Wii and the Internet and see what's going wrong.

Start throwing all kinds of printf or whatever through your code, to make sure that you go through each step and see if anything is skipped.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 17, 2011, 07:58:56 PM
I don't have WireShark, nope.

http 1.1 header goes to the server, php responce + header should be what comes back



...this is confusing... I have a test build that I copied for the release- it's working fine. The one I downloaded from updating is broken... but it should be the same file... the version number matches so it's not the old one....


edit:
I just double checked the time stamps- it's the exact same one..
Maybe the SD functions to replace the existing boot.dol are imperfect???
edit2:
But you wouldn't have used the update- which means yours probably came from the zip on the server... but for the same problem to happen in the zipped and unzipped from the server- it's not likely the fault of the server....


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 17, 2011, 08:06:50 PM
I never had Accio Hacks 1.0, I went straight to 1.1.

I drag/drop'd it using FTPii server on the Wii and FileZilla on the PC.

Your test build works?  Maybe the release build works now, too?

Perhaps it only breaks during a certain time of day?

Can you verify that you are getting the correct php response from the server?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 17, 2011, 08:15:20 PM
"Your test build works?"
Yes but it's not really a 'test' version since I literally copied the boot.dol from the test and put it in the folder for the update..

"Maybe the release build works now, too?"
what are build works?


"Perhaps it only breaks during a certain time of day?"
I was just swapping between both of them- one I acquired from the server, one I copied from my computer directly. The downloaded one wasn't working and the direct one was. Other than their location on the sd card- they should have been 100% identical.

"Can you verify that you are getting the correct php response from the server?"
The AH interface urls work in the browser and the directly-copied-from-my-computer one is functioning.




It doesn't even make sense that the server's version wouldn't work.. there's no way internet would work if things got screwed up on upload and/or download



I'm completely baffled ._.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 17, 2011, 08:36:25 PM
If one works and one doesn't, that would lead me to believe that the one which doesn't work isn't exactly identical.

Try running a checksum on them and see what you get.

If you still can't solve this problem, I do have wireshark on my netbook.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 17, 2011, 10:14:59 PM
http://geckocodes.org/AccioHacks/boot.dol

That's the file the update downloads. I just re-uploaded it to the server.

It's working for me. I deleted the one from my sd card that just decided to stop working... so I can't test it.

Whenever you get the chance, could you see if it's working again? If it's not, would you mind checking the dol I linked to?


I don't know what to do. ;_;


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 18, 2011, 12:21:10 AM
Can I use the auto-updater to download the dol, or do I have to FTPii again?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 18, 2011, 01:28:23 AM
I couldn't get either the old or new boot.dol to work.  I tried other regions and letter lists, but all I tried was Wii.

When I get some time, I'll fire up wireshark and get a dump of what's going to and from the Wii.  Then we'll have some idea where the weak link is.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 18, 2011, 02:32:36 PM
Thanks for everything, dcx2. I really appreciate it.


I have not been able to get it to NOT work again... But I have the same boot.dol that you have and that the twitter guy has.

I wish more of the users would let me know if it was/wasn't working for them.


I feel like the server is shrugging off some of these php requests. It doesn't make sense to fail immediately/always for some and work everywhere for others.
I'll ask Link - we may be getting accidentally blocked by some of his heuristics.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 18, 2011, 05:06:23 PM
Is it possible that there's some kinda line break issue?  Using \r instead of \r\n or something like that?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 18, 2011, 06:04:49 PM
I'll have to look at the php when I get home but I'm 99.99999% sure that it's outputting '\n' for the line breaks. I know the Accio Hacks code is checking specifically for '\n'. (and this was working before Link made the server change)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 18, 2011, 06:08:24 PM
When I was looking around the folder structure with FTPii, I think I found the txt file that Accio Hacks downloaded when it was working.  It appeared to have only line feeds ('\n')


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 18, 2011, 06:28:59 PM
The accio hacks text files only have \n's but the problem is not there. Displaying and activating codes works- if you could get them downloaded.


The listing of the online games is what's broken for some people (because it is output via php).
http://geckocodes.org/AH.php?c=R&l=M&r=E
^ this is an example url that Accio Hacks would send (except in http header format).

It works on mine and we have the same one.


edit: the online game lists don't get saved- they're kept in memory then free'd when a new list is acquired)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 18, 2011, 09:23:48 PM
I just brought up the text files because I know I saw line feeds there, and didn't know if the same problem might affect something else.

I clicked on that link that you provided.  It looks like one big line without any line breaks at all (\r or \n).


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 18, 2011, 09:39:50 PM
Ah, I see. I handle both of those completely separate from each other.

view source- browser don't display \r\n or \n unless it's wrapped in a pre tag or in a textarea


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 18, 2011, 09:43:38 PM
There's probably something out there that lets you send custom headers and view the textual response.
I'm not very familiar with raw http headers so I suppose it's possible I have a mistake there that the server "sometimes" doesn't like.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 18, 2011, 10:37:25 PM
To view the php output, I right-clicked "save as" on the Accio Hacks URL.  I then re-named it a txt file and opened it in Notepad.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 19, 2011, 02:04:30 AM
Note pad doesn't like *nix line endings. Open the txt in wordpad and you'll see the breaks.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 19, 2011, 02:45:03 AM
Yeah, I usually see the square block for \n in Notepad.

Something odd happens now, though.  When it goes to initialize the network, it says that it can't.  But then if I try again, it initializes almost instantly.

I'm bustin' out wireshark now, we'll see what pops up.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 19, 2011, 03:55:36 AM
Here's what my WireShark dump shows.  I clicked through to load a game list.

----

DNS Query geckocodes.org

TCP socket connection

HTTP GET /AccioHacks/ServerAddress.txt (??)

HTTP GET /AccioHacks/CurVersion.txt

----

That's it.  I see no other traffic of any kind.  So it seems as if it gets to CurVersion.txt and then never asks for a game list.

I clicked "Attempt to Reconnect" and I got

----

DNS Query

TCP Socket connection

HTTP GET /AccioHacks/CurVersion.txt


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 19, 2011, 04:46:22 AM
w.t.f.
That is a tremendous point in the right direction.


@(??):
I can tcp connection to download files- no problem, no ip needed.
For the php requests, the server is being picky and I need the IP and cleaner http header.
ServerAddress.txt is a file that has the ip so I connect, tcp grab the file, use the IP and then do my php requests.
It's like a fake DNS lookup.
I don't want to hard code that ip just in case the server relocates again- that would break it for sure.


edit: the reason it checks the current version file on connect and re-connect is to verify that it's online


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 19, 2011, 04:58:52 AM
I say ?? because you already get the IP from the DNS query.  But I guess that would be handled by the underlying socket implementation, so it might not be immediately available to the application layer.

Once I have this set up, it's extremely easy to eavesdrop on all communications, so I can help you test anything you want.  For instance, I saw HBC querying the hackmii server to ask for the current version of HBC.  They use xml instead of txt, too.

Wireshark is fun.

EDIT:

I don't think the server is shutting us out.  If it was, we wouldn't be getting HTTP responses.

Is it possible that it's not parsing the server address correctly and thus just not doing any php requests at all?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 19, 2011, 05:39:39 AM
Yes, that is a possibility. (but it's pretty unlikely since there's only one line in the file AND it does have a hard-coded fall back of this server's ip)

This is a test one:
http://geckocodes.org/boot.dol
It prints out the header that it sends when requesting the list of games.

If the request fails, it says that it failed.


I currently cannot get Accio Hacks to not work. =_=


@DNS stuff: yes, everything you said about that is true. I actually didn't notice that it said that in your post. Maybe I can figure that one out for a future release.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 19, 2011, 02:26:19 PM
You should try adding a line break to your ServerAddress.txt file.  If you are using any sort of "get line" I/O function to read the text, it might be confused by the absence of a line break.  It's generally a good rule of thumb to end text files with an extra line break.

I see the HTTP GET text in Accio Hacks for about two or three seconds, but I'm still not getting anything in wireshark.  Also, after the network initializes the first time, I get a "network could not initialize try again".  But it instantly initializes the next time, and this next time is when it gets ServerAddress.  Do you have some sort of timeout on network init?

I took a screenshot of the Wireshark dump.  At the top you see the RST packet from my previous attempt, it looks just the same as this attempt.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 19, 2011, 03:22:38 PM
the HTTP GET text in Accio Hacks debug is printed to the screen /before/ it's sent. It should send as soon as the screen goes away.

Right after that, it says "building list..." for a blink.
THEN you should get a screen in Accio Hacks that said the php_request function failed if it's not working. (undoubtedly you should get the fail screen if- according to wireshark- it's not even successfully sending the header)


If
1) wireshark doesn't show the HTTP Get /AH.php?c=R&l=J or similar (right after the screen disappears in AH debug)
AND
2) accio hacks doesn't show the fail message
Then that would mean it's definitely failing but reports that it didn't fail... (and I'll need to figure out how the heck it managed to do that)




The initiate network thing happens sometimes. I noticed it in the first release. And I do think that is because of a timeout.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 19, 2011, 03:45:45 PM
Not only does wireshark show no HTTP GET after the screen disappears...it shows literally nothing.  Zero activity after the "CurVersion connection" is reset.  I would say that whatever function you call to transmit the PHP request to the Internet is not being called at all, which may explain the lack of a fail screen.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 19, 2011, 03:56:44 PM
Yes, the problem has to be in that one function. But it works for me and it worked for you the first night- which doesn't make sense.
If the problem is with the IP in the file as you hypothesized about earlier- then I just have to delete/rename the file on the server and everyone will drop to the default hard-coded one.. If it magically works then- then we'll know why. If it still doesn't work, then the problem is deeper still.

I'll delete it in 6 hours. Or I'll go home for lunch.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 20, 2011, 02:37:02 AM
I got the "building list..." for a blink.  Then it goes straight to "No Games Available"


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on May 20, 2011, 04:20:29 PM
Is it possible that there is some issue with IOS?  Depending on which IOS you have, or which IOS Accio Hacks is launched with, or something, perhaps it changes how wifi works.  That would explain why it works for some and not for others.

I also recently updated HBC to 1.0.8 (I was using 1.0.6 for quite some time).  I wonder if my Accio Hacks stopped working once I updated HBC.  I think my Wii is also 4.1 or 4.2, definitely not 4.3.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 20, 2011, 06:54:35 PM
That's a good thought that never crossed my mind. I have 4.2.

The twitter guy said that codedownloader is working for him so it's most likely a screw up in my programming somewhere. Net programming in C is new to me.. Gotta learn somehow. =P


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: TunaLover on July 02, 2011, 05:16:13 PM
Couldn't retrieve online game list from AccioHacks, I'm on 1.1, there are plans to fix this problem?
Awesome app BTW, save alot time =)

Ok, I've using accio hacks with 4.3 firmware for quite some time (since the initial release IIRC), I doubt it generated the problem.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 11, 2011, 06:06:53 PM
I don't know what you're saying in that last line... Is it working for you too?


I /was/ going to fix it but I couldn't figure it out since it works fine for me.. and the server change that broke it came at a terrible time. Really just about has me ready to walk away from the entire hacking scene.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on July 11, 2011, 07:48:57 PM
He's saying that he's been on system menu 4.3 since it was released.  And he's used Accio Hacks for a while, but now he gets the "Can't retrieve online game list".  Thus, he deduced that the problem is not likely the system menu.

If you're going to walk away from Accio Hacks, could you post source somewhere?  I might be able to do something with it once I get my hacktop fixed.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: ropers on July 11, 2011, 08:37:47 PM
ya ive been get this problam to where it say

If you know there should be games listed here
then you may have been disconnected. If this problam
continues ,make sure http://geckocodes.org is
online.
ive try all regions and try all a-z still wont let me get a list of codes.
and yes i get online just fine.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: TunaLover on July 12, 2011, 03:21:34 PM
It's working for me now O.o

Did you fix something whitin server codes?

Nice  :D


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on July 12, 2011, 04:18:09 PM
I didn't touch anything.

It's possible that Link changed it back.. but he probably would have told me.

Like I said, it was working for me too. I don't know yet why it doesn't work for some people.. If it stops working for you again then it's probably some shoddy memory allocation/pointers and we're just lucky when it does work. ...hard to test when I can't get mine to not work.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on August 05, 2011, 12:36:23 AM
New server, new test:

http://geckocodes.org/boot.dol

This will be the next released one if it works. It works for me but that's apparently unreliable..


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: Thomas83Lin on August 05, 2011, 01:25:21 AM
New server, new test:

http://geckocodes.org/boot.dol

This will be the next released one if it works. It works for me but that's apparently unreliable..

Working great here!! :)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on August 05, 2011, 01:28:22 AM
yesssssssssssss!

First one to reply so far. Hopefully I can get this release pushed out tonight.. just need a few more confirmations.
Thanks thomas83lin! =)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on August 05, 2011, 01:38:55 AM
Just got another confirmation via WLM!!


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: biolizard89 on August 05, 2011, 03:48:02 AM
New server, new test:

http://geckocodes.org/boot.dol

This will be the next released one if it works. It works for me but that's apparently unreliable..
Works fine for me, but I wasn't using Accio Hacks at the time when people were reporting problems, so I'm not sure if my installation ever had issues.  But it definitely works for me right now.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on August 05, 2011, 03:50:33 AM
Awesome, thank you!

3 + me is well enough to push a release I guess!

Will be such a relief if this goes well.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: Fake Team Twiizers on August 05, 2011, 03:55:15 AM
On one of my Wiis, the Accio server "is unnavaliable". This happened on only one of them, though. I'm going to repair the HBC on it... :)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: TunaLover on August 05, 2011, 07:51:17 PM
New server, new test:

http://geckocodes.org/boot.dol

This will be the next released one if it works. It works for me but that's apparently unreliable..

I get this trying to download the file...

Code:
Not Found

The requested URL /boot.dol was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on August 05, 2011, 08:50:40 PM
Yeah, I deleted the test.

I released it as full version. Use the self-update in your existing copy of accio hacks or just grab a fresh install: http://geckocodes.org/AH.php?dl


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: dcx2 on August 06, 2011, 12:52:38 AM
I used the auto-update and everything works now.  ^_^


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: [email protected] on August 06, 2011, 08:36:33 AM
I used the auto-update and everything works now.  ^_^
autoupdate created a boot.dol with 0 KB for me and the app couldn´t be found in HBC anymore ^.^
whatever, I manually downloaded the from wiibrew and no other problems occured.

---
Great, even the monstrous codes.txt from MH3 works flawlessly.
Some loaders had serious problems with those big codes lists :p


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on August 06, 2011, 03:49:26 PM
MH3 code list is truncated significantly in Accio Hacks.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: [email protected] on August 06, 2011, 07:16:03 PM
MH3 code list is truncated significantly in Accio Hacks.
ah, thought it worked well.
That´s why people shouldn´t spam thousands of codes ._.
Skiller: 33xxx codes *cough*


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: [email protected] on August 08, 2011, 10:00:44 PM
how do I delete GCT´s?
I don´t want to save a blank one and even if I wanted to, it doesn´t give the opportunity.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on August 09, 2011, 02:20:57 AM
If you turn off all the codes, it creates an "empty" one with the do code and f0 lines.

I will change that behavior in the next version so that no codes=delete gct.

*****************************//so I know there's important info in this post when I come back to work on it


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: [email protected] on August 09, 2011, 08:06:44 AM
If you turn off all the codes, it creates an "empty" one with the do code and f0 lines.

I will change that behavior in the next version so that no codes=delete gct.

*****************************//so I know there's important info in this post when I come back to work on it
if no codes are selected, it exits right away without asking "want to save gct?"
Just wondering.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on August 09, 2011, 01:04:39 PM
Nah, you have to save the gct with no codes selected, then it just makes an "empty" one.

- Deselect/turn off each code
- Press B
- choose "Yes, save and create gct"
- gct file for that game is now "empty"


I will change it to:

- Deselect/turn off each code
- Press B
- choose "No codes selected- Delete gct?"
- gct file for that game (if it exists) will be deleted.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: [email protected] on August 09, 2011, 04:53:40 PM
Nah, you have to save the gct with no codes selected, then it just makes an "empty" one.

- Deselect/turn off each code
- Press B
- choose "Yes, save and create gct" <- it does not ask that when no codes were selected... :-\
- gct file for that game is now "empty"
And yeah, it would be great if you add that feature with deleting gct´s.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on August 09, 2011, 05:08:02 PM
....it doesn't ask that??? Uhh... It's been a loooong time since I programmed that part.... I'll have to check it out because I was certain that it just saved an empty one.... Sorry


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: [email protected] on August 09, 2011, 08:25:10 PM
....it doesn't ask that??? Uhh... It's been a loooong time since I programmed that part.... I'll have to check it out because I was certain that it just saved an empty one.... Sorry
that´s what I always said ;D


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: GMO on March 13, 2012, 12:00:49 AM
Upgraded to new HBC and AH doesn't appear to load, When I press the Home Button it returns me to HBC


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on March 13, 2012, 04:19:15 AM
Thanks GMO, first report - none on wiki either

I haven't updated yet.

Seems weird that it could happen. Anyone else having trouble?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: Thomas83Lin on March 13, 2012, 04:27:13 AM
Working flawless here, tested creating a .gct afew times

AH v1.2
HBC v1.1.0


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: JoostinOnline on May 27, 2012, 01:53:58 AM
Do you still have any intention of adding a way to save your region?

PS: I made a new icon for Accio Hacks.  If you don't want to use it, that's perfectly fine.  I just make icons whenever I want to pass the time.  If you do like it, I can make any changes you want.
(http://i1062.photobucket.com/albums/t495/JoostinOnline/Homebrew%20Icons/AccioHacks/AccioHacks1.png)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on May 27, 2012, 03:19:42 AM
I definitely will when I work on it again. I can't make any promises of when though. (sorry)

That icon looks great! Nice work =)


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: JoostinOnline on May 27, 2012, 03:46:00 AM
I definitely will when I work on it again. I can't make any promises of when though. (sorry)
No problem, just glad you are thinking about it.  I only use cheats when it is to fix a bug or annoying problem (like Twilight Princess letting you know how much every kind of rupee is worth), but I think it will make Accio Hacks more convenient.

That icon looks great! Nice work =)
Thanks.  I realized I forgot to put "App" at the bottom, I'll see if I can fit it in.  I may just have to remove that line and fill the space with something else.  I only spent about 20 minutes on it since I wasn't planning on sharing it with anyone.  If you decide you do want to use it, feel free to make any suggestions or requests.  I love a challenge, so picky is good.  Here (http://s1062.photobucket.com/albums/t495/JoostinOnline/Homebrew%20Icons/) are a handful of my other icons (I lost most when mediafire corrupted my images) if you are interested.


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: JoostinOnline on May 31, 2012, 11:51:26 PM
I've tried and there is no way I can fit "App" in there without making it illegible.  Do you want me to replace the text with something else?


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: James0x57 on June 01, 2012, 01:02:19 AM
Nah, I'll keep the current Icon. But if I ever want to change it, I will definitely run it by you if you're interested at that point.

Thanks!


Title: Re: Accio Hacks - Get Codes, Create gct's
Post by: JoostinOnline on June 01, 2012, 01:18:28 AM
Okay, that's fine.  I didn't want you to feel like you had to change the icon, it was just an offer.  I make lots of icons for developers (examples linked two posts ago) and since I didn't have any requests at the moment, I decided to work on icons for Accio Hacks.  I got another request shortly after (Newo Shooter), which is why I didn't post again till today.