gametechmods

Robot Arena => Discussion => Topic started by: Tigermisu on November 01, 2009, 12:20:15 AM

Title: Is this possible? (Difficulty button idea)
Post by: Tigermisu on November 01, 2009, 12:20:15 AM
Hey there :-D

Another of my noob ideas, I was thinking of having an Difficulty option in the main menu, and 3 different AI folders in the game directory.

When you click on easy, the game uses the AI folder with the, for example, stock bots.

When you click on medium, the DSL bots is selected

Hard, you play agaisnt Starcore bots.

I came to this idea when it got old to fight the same DSL bots, i saw another AI packs but most of them needed a stock version to be added, I think this feature will be good, And I overuse the word "I" because I not I *continues offtopic rant*
Title: Is this possible? (Difficulty button idea)
Post by: Pwnator on November 01, 2009, 12:27:30 AM
One problem I see is that Starcore and DSL don't mix. But you can do all 4 version of SC instead. But what I usually do is put all of the teams I want into a single AI folder, and dropping down in order of difficulty. :D
Title: Is this possible? (Difficulty button idea)
Post by: Tigermisu on November 01, 2009, 12:31:04 AM
Well i just found this:

https://gametechmods.com/forums/showthread.php?t=749

What if that mod, had around packs of 12 teams, from minor to max difficulty, and you could switch them with a scroll when you wanted some PRO carnage, or some cakewalk

Thats my idea, a difficulty button/scroll/level, and many AI teams in 1 game.
Title: Is this possible? (Difficulty button idea)
Post by: JoeBlo on November 01, 2009, 01:05:31 AM
I was building a program that would have been capable of changing the AI prior to starting the game but it was to strict with file directories and such so I abandoned the idea
Title: Is this possible? (Difficulty button idea)
Post by: Naryar on November 01, 2009, 03:20:51 AM
Mixing Stock and DSL is a big no-no here in this community - and DSL bots are technically MUCH harder than Starcore that said.

And get my NAR AI pack if you want some pro carnage.
Title: Is this possible? (Difficulty button idea)
Post by: Tigermisu on November 01, 2009, 03:15:59 PM
Ok, it was just some example, i dont say such bots and stock etc.

Just, each team has 3 lw, 3 mw, 3 hw, each one for each difficulty.

Choose hard, the AI team plays with the tougher bots of each class, etc.
Title: Is this possible? (Difficulty button idea)
Post by: Sage on November 01, 2009, 03:34:20 PM
I do like the idea (In-game interchangeable AI packs), but you could also just put a bunch of AI packs in one AI (like phil already did). You could just have one empty team that separates the packs. And yes, you could order them in difficulty as well.
Title: Is this possible? (Difficulty button idea)
Post by: Trovaner on November 01, 2009, 03:56:08 PM
Some of the original programming suggests that they were working on a difficulty setting but it was never implemented.

The EXE regulates what buttons generated by GIBs do so we can't add any new ones unless the EXE already permits it (I'm not sure if we could access some of the unused coding buf there is probably a reason why it wasn't used). The only known work around is using the practice arena buttons (the EXE is allowing the practice arena python to know when it is pressed).
Title: Is this possible? (Difficulty button idea)
Post by: Tigermisu on November 01, 2009, 11:53:18 PM
Practice arena difficulty?

This brings me another Idea.

What if we add a bot to the practice arena, just click on it, and a random AI bot of the same class will spawn, best way to test ur bot IMO.
Title: Is this possible? (Difficulty button idea)
Post by: Madiaba on November 02, 2009, 07:06:28 AM
Quote from: Tigermisu;76474
... This brings me another Idea.
 
What if we add a bot to the practice arena, just click on it, and a random AI bot of the same class will spawn, best way to test ur bot IMO.
There's no way to introduce another bot into the practice garage. It seems to be hard exe-coded.
Trov. and I tried putting a 'gmf' driven HouseBot (like Wild Robots Live [Pittsfield Arena]), but the practice arena has some issues (not 'crashy', but rather 'non-recognition', 'py to gmf' problems) with it.
Title: Is this possible? (Difficulty button idea)
Post by: Tigermisu on November 02, 2009, 10:20:55 AM
Ouch......

Well... Any way to put difficulty buttons in the practice arena??
Title: Is this possible? (Difficulty button idea)
Post by: Clickbeetle on November 06, 2009, 10:16:09 PM
You couldn't make a button, but I'm pretty sure you could make an arena PY that would change the AI difficulty when you loaded it.

I was experimenting with making an arena with no audience in it--just dead silence--and while that didn't work too well I think the code could be adapted to difficulty swapping.

You just need to use the os.rename() function and tell it to rename the AI folder.  I don't remember the exact syntax but if anyone's interested I can get it.  So you can have 3 AI folders for example, call them AI, AI2, and AI3, and when you load the arena it will rename them all so AI becomes AI3, AI3 becomes AI2, and AI2 becomes AI.

Obviously you couldn't do that if you tried to load an AI bot in that arena.  But it might work with two human bots.

