Post news Report RSS Call of Duty Frontlines Forever: BOTs

Overview about the work with Bots in the last years to make Frontlines finally have Bots until Christmas.

Posted by on

The #1 request in the last 5 years is to add Bots to Frontlines, and seams we will FINALLY have not only Bots, but the BEST Bots to COD4 to date, will be almost so good like the ones I did to Black Frontlines (Black Ops).

Well, but why it's soo difficult to add Bots to Frontlines when several mods added PEZBots into them ages ago? Even other Frontlines versions have Bots like W@W Frontlines, Star Wars Frontlines and Black Frontlines, so why not to COD4?



First something you need to know is that ALL of these other mods with PEZBots around have SEVERAL limitations, like very few maps compatible, few mods have more others less, but all of them have even few of the original maps unplayable.

The most compatible mod is the last original version of PEZBot, but even this version which is the only one which support all original maps have few annoying limitations like only be able to play 2-4 maps in a row and specially the amount of waypoints loaded to be able to play with Bots. Without a waypoint to a map, this map is unplayable.

Ok, your rotation is short and you don't play many maps so you will never notice that, that's why the other versions of Frontlines have Bots, they have limited maps and gameplay, like any of the mods that you used to play with PEZBots until now.

The main problem is that Frontlines is HUGE, soooo big and vast that if you sum ALL mods available to COD4 into one, they will still be even 10% of Frontlines is.

So the magic question is how to add Bots to Frontlines without limit the vast options of the mod? Or at least limit as minimum as possible without really hurt the gameplay?

But now you are wondering what the hell Frontlines have that make this so difficult?

Here few of them:

. War Server, without be able to change many maps without crash like the other mods, then is not possible to play a War with Bots since after 4 maps the server is gone.

. In Frontlines we have 50 gametypes, and summing all the variations like Airborne Mode, Help-Mode, Weapons Modes, etc... and with everything Random, this easily pass than 480.000 combinations. Of course I would not need to code to every of them but to around 200.000, which still a lot.... To get worst the gametypes are a lot more complex and request a lot more intelligence to play which will require alot more code to many of them. PEZBots are coded relative to gametypes, and is not viable to work like that with these numbers. When only very few mods around have more than 10 gametypes you can have a better idea of the size difference.



. Frontlines have several Officers and VIPs in their gametypes with different and special behavior, so Bots must be coded to each one of them, to let them think and decided what to do, what not to do and when, not only the movement.

. Frontlines is based in huge numbers of variations with more than 200 maps in rotations. Depending of the size of your mod, is not possible to load even 50 maps waypoints, in Frontlines this number is even shorter with not more of 20 maps loaded.

. Xmodels limit of 1000 is a pain in the ass in COD4 moding, this is the main cause that many maps doesn't work with several mods which have lots of new Xmodels like Weapons for exemple, and that's whyFrontlines doesn't have lots of new weapons to be able to play in almost every map around and not limited to just a few. All the Bots animations are inside Weapons Xmodels that need to be loaded into your mod to have the right animations, so with them several maps will simply stop to work.

. Code Limits are something that I don't believe any mod ever get closer to them, so it's unkown to most of the modders, but in Frontlines it's a real issue since the R3L04D days because the huge amount of code to create this very huge mod. For exemple the limit of 30 gametypes, which is in fact 29, because if we put 30 the last one all the dvars and strings will not work anymore. So to cross all those code limits Frontlines was almost re-written with a very big structure change, to make available room to code like reach 50 gametypes.

. Size Limits it's another weird thing, seams it's allocated just 4mb of memory to put a mod in the game, which of course is enough to all the small mods around, but not to Frontlines. Inside this allocated memory probably have something pre-allocated space to some core to make the mod live, so we have in fact less than 4mb available. So each line of code written in Frontlines in the last 5 years, a line of code with at least the same size must be out, or the game will crash.

. Aside all these, still have the other limits like Materials (images), Dvars, Localized Strings, etc, etc, etc...



Soooooo, now you have a idea why it's so difficult add anything to Frontlines since R3L04D, and specially bots.

Well, after all that exposed how the hell I'm still bringing new stuff to Frontlines and now bots?

Let me explain you in parts...

. Code & Size Limits : There's no solution, I need to open space to every new thing added, doing that without remove any feature from Frontlines it's a hell, but at least in the original code have few functions and code parts that can be deleted or re-written in better ways, even old Frontlines code was re-written, so with that I'm getting new free space to work.

. WayPoints : Since there's no way to avoid the Code/Size limits, I was forced to create a new way to store the WayPoints, Load the WayPoints and of course, convert your original WayPoints to the Frontlines version or we will need to create new waypoints to every map around, which will be alone a huge project. Using a recursive system there's a minimum size of code to control the WPs, and they will not be of course stored inside the mod code, so the Code/Size Limits will not be affected.

. AI x Gametypes x Maps x VIPs : The original PEZBot AI is not viable because is based on gametypes, so I'm writing a new one based more in the intelligence of the bot as a real player, like I did to Black Frontlines, so they will think with the options available to them at a respective moment, and not to a gametype, with that the size of code will be a lot smaller, and will work to any gametype available, so not need to code over 200.000 of gametypes options.



