Printable Version of Topic

Click here to view this topic in its original format

RCBot Forums _ TF2 _ Rcbot2 for metamod plus custom loadouts

Posted by: Cheeseh Mar 7 2015, 01:58 AM

well I thought it would reduce crashes but I just ended up getting the same crashes in metamod, although I have changed a lot of code so I thought I'd upload this one. I found some crashes with bots using some custom weapons and just removed them for now.

rcbot_customloadouts 1

must be ON to let bots use their own custom weapons

https://sourceforge.net/p/rcbot2/code/HEAD/tree/utils/RCBot2_meta/Debug/rcbot2meta.dll?format=raw

dll goes into tf/addons/

ps you'll need metamod for it to work https://www.sourcemm.net/

Also I'd disable the old rcbot in the mean time!

Posted by: genmac Mar 7 2015, 04:32 AM

Ok it's working but my little tester just finished playing tf2 so will let him play it again may be later this afternoon to check it's stability. tnx for the dll test bro!


Posted by: Cheeseh Mar 7 2015, 11:00 PM

also forgot to mention that bots can use buff items in this version

Posted by: genmac Mar 9 2015, 09:49 AM

Seems stable so far after 2 hours of using it today.

Posted by: madmax2 Mar 10 2015, 12:28 AM

So, I was curious if you (Cheeseh) are planning to transition RCbot2 to a Metamod:s only plugin, for better compatabilty/stability perhaps? If so, should we be testing this out on dod:s & HL2dm? I haven't tried any of the latest test dll's, since they seemed intended for TF2 only...?

Posted by: genmac Mar 10 2015, 05:13 AM

Yeah bro this is for tf2 only coz he was getting to much crashes on his tf2 client and custom stuff which is really weird coz mine is very stable on 0.96.

Posted by: Cheeseh Mar 10 2015, 09:16 AM

QUOTE(genmac @ Mar 10 2015, 06:13 AM) *

Yeah bro this is for tf2 only coz he was getting to much crashes on his tf2 client and custom stuff which is really weird coz mine is very stable on 0.96.


hopefully shouldn't be any problems trying this out on dod:s. let me know if you try

Posted by: SPYderman Mar 17 2015, 01:15 AM

Looks like my engineer bots are only using widowmaker and don't have any wrenches.

Pyros seem to never use their flamethrower when they have a flare gun of some sort.

EDIT: I found one that pulled out a wrench but only when it ran out of ammo... not a single building yet from engineers.

Posted by: Cheeseh Mar 17 2015, 05:58 AM

QUOTE(SPYderman @ Mar 17 2015, 02:15 AM) *

Looks like my engineer bots are only using widowmaker and don't have any wrenches.

Pyros seem to never use their flamethrower when they have a flare gun of some sort.

EDIT: I found one that pulled out a wrench but only when it ran out of ammo... not a single building yet from engineers.


This is weird are you using this version?
http://sourceforge.net/p/rcbot2/code/465/tree/utils/RCBot2_meta/Debug/rcbot2meta.dll?format=raw

...Because Engineers should not be adding any custom loadouts over their melee weapon (wrench). Did you install any other weapon randomizer plugins?


Posted by: SPYderman Mar 17 2015, 11:07 PM

QUOTE(Cheeseh @ Mar 17 2015, 05:58 AM) *

This is weird are you using this version?
http://sourceforge.net/p/rcbot2/code/465/tree/utils/RCBot2_meta/Debug/rcbot2meta.dll?format=raw

...Because Engineers should not be adding any custom loadouts over their melee weapon (wrench). Did you install any other weapon randomizer plugins?

I've installed that one and I'm getting the same results with the exception of 1 pyro/engineer at the beginning using their flamethrower/getting a Panic Attack. No, I don't even have SourceMod installed.

Posted by: Cheeseh Mar 18 2015, 02:35 PM

QUOTE(SPYderman @ Mar 18 2015, 12:07 AM) *

I've installed that one and I'm getting the same results with the exception of 1 pyro/engineer at the beginning using their flamethrower/getting a Panic Attack. No, I don't even have SourceMod installed.


ok I'll focus on fixing this

Posted by: Cheeseh Mar 19 2015, 04:18 AM

QUOTE(Cheeseh @ Mar 18 2015, 03:35 PM) *

ok I'll focus on fixing this


try this version

https://sourceforge.net/p/rcbot2/code/HEAD/tree/utils/RCBot2_meta/Debug/rcbot2meta.dll?format=raw

its been updated

Posted by: SPYderman Mar 20 2015, 03:22 AM

QUOTE(Cheeseh @ Mar 19 2015, 04:18 AM) *

try this version

https://sourceforge.net/p/rcbot2/code/HEAD/tree/utils/RCBot2_meta/Debug/rcbot2meta.dll?format=raw

its been updated

Feeling good so far. Do these custom loadouts cause FPS drops? Because I'm getting them with custom loadouts enabled.

Posted by: Cheeseh Mar 20 2015, 02:41 PM