I did successfully make the Epic Showdown arena silence the audience with this method; the only problem was I couldn't make it come back in the other arenas.  I believe the code I used is still in the .py, commented out.
Title: Is this possible? (Difficulty button idea)
Post by: kill343gs on November 06, 2009, 10:28:34 PM
You know what could be really cool? If you made the AI harder as the match wore on if you were beating the ai bot too bad, like in desperation. I don't really understand the workings of it but you may be able to get it to work along with the crowd's reaction to the fight? Just an idea.
Title: Is this possible? (Difficulty button idea)
Post by: Madiaba on November 06, 2009, 10:57:23 PM
I agree, CB. Though pretty sacrificial for me, since I sorta like the crowd for 'ambience'.
That's a cool idea, K-3.
In the AI.py, one could regulate the powers/strengths of an AI, based upon its present life. Say, start out a strong AI with 50% power. Then, if/as life decreased, powers could be increased proportionately, simulating 'desperation'/adrenaline kicks in....hypermorph..."Don't make me angry Mr. McGee; you won't like me when I'm angry!......"
Title: Is this possible? (Difficulty button idea)
Post by: Naryar on November 07, 2009, 05:02:14 AM
Quote from: Madiaba;77542
if/as life decreased, powers could be increased proportionately, simulating 'desperation'/adrenaline kicks in....hypermorph...

About increasing the powers, you're notably talking of augmenting the analog control values on the bot ?

I could see my aptly named NAR AI Berserker augmenting it's spinner strength with damage...
Title: Re: Is this possible? (Difficulty button idea)
Post by: Tigermisu on February 26, 2011, 10:37:36 PM
(I hope thread necromancing is not bad here)

Has anyone gotten around to do this?
Title: Re: Is this possible? (Difficulty button idea)
Post by: Pwnator on February 26, 2011, 10:45:12 PM
The easiest way to do this is to arrange your AI teams in order of difficulty.
Title: Re: Is this possible? (Difficulty button idea)
Post by: Tigermisu on February 26, 2011, 10:49:38 PM
How would you do that?

Sorry being under a rock for 2 years affected my memory.
Title: Re: Is this possible? (Difficulty button idea)
Post by: Pwnator on February 26, 2011, 10:57:35 PM
In your AI folder, you got your teams in the order you see in Exhibition mode. Arrange your teams by difficulty and rename all the teams from Team0 to Teamx (x being the total amount of teams minus 1). Once you've done that, fix your Teams.txt (that's quite tedious though, as a single mistake in syntax or spelling crashes your whole team).


[Edit] Hmmm... maybe a video would work. But I'm too busy to make one right now. XD
Title: Re: Is this possible? (Difficulty button idea)
Post by: Tigermisu on February 27, 2011, 12:08:38 AM
Hmm I still don't get it. How do I "fix" the Teams.txt and how would I toggle the difficulty?
Title: Re: Is this possible? (Difficulty button idea)
Post by: Pwnator on February 27, 2011, 12:40:01 AM
Hmm I still don't get it. How do I "fix" the Teams.txt and how would I toggle the difficulty?

You couldn't 'toggle' the difficulty in this method, but it feels like a 'slider' or a 'knob' so it's actually better because you'll can have teams between easy and medium, or medium and hard, for example.

Also, you edit your Teams.txt with Notepad. :trollface


*eherm* Your Teams.txt shows you the corresponding team for each folder. Like Team0 corresponds to Red Zone. Edit the order of team by difficulty, and Red Zone might be the 5th easiest, so it's now in Team4. If your Teams.txt isn't fixed, your game would crash.




[Edit] Yep. Needs a vid. But I'm still too busy right now. >.<
Title: Re: Is this possible? (Difficulty button idea)
Post by: 123savethewhales on February 28, 2011, 01:40:04 AM
As Click suggest, the 3 sets of AIs can be stored in 3 different AI folder, with a bat file that renames them properly then load up RA2.  The hardest part is to actually figure out the difficulty of each bot.
Title: Re: Is this possible? (Difficulty button idea)
Post by: Vertigo on February 28, 2011, 12:02:14 PM
The easiest way to do this is to arrange your AI teams in order of difficulty.
Thats a very good idea for new builders, heck I might even make one for download once SkAI High is complete
Title: Re: Is this possible? (Difficulty button idea)
Post by: Badger on February 28, 2011, 12:59:20 PM
As Click suggest, the 3 sets of AIs can be stored in 3 different AI folder, with a bat file that renames them properly then load up RA2.  The hardest part is to actually figure out the difficulty of each bot.

If someone makes a difficulty AI pack, they could get the newbs (Me) to do the easy bots, more experienced builders to do the medium and Sage/Naryar (Depends on stock or DSL) and 123 to do the hard. The hardest bit is to get 123, Sage or Naryar to make the bots for you.

Bad idea
Or you could just rip NAR AI off

Just an idea.
Title: Re: Is this possible? (Difficulty button idea)
Post by: Vertigo on February 28, 2011, 01:42:06 PM
Tigermisu, if you don't mind, I may take your idea here and make something of it, as I can see it being something really useful to the community
Title: Re: Is this possible? (Difficulty button idea)
Post by: Tigermisu on February 28, 2011, 05:03:49 PM
Yay you are going to make it :D

If you need someone to make easy, realistic bots, tell me, I usually do simple things (Thats why I rarely play agaisn't anything but stock AI) D:

(I even used to code AI like 2 years ago, I might need a mind refresh to do it again)