Error
Posted: Sun Jun 22, 2003 10:27 am
I wanted to make a flak88 fire, but i get these errors:
CL_EndRegistration: 0.01 seconds
CL_InitCGame: 3.77 seconds
Going from CS_PRIMED to CS_ACTIVE for {xdc}[Cg.]Martijn_NL
^~^~^ Add the following line to the *_precache.scr map script:
cache models/player/american_army.tik
Called FadeSound with: 0.000000
{xdc}[Cg.]Martijn_NL has entered the battle
MUSIC: changing from [ none | none ] to [ normal | normal ]
^~^~^ Add the following line to the *_precache.scr map script:
cache models/player/american_army_fps.tik
LOCALIZATION ERROR: 'Tijd resterend: 0:00' does not have a localization entry
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak setaimtarget $flak_axis_target^
^~^~^ Script Error: array index 2 out of range
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak ^
^~^~^ Script Error: Failed execution of command 'setaimtarget' for class 'FixedTurret' Targetname 'flak'
$flak waittill ontarget (maps/dm/mp_test_tow.scr, 56)
$flak ^
^~^~^ Script Error: invalid waittill ontarget for 'FixedTurret'
^~^~^ Add the following line to the *_precache.scr map script:
cache models/projectiles/berlin_bombs.tik
^~^~^ Add the following line to the *_precache.scr map script:
cache models/fx/explosionberlinbomb.tik
LOCALIZATION ERROR: 'NPCS: Allies 0(0) Axis 0(0)' does not have a localization entry
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak ^
^~^~^ Script Error: Failed execution of command 'setaimtarget' for class 'FixedTurret' Targetname 'flak'
$flak waittill ontarget (maps/dm/mp_test_tow.scr, 56)
$flak ^
^~^~^ Script Error: invalid waittill ontarget for 'FixedTurret'
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom[local.index].origin (maps/dm/mp_test_tow.scr, 82)
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom^
^~^~^ Script Error: array index 5 out of range
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom[local.index].origin (maps/dm/mp_test_tow.scr, 82)
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom[local.index]^
^~^~^ Script Error: Cannot cast 'NIL' to listener
^~^~^ Game (Event: 'origin', Object: 'Projectile') : Couldn't convert string to vector - malformed string 'NIL'
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak setaimtarget $flak_axis_target^
^~^~^ Script Error: array index 5 out of range
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak ^
^~^~^ Script Error: Failed execution of command 'setaimtarget' for class 'FixedTurret' Targetname 'flak'
$flak waittill ontarget (maps/dm/mp_test_tow.scr, 56)
$flak ^
This is my script file:
main:
exec global/exploder.scr
thread control_flak
end
//----------------------------------------------------------
//Control the Flak88
//----------------------------------------------------------
control_flak:
iprintln "The Axis control the Flak 88!"
//Fire!
thread flak_attack_loop
end
//-----------------------------------------------
// Flak cannon fire
//-----------------------------------------------
flak_attack_loop:
while ( 1 )
{
local.index = randomint 6
wait local.index
if( local.index <= 0 )
{
local.index++
}
$flak setaimtarget $flak_axis_target[local.index]
$flak waittill ontarget
$flak anim fire
wait 1
waitthread Do_flak_explosion
}
end
//-----------------------------------------------
// Make flak go boom
//-----------------------------------------------
Do_flak_explosion:
local.index = randomint 9
if ( local.index==0 )
local.index++
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom[local.index].origin
local.ent explode
end
This is how it works i make the flak fire on several script orgin (with a targetname) The flak aim on it and fires. On the place i want the explosion i add several script orgins and there the exploded. The explosions worked, but the flak won't aim and fire. All the script orgins will choose random.
Can someone help me?
CL_EndRegistration: 0.01 seconds
CL_InitCGame: 3.77 seconds
Going from CS_PRIMED to CS_ACTIVE for {xdc}[Cg.]Martijn_NL
^~^~^ Add the following line to the *_precache.scr map script:
cache models/player/american_army.tik
Called FadeSound with: 0.000000
{xdc}[Cg.]Martijn_NL has entered the battle
MUSIC: changing from [ none | none ] to [ normal | normal ]
^~^~^ Add the following line to the *_precache.scr map script:
cache models/player/american_army_fps.tik
LOCALIZATION ERROR: 'Tijd resterend: 0:00' does not have a localization entry
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak setaimtarget $flak_axis_target^
^~^~^ Script Error: array index 2 out of range
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak ^
^~^~^ Script Error: Failed execution of command 'setaimtarget' for class 'FixedTurret' Targetname 'flak'
$flak waittill ontarget (maps/dm/mp_test_tow.scr, 56)
$flak ^
^~^~^ Script Error: invalid waittill ontarget for 'FixedTurret'
^~^~^ Add the following line to the *_precache.scr map script:
cache models/projectiles/berlin_bombs.tik
^~^~^ Add the following line to the *_precache.scr map script:
cache models/fx/explosionberlinbomb.tik
LOCALIZATION ERROR: 'NPCS: Allies 0(0) Axis 0(0)' does not have a localization entry
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak ^
^~^~^ Script Error: Failed execution of command 'setaimtarget' for class 'FixedTurret' Targetname 'flak'
$flak waittill ontarget (maps/dm/mp_test_tow.scr, 56)
$flak ^
^~^~^ Script Error: invalid waittill ontarget for 'FixedTurret'
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom[local.index].origin (maps/dm/mp_test_tow.scr, 82)
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom^
^~^~^ Script Error: array index 5 out of range
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom[local.index].origin (maps/dm/mp_test_tow.scr, 82)
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom[local.index]^
^~^~^ Script Error: Cannot cast 'NIL' to listener
^~^~^ Game (Event: 'origin', Object: 'Projectile') : Couldn't convert string to vector - malformed string 'NIL'
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak setaimtarget $flak_axis_target^
^~^~^ Script Error: array index 5 out of range
$flak setaimtarget $flak_axis_target[local.index] (maps/dm/mp_test_tow.scr, 55)
$flak ^
^~^~^ Script Error: Failed execution of command 'setaimtarget' for class 'FixedTurret' Targetname 'flak'
$flak waittill ontarget (maps/dm/mp_test_tow.scr, 56)
$flak ^
This is my script file:
main:
exec global/exploder.scr
thread control_flak
end
//----------------------------------------------------------
//Control the Flak88
//----------------------------------------------------------
control_flak:
iprintln "The Axis control the Flak 88!"
//Fire!
thread flak_attack_loop
end
//-----------------------------------------------
// Flak cannon fire
//-----------------------------------------------
flak_attack_loop:
while ( 1 )
{
local.index = randomint 6
wait local.index
if( local.index <= 0 )
{
local.index++
}
$flak setaimtarget $flak_axis_target[local.index]
$flak waittill ontarget
$flak anim fire
wait 1
waitthread Do_flak_explosion
}
end
//-----------------------------------------------
// Make flak go boom
//-----------------------------------------------
Do_flak_explosion:
local.index = randomint 9
if ( local.index==0 )
local.index++
local.ent = spawn models/projectiles/Berlin_Bombs.tik origin $flak_axis_boom[local.index].origin
local.ent explode
end
This is how it works i make the flak fire on several script orgin (with a targetname) The flak aim on it and fires. On the place i want the explosion i add several script orgins and there the exploded. The explosions worked, but the flak won't aim and fire. All the script orgins will choose random.
Can someone help me?