QUOTE(SPYderman @ Mar 20 2015, 04:22 AM) *

Feeling good so far. Do these custom loadouts cause FPS drops? Because I'm getting them with custom loadouts enabled.


they could well do -- tf2 is bloated with extra stuff --- there's no other code added except for the fact it's metamod enabled


BTW updated https://sourceforge.net/p/rcbot2/code/HEAD/tree/utils/RCBot2_meta/Debug/rcbot2meta.dll?format=raw

again

here are the changes


QUOTE

custom load out support for sudden death
fixed lunchbox drink and buff item
added projectile prediction for cow mangler
fixed bots not changing weapons and not firing at enemies


Posted by: Ilhom Apr 11 2015, 09:33 AM

Values in hookinfo.ini should be updated. And hookinfo doesn't update runplayer values, they are the same, that are fixed in config.

Posted by: Cheeseh Apr 11 2015, 12:26 PM

QUOTE(Ilhom @ Apr 11 2015, 10:33 AM) *

Values in hookinfo.ini should be updated. And hookinfo doesn't update runplayer values, they are the same, that are fixed in config.


if they aren't getting custom weapons if that's what you mean -- actually the code needs updating -- I've updated it but haven't uploaded yet. Do some values not load form hookinfo ini ?

Posted by: Ilhom Apr 11 2015, 02:06 PM

Yes, runplayer_cmd_tf2 doesn't. If in config it's set to 418 and in hookinfo it's set to 417, then the value would be 418. It should be 417, shouldn't it?

Posted by: Cheeseh Apr 11 2015, 02:20 PM

QUOTE(Ilhom @ Apr 11 2015, 03:06 PM) *

Yes, runplayer_cmd_tf2 doesn't. If in config it's set to 418 and in hookinfo it's set to 417, then the value would be 418. It should be 417, shouldn't it?


The bot loads the config.ini file second and the hookinfo.ini first. So config.ini will override the value. I'd remove it from config.ini . I'll update the installer/launcher at some point

Posted by: SPYderman Jun 9 2015, 07:43 AM

I can confirm that with the metamod version of custom loadout rcbots is heavily dropping my FPS (24 max bots with both with metamod and normal). Also, my scouts are only using Force-of-Natures and engineers are only using widowmaker.

Posted by: genmac Jun 10 2015, 12:19 AM

Yeah it does on me too reason why I went back to the non-metamod version and CHeeseh seems super busy lately hope he drops by soon.

Posted by: Cheeseh Jun 11 2015, 06:13 AM

QUOTE(genmac @ Jun 10 2015, 01:19 AM) *

Yeah it does on me too reason why I went back to the non-metamod version and CHeeseh seems super busy lately hope he drops by soon.


the reason why is because TF2 suddenly decided to change the classnames of the other weapons. The pomson 6000 is now tf_weapon_drg_pomson. Rescue Ranger is now tf_weapon_shotgun_building_rescue . The Frontier Justice is now tf_weapon_sentry_revenge. instead of just being shotgun like it used to be. And the bot only has a limited amount of weapons it can use. I'll try updating at some point

Posted by: genmac Jun 16 2015, 03:42 AM

wow valve really loves to screw things up ...tnx for the infos CHeeseh glad you're back!

Posted by: Cheeseh Jun 16 2015, 10:14 AM

QUOTE(genmac @ Jun 16 2015, 04:42 AM) *

wow valve really loves to screw things up ...tnx for the infos CHeeseh glad you're back!


I'm terribly busy I'm afraid. I'll get about two hours a week to do anything on my own - but recently as you know I've just been trying out GTA V tongue.gif Now I'm working on a visa to leave the country with my wife and baby which won't be easy so I'll still be busy until all that's sorted.

Posted by: genmac Jun 18 2015, 02:45 AM

Oh GTA 5 rocks but I'm too lazy to play it hehe...gta 1 I did played ions ago and I think I don't really want to do that again...those cod games really made me a lazy gamer lol!

Good luck on the visas I'm sure you can sort those out soon...best wishes to your family and stuff! ;-)

Posted by: Cheeseh Jun 19 2015, 06:40 AM

try the latest dll from the same source

https://sourceforge.net/p/rcbot2/code/HEAD/tree/utils/RCBot2_meta/Debug/rcbot2meta.dll?format=raw

I also added "rcbot2path" key in the metamod VDF for rcbot2. Create a vdf for rcbot 2 in the metamod folder like this

"Metamod Plugin"
{
"alias" "RCBot2"
"file" "addons/rcbot2meta"
"rcbot2path" "C:\Users\Paul\rcbot2\"
}

if you want to change install directory

Posted by: Cheeseh Jun 20 2015, 03:37 PM

I'm adding a weapon set INI file next so if anything changes it can be edited by the end user

e.g.
weapons.ini

CODE

