OpenArena Message Boards

OpenArena => Technical Snafus => Topic started by: Perle on May 11, 2009, 01:12:52 PM



Title: Problem with Bots.
Post by: Perle on May 11, 2009, 01:12:52 PM
Since i totally changed Q3Rally into a OpenArena mod the bots don´t work properly. They drive only around in circles and only use the Gauntlet. This is not what i expected.
Anyone got an idea whats wrong there?


Title: Re: Problem with Bots.
Post by: Graion Dilach on May 11, 2009, 02:45:48 PM
QRally was originally written for Quake 3, right? And you just putted it's pk3s into game.

I think (I don't know it, I have never tried it) the mod uses its own references for weapons or using the original Quake3 ones. Which means you have to rewrite all bot's _i.c and _w.c files under pak6-misc.pk3/botfiles. They are just plain texts (Notepad) and check what you find in the QRally pk3s. Use them as base, if you find one, then rezip the new ones to a different pk3.

This reminds me of the custom bot problem (custom bots use the Machinegun only), where I had to rewrite these two files to work under OA.


Title: Re: Problem with Bots.
Post by: Perle on May 11, 2009, 03:09:29 PM
Okay. Thanks first. Brings me one step ahead. But don´t they have to compiled with the engine or is changing them and adding them as pk3 enough?


Title: Re: Problem with Bots.
Post by: Graion Dilach on May 11, 2009, 03:33:13 PM
PK3s are renamed zips. That's why I said rezipping. ;)


Title: Re: Problem with Bots.
Post by: andrewj on May 11, 2009, 10:54:48 PM
The .c files in botfiles/ don't need compiling (they are not actually valid C code).


Title: Re: Problem with Bots.
Post by: Perle on May 12, 2009, 07:08:46 AM
Okay Guys. Thanks for the help. Will change all to fit for my mod today and keep you informed about success or not. :-)


Title: Re: Problem with Bots.
Post by: Graion Dilach on May 12, 2009, 10:37:34 AM
I checked Q3Rally's botfiles (which were missed, actually...)

Firstly you have to rewrite all the _i.c and _w.c files at pak6-misc's botfiles directory (below are Angelyss's rewritten one for example) then grab out bots.txt from pak6-misc.pk3's and q3r_v132.pk3 scripts folder to check them. So rewrite OA's bots.txt by setting the original models to heads and giving them various new models/cars...


Title: Re: Problem with Bots.
Post by: Perle on May 12, 2009, 03:54:03 PM
Works perfect. Almost. Now i have the ERROR:Weapon number out of range thing. Shit. Is there any solution now?


Title: Re: Problem with Bots.
Post by: Graion Dilach on May 14, 2009, 03:47:24 AM
I think I forgot to mention.... delete Team Arena weapon lines. ;)


Title: Re: Problem with Bots.
Post by: Perle on May 14, 2009, 10:30:05 AM
Oh, right. And i have to add my flamer.


Title: Re: Problem with Bots.
Post by: Perle on May 17, 2009, 01:47:54 PM
Hmm. Not really solved. It is still there. But will could be that there are more missionpack lines. Can you watch at angelyss in my svn?


Title: Re: Problem with Bots.
Post by: Graion Dilach on May 18, 2009, 02:50:48 PM
OK. Where can I find that file?

Oh, a sidenote. Even Q3 bots doesn't use the backside weapons. They can only use the original weapons.


Title: Re: Problem with Bots.
Post by: Perle on May 18, 2009, 03:15:31 PM
Yes. They never used the backside ones. Think that this will be engine and botlib stuff. The svn is here.

http://q3rally.svn.sourceforge.net/viewvc/q3rally/

Thanks for your help. Changed only angelyss till now.