Pages: [1]
  Print  
Author Topic: Custom Bots question.  (Read 4275 times)
prime
Nub


Cakes 0
Posts: 9


« on: May 13, 2008, 05:02:05 PM »

Hi,

I have some custom bots that I made ages ago with botstudio, however when I use them in game I get tons of "Error: weapon number out of range" errors both with OA, and with Quake3. What I have noticed is that BotStudio seems to have built the botname_w.c file differently from those in OA e.g. :-

tk-1138_w.c

Code:
#include "inv.h"

#define W_GAUNTLET 10
#define W_SHOTGUN 50
#define W_MACHINEGUN 10
#define W_GRENADELAUNCHER 50
#define W_ROCKETLAUNCHER 50
#define W_RAILGUN 50
#define W_BFG10K 50
#define W_LIGHTNING 50
#define W_PLASMAGUN 50
#define W_GRAPPLE 50

//
#include "fw_weap.c"

The equivelent file from Ayumi is :-

Code:
/*weapon defines    		weights 10-500
    try to keep it balanced*/

#include "inv.h"
//gauntlet
#define GTW 25
//shotgun
#define SGW 135
//machinegun
#define MGW 90
//grenade launcher
#define GLW 110
//rocket launcher
#define RLW 190
//railgun
#define RGW 115
//bfg10k
#define BFW 200
//lightninggun
#define LGW 150
//plasmagun
#define PGW 195
//grapplinghook
#define GRW 10
//prox-launcher
#define PXW 210
//nailgun
#define NGW 180
//chaingun
#define CGW 155

#include "fuzw.c"

I have tried using Ayumi_w.c in place of one of those from my bots and it does stop the errors, however I'm not sure how I should convert the constants between the two types of file, is there any documentation on this ?

Better still is there a bot editing utility that can convert/rebuild the bots in the correct format ? (Doesn't have to be windows either as I have access to Linux and Macintosh machines as well).

Cheers.

Phill.
Logged
Pages: [1]
  Print  
 
Jump to: