Player bot on maps

Tutorials and discussions about Mapping - Introduce your own ones!
User avatar
EvilGrins
Godlike
Posts: 9668
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Player bot on maps

Post by EvilGrins »

On MH-B99_MinasTirith I found that in addition to the monsters there was also a player bot on the map. With help of someone else there's now a skin on that bot, so you're not fighting a blobby green looking person, so the map has 3-way combat. You, the player bot, and the monsters.

Nobody likes each other, everybody's trying to kill each other.

I recently edited a map with only nali-cows as the monster. For the Hell of it, why not? I figured I'd add a player bot. Kind of a cattle rustler stopping the poaching of the herd (even though a player bot would kill the cows too) and I slapped a Judge Dredd skin on the player bot.

Thing is when I played the map the player bot wasn't visible.

First try doing this, not sure where I went wrong.

Thoughts? Suggestions? Cheap jokes at my expense?
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
User avatar
papercoffee
Godlike
Posts: 10443
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.
Contact:

Re: Player bot on maps

Post by papercoffee »

Cheap jokes... Cheap jokes ...hmm ...nope nothing comes to mind. sorry can't help you!

But the other thing ...is this JD skin actually usable for Bots?
And "wasn't visible" means what? The bot was there but you couldn't see him?
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Player bot on maps

Post by JackGriffin »

It's a mapper who screwed up. I fixed it once for someone (wasn't that you?).
So long, and thanks for all the fish
User avatar
EvilGrins
Godlike
Posts: 9668
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: Player bot on maps

Post by EvilGrins »

papercoffee wrote:Cheap jokes... Cheap jokes ...hmm ...nope nothing comes to mind. sorry can't help you!
But the other thing ...is this JD skin actually usable for Bots?
And "wasn't visible" means what? The bot was there but you couldn't see him?
A strong stretch of insomnia and I stumbled over the problem. I picked the wrong bot class to put in the game. It works now.
JackGriffin wrote:It's a mapper who screwed up. I fixed it once for someone (wasn't that you?).
Think it was.

This works out great. Now there's the cows you need to kill to get to the exit, butterflies you can try to kill, and a rogue Judge running around attacking the cows and the players but not the butterflies.

I guess he just likes butterflies.

Separate question, rather than start a new thread: Killing cows takes off 5 points which after this map gives most player -thousands of points. How do I switch the cows so you don't lose points killing them?
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
User avatar
EvilGrins
Godlike
Posts: 9668
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: Player bot on maps

Post by EvilGrins »

Here's another lil' thing: is there a way to make it so the player bot doesn't respawn in the same place as the normal players do?

When I used the Mr. Titan, mixed results but still, everytime it respawned it came back to the same spot it first spawned from.

The player bot tends to respawn where the other players do, which is all well and good excepting that it's geared to kill the monsters as much as it is the other players in the game. Might be handy if it didn't spawn where the other players do, seeing as it's gonna go all chainsaw and start trying to hack them up immediately.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
User avatar
VatcilliZeitchef
Adept
Posts: 317
Joined: Tue May 01, 2012 12:29 pm
Personal rank: It's a trap!

Re: Player bot on maps

Post by VatcilliZeitchef »

That might need a different script in the bot that forces it on team 1 (blue) and the mapper to set a different playerstart with it's team set to 1.. I'm pretty sure many mods force every player or bot into team 0 though.. And I know valhalla Avatar seems to do so.
Image Kayako's useful Unreal editor Icon Database Image
User avatar
EvilGrins
Godlike
Posts: 9668
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: Player bot on maps

Post by EvilGrins »

VatcilliZeitchef wrote:That might need a different script in the bot that forces it on team 1 (blue) and the mapper to set a different playerstart with it's team set to 1.. I'm pretty sure many mods force every player or bot into team 0 though.. And I know valhalla Avatar seems to do so.
Maybe, although tyhe HUD for the player bot is blue they register in the game as being on team gold.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: Player bot on maps

Post by Higor »

TeamInfos... check'em.
User avatar
VatcilliZeitchef
Adept
Posts: 317
Joined: Tue May 01, 2012 12:29 pm
Personal rank: It's a trap!

Re: Player bot on maps

Post by VatcilliZeitchef »

Just a question, is this bot a custom class or just a Maleone/femaleone/tournamentmale/Tournamentfemale bot?
Image Kayako's useful Unreal editor Icon Database Image
User avatar
EvilGrins
Godlike
Posts: 9668
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: Player bot on maps

Post by EvilGrins »

VatcilliZeitchef wrote:Just a question, is this bot a custom class or just a Maleone/femaleone/tournamentmale/Tournamentfemale bot?
TMale2Bot actually, standard Male Soldier for ut99.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
User avatar
VatcilliZeitchef
Adept
Posts: 317
Joined: Tue May 01, 2012 12:29 pm
Personal rank: It's a trap!

Re: Player bot on maps

Post by VatcilliZeitchef »

That is the problem then, Both the team and the name are not editable properties in this one. I think they are saved in the PlayerReplicationInfo?
It might be good if you can get someone to make you a version (subclass) that is forced on team blue and where you can edit the name.
Image Kayako's useful Unreal editor Icon Database Image
User avatar
EvilGrins
Godlike
Posts: 9668
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: Player bot on maps

Post by EvilGrins »

VatcilliZeitchef wrote:That is the problem then, Both the team and the name are not editable properties in this one. I think they are saved in the PlayerReplicationInfo?
It might be good if you can get someone to make you a version (subclass) that is forced on team blue and where you can edit the name.
That does seem ideal... any idea who?
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
User avatar
VatcilliZeitchef
Adept
Posts: 317
Joined: Tue May 01, 2012 12:29 pm
Personal rank: It's a trap!

Re: Player bot on maps

Post by VatcilliZeitchef »

It's a relatively simple thing I gather.. I have seen a couple of coders here, perhaps posting a request on a "Simple Bot to be placed in maps, where the mapper can define their team, and name" On the coding,scripting forum can yield results?
Image Kayako's useful Unreal editor Icon Database Image
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: Player bot on maps

Post by Higor »

PlayerReplicationInfo only holds one team related variable: byte Team
It's the game info that holds pointers to teaminfos as other stat holding actors hold some more info (in the case of plugins as SmartCTF)

How did I approach this on BotZ?
Using safe functions:
Becoming a valid player? - PlayerReplicationInfo.PlayerID = Level.Game.CurrentID++;
Setting name? - Level.Game.ChangeName( self, NewName, false);
Setting team? - TeamGamePlus(Level.Game).AddToTeam( NewTeam, self);

These functions properly check that no duplicate names are in use, all players have the proper team skin, all team members are properly registered on the teaminfos with a valid unique ID.
I suggest doing this after a 0.2 second timer, so the game is properly initialized, remember the Bot is among the map actors so it won't be spawned and it will Tick() BEFORE the GameInfo.
User avatar
EvilGrins
Godlike
Posts: 9668
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: Player bot on maps

Post by EvilGrins »

Is there any simple, non-scripting, way to give the player bot a name?

So that on the scoring list it doesn't just show up as 'player'.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
Post Reply