. War Server : I discover a good way to REALLY remove bots before change the map, so they will not crash after few maps loaded. It's already working but sometimes I'm getting crashes, I'm working of it to try to solve it, and I'm also working to find a even better way to do that, which I know I'm very close. In the last alternative, I can use the shutdown system per map that I used in W@W Frontlines, so save the War after each map, and load them back in the next one with the server already online, so still possible to play a War with bots, so why not a full campaign?

. Xmodel Limits : This is another thing that is not possible to avoid because it's a engine limit sadly, so there's 2 options, remove the bot anims then will look like floating around until they start the combat, exactly like I did at Star Wars Frontlines, or add the anims anyway and several maps will not work anymore.



Since both ways will please part of Frontlines fans, I'll simply release both of them. The first to be released in the Multiplayer version like I always did since 2008, and this version will have bots to play with your friends oline when have short numbers of players, will not be the best looking bots because the lack of animations but they will work better than any bot released before to COD4. Then I'll release a Frontlines COOP version, which will be the SAME MP version but with the bots animations and because that, several maps will not work anymore. So the COOP version will be more used to play alone or with just few friends. And of course, the COOP Missions promised back in 2011 when R3L04D was released, which were released only at Black Frontlines will be available for the first time to COD4, and will be around 50 Missions available to be able to play in any map compatible for the respective version. YES! COOP Missions will be available to BOTH versions.

Now you ask when all this will be released? I really hope that before Christmas. :wink:

Hope everyone like to play Frontlines Forever like I do! :mrgreen:

Post comment Comments
LocustQ
LocustQ - - 488 comments

Nice man, thank for work !

Reply Good karma Bad karma+6 votes
Hajas Author
Hajas - - 1,008 comments

Welcome! :D

Reply Good karma+2 votes
TheRenegadist
TheRenegadist - - 2,087 comments

Great article, these bots are going to kick ***!

Reply Good karma Bad karma+6 votes
Hajas Author
Hajas - - 1,008 comments

We hope that too! :D

Reply Good karma+2 votes
nicobelic92
nicobelic92 - - 49 comments

nice work, goodluck to you

Reply Good karma Bad karma+5 votes
Hajas Author
Hajas - - 1,008 comments

Thank you! :D

Reply Good karma+2 votes
NetBuddyBoo
NetBuddyBoo - - 296 comments

This is pure awesomness!!

Reply Good karma Bad karma+4 votes
Hajas Author
Hajas - - 1,008 comments

Thanks! Cheers! :P

Reply Good karma+2 votes
pointeryx7
pointeryx7 - - 12 comments

I hope this mod becomes super successful as the game itself. Go bro!

Reply Good karma Bad karma+3 votes
Hajas Author
Hajas - - 1,008 comments

Thanks! Let's do it! :D

Reply Good karma+2 votes
zilvinaspredkus
zilvinaspredkus - - 241 comments

Does this mod work with CoD 4 remastered edition?

Reply Good karma Bad karma+3 votes
Hajas Author
Hajas - - 1,008 comments

Don't think so... the remaster doesn't have even dedicated servers or modtools... seams fun for Singleplayer only.

Reply Good karma+2 votes
alencore
alencore - - 445 comments

SO where's the download link for this very good update of pezbots to frontline cod4?

Reply Good karma Bad karma+3 votes
Hajas Author
Hajas - - 1,008 comments

not released yet, but you can play the beta version connecting at war.hajas.org anytime you want. was updated today!

Reply Good karma+2 votes
Dimitrius1994
Dimitrius1994 - - 19 comments

Interest!!!

Reply Good karma Bad karma+3 votes
Hajas Author
Hajas - - 1,008 comments

Enjoy

Reply Good karma+1 vote
digaopk
digaopk - - 4 comments

como chamo os bots ? qual o comando? queria usar localmente

Reply Good karma Bad karma+2 votes
Hajas Author
Hajas - - 1,008 comments

Essa versão é para o COD4 e vem pronta para jogar com os Bots. Só seguir as instruções que acompanham o mod. Ele vem já configurado para os bots entrarem automaticamente. Se está com o COD4X sugiro jogar em nosso server com seus amigos, ou pelo menos terão que conectar para atualizar o Frontlines pra versão COD4X. Os bots locais não são iguais aos bots do nosso servidor atual em COD4X.

Reply Good karma+1 vote
digaopk
digaopk - - 4 comments

como posso usar esses bots mais inteligentes ai?

pra uma jogatina em lan ensina nos

Reply Good karma Bad karma+1 vote
digaopk
digaopk - - 4 comments

gostaria das duas opções, se puder...

1º se me fala seu server

2º nem todos meus colegas tem internet, ai gente reune e faz uma lanzinha, como jogo em lan com amigos, ai podia ser com seu mod que tem bots inteligentes, tipo se puder ensinar como instala seu mod e tipo eu queria baixar mapa qualquer e chamar os bots num mapa, por ex baixei mapa x, ai executo /map x, ai tenho chamar o bot, no pez bot digito pez_bot, no seu mod como chamo os bots pro mapa?

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: