.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   The RealBot 'Source' (http://forums.bots-united.com/forumdisplay.php?f=52)
-   -   What ist ToDo ? (http://forums.bots-united.com/showthread.php?t=2482)

frashman 19-08-2004 21:50

What ist ToDo ?
 
after some weeks i am finally get cvs running and have looked at the source ...

where are for beginning easy things to do? and what ist to do?

thanks

dstruct2k 22-08-2004 00:55

Re: What ist ToDo ?
 
If you feel like implimenting PMB's navmesh code, please do! :D

Josh_Borke 22-08-2004 04:20

Re: What ist ToDo ?
 
i have a version of RB implementing PMB's navmesh code.
unfortunately it isn't fool proof and can be quite buggy.

there are problems with not being able to properly detect locations, and also what to do when the bot doesn't know how to get to it's goal. IE, the random walking is a little not working.

some stuff that could be added is to create a set of connections between walkfaces that can let the bot know how to get around the map on first load, which is what i'm sure everyone wants.

also figure out why it's not detecting all walkfaces, what is funny about them etc.

if you want the source code, let me know, alternatively i might be able to get it into CVS as a sub-folder.

@frashman

if you want to try working on the combat code some, that would be good. specifically i do not like the way the bot handles shields, it's really quite dumb if you ask me, though it would be complicated to fix

dstruct2k 22-08-2004 05:28

Re: What ist ToDo ?
 
Josh, Please pass me either a DLL or the source. :D

Frash, it was a joke. You should start looking for "stupid code" in the combat code areas.

Josh_Borke 22-08-2004 17:45

Re: What ist ToDo ?
 
1 Attachment(s)
sure thing, here's the source

no guarantees it will compile or work :) but it works for me

any questions, just let me know.
it needs a folder called realbot\data\cstrike\mesh
and i think that's it...

dstruct2k 22-08-2004 19:01

Re: What ist ToDo ?
 
Thanks man! :D

frashman 22-08-2004 19:56

Re: What ist ToDo ?
 
yes want to look at stupid code first ... there are so much coherences. first i try to find out what is where set and where are something vars are updated....

have i any possibility to uploadt the code if i corrected anything?

Josh_Borke 23-08-2004 00:42

Re: What ist ToDo ?
 
just post the changes you think we should make to the forum, perhaps dstrukt can make a sticky post for bugs/things that need to be changed

dstruct2k 23-08-2004 06:55

Re: What ist ToDo ?
 
I'm a bit busy ATM, you make the post Josh and I'll sticky it. ;)

Josh_Borke 28-08-2004 20:47

Re: What ist ToDo ?
 
the weapon detection for the buy code is a little messed up.
for some reason it thinks a shield is a TMP. Some more debugging needs to be done to determine exactly why.

HTH

PS. that's why they are still buying shields with the other patch i suggested.

dstruct2k 30-08-2004 07:26

Re: What ist ToDo ?
 
Disable TMP's. Problem solved (although no TMP's) for now.

frashman 31-08-2004 01:27

I have fixed it!
 
Today i have fixed the bot_buycode.cpp. There were many bugs ... but i am not at the end at all. tomorrow i will rewrite the buycode ...

maybe someone has good ideas, how a good buy strategy is? if not i program my own ideas or try to find out the bugs in the old code.

another question? why is the cs_weapon_shield set to 99?? all other weapons are set to 1-31. can anybody say me why the cs_weapon_shield istn set to 32??


and how can i it upload to the cvs?

thanks

Josh_Borke 31-08-2004 11:18

Re: What ist ToDo ?
 
please post your code to the forums, so others can test it, and then we can take care of uploading it to the CVS

frashman 31-08-2004 19:56

Re: What ist ToDo ?
 
yes, I am agreed. but first of all, i must find out, why they don't buy shields anymore and if the priority system of the buytable.ini works correct, it doesn't seem so.

by the way where is stefan and evy, don't here much about them last time...

evy 01-09-2004 14:21

Re: What ist ToDo ?
 
I'm still there. As soon as I've been able to incorporate/test your code, I'll add it to CVS.

