game + pc crash with bots

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
User avatar
Cheech
Corporal
Posts: 25
Joined: Mon Jul 21, 2003 5:41 pm
Location: Germany
Contact:

game + pc crash with bots

Post by Cheech »

hi all
i try to make a botmap of a usual objective map from me, but the game and the computer crashes with the botmap.
the console says (overflow):
file 'global/jv_bots/lib_bomb.scr'
^~^~^ Script Error: Bad hash code value: NIL

and winXP have an RAM problem after the game crashes.

i setup all things as you told in the tutorial at Freebrief. but my english is not so good, so i can?t understand all of chapter 8.1 and 8.2
the map have only one bomb (flak88), in front of a building. the bots have to run over the beach to the bomb. i setup the bomb (script_model) with this entries:
#campset = 1
$explosion_fx = fx/fx_flak88_explosion.tik
$explosion_sound = explode_aagun
$plantteam = allies
$targetname = bomb
$trigger_name = bomb_trigger
target = flak88_weapon

and place the bombnode in front of the trigger with this entries:
angle = 315
target = bomb
targetname = bombnode

nearly the bombnode i place a info_pathnode for the route with this entries:
#id = 1
$name = weg1
$route = weg1
$routelist = route_to_bomb
targetname = route

and behind this pathnode, i place the next info_pathnode with this entries:
#id = 2
$name = weg1
$routelist = route_to_bomb
targetname = route


i place only two pathnodes for the route, because the bots should run from the spawninggpoint to the bomb, and make his actions by the way.
nearly the flak, i place the info_pathnodes for the bombcamp with this entries:
#set = 1
targetname = bombcamp
target = >> to the s.o.

puh, i hope you understand me. here is a picture of the place

Image

Image

please, can you tell what is wrong.

thx
Cheech
visit our region in moh
www.steinhuder-meer.us
User avatar
Cheech
Corporal
Posts: 25
Joined: Mon Jul 21, 2003 5:41 pm
Location: Germany
Contact:

Post by Cheech »

sorry i forgot the script, here it is:
main:
setcvar "g_obj_alliedtext1" "- Destroy the Flak88"
setcvar "g_obj_alliedtext2" "cannon."
setcvar "g_obj_alliedtext3" ""

setcvar "g_obj_axistext1" "- Defend sun bathers"
setcvar "g_obj_axistext2" "island."
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "bot_badeinsel_steinhude_1985"

level waittill prespawn

exec global/DMprecache.scr
exec global/exploder.scr
level.script = "maps/obj/bot_badeinsel_steinhude_1985.scr"
exec global/ambient.scr bot_badeinsel_steinhude_1985
thread global/exploder.scr::main
exec global/door_locked.scr::lock

level waittill spawn

level.bomb_damage = 200
level.bomb_explosion_radius = 500
level.defusing_team = "axis"
level.planting_team = "allies"
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 10 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw

// BOT bomb_thinker
$bomb thread global/jv_obj_dm::bomb_thinker
level.alliesbots = 2
level.axisbots = 2
level.routelist[route_to_bomb] = weg1
waitthread global/jv_bots/jv_mp_ai.scr::enable

$radio1 loopsound m2l1_radio3

while !(level.roundstart)
waitframe

// USUAL bomb_thinker
//$bomb thread global/obj_dm.scr::bomb_thinker

thread allies_win_bomb $bomb
$bomb thread axis_win_timer
end

allies_win_bomb local.bomb1:
while (local.bomb1.exploded != 1)
wait 1
teamwin allies
end

axis_win_timer:
level waittill axiswin
end
visit our region in moh
www.steinhuder-meer.us
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Hmm I guess I'll need a log for this one :?

Please follow the following steps ;):
  • Start mohaa and bring down console (~ key)
  • Type 'developer 1' [enter] and 'logfile 2' [enter]
  • Start your map and wait for it to crash (if you run mohaa in a window (alt + enter) your pc won't crash)
  • Zip the file qconsole.log in your /main folder
  • Send the .zip to jv_map@mods-r-us.net
I hope I can help you!
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

btw, thats a nice looking map. and its also funny how you can see how people pronounce things. for example, im guessing cheech pronounces ram, "R-A-M" (spell it) :lol: I pronounce it "ram" as in battering ram... :roll:
User avatar
Cheech
Corporal
Posts: 25
Joined: Mon Jul 21, 2003 5:41 pm
Location: Germany
Contact:

Post by Cheech »

??
i don?t understand you.
RAM >> 512MB RAM
visit our region in moh
www.steinhuder-meer.us
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

how do you pronounce ram?
User avatar
Cheech
Corporal
Posts: 25
Joined: Mon Jul 21, 2003 5:41 pm
Location: Germany
Contact:

Post by Cheech »

"ram" how so ?
how do you pornounce AMD ?
hmm, what the thing with RAM for you ?

sorry but i don?t understand it.
visit our region in moh
www.steinhuder-meer.us
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think it's because you wrote an RAM instead of a RAM ;), but that may also be a result of your native language.

Anyway I found the problem :).

$bomb thread global/jv_obj_dm::bomb_thinker

should be

$bomb thread global/jv_obj_dm.scr::bomb_thinker
Image
User avatar
Cheech
Corporal
Posts: 25
Joined: Mon Jul 21, 2003 5:41 pm
Location: Germany
Contact:

Post by Cheech »

uups :oops: :oops:
sorry i haven?t seen it.
thats the thing of copy and paste from chapter 9.1

thanks for your help jv_map, i hope i have no other errors.

my english is not so good, so excuse me.
visit our region in moh
www.steinhuder-meer.us
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Oh damn it's wrong in the manual. Sorry about that :oops:
Image
Post Reply