g_botsFile

8 replies [Last post]
[FRAGENSTEIN]
Fragenstein's picture
Offline
Joined: Apr 2011
Posts:

Can't get custom bots.txt working. I have seta g_botsFile "scripts/bots.txt" in server.cfg. I have bots.txt in /scripts:

{
name        Xaero
model        xaero
aifile    bots/xaero_c.c
arenaLord    1
}
 
{
name        Orbb
model        orbb
aifile    bots/orbb_c.c
}
 
{
name        Slash
model        slash
aifile    bots/slash_c.c
}
 
{
name        Sorlag
model        sorlag
aifile    bots/sorlag_c.c
}
 
{
name        Daemia
model        major/daemia
aifile    bots/daemia_c.c
}
 
{
name        Uriel
model        uriel
aifile    bots/uriel_c.c
arenaLord    1
}
 
{
name        Wrack
model        ranger/wrack
aifile    bots/wrack_c.c
}
 
{
name        Keel
model        keel
aifile    bots/keel_c.c
}
 
{
name        Bitterman
model        bitterman
aifile    bots/bitterman_c.c
}
 
{
name        Anarki
funname    ^1A^2n^3a^4r^5k^6i
model        anarki
aifile    bots/anarki_c.c
arenaLord    1
}
 
{
name        Angel
model        lucy/angel
aifile    bots/angel_c.c
}
 
{
name        Klesk
model        klesk
aifile    bots/klesk_c.c
arenaLord    1
}
 
{
name        Phobos
model        doom/phobos
aifile    bots/phobos_c.c
}
 
{
name        Mynx
model        mynx
aifile    bots/mynx_c.c
}
 
{
name        Visor
model        visor
aifile    bots/visor_c.c
}
 
{
name        Lucy
model        lucy
aifile    bots/lucy_c.c
}
 
{
name        Biker
model        biker
aifile    bots/biker_c.c
}
 
{
name        Stripe
model        grunt/stripe
aifile    bots/stripe_c.c
}
 
{
name        Hossman
model        biker/hossman
aifile    bots/hossman_c.c
}
argus+, Lakerbot and Mr. Gauntlet keep joining. Any ideas? argus+ is the bot I really don't want on the server (way too strong). I tried editing the z-xp-2_0a.pk3 file (argus_i.c):
/* Argus Heir - Quake III Arena Bot
 *
 * @date    10. April 2003
 * @author  chris <root@xube.de>
 **/
 
#include "inv.h"
 
#define FS_HEALTH               3
#define FS_ARMOR                7
 
#define W_BFG10K                230
#define W_RAILGUN               285
#define W_ROCKETLAUNCHER        220
#define W_LIGHTNING             285
#define W_PLASMAGUN             80
#define W_GRENADELAUNCHER       40
#define W_MACHINEGUN            70
#define W_SHOTGUN               150
 
#define GWW_BFG10K              150
#define GWW_RAILGUN             225
#define GWW_ROCKETLAUNCHER      140
#define GWW_LIGHTNING           180
#define GWW_PLASMAGUN           80
#define GWW_GRENADELAUNCHER     30
#define GWW_MACHINEGUN          50
#define GWW_SHOTGUN             115
 
#define W_QUAD                  160
#define W_INVISIBILITY          80
#define W_REGEN                 40
#define W_HASTE                 40
#define W_ENVIRO                40
#define W_FLIGHT                40
#define W_TELEPORTER            40
#define W_MEDKIT                40
 
#define FLAG_WEIGHT             50
 