Did you re-use the already modified buy code ? The one from Josh ?

-eric

[BBB]sluggo 01-09-2004 14:27

Re: What ist ToDo ?
 
I have tried it, and it works much better than before.
But they still throw away a colt occasionally.... But they buy AWP's or something instead so it might be the personality file kicking in. They might like the AWP better.
Good work Frashman!

frashman 01-09-2004 19:26

Re: What ist ToDo ?
 
thanks. oh evy is alive :)
yes josh's code is still active. I only modified and fixed some bugs. the real problem was, the right weapon was selected, but a totally other was buyed.... maybe this must be fixed for cs 1.5... (can't test it)

also i added support for buying a smoke grenade, but I don't look for, if the bot can really use the smoke grenade.
in addition i have found out, that the cs_defusekit and cs_weapon_shield had the same number ... i had corrected that
this shield is now used as a primary weapon (oh i have a new idea, if the bot buys a shield, he should look for a cool secondary weapon ... must code this... but at the moment the bot don't use weapon anyway, if he has a shield)
in the iniparser.cpp i had modified the generation of the reaction time, based of skill. in my opinion, 0.0xxx seconds were to fast for human like reaction
and several other little corrections (commented in sourcecode)

by the way, i don't test the reaction to modify the personal file, but so far i can see, josh's favorite weaponcode should be work.
and some words about the buytable.ini. I don't really modified priorities, i'm only typed in the really correct prices for the weapons+ammo. the gound for that they buy now the awp much often, is elucidated in the first lines...

Josh_Borke 01-09-2004 22:10

Re: What ist ToDo ?
 
mostly the code corrects for ties in priorities.
the buytable.ini can be used as a limiting factor for purchasing weapons.
i still question the buycode and the status of the bot's primary weapon during buying, but that is something that will take more time and debugging than i have right now.
hopefully the two weapons with the same id fixed some bugs also.
i have not tried the new code

frashman 01-09-2004 22:56

refreshed code
 
1 Attachment(s)
have refreshed my code. now the bot try to buy a good secondary weapon, if he takes the shield.

and josh, if I have time, i look for the problem, too. don't know that it was one. how should we manage this? don't buy a new weapon if we have one?

dstruct2k 01-09-2004 23:32

Re: refreshed code
 
I hope you didnt change the prices to be EXACT... Because a 600 dollar deagle still costs about 120 dollars to fill with ammo, hence why the deagle was probably "priced" at 750.

[BBB]sluggo 02-09-2004 04:39

Re: What ist ToDo ?
 
Hmmm... I'm totally new to this but...
frashman you added support for the smokegrenade and in bot.h you added:

"bool buy_smokegrenade; //31.08.04 Frashman added support for Smoke Grenade"

but there is no
"bool buy_flashbang;"

shouldn't there be a line for that as well or is the flashbang included in
"bool buy_grenade;" ?

sorry if the question is stupid but I don't get it.

frashman 02-09-2004 10:42

Re: What ist ToDo ?
 
first dstrukt2k, i can calm down you. they are the exact prices+200 dollars for ammo. (the prices for cs 1.6)
and now sluggo, sure there is one.
a "bool buy_grenade" and a "int buy_flashbang" (because you can buy 2 flashbangs a round.

and josh, what is the actual state of affairs of your navmesh code? very interessting and complex thing ....

bevor finished, we could add evy's automated waypoint extraction. maybe evy can do this in quiet minute :-)

Josh_Borke 02-09-2004 12:00

Re: What ist ToDo ?
 
the navmesh code "works".
it stilll has it's bugs, such as not all places are mapped as walkable and the bots still need someone to show them around. but it has worked, very sporatically.
i'll just say it's in alpha stage :)

as far as the buytable goes, the file is designed so that anyone can change the prices to whatever they want.

i think what needs to be done for the table, is to have a true price and an adjusted price, so that ammo is taken into account AND the bots still think they have enough money to buy ammo

something to do :)
put in code to pick up weapons


All times are GMT +2. The time now is 18:12.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.