For your exe file above, edit it so that it looks for the iccup.ini file in the same directory rather than the registry. Also, any reason why 2 dialog boxes appear?
[Fix] Icons in fullscreen mode with iccup antihack - Page 2
| Forum Index > BW General |
|
xboi209
United States1173 Posts
For your exe file above, edit it so that it looks for the iccup.ini file in the same directory rather than the registry. Also, any reason why 2 dialog boxes appear? | ||
|
quirinus
Croatia2489 Posts
It looks in the registry (first 32 bit, then 64 bit) for the folder where the iCCup Launcher is installed (the Launcher uninstall reg key has the path). If it finds it in registry, it just assumes the ini file is in that folder, and checks if it's really present. If it's there, it proceeds to read the MainExe under the BW section, and adds ddemulate. If it doesn't find the ini file in that location, i opens up an "open file" dialog so you can select it. If it doesn't find it in the registry, it opens up an "open file" dialog so you can select it. In both cases if you don't select the file, or it's not named right, it gives an error and shuts down. It also gives an error if it can't read the section/key and then shuts down as well. Edit: LOL how didn't I think of that, yea the wLauncher probably searches the registry every time it starts. Lame. It's going to be harder to fix it like that. | ||
|
xboi209
United States1173 Posts
| ||
|
quirinus
Croatia2489 Posts
| ||
|
xboi209
United States1173 Posts
![]() EDIT: Figured it out, if you right click and run as admin, only one of those boxes appear but if you just plainly run it, 2 will appear. And still, could you just edit it so that it only looks in the current directory and silently run | ||
|
quirinus
Croatia2489 Posts
Why would I make it run only in the current directory? The point of the script is that the script finds the ini file automatically, so people don't need to look for it themselves. If it can't find the ini file it simply asks for you to select it. Why would you make it run silently if it's a stand-alone patch? Usually when you run a patch you want to know the result. I'm not sure what you mean with silent. For me silent is that it doesn't produce any programmed message boxes (results/errors). Windows message boxes are another thing, I don't include them in the silent description. Here's the version you asked for, though: exe file script file It doesn't ask for any admin rights, and edits only the ini file in the folder it's in. Code: + Show Spoiler [silent mode, only in folder] + ;Made by Quirinus from [url=http://www.teamliquid.net]www.teamliquid.net[/url] | ||
|
JohnBall
Brazil1272 Posts
| ||
|
xboi209
United States1173 Posts
| ||
|
quirinus
Croatia2489 Posts
On April 07 2013 08:03 xboi209 wrote: I don't mind having it ask for admin privileges but 2 security warning dialogs are annoying. I'm going to pack this with a batch file that I'm making for iCCup. It'll include a bunch of fixes for Starcraft and it's going to be uploaded on iCCup's website Ah awesome, that explains it then. | ||
|
xboi209
United States1173 Posts
1) My registry is being overwritten even though there's a check to see if the key exists or not 2) The code checks for the value of the key and if the value is incorrect, it checks another value, the value is always considered correct however + Show Spoiler + :na reg query "%regpath%" /v "%regvalue%">nul || echo Game Data Port does not exist, setting Game Data Port to 6112 & REG ADD "HKCU\Software\Battle.net\Configuration" /v "Game Data Port" /t "REG_DWORD" /d "6112" /f>Nul & goto 6112 :6112 reg query "%regpath%" /v "%regvalue%" | find /i "17e0">nul if errorlevel 0 ( Start UPNPConsole.exe add "6112" "UDP" "6112" "True" "StarCraft" echo Opened port 6112 via UPNP netsh advfirewall firewall add rule name="Starcraft 6112" dir=in action=allow protocol=UDP localport=6112>nul echo Created firewall rule for port 6112 set 6112=6112 goto starcraftx1 ) else ( goto 6113 ) I'd highly appreciate it if you can help me out on this one | ||
|
quirinus
Croatia2489 Posts
No idea on the batch file (as I said, I don't know batch very well :<), I'll try to take a deeper look into it later. The first line under :na seems to be broken in two though. | ||
|
xboi209
United States1173 Posts
EDIT: I fixed my first problem, guess I needed to look at that a bit more but here is the correct code + Show Spoiler + :na reg query "%regpath%" /v "%regvalue%"2>nul if errorlevel 1 ( echo Game Data Port does not exist, setting Game Data Port to 6112 REG ADD "HKCU\Software\Battle.net\Configuration" /v "Game Data Port" /t "REG_DWORD" /d "6112">nul goto 6112 ) else ( goto 6112 ) EDIT2: fixed the second problem :D | ||
|
quirinus
Croatia2489 Posts
On April 07 2013 12:06 xboi209 wrote: Fixed the post, wasn't broken in my batch file. EDIT: I fixed my first problem, guess I needed to look at that a bit more but here is the correct code + Show Spoiler + :na reg query "%regpath%" /v "%regvalue%"2>nul if errorlevel 1 ( echo Game Data Port does not exist, setting Game Data Port to 6112 REG ADD "HKCU\Software\Battle.net\Configuration" /v "Game Data Port" /t "REG_DWORD" /d "6112">nul goto 6112 ) else ( goto 6112 ) EDIT2: fixed the second problem :D Awesome! :D Are you sure it's just enough to change it there and nowhere else? | ||
|
dM-White
Chile341 Posts
can you do the same for Wlauncher and fix fish server icons t.t ??? regards | ||
|
quirinus
Croatia2489 Posts
On April 08 2013 04:26 dM-White wrote: awesome! worked!! thanks dude! can you do the same for Wlauncher and fix fish server icons t.t ??? regards Yea, I was trying, but wLauncher is more fucked up, so it's harder with my limited knowledge. I'm still pondering on a solution... Maybe xboi has an idea. | ||
|
xboi209
United States1173 Posts
| ||
|
Rekzr
Australia92 Posts
| ||
|
quirinus
Croatia2489 Posts
On May 29 2013 05:08 Rekzr wrote: How did you guys go with doing the same for fish, I have just spent the entire night trying to fix this one. cant see the rank numbers displaying, I cant find anyway to ddemulate sc in wlauncher. We didn't. :< wlauncher is gay like that | ||
|
Golgotha
Korea (South)8418 Posts
| ||
|
xboi209
United States1173 Posts
| ||
| ||
![[image loading]](http://i.imgur.com/9CRHR58.png)