Page 1 of 1
Bot for testing units
Posted: 16 Jan 2012, 14:57
by satan
UnitsTestBot
this bot starts/or activate spring, starts a game (if not already done) and spawns one or more units
it is thought for developers that they have to make only one click to test their new unit...
includes exe, source code and instructions
written in autoit
http://springfiles.com/spring/tools/unitstestbot

Re: Bot for testing units
Posted: 16 Jan 2012, 15:00
by PicassoCT
Tested and found good:
really nice to start spring and spam units. epic Battles ensue.
Re: Bot for testing units
Posted: 16 Jan 2012, 15:17
by Beherith
Append this to uikeys.txt:
bind alt+c cheat
bind alt+n nocost
bind alt+m give corcom
Re: Bot for testing units
Posted: 16 Jan 2012, 16:10
by knorke
heil satan and welcome.
a suspicious exe file appears.
knorke uses double click.
knorke enters "bldfba" for spring path and clicks start.
suspicious exe file uses "impossible to close, not even clicking x works"
=help iam under attack by viruz.
Controlling other programs via simulated mouseclicks/keypresses is usually not a good idea:
eg spring.exe takes
startscripts as parameter that you can use to directly launch a game, without the menu coming up first.
To decide where to click to position the camera(?), you use
Code: Select all
$maxX = @DesktopWidth
$maxY = @DesktopHeight
$spawnPositionOneX = $maxX / 16.07
$spawnPositionOneY = $maxY / 7.60
but what if game resolution is not the same as desktop resolution or spring runs in windowed mode?
Or if the minimap is in a different position/size?
Code: Select all
$infolog = FileOpen($path & "\infolog.txt")
google says FileOpen returns -1 if opening the file failed (most languages do something similiar) so check for that.
When used "correctly" the program works but like Beherith I think keybinds are probally easier to use or even a lua widget:
Spring.SendCommands ("cheats")
Spring.SendCommands ("give unitname")
(and you could also use Spring.Rehost to restart from within game)
So while looking forward to more satanic software my rating for this is:

Re: Bot for testing units
Posted: 16 Jan 2012, 16:43
by FLOZi
Someone move to games & mods?
edit: Thanks.
Re: Bot for testing units
Posted: 16 Jan 2012, 18:16
by smoth
download gundam
sandbox mode.
I. AM. YOUR. WALKING. GOD.
Re: Bot for testing units
Posted: 16 Jan 2012, 19:14
by PicassoCT
surely, he should avoid exefiles and do it the spring way, fidling around for half an hour in some well hidden confuck-file, like we have seen it before (unitposer im looking at you, wanted but not usefull because needing more time to config then to animate)
Or he should bundle it with journeywar, so only dlders of my mod can use it. But well, constructive criticism certainly applies to everyone in equal measures :D
Re: Bot for testing units
Posted: 16 Jan 2012, 20:00
by knorke
hm i hoped my critism was constructive? (certainly was not meant offensive)
(unitposer im looking at you, wanted but not usefull because needing more time to config then to animate)
While setting it up is now actually not that hard anymore thanks to Flozi packing it into a mutatormod, I think that trial&error and some math are still superior to make most scripts.
Re: Bot for testing units
Posted: 18 Jan 2012, 18:00
by CarRepairer
Re: Bot for testing units
Posted: 18 Jan 2012, 18:03
by knorke
you fail.
that is a bot for testing balls.
Re: Bot for testing units
Posted: 18 Jan 2012, 18:16
by smoth
knorke wrote:you fail.
that is a bot for testing balls.

BALLS?!?!
Re: Bot for testing units
Posted: 18 Jan 2012, 19:50
by PicassoCT
CarRepairer wrote:
Actually a robot, that is a factory, who lowers its newmade units to its foot and "kicks" them into battle would be pretty awesome.