Hacking Sharpii

person66

If it isn't edited, it isn't a true person66 post
OP
Member
Joined
Jun 16, 2009
Messages
1,108
Trophies
0
Location
Canada
XP
415
Country
Canada
Alright, 1.6 is up!

SendWad now has AHBPROT support (use '-ahb' instead of '-ios IOS'), and you can save your IP address for SendWad and SendDol. It is saved in the environmental variable SharpiiIP, so you can either add it manually, or add the argument '-saveip' when sending a WAD/DOL to save the ip you entered. After it is saved, if you don't enter anything for the IP, it will use the saved one.

Thats about it, let me know ho it works! :)
 

JoostinOnline

Certified Crash Test Dummy
Member
Joined
Apr 2, 2011
Messages
11,005
Trophies
1
Location
The Twilight Zone
Website
www.hacksden.com
XP
4,339
Country
United States
If you want I can write instructions for setting environment variables for Sharpii.exe (you can run it from any directory that way) and SharpiiIP.
?

Not sure I follow, you already can run it from any directory...
Currently you have to have Sharpii in the same directory as the wad or dol files.
I mean you could save the Sharpii files in C:\Program Files\Sharpii\ and then run Sharpii from your desktop.

You would have to make one change to the programming. The dll files would have to be run from the directory that Sharpii is running from, and not the one your dol/wad file is in.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
that wouldnt work out too well for people that have WIILOAD set to their usbgecko. i think this is network only isnt it?
 

SifJar

Not a pirate
Member
Joined
Apr 4, 2009
Messages
6,022
Trophies
0
Website
Visit site
XP
1,175
Country
If you want I can write instructions for setting environment variables for Sharpii.exe (you can run it from any directory that way) and SharpiiIP.
?

Not sure I follow, you already can run it from any directory...
Currently you have to have Sharpii in the same directory as the wad or dol files.
I mean you could save the Sharpii files in C:\Program Files\Sharpii\ and then run Sharpii from your desktop.

You would have to make one change to the programming. The dll files would have to be run from the directory that Sharpii is running from, and not the one your dol/wad file is in.

Surely if you just stick the .exe and .dll in some folder that's in the PATH, it should all work? When it tries to load .DLLs, it'll load them from a location in the PATH. (Haven't tested it, but I am 99% sure this should work)

EDIT: Nope doesn't work. Ignore this post :P
 

JoostinOnline

Certified Crash Test Dummy
Member
Joined
Apr 2, 2011
Messages
11,005
Trophies
1
Location
The Twilight Zone
Website
www.hacksden.com
XP
4,339
Country
United States
If you want I can write instructions for setting environment variables for Sharpii.exe (you can run it from any directory that way) and SharpiiIP.
?

Not sure I follow, you already can run it from any directory...
Currently you have to have Sharpii in the same directory as the wad or dol files.
I mean you could save the Sharpii files in C:\Program Files\Sharpii\ and then run Sharpii from your desktop.

You would have to make one change to the programming. The dll files would have to be run from the directory that Sharpii is running from, and not the one your dol/wad file is in.

Surely if you just stick the .exe and .dll in some folder that's in the PATH, it should all work? When it tries to load .DLLs, it'll load them from a location in the PATH. (Haven't tested it, but I am 99% sure this should work)
That's what I thought, but no. It looks for the dll's in the target folder, and not the folder that sharpii.exe is located in.
 

tueidj

I R Expert
Member
Joined
Jan 8, 2009
Messages
2,569
Trophies
0
Website
Visit site
XP
999
Country
that wouldnt work out too well for people that have WIILOAD set to their usbgecko. i think this is network only isnt it?
So either make sure the variable starts with "tcp:" or add simple code to write to a file instead of a socket (yes, serial ports can be opened as files on windows e.g. "\\.\COM??"). It seems silly to have an app using the wiiload function but not using the wiiload variable.
 

JoostinOnline

Certified Crash Test Dummy
Member
Joined
Apr 2, 2011
Messages
11,005
Trophies
1
Location
The Twilight Zone
Website
www.hacksden.com
XP
4,339
Country
United States
that wouldnt work out too well for people that have WIILOAD set to their usbgecko. i think this is network only isnt it?
So either make sure the variable starts with "tcp:" or add simple code to write to a file instead of a socket (yes, serial ports can be opened as files on windows e.g. "\\.\COM??"). It seems silly to have an app using the wiiload function but not using the wiiload variable.
Because this is easier to do. I want to use wifi and my USB Gecko separately. All you have to do is tell Sharpii to save your IP address and it does so.
 

person66

If it isn't edited, it isn't a true person66 post
OP
Member
Joined
Jun 16, 2009
Messages
1,108
Trophies
0
Location
Canada
XP
415
Country
Canada
Oh, right, I will fix that right away, and also make Sharpii look for the dlls in the same directory as the exe (I actually thought it would do that as it is right now, but apparently not...)
 

person66

If it isn't edited, it isn't a true person66 post
OP
Member
Joined
Jun 16, 2009
Messages
1,108
Trophies
0
Location
Canada
XP
415
Country
Canada
Yet another double post by me :)

Anyway, 1.7 with those changes is up. It can now be installed to you Program Files using 'Sharpii install' and uninstalled with 'Sharpii uninstall'
Installing Sharpii allows you to use it from the command prompt in any directory, the exe does not need to be there (or the dlls, I fixed that as well)

The IP is stored in a system variable now (but if you have a user one, Sharpii will use that over the system one), and I am agreeing with Joostin, I want to keep the Sharpii and Wiiload variables separate.

That is all, hope this helps those with problems :yay:
 
  • Like
Reactions: 1 person

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
    K3Nv2 @ K3Nv2: Tell Kanye I need power