DarkBlizz

Game On => STARCRAFT II: WINGS OF LIBERTY => SC2 Tools => Topic started by: Zoxc on March 18, 2010, 02:51:29 PM

Title: StarCraft II Launcher Plugin Pack
Post by: Zoxc on March 18, 2010, 02:51:29 PM
Here is couple of plugins for my launcher. To use them place them in the 'Plugins' folder relative to the launcher.

Debug.dll
This is a plugin that will crudely disable StarCraft II's debugger so you can debug it.


NativeAPI.dll
This is a plugin at allows you to define new natives.


Timers.dll
This implements some stopwatch timers so you can benchmark your code.

The following natives are added:
native void StartCounter(); // Resets the counter
native fixed GetCounter(); // Gets the time in milliseconds since the reset



Loggers.dll
This implements simple file writing natives.

The following natives are added:
native int CreateLogger(string filename); // Creates a logger for Plugins\<filename>
native void LoggerLog(int logger, string message); // Appends text to the file. A newline is not added at the end
native void DestroyLogger(int logger); // Destroys the logger and closes the file



You can download the pack from http://www.multiupload.com/VPJP3M6Q20 (http://www.multiupload.com/VPJP3M6Q20)
Title: Re: StarCraft II Launcher Plugin Pack
Post by: Doix on March 19, 2010, 12:18:37 PM
http://www.mediafire.com/?whbhmfzxint (http://www.mediafire.com/?whbhmfzxint)

Speed.dll

Replaces the fastest speed with an even faster one. Yay first 3rd party plug-in.

thanks to zoxc for sample plugin + his launcher and to xttocs for letting me rip his memory pattern scan code.
Title: Re: StarCraft II Launcher Plugin Pack
Post by: apriores on March 19, 2010, 05:01:56 PM
Very cool plugin. I'm testing AIs a lot and this is just perfect for that.
Thanks! ;D
Title: Re: StarCraft II Launcher Plugin Pack
Post by: CTS_AE on March 20, 2010, 02:18:10 AM
@apriores (since the quote button is failing atm)
why not just use a speed hack to test AI's such as CE
or some other dedicated speed hack.
I know that would make my life a ton easier if I were an AI writer.

also shep's maphack would allow you to monitor what the AI is doing very well
not only because of the maphack but because of the score board that's incorporated.
Title: Re: StarCraft II Launcher Plugin Pack
Post by: gladziu on March 30, 2010, 10:40:27 AM
Quote from: Doix on March 19, 2010, 12:18:37 PM
http://www.mediafire.com/?whbhmfzxint (http://www.mediafire.com/?whbhmfzxint)

Speed.dll

Replaces the fastest speed with an even faster one. Yay first 3rd party plug-in.

thanks to zoxc for sample plugin + his launcher and to xttocs for letting me rip his memory pattern scan code.




Hi Doix,


Any chance you can make speed.dll plugin replace the original ('normal') game speed with 'faster'?
So we can all load game through launcher with desired option :)
Title: Re: StarCraft II Launcher Plugin Pack
Post by: Kernel64 on March 31, 2010, 12:35:44 AM
Seconded.

It would be great to have that. Moving from 6xspeed down to fast (not fastER) is alright, but having

normal = faster
fast = 3x
faster = 6x

is sure win.
Title: Re: StarCraft II Launcher Plugin Pack
Post by: apriores on April 01, 2010, 08:12:58 AM
Yes, I like the Kernel64 idea:
Faster = 6x
Fast = 3x
Normal = Faster
Slow = Fast
Slower = Normal

It will be just perfect for me. ;D
Title: Re: StarCraft II Launcher Plugin Pack
Post by: Doix on April 01, 2010, 12:35:56 PM
http://www.mediafire.com/?wi1ztjzywyb (http://www.mediafire.com/?wi1ztjzywyb)

Ver 0.2:

Faster = 6x
Fast = 3x
Normal = Faster (yes, the game starts at this speed)
Slow = Fast
Slower =   Normal

Next version will let you specify the speeds in an .ini if I can be bothered..


Update 0.3:

http://www.mediafire.com/?xj4hydmmk31 (http://www.mediafire.com/?xj4hydmmk31)

Ok, this will read the speeds out of speed.ini. The defaults are :

2457 < slower
3276 < slow
4096 < normal
4915 < fast
5734 < faster

The code is utter shit so just leave the format as it is, each speed on a different line, no letters or extra characters etc... I have no idea what will happen if you don't(will probably crash) :) .

If you set it to high it'll probably crash. Enjoy
Title: Re: StarCraft II Launcher Plugin Pack
Post by: gladziu on April 01, 2010, 05:34:49 PM
Nice one Doix :)  thx a lot for this update ;D
Title: Re: StarCraft II Launcher Plugin Pack
Post by: apriores on April 01, 2010, 06:11:28 PM
Many many thanks, Doix! :D
Title: Re: StarCraft II Launcher Plugin Pack
Post by: Kernel64 on April 02, 2010, 01:35:29 AM
Dude!

You're awesome man.
Title: Re: StarCraft II Launcher Plugin Pack
Post by: kolera on April 03, 2010, 05:26:54 AM
Really really nice plug-ins.. you guys are awesome.

Is there a chance that you guys would develop plug-ins that would display game time/apm. That would be really cool. :)
Title: Re: StarCraft II Launcher Plugin Pack
Post by: Flokehl on April 03, 2010, 10:01:17 AM
Very nice work man thx
But is there a chance to use it with valkiries launcher
i always play with valk and i like it very much
Title: Re: StarCraft II Launcher Plugin Pack
Post by: chikopaws on April 04, 2010, 05:24:59 AM
dunno why,, but doix speedhack plugin doesnt work for me  :(

any helps??

I use win 7 64 bit, zoxc launcher 2.3.1, sc2 installed in default folder
Title: Re: StarCraft II Launcher Plugin Pack
Post by: gladziu on April 04, 2010, 07:36:52 AM
chikopaws if you installed 0.3 version then the game speed is set to its defaults until you change it in speed.ini file.
if you installed 0.2 version remember that in options you will see 'normal' speed though its set to 'faster'
Title: Re: StarCraft II Launcher Plugin Pack
Post by: zumar on April 06, 2010, 12:20:53 PM
Thx, Doix. I always dreamed about Speed plug-in!!!!
Now We really need a Timer plug-in,
which will show game time. May be it could be done through the hot key, if it's hard to catch game start moment. Or in some file of AI scripts.