Bot for testing units

Bot for testing units

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
satan
Posts: 2
Joined: 16 Jan 2012, 10:00

Bot for testing units

Post 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

Image
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Bot for testing units

Post by PicassoCT »

Tested and found good:

really nice to start spring and spam units. epic Battles ensue.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Bot for testing units

Post by Beherith »

Append this to uikeys.txt:

bind alt+c cheat
bind alt+n nocost
bind alt+m give corcom
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Bot for testing units

Post 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.
Image

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:
Image
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Bot for testing units

Post by FLOZi »

Someone move to games & mods?

edit: Thanks.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Bot for testing units

Post by smoth »

download gundam
sandbox mode.
I. AM. YOUR. WALKING. GOD.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Bot for testing units

Post 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
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Bot for testing units

Post 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.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Bot for testing units

Post by CarRepairer »

Image
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Bot for testing units

Post by knorke »

you fail.
that is a bot for testing balls.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Bot for testing units

Post by smoth »

knorke wrote:you fail.
that is a bot for testing balls.
Image
BALLS?!?!
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Bot for testing units

Post by PicassoCT »

CarRepairer wrote:Image
Actually a robot, that is a factory, who lowers its newmade units to its foot and "kicks" them into battle would be pretty awesome.
Post Reply

Return to “Game Development”