home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Using Bots to replace Singleplayer AI?

by Mister Hyde on 10/27/2009 02:08, 6 messages, last message: 10/27/2009 03:55, 1081 views, last view: 05/01/2024 15:10, closed on 10/27/2009 03:49

Hi,

<Insert boring bibliography here>

Would creating the following be too difficult or possible for another release?

We could use the current Bot setup to create new fluent AI for singleplayer games. Giving the bots 5 states, they could also seem realistic.
Crouching & Walking would be a definite plus for both AI and players.

Using custom AI nodes with the name of the bot(s) as a flag(s), they could even do patrolling and such.

Bot states:
1: Unaware. Follows default patrol path.
2: Aware. Looking for player, cannot see player. Strays off of default patrol path following
(Battle states, randomized maybe?)
3: Tanker. Runs toward the player shooting or swinging.
4: Default. Finds cover (Set by nodes), crouches behind it and stands up to shoot from cover.
5: Scared: Runs as far away as it can and hides behind cover, shooting inaccurately and quickly.

There would be a few new entities and a material. Simple as that. They could be similar to:
/Aistart [Name Of Special Bot, 0 to create the base bot] [# of bots to spawn] [Trigger to spawn, 0 to spawn upon loading] [Spawned state 1-5]
"/Aistart Roofpatrol1 1 trigger5 4"

/Newent AInode [Type] [Botnames seperated by +]
Type could be a number that tells the bot what to do at that node. E.G Continue to the next node, continue to a random node, This is cover so crouch, Run to the next node, crouch to the next node, etc.
"/Newent AINode 4 Roofpatrol1+Roofpatrol2+Sniper5"

A command that puts a bot name into the map's data ready to be spawned:
/NewBot [Name] [Follow AI nodes if 1, walk the entire map if 2][Model] [Starting weapon] [Can it pick up new weapons?] [Skill] [Player sighted range]
"/NewBot roofpatrol1 1 Ogro 4 0 3 250"

A material that clips only for bots but allowing the player to go through. Perhaps named PlayerClip?


So, would all this be humanly possible or am I daydreaming too far?

I would do it myself, but my C++ skills are good enough to create Hello World.

I suppose I can learn, though. It'd be worth it.

   Board Index   

#1: ... try again newbie...

by |ice|sub-zero|L on 10/27/2009 02:35

has it occoured to you that there has been lots of threads on the idea of crouching, although it was mainly so players could, the point came up that there would need to be more animations (anims) for the crouching, and even if it was somehow implamented (which is slim) then the whole \"crouching for players\" thread will come up again...

to top it all off you have to relize that the monsters, although not implemented for MP they have the \"unaware\" mode, although they are motionless during it (SP mode)...

3 times 3 = 9

reply to this message

#2: ..

by Mister Hyde on 10/27/2009 03:17


Sub-Zero's post is just to bash me for mentioning crouching and then say there's an unaware state for monsters COMPLETELY missing the point of the thread.

Can an admin remove it? I look on the other threads and his posts are often censored.

3*3=9, 3 3 times = 333.

reply to this message

#3: Re: ..

by |ice|sub-zero|L on 10/27/2009 03:22, refers to #2

i ain't bashing... its just it seems to me, that things like "oh no! my bots don't have names! (alias')" and "oh no! my bot only does one programmed thing!" is not what needs to be worried about at the moment... its ok to offer ideas to be made, but if you can do it yourself, you might as well save some thread space and just make it...

5 plue 1 = 6

reply to this message

#4: ..

by Mister Hyde on 10/27/2009 03:33

...
Again, my idea is to change the AI NPC's in Singleplayer by using and changing Multiplayer bots to make the singleplayer experience more enjoyable.
I want input from other people.

I don't understand why you are so against Sauerbraten being changed.

reply to this message

#5: Re: ..

by |ice|sub-zero|L on 10/27/2009 03:45, refers to #4

i am not... well to an extent... if too much changes, my crappy comp can't use it... but i don't hate it when sauer changes... but honestly, i am more worried about the engine and the MP part than the singleplayer... less and less people are going to use SP modes as time goes on, with more maps many of them insta maps... last version sauer had lots more sp maps, but a lot of them were dropped, including some concept maps and some modes like: assassin and insta assassin. RPG maps were dropped compleatly, and so on. however with many of these maps and mode being dropped, it runs better on my computer, if someone adds more scripts and stuff to something that doesen't seem useful, it add more lag and more loading...

and with many of these SP maps being dropped, what reason is there for something that people won't use?

and yeah, i know i am being a bit of an ass, but i have a bit of reason, my gf ended up in the hospital today...

reply to this message

#6: ..

by Mister Hyde on 10/27/2009 03:55

Oh damn. I'd be an ass too if my girlfriend were at the hospital. Though, usually the trouble with her is when she puts somebody else in the hospital.

You won't be affected by the MP part if the new bots only exist in singleplayer.

A few scripts like these would maybe add a megabyte or two to the hard drive load.

Why are SP maps being dropped?
To be honest, probably because the SP is quite dull. The AI runs around in circles and fires bullets, never does anything interesting.
Games have proven that people like to kill people and watch them fall.

Using bots would allow ragdolls and more human-like AI therefore increasing the popularity of Singleplayer AND Multiplayer alike and increasing the popularity.

As for your computer, I'd recommend a new computer.
$200 will buy you a mad fast dual-core AMD system if you're up to building it yourself and know what you're doing.

I hope you don't expect Sauerbraten to be held up for slower computers.
For Sauerbraten to improve it pretty much has to increase the workload for your computer.
If it doesn't improve, it will loose popularity.
If it looses popularity, it starts to shut down.
Then maps being taken off are the least of everyone's worries.

reply to this message

   Board Index   


Thread closed!

This thread has been closed, which is why you can't post any more messages in it.


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53862285 visitors requested 71637369 pages
page created in 0.016 seconds using 10 queries
hosted by Boost Digital