"RCBotWeapons"
{
    "TF2"
    {
        "tf_weapon_pipebomblauncher"
        {
            "slot"    "1"
            "id"    "20"
            "minPrimDist"    "0.0"
            "maxPrimDist"    "1000.0"
            "m_iAmmoIndex"    "2"
            "m_iPreference"    "1"
        }
        "tf_weapon_flamethrower"
        {
            "slot"    "0"
            "id"    "21"
            "minPrimDist"    "0.0"
            "maxPrimDist"    "400.0"
            "m_iAmmoIndex"    "1"
            "m_iPreference"    "3"
            "flags"
            {
                "primary_attack"    "1"
                "melee"    "1"
                "hold_attack"    "1"
                "special"    "1"
                "can_deflect_rockets"    "1"
            }
        }
...

Posted by: genmac Jun 21 2015, 02:28 AM

nice!

btw since it's steam sale I've been promoting rcbots at dods steam forum.

Posted by: Cheeseh Jun 22 2015, 02:37 AM

QUOTE(genmac @ Jun 21 2015, 03:28 AM) *

nice!

btw since it's steam sale I've been promoting rcbots at dods steam forum.


I've added the new DLL (same link)

extract weapons.zip into rcbot2/config/

you can change the weapons.

and you can now do this in bot_mods.ini

mod = TF2
steamdir = tf2
gamedir = tf
bot = TF2
weaponlist = TF2

you can change the weaponlist


Attached File(s)
Attached File  weapons.zip ( 1.98k ) Number of downloads: 208

Posted by: Kamaji Jun 25 2015, 03:58 AM

Seems to be working great, but so far, I'm only seeing 3 or 4 different hats on the bots. But otherwise, keep up the good work!

Posted by: BlueCheese Aug 30 2015, 01:53 AM

Metamod says that the plugin is loaded, and I did the command, but the bot still use their stock weapons. How to fix?

Posted by: Cheeseh Aug 30 2015, 05:57 AM

QUOTE(BlueCheese @ Aug 30 2015, 02:53 AM) *

Metamod says that the plugin is loaded, and I did the command, but the bot still use their stock weapons. How to fix?


set

rcbot_customloadouts 1

Posted by: BlueCheese Aug 30 2015, 06:21 AM

QUOTE(Cheeseh @ Aug 29 2015, 10:57 PM) *

set

rcbot_customloadouts 1


I already did the command, then I restart the server. But still, I have stock weapons.

Also, I cannot use rcbott_customloadouts unless I have started a game at least once. Is this supposed to happen?

Am I supposed to do this in the console? And which "addons" folder do I install to? I have 2 addons folders : one in common and the other in my username folder.

Posted by: JRob Oct 6 2015, 08:50 PM

What is the ID supposed to be?

Just 1 more than the previous number used?

UPDATE

So I tested a new weapon at ID 48 and sure enough it crashed the same way as when I added weapons the old fashioned way.

Using the same IDs also results in crashes.

Posted by: BlueCheese Oct 8 2015, 12:34 AM

QUOTE(JRob @ Oct 6 2015, 01:50 PM) *

What is the ID supposed to be?

Just 1 more than the previous number used?

UPDATE

So I tested a new weapon at ID 48 and sure enough it crashed the same way as when I added weapons the old fashioned way.

Using the same IDs also results in crashes.


This is a beta page for a function which is included in the new RCBot 1.0; Ignore this thread.

Posted by: Cheeseh Oct 9 2015, 12:12 AM

QUOTE(BlueCheese @ Oct 8 2015, 01:34 AM) *

This is a beta page for a function which is included in the new RCBot 1.0; Ignore this thread.


you can use these as weapon ids

https://wiki.alliedmods.net/Team_Fortress_2_Item_Definition_Indexes

they must be unique so no weapon can share the same id

Posted by: DreadedGhoul575 Oct 20 2015, 08:20 PM

Imagine if they had custom taunts e.g. Kazotsky Kick? wink.gif I wish I had that taunt, but you need a credit card or bank card to get money on steam. sad.gif

Posted by: genmac Oct 21 2015, 12:21 AM

QUOTE(DreadedGhoul575 @ Oct 20 2015, 08:20 PM) *

Imagine if they had custom taunts e.g. Kazotsky Kick? wink.gif I wish I had that taunt, but you need a credit card or bank card to get money on steam. sad.gif

I love this taunt as well the music for it haha! Valve really has a nice sense of humor on this game
never goes old.

Posted by: DreadedGhoul575 Oct 21 2015, 01:53 PM

QUOTE(genmac @ Oct 21 2015, 01:21 AM) *

I love this taunt as well the music for it haha! Valve really has a nice sense of humor on this game
never goes old.

Ikr, the conga was popular, and they spiced it up with the kazotsky kick plus better music laugh.gif tongue.gif

Posted by: genmac Oct 26 2015, 03:57 AM

Hehe oh the conga LOL!

I'm having so much fun playing Payload Race didn't quite noticed this maps at first but now their definitely on my fav map rotation from now on and Rcbots really shines on this mode!