.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > YaPB
YaPB Yet another POD-Bot flavor by Whistler and Jeefo Counter-Strike

Reply
 
Thread Tools
Re: First beta release of YaPB 2
Old
  (#11)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 452
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: First beta release of YaPB 2 - 19-05-2006

Make dll less biggger is not a point to use dynamic memory allocation. Dynamic memory allocation allows to save memory at runtime (ie. RAM). Currently yapb2 uses old method for storing language translations, ie. there are predefined arrays of chars that uses constant array size (512), whatever the size of the string stored in this array.

Currently yapb2 uses something like that:
PHP Code:
char szTextStr[512];
char szCpy[] = "this is string";

strcpy (szTextStrszCpy); 
So the source string has length = 14, and allocated size = 512, so we waste 498 bytes of memory.

And the original yapb uses something like that:
PHP Code:
char *szTextStr;
char szCpy[] = "this is string";

szTextStr strdup (szCpy); 
In this way we waste nothing
  
Reply With Quote
Re: First beta release of YaPB 2
Old
  (#12)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: First beta release of YaPB 2 - 19-05-2006

Check EPB. With std:string you waste nothing too. Dinamic string...
  
Reply With Quote
Re: First beta release of YaPB 2
Old
  (#13)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 452
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: First beta release of YaPB 2 - 19-05-2006

Ofcourse, but i'm don't like to use Standard Template Library, because of several reason, thats why i've write "handmaded" versions of std::vector and std::string.
  
Reply With Quote
Re: First beta release of YaPB 2
Old
  (#14)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: First beta release of YaPB 2 - 19-05-2006

Can you tell me the reasons that you don't like to use STL ? I'm interested.
  
Reply With Quote
Re: First beta release of YaPB 2
Old
  (#15)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 452
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: First beta release of YaPB 2 - 19-05-2006

Well i can't explain everything in english, but main reasons is that it's make output binary more huge (yapb2 with debug build = 1.02Mb, yapb2 with debug build + STL = 1.37Mb, on VC++Pro, staticly linked against STL because "new" versions of VC uses non-standard dll binaries (msvcp80.dll), sometimes my friends has some errors using soft on different linux distros, with segmentation faults on libstdc++.so, and i don't like to code with STL, code style, tons of template parametrs, and all those allocators and stuff.

It's just my opinion...
  
Reply With Quote
Re: First beta release of YaPB 2
Old
  (#16)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: First beta release of YaPB 2 - 20-05-2006

I have VC++ 2005 and VC++ 2003. The 2003 one is much better for such stuff than 2005. In 2005 MS try to import their own standart witch I don't like. I think that VC++ 2003 fits the C++ standarts perfect and you will not have problems running you app on differend Windows OS's because it use the standart dll binaries. Btw STL have most of the power in C++. You can do some things very easy with already predefined functions.
  
Reply With Quote
Re: First beta release of YaPB 2
Old
  (#17)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 452
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: First beta release of YaPB 2 - 20-05-2006

Ok lets stop this. Its a complete offtop. The ms standard can be switched off by #pragma warning (disable : 4996) And i don't own VS 2003.
  
Reply With Quote
Re: First beta release of YaPB 2
Old
  (#18)
Ancient
PodBot MM's Laziest Waypointer
 
Ancient's Avatar
 
Status: Offline
Posts: 1,010
Join Date: Jan 2005
Location: Nebraska, United States of America
Default Re: First beta release of YaPB 2 - 20-05-2006

Everything seems fine, but the yapb_quota thing is kind of confusing at first, I added like 17 addbot's at the end of the cfg file..

The bot's skill I set them at 60 - 70 and it seems like 2 or 3 shots and your dead, these bot's are alot harder than podbot mm.
The aim is deadly accurate.
I like it
Everything works well, it's just the bot's take forever for all of them to join the server.
I use listenserver.

Seems like old pb 2.6, like nothing has been changed just few commands and verion sayings and thats it
It was frustrating to edit the liblist.gam because the attributes were changed to read-only.
I see that there are 2 dll's, 1 PODBot.dll and other yapb.dll, which one should be directed to by metamod plugins.ini?

Last edited by Ancient; 21-05-2006 at 00:14..
  
Reply With Quote
Re: First beta release of YaPB 2
Old
  (#19)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: First beta release of YaPB 2 - 21-05-2006

podbot.dll is the old YaPB while the yapb.dll is this version.

and actually there _are_ a lot of changes
  
Reply With Quote
Re: First beta release of YaPB 2
Old
  (#20)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: First beta release of YaPB 2 - 21-05-2006

Where I can see the changes?
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com