#include "fw_items.c"
and toning down weapon power, but when I save the file (made sure it wasn't set to read-only) and re-zipped it (renamed to z-xp-2_0a.pk3) , the server won't start.

GG
GG's picture
Offline
Joined: Apr 2009
Posts:
Re: g_botsFile
[FRAGENSTEIN] wrote:

.... and re-zipped it (renamed to z-xp-2_0a.pk3) , the server won't start.

Check the chosen archiving method you set. It should be the same as original PK3's use. Also look at "save full path", "no encryption", not an "7zip-format" but simply "ZIP" if you use 7zip archiver etc etc. Otherwise engine will unable to inflate resources right to memory.

✽ ✾ ✿ ❀ ❁ ❃ ❋
¡Adiós!
\'o♥o'/

.:Green:.-=Girl=-

[FRAGENSTEIN]
Fragenstein's picture
Offline
Joined: Apr 2011
Posts:
Re: g_botsFile
GG wrote:

[FRAGENSTEIN] wrote:
.... and re-zipped it (renamed to z-xp-2_0a.pk3) , the server won't start.

Check the chosen archiving method you set. It should be the same as original PK3's use. Also look at "save full path", "no encryption", not an "7zip-format" but simply "ZIP" if you use 7zip archiver etc etc. Otherwise engine will unable to inflate resources right to memory.

How do I know how the original pk3 was archived? BTW - your sig is hilarious Happy

GG
GG's picture
Offline
Joined: Apr 2009
Posts:
Re: g_botsFile
[FRAGENSTEIN] wrote:

How do I know how the original pk3 was archived? BTW - your sig is hilarious Happy

If you do not want to dig into pkware headers (two bytes at offset 8 shows used method and also somewhere in eocd secondary header at the end of the archive) then simply backup aside your pk3, keep it opened in 7-zip for example and just drag back only files modified by you in appropriate directories. In that case archiver will keep deflation method as well as compression level etc the same as they were prior. Your job will be only to confirm such replacements.

✽ ✾ ✿ ❀ ❁ ❃ ❋
¡Adiós!
\'o♥o'/

.:Green:.-=Girl=-

[FRAGENSTEIN]
Fragenstein's picture
Offline
Joined: Apr 2011
Posts:
Re: g_botsFile

Quote:
then simply backup aside your pk3, keep it opened in 7-zip for example and just drag back only files modified by you in appropriate directories. In that case archiver will keep deflation method as well as compression level etc the same as they were prior. Your job will be only to confirm such replacements.

After dragging the edited files (argus_i.c, argus_w.c) into 7-zip, I noticed the files had no attributes, and were in fat format instead of unix. I fired up linux and edited the files, changed the timestamps to the same as the original files and repacked. Everything looked perfect. I placed the edited z-xp-2_0a.pk3 in the excessive plus directory. Server would not start Sad

GG
GG's picture
Offline
Joined: Apr 2009
Posts:
Re: g_botsFile
[FRAGENSTEIN] wrote:

Quote:
then simply backup aside your pk3, keep it opened in 7-zip for example and just drag back only files modified by you in appropriate directories. In that case archiver will keep deflation method as well as compression level etc the same as they were prior. Your job will be only to confirm such replacements.

After dragging the edited files (argus_i.c, argus_w.c) into 7-zip, I noticed the files had no attributes, and were in fat format instead of unix. I fired up linux and edited the files, changed the timestamps to the same as the original files and repacked. Everything looked perfect. I placed the edited z-xp-2_0a.pk3 in the excessive plus directory. Server would not start Sad

that was only my suggestion where start to investigate, obviously we had spotted the problem itself still persists in another field. Put here the console log of a server start process. To get it just use the following commands

/developer 1
/condump <filename>.<ext>

✽ ✾ ✿ ❀ ❁ ❃ ❋
¡Adiós!
\'o♥o'/

.:Green:.-=Girl=-

[FRAGENSTEIN]
Fragenstein's picture
Offline
Joined: Apr 2011
Posts:
Re: g_botsFile

Quote:

that was only my suggestion where start to investigate, obviously we had spotted the problem itself still persists in another field. Put here the console log of a server start process. To get it just use the following commands
/developer 1
/condump <filename>.<ext>

Could not get /condump to execute, I copied the output of the console:

ioq3 1.36_GIT_1902b6e-2015-09-26 win_mingw64-x86_64 Sep 26 2015
Have SSE support
----- FS_Startup -----
We are looking in the current search path:
C:\Users\xxxxxxx\AppData\Roaming\Quake3\excessiveplus
C:\Quake III Arena\excessiveplus
C:\Quake III Arena\excessiveplus\z-xp-2_3.pk3 (20 files)
C:\Quake III Arena\excessiveplus\z-xp-2_2b.pk3 (64 files)
C:\Quake III Arena\excessiveplus\z-xp-2_1.pk3 (85 files)
C:\Quake III Arena\excessiveplus\z-xp-2_0a.pk3 (900 files)
C:\Users\xxxxxxx\AppData\Roaming\Quake3\baseq3
C:\Quake III Arena\baseq3
C:\Quake III Arena\baseq3\xcsv_bq3hi-res.pk3 (1204 files)
C:\Quake III Arena\baseq3\storm3tourney9.pk3 (132 files)
C:\Quake III Arena\baseq3\senndm2.pk3 (17 files)
C:\Quake III Arena\baseq3\scummymap.pk3 (8 files)
C:\Quake III Arena\baseq3\s20dm4.pk3 (12 files)
C:\Quake III Arena\baseq3\pro-t4_v2.pk3 (30 files)
C:\Quake III Arena\baseq3\pro-bgmp6.pk3 (80 files)
C:\Quake III Arena\baseq3\pom_bots.pk3 (87 files)
C:\Quake III Arena\baseq3\phantq3dm3_rev.pk3 (124 files)
C:\Quake III Arena\baseq3\pak8.pk3 (9 files)
C:\Quake III Arena\baseq3\pak7.pk3 (4 files)
C:\Quake III Arena\baseq3\pak6.pk3 (64 files)
C:\Quake III Arena\baseq3\pak5.pk3 (7 files)
C:\Quake III Arena\baseq3\pak4.pk3 (272 files)
C:\Quake III Arena\baseq3\pak3.pk3 (4 files)
C:\Quake III Arena\baseq3\pak2.pk3 (148 files)
C:\Quake III Arena\baseq3\pak1.pk3 (26 files)
C:\Quake III Arena\baseq3\PAK0.PK3 (3539 files)
C:\Quake III Arena\baseq3\mkvdv.pk3 (90 files)
C:\Quake III Arena\baseq3\mksteel.pk3 (120 files)
C:\Quake III Arena\baseq3\lun3dm1.pk3 (30 files)
C:\Quake III Arena\baseq3\jaxdm10_jaxtourney3.pk3 (66 files)
C:\Quake III Arena\baseq3\ixe_tm.pk3 (23 files)
C:\Quake III Arena\baseq3\fr3dm1.pk3 (35 files)
C:\Quake III Arena\baseq3\bloodrust.pk3 (19 files)
C:\Quake III Arena\baseq3\bgmappak1.pk3 (267 files)
C:\Quake III Arena\baseq3\Bal3dm3.pk3 (67 files)
 
----------------------
7553 files in pk3 files
execing default.cfg
execing q3config_server.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
--- Common Initialization Complete ---
Winsock Initialized
Hostname: xxxxxxx-xx
IP6: fe80::a471:7224:d2b8:f9be%13
IP: xxx.xxx.x.x
Opening IP socket: 0.0.0.0:27960
execing server.cfg
------ Server Initialization ------
Server: bloodrust
Hunk_Clear: reset the hunk ok
----- FS_Startup -----
We are looking in the current search path:
C:\Users\xxxxxxx\AppData\Roaming\Quake3\excessiveplus
C:\Quake III Arena\excessiveplus
C:\Quake III Arena\excessiveplus\z-xp-2_3.pk3 (20 files)
C:\Quake III Arena\excessiveplus\z-xp-2_2b.pk3 (64 files)
C:\Quake III Arena\excessiveplus\z-xp-2_1.pk3 (85 files)
C:\Quake III Arena\excessiveplus\z-xp-2_0a.pk3 (900 files)
C:\Users\xxxxxxx\AppData\Roaming\Quake3\baseq3
C:\Quake III Arena\baseq3
C:\Quake III Arena\baseq3\xcsv_bq3hi-res.pk3 (1204 files)
C:\Quake III Arena\baseq3\storm3tourney9.pk3 (132 files)
C:\Quake III Arena\baseq3\senndm2.pk3 (17 files)
C:\Quake III Arena\baseq3\scummymap.pk3 (8 files)
C:\Quake III Arena\baseq3\s20dm4.pk3 (12 files)
C:\Quake III Arena\baseq3\pro-t4_v2.pk3 (30 files)
C:\Quake III Arena\baseq3\pro-bgmp6.pk3 (80 files)
C:\Quake III Arena\baseq3\pom_bots.pk3 (87 files)
C:\Quake III Arena\baseq3\phantq3dm3_rev.pk3 (124 files)
C:\Quake III Arena\baseq3\pak8.pk3 (9 files)
C:\Quake III Arena\baseq3\pak7.pk3 (4 files)
C:\Quake III Arena\baseq3\pak6.pk3 (64 files)
C:\Quake III Arena\baseq3\pak5.pk3 (7 files)
C:\Quake III Arena\baseq3\pak4.pk3 (272 files)
C:\Quake III Arena\baseq3\pak3.pk3 (4 files)
C:\Quake III Arena\baseq3\pak2.pk3 (148 files)
C:\Quake III Arena\baseq3\pak1.pk3 (26 files)
C:\Quake III Arena\baseq3\PAK0.PK3 (3539 files)
C:\Quake III Arena\baseq3\mkvdv.pk3 (90 files)
C:\Quake III Arena\baseq3\mksteel.pk3 (120 files)
C:\Quake III Arena\baseq3\lun3dm1.pk3 (30 files)
C:\Quake III Arena\baseq3\jaxdm10_jaxtourney3.pk3 (66 files)
C:\Quake III Arena\baseq3\ixe_tm.pk3 (23 files)
C:\Quake III Arena\baseq3\fr3dm1.pk3 (35 files)
C:\Quake III Arena\baseq3\bloodrust.pk3 (19 files)
C:\Quake III Arena\baseq3\bgmappak1.pk3 (267 files)
C:\Quake III Arena\baseq3\Bal3dm3.pk3 (67 files)
 
----------------------
7553 files in pk3 files
Loading vm file vm/qagame.qvm...
File "vm/qagame.qvm" found in "C:\Quake III Arena\excessiveplus\z-xp-2_3.pk3"
VM file qagame compiled to 3849417 bytes of code
qagame loaded in 10840160 bytes on the hunk
********************
ERROR: Excessive Plus seems broken, please download from <a href="//www.excessiveplus.net">www.excessiveplus.net</a>
 
********************
----- Server Shutdown (Server crashed: Excessive Plus seems broken, please downl
oad from <a href="//www.excessiveplus.net">www.excessiveplus.net</a>
) -----
Resolving master3.idsoftware.com:27950 (IPv4)
master3.idsoftware.com:27950 resolved to 192.246.40.56:27950
Sending heartbeat to master3.idsoftware.com:27950
Resolving master.maverickservers.com:27950 (IPv4)
master.maverickservers.com:27950 resolved to 85.17.208.104:27950
Sending heartbeat to master.maverickservers.com:27950
Resolving master.qtracker.com:27900 (IPv4)
master.qtracker.com:27900 resolved to 63.144.111.10:27900
Sending heartbeat to master.qtracker.com:27900
Resolving master0.excessiveplus.net:27950 (IPv4)
master0.excessiveplus.net:27950 resolved to 148.251.48.139:27950
Sending heartbeat to master0.excessiveplus.net:27950
Resolving master0.excessiveplus.net (IPv4)
master0.excessiveplus.net resolved to 148.251.48.139:27950
Sending heartbeat to master0.excessiveplus.net
Sending heartbeat to master3.idsoftware.com:27950
Sending heartbeat to master.maverickservers.com:27950
Sending heartbeat to master.qtracker.com:27900
Sending heartbeat to master0.excessiveplus.net:27950
Sending heartbeat to master0.excessiveplus.net
==== ShutdownGame ====
forcefully unloading qagame vm
---------------------------

GG
GG's picture
Offline
Joined: Apr 2009
Posts:
Re: g_botsFile
[FRAGENSTEIN] wrote:


Could not get /condump to execute, I copied the output of the console:

...
7553 files in pk3 files
Loading vm file vm/qagame.qvm...
File "vm/qagame.qvm" found in "C:\Quake III Arena\excessiveplus\z-xp-2_3.pk3"
VM file qagame compiled to 3849417 bytes of code
qagame loaded in 10840160 bytes on the hunk
********************
ERROR: Excessive Plus seems broken, please download from <a href="//www.excessiveplus.net">www.excessiveplus.net</a>
********************
----- Server Shutdown (Server crashed: Excessive Plus seems broken, please download from <a href="//www.excessiveplus.net">www.excessiveplus.net</a>)
...

So )))
Do you see the error by yourself?
Please check your files integrity with something like this
Usually but not always the hero is pointed at previous log string before crash

✽ ✾ ✿ ❀ ❁ ❃ ❋
¡Adiós!
\'o♥o'/

.:Green:.-=Girl=-

[FRAGENSTEIN]
Fragenstein's picture
Offline
Joined: Apr 2011
Posts:
Re: g_botsFile

Quote:

So )))
Do you see the error by yourself?
Please check your files integrity with something like this
Usually but not always the hero is pointed at previous log string before crash

Thanks for your help, but I'm done with it.