Author Topic: Pbot GPP  (Read 43593 times)

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Pbot GPP
« on: March 14, 2011, 02:35:21 am »
QVM+Patch: http://www.mediafire.com/?xdqnrbj43txhnpq
Paths: http://tremulous.net/forum/index.php?topic=11791.0 Thanks Bauer.

Installation: Put the qvm in your gpp/vm directory and the paths in base/paths.

This is just a working model. Right now, the bots fairly suck and I haven't gotten skill to work on them. If enough interest is shown on these, I'll improve them further, otherwise, just use the other bots.
« Last Edit: June 19, 2011, 09:14:02 pm by Celestial_Rage »
"The reports of my death are greatly exaggerated" ~Mark Twain

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: Pbot GPP
« Reply #1 on: March 14, 2011, 10:28:06 am »
Awesome!

eDIT: http://dl.dtrem.com/QVMs/gpp/PBot_GPP/
dTrem mirrors will never die!
« Last Edit: March 14, 2011, 10:31:44 am by DraZiLoX »

ULTRA Random ViruS

  • Posts: 924
  • Turrets: +4/-101
    • ZdrytchX's reference website
Re: Pbot GPP
« Reply #2 on: March 18, 2011, 01:48:47 pm »
Awesome!

eDIT: http://dl.dtrem.com/QVMs/gpp/PBot_GPP/
dTrem mirrors will die! [signed provider of [W]]


Teapot

  • Posts: 85
  • Turrets: +11/-3
Re: Pbot GPP
« Reply #3 on: March 18, 2011, 02:55:49 pm »
How appropriate that I was talking about children kicking and screaming only moments ago *looks at Virus*

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: Pbot GPP
« Reply #4 on: March 18, 2011, 08:36:29 pm »
Virus, just shut the fuck up and go fuck yourself, please.

Sleepman

  • Posts: 24
  • Turrets: +0/-0
Re: Pbot GPP
« Reply #5 on: March 19, 2011, 03:32:10 pm »
i tested this bots but how can i change their behavior?
they do the same as the other :(

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: Pbot GPP
« Reply #6 on: March 19, 2011, 03:33:38 pm »
i tested this bots but how can i change their behavior?
they do the same as the other :(
What do you want them to do? If you want them to move in the map, check paths!

Sleepman

  • Posts: 24
  • Turrets: +0/-0
Re: Pbot GPP
« Reply #7 on: March 19, 2011, 07:45:34 pm »
what i have to do with paths?
im a noob in this

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Re: Pbot GPP
« Reply #8 on: March 19, 2011, 08:14:07 pm »
It's all in the thread... You just have to read it. You put them in base/paths
"The reports of my death are greatly exaggerated" ~Mark Twain

Sleepman

  • Posts: 24
  • Turrets: +0/-0
Re: Pbot GPP
« Reply #9 on: March 19, 2011, 08:37:31 pm »
sry i should read more  :-[

swamp-cecil

  • Posts: 774
  • Turrets: +80/-163
    • Tremulous
Re: Pbot GPP
« Reply #10 on: March 24, 2011, 09:56:14 pm »
Still getting that mismatch thing...i suck at this :S
so, i have a folder called GPPbots, which i have a data-gpp1.pk3 unmodified in, and a vms-gpp1.pk3 with the game.qvm switched with the bots.qvm
then i have the bot.patch and bot.c laying un.pk3ed in my mod folder, and a vm folder in my mod folder with the game.qvm un.pk3ed
and i have an exact copy of that in gpp/vm
ANNNNNND.... client/server game mismatch: base/
I aslo made a .pk3 with the exact contents of vms-gpp1.pk3 exept the game.qvm (which was changed for the bots.qvm thingy) in the gpp/ direectory. Any help?
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Re: Pbot GPP
« Reply #11 on: March 25, 2011, 01:46:46 am »
Ah. Try this setup swamp:

You don't need to run it in a mod folder, running it from GPP works fine.

Navigate to
Code: [Select]
%APPDATA%/Tremulous/GPP/
and made a vm/ directory. Put the bot game.qvm in there.

Next, move all the vms-rgpp####.pk3 (The latest dl'd from US1 Official) to C:\Program Files\Tremulous\gpp (or where ever you have trem installed).

Then, if you run tremded-gpp, it should work.
"The reports of my death are greatly exaggerated" ~Mark Twain

swamp-cecil

  • Posts: 774
  • Turrets: +80/-163
    • Tremulous
Re: Pbot GPP
« Reply #12 on: March 25, 2011, 03:21:09 am »
Run tremded? I wasnt running that. Is that maybe the problem? I was running tremulous-gpp.exe in my desktop/tremulous directory.
Anyways, I added the update QVMs to the vm/ folder. games still load, its just when i run adminhelp for the bot commands, i dont see any, so i assume it isnt working.
and did the same for the mod folder. still the mismatch thing. I added all the other crapvms i haave from FSW and stuff. Still doesnt work.

A neat fact: Did you know if you use ^1colours^8 in your mod folder name, it will turn up colourful?
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Re: Pbot GPP
« Reply #13 on: March 25, 2011, 04:19:42 am »
Did you move all the pk3s to Program files and have only the vm folder with the game.qvm from the zip file in %APPDATA%/Tremulous/gpp? If you don't see the bot commands, that means that Tremulous is loading the wrong QVM. Tremulous loads the QVMs in the pk3s before it loads the qvm in the vm/ folder if there are pk3s there.
"The reports of my death are greatly exaggerated" ~Mark Twain

swamp-cecil

  • Posts: 774
  • Turrets: +80/-163
    • Tremulous
Re: Pbot GPP
« Reply #14 on: March 26, 2011, 03:35:07 am »
Did you move all the pk3s to Program files and have only the vm folder with the game.qvm from the zip file in %APPDATA%/Tremulous/gpp? If you don't see the bot commands, that means that Tremulous is loading the wrong QVM. Tremulous loads the QVMs in the pk3s before it loads the qvm in the vm/ folder if there are pk3s there.
hrm...and the fact that its loading FSW commands means that it is reading the wrong QVM...ill check it out soon.
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Re: Pbot GPP
« Reply #15 on: April 07, 2011, 07:40:04 am »
Updated link in the OP. Should work with latest data paks.
"The reports of my death are greatly exaggerated" ~Mark Twain

GeneralScott

  • Posts: 291
  • Turrets: +3/-8
Re: Pbot GPP
« Reply #16 on: April 07, 2011, 01:00:41 pm »
Where does the path go? Like, which base folder? I'll just put it in both...

UPDATE: Never mind, I should have tried it first. Homepath base.

This is great. The fact they actually go into the ATCs hall and attack you is a HUGE plus. Love it!

There's only a little problem, and that's that you're still "coaxing" them to attack you. It seems like their main objective is to go to whereever they're trying to go, and you are just an obsticle they're trying to get past. When they see you, they'll attack, but a good dodge will bring you out of their range and they'll keep on their path, just like you were never there. For more of a "training mode" they should follow the path UNTIL they see you, and then lock on to you and never let go.
« Last Edit: April 07, 2011, 02:14:58 pm by GeneralScott »

GeneralScott

  • Posts: 291
  • Turrets: +3/-8
Re: Pbot GPP
« Reply #17 on: April 07, 2011, 02:16:28 pm »
I think that arises from these originally being 1.1 bots, and there was no way to get out of range. Now, we have dodge. Increase the "sensor" range of the aliens to compensate.

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Re: Pbot GPP
« Reply #18 on: April 07, 2011, 08:30:53 pm »
Yeah, and that's the main reason why I feel the other bots are better than Pbot. The other bots attack you more fluidly.
"The reports of my death are greatly exaggerated" ~Mark Twain

swamp-cecil

  • Posts: 774
  • Turrets: +80/-163
    • Tremulous
Re: Pbot GPP
« Reply #19 on: April 07, 2011, 09:35:09 pm »
For that problem, heres a solution:
Each bot has a sepearate Int, String or Array dpending on which works. Once a bot sees an enemy, his Int/String/Array will change to that targets GUID/IP, or if its another bot, the bots personal number, and attack the target until the bot or the target dies, which then makes the int go back to 0, or another number indicating they have no target. Like this:
Sorry for my fail coding and use of TAB:
Of course a LOT more code is needed, but here are some basics. I also included a part to prevent a bot from TKing if putteamed and found a target.
Code: [Select]
Int/Array/String bot1 = 0
{
 If (botnumber1 SeeEnemyTarget)
  {
  if EnemyTarget = bot
  {
  bot1 = EnemyBotNumber;
    }
  if EnemyTarget = player
    {
Bot1 = EnemyPlayerGUID;
}
}
if (bot1 != 0) //The whole following process was mainly to reduce Teamkilling when putteamed
{
SearchGuid
{
If (SearchGuid = False) /*If it doesn’t find the GUID/*
{
SearchBotNumber
{
If (SearchBotNumber = True) /* does find the bot with this number*/
{
If Bot1 = Teammate/*Putteamed?*/
{
Bot1 = 0;
}
If BotNumber = Enemy
{
EngageBotNumber;
}
}
If (SearchBotNumber = False) /* doesn’t find the bot with this number*/
{
Bot1 = 0
}
If (SearchGuid = True) /*Found a matching GUID*/
{
If Bot1 = Teammate
{
Bot1 = 0;
}
 If Bot1 = Teammate
{
EngageGUID
}
}
If (Botnumber1 = died)
{
Bot1 = 0;
}
If (Bot1Target = died)
{
Bot1 = 0;
}

}
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

GeneralScott

  • Posts: 291
  • Turrets: +3/-8
Re: Pbot GPP
« Reply #20 on: April 07, 2011, 09:39:38 pm »
Riiight.... Can you make the other bot work with the paths? Probably not...

GeneralScott

  • Posts: 291
  • Turrets: +3/-8
Re: Pbot GPP
« Reply #21 on: April 07, 2011, 09:48:59 pm »
It seems to me that it would be fairly easy to make it follow the path ONLY until it sights somebody, when it will fight until either it or the player dies, before resuming the path.

swamp-cecil

  • Posts: 774
  • Turrets: +80/-163
    • Tremulous
Re: Pbot GPP
« Reply #22 on: April 07, 2011, 10:51:58 pm »
It seems to me that it would be fairly easy to make it follow the path ONLY until it sights somebody, when it will fight until either it or the player dies, before resuming the path.
Thats what my code does.
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Re: Pbot GPP
« Reply #23 on: April 08, 2011, 12:54:57 am »
The current code follows someone until you get out of range. I'll try to improve them now since some degree of interest has been shown. By the way, there is a command to show the paths (dnodes or something).
"The reports of my death are greatly exaggerated" ~Mark Twain

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Re: Pbot GPP
« Reply #24 on: April 11, 2011, 06:44:01 am »
I tried editing these again and no dice. Other than roaming around the map (the other bots can do the same, just more clumsily) I can't see any reason to use this. I probably won't work on improving these and focus on the other ones.
"The reports of my death are greatly exaggerated" ~Mark Twain

zoomer

  • Posts: 24
  • Turrets: +0/-1
Re: Pbot GPP
« Reply #25 on: June 06, 2011, 05:00:54 pm »
when i try join human it say

"There is no overmind. an overmind must be built to control structure you tried to place"

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Re: Pbot GPP
« Reply #26 on: June 06, 2011, 09:57:59 pm »
Sorry, I need to update it.
"The reports of my death are greatly exaggerated" ~Mark Twain

zoomer

  • Posts: 24
  • Turrets: +0/-1
Re: Pbot GPP
« Reply #27 on: June 07, 2011, 07:51:47 pm »
Fairly weak at programming if you could help with a few questions that be great

how do you add gbot.c functions to compiled game.qvm

example "G_DeleteBots( void )" to the server console

via g_svcmd.c, g_local.h?
« Last Edit: June 07, 2011, 08:00:51 pm by zoomer »

Celestial_Rage

  • Posts: 636
  • Turrets: +120/-8
Re: Pbot GPP
« Reply #28 on: June 07, 2011, 08:29:58 pm »
Actually, all you need to do is (assuming you're using Linux):

Code: [Select]
svn co svn://svn.icculus.org/tremulous/branches/gpp
cd gpp
<extract contents of the zip into the directory>
mv g_bot.c src/game
patch -p0 < <name of patch file>
make

I'll get around to doing it myself in a few days though, if you can wait.
"The reports of my death are greatly exaggerated" ~Mark Twain

zoomer

  • Posts: 24
  • Turrets: +0/-1
Re: Pbot GPP
« Reply #29 on: June 07, 2011, 09:06:06 pm »
using winxp

>patch -p0 g_bot.c
>patch **** Only garbage found in the patch input.

Thanks alot for help dont mind waiting for update just wanted to play about with the code