It appears you have not registered with our community. To register please click here ...

May 21, 2013, 02:24:41 AM

Author Topic: StarCraft II Launcher Plugin Pack  (Read 7294 times)

Zoxc

  • DarkBlizz Contributor
  • Goober
  • *****
  • Posts: 21
    • View Profile
StarCraft II Launcher Plugin Pack
« on: March 18, 2010, 03: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:
Code: [Select]
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:
Code: [Select]
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

Doix

  • Goober
  • **
  • Posts: 16
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #1 on: March 19, 2010, 01:18:37 PM »
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.

apriores

  • Sr. Member
  • ****
  • Posts: 117
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #2 on: March 19, 2010, 06:01:56 PM »
Very cool plugin. I'm testing AIs a lot and this is just perfect for that.
Thanks! ;D

CTS_AE

  • Goober
  • **
  • Posts: 15
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #3 on: March 20, 2010, 03: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.

gladziu

  • Newbian
  • *
  • Posts: 3
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #4 on: March 30, 2010, 11:40:27 AM »
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 :)

Kernel64

  • Sr. Member
  • ****
  • Posts: 207
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #5 on: March 31, 2010, 01: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.

apriores

  • Sr. Member
  • ****
  • Posts: 117
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #6 on: April 01, 2010, 09: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

Doix

  • Goober
  • **
  • Posts: 16
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #7 on: April 01, 2010, 01:35:56 PM »
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

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
« Last Edit: April 01, 2010, 04:14:33 PM by Doix »

gladziu

  • Newbian
  • *
  • Posts: 3
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #8 on: April 01, 2010, 06:34:49 PM »
Nice one Doix :)  thx a lot for this update ;D

apriores

  • Sr. Member
  • ****
  • Posts: 117
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #9 on: April 01, 2010, 07:11:28 PM »
Many many thanks, Doix! :D

Kernel64

  • Sr. Member
  • ****
  • Posts: 207
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #10 on: April 02, 2010, 02:35:29 AM »
Dude!

You're awesome man.

kolera

  • Goober
  • **
  • Posts: 17
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #11 on: April 03, 2010, 06: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. :)

Flokehl

  • Newbian
  • *
  • Posts: 2
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #12 on: April 03, 2010, 11: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

chikopaws

  • Member
  • ***
  • Posts: 53
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #13 on: April 04, 2010, 06: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

gladziu

  • Newbian
  • *
  • Posts: 3
    • View Profile
Re: StarCraft II Launcher Plugin Pack
« Reply #14 on: April 04, 2010, 08: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'