lifter script bug ?


(dFx) #1

hello everybody.

i tryed to ad a lifter to my map.
method used :
2 path corners (called pos_up and pos_down"
1 script_mover (called ascenseur_1, 12 brushes)
2 buttons which trigger 2 target_script_trigger ( scriptname : ascenseur_1, target(1) appel_up,target(2) appel_down)

that’s the script i did :


// ========
// ASCENSOR
// ========

ascenseur_1
{
	Spawn
	{
		wait 800
	}
	
	trigger appel_down
	{
		gotomarker pos_down 200 wait
		wait 1500
		gotomarker pos_up 200 wait
	}
	
	trigger appel_up
	{
		gotomarker pos_up 200 wait
		wait 1500
		gotomarker pos_down 200 wait
	}
}

when i spawn in the map, cannot make it move !

when using g_scriptdebug 1, ET returns :


0 : (ascenseur_1) GScript command: wait 800
0 : (pos_up) GScript event: spawn
0 : (pos_down) GScript event: spawn
0 : (ascenseur_1) GScript event: spawn
0 : (ascenseur_1) GScript command: wait 800
Disable spawning!
ERROR No tracemap found for map
2 teams with 4 entities
-----------------------------------
Setting MOTD...
0 : (portes) GScript command: wait 200
0 : (documents) GScript command: wait 200
0 : (transmitter_obj) GScript command: wait 200
0 : (portes) GScript command: wait 200
0 : (allied_compost_built) GScript command: wait 400
0 : (axis_compost_built) GScript command: wait 400
0 : (axis_compost_built_model) GScript command: wait 400
0 : (allied_compost_built_model) GScript command: wait 400
0 : (mur2) GScript command: wait 200
0 : (ascenseur_1) GScript command: wait 800
0 : (ascenseur_1) GScript command: wait 800
0 : (ascenseur_1) GScript command: wait 800
300 : (portes) GScript command: constructible_class 3
300 : (portes) GScript command: constructible_class 3
300 : (mur2) GScript command: constructible_class 3
500 : (allied_compost_built) GScript command: trigger allied_compost_built setup
500 : (allied_compost_built) GScript event: trigger setup
500 : (allied_compost_built) GScript command: setchargetimefactor 1 soldier 1
500 : (allied_compost_built) GScript command: setchargetimefactor 1 lieutenant 1
500 : (allied_compost_built) GScript command: setchargetimefactor 1 medic 1
500 : (allied_compost_built) GScript command: setchargetimefactor 1 engineer 1
500 : (allied_compost_built) GScript command: setchargetimefactor 1 covertops 1
500 : (allied_compost_built) GScript command: sethqstatus 1 0
500 : (allied_compost_built) GScript command: constructible_class 2
500 : (axis_compost_built) GScript command: trigger axis_compost_built setup
500 : (axis_compost_built) GScript event: trigger setup
500 : (axis_compost_built) GScript command: setchargetimefactor 0 soldier 1
500 : (axis_compost_built) GScript command: setchargetimefactor 0 lieutenant 1
500 : (axis_compost_built) GScript command: setchargetimefactor 0 medic 1
500 : (axis_compost_built) GScript command: setchargetimefactor 0 engineer 1
500 : (axis_compost_built) GScript command: setchargetimefactor 0 covertops 1
500 : (axis_compost_built) GScript command: sethqstatus 0 0
500 : (axis_compost_built) GScript command: constructible_class 2
500 : (axis_compost_built_model) GScript command: setstate axis_compost_built_model invisible
500 : (allied_compost_built_model) GScript command: setstate allied_compost_built_model invisible
-----------------------------------
==== ShutdownGame ====
------ Server Initialization ------
Server: decrypted2
RE_Shutdown( 0 )
Hunk_Clear: reset the hunk ok
----- FS_Startup -----
Current search path:
F:\Wolfenstein - Enemy Territory\etmain\zerojumps-b1.pk3 (17 files)
[...]
F:\Wolfenstein - Enemy Territory/etmain

----------------------
35931 files in pk3 files
------- Game Initialization -------
gamename: etmain
gamedate: Mar 10 2005
Enable spawning!
700 : (flag_wobj) GScript event: spawn
700 : (game_manager) GScript event: spawn
700 : (game_manager) GScript command: wm_axis_respawntime 25
700 : (game_manager) GScript command: wm_allied_respawntime 20
700 : (game_manager) GScript command: wm_set_round_timelimit 15
700 : (game_manager) GScript command: wm_number_of_objectives 6
700 : (game_manager) GScript command: wm_objective_status 1 1 2
700 : (game_manager) GScript command: wm_objective_status 1 0 1
700 : (game_manager) GScript command: wm_objective_status 2 1 2
700 : (game_manager) GScript command: wm_objective_status 2 0 1
700 : (game_manager) GScript command: wm_objective_status 3 1 2
700 : (game_manager) GScript command: wm_objective_status 3 0 1
700 : (game_manager) GScript command: wm_objective_status 4 1 2
700 : (game_manager) GScript command: wm_objective_status 4 0 1
700 : (game_manager) GScript command: wm_objective_status 5 1 2
700 : (game_manager) GScript command: wm_objective_status 5 0 1
700 : (game_manager) GScript command: wm_objective_status 6 1 0
700 : (game_manager) GScript command: wm_objective_status 6 0 0
700 : (game_manager) GScript command: wm_set_main_objective 2 1
700 : (game_manager) GScript command: wm_set_main_objective 2 0
700 : (game_manager) GScript command: accum 1 set 0
700 : (game_manager) GScript command: accum 2 set 0
700 : (game_manager) GScript command: accum 5 set 0
700 : (game_manager) GScript command: wm_set_defending_team 0
700 : (game_manager) GScript command: wm_setwinner 0
700 : (game_manager) GScript command: wm_teamvoiceannounce 0 sideentr_axis_defend
700 : (game_manager) GScript command: wm_teamvoiceannounce 1 sideentr_allies_destroy
700 : (flag_script) GScript event: spawn
700 : (flag_script) GScript command: accum 5 set 0
700 : (portes) GScript event: spawn
700 : (portes) GScript command: wait 200
700 : (portes) GScript event: spawn
700 : (portes) GScript command: wait 200
700 : (documents) GScript event: spawn
700 : (documents) GScript command: wait 200
700 : (documents_CMM) GScript event: spawn
700 : (transmitter_obj) GScript event: spawn
700 : (transmitter_obj) GScript command: wait 200
700 : (portes) GScript event: spawn
700 : (portes) GScript command: wait 200
700 : (cm_amo) GScript event: spawn
700 : (neutral_compost_toi) GScript event: spawn
700 : (allied_compost_built) GScript event: spawn
700 : (allied_compost_built) GScript command: wait 400
700 : (axis_compost_built) GScript event: spawn
700 : (axis_compost_built) GScript command: wait 400
700 : (neutral_compost_closed_clip) GScript event: spawn
700 : (axis_compost_built_model) GScript event: spawn
700 : (axis_compost_built_model) GScript command: wait 400
700 : (allied_compost_built_model) GScript event: spawn
700 : (allied_compost_built_model) GScript command: wait 400
700 : (neutral_compost_closed_model) GScript event: spawn
700 : (mur2) GScript event: spawn
700 : (mur2) GScript command: wait 200
700 : (team_compost_open) GScript event: spawn
700 : (n/a) GScript event: spawn
700 : (n/a) GScript event: spawn
700 : (ascenseur_1) GScript event: spawn
700 : (ascenseur_1) GScript command: wait 800
700 : (ascenseur_1) GScript event: spawn
700 : (ascenseur_1) GScript command: wait 800
700 : (pos_up) GScript event: spawn
700 : (pos_down) GScript event: spawn
700 : (ascenseur_1) GScript event: spawn
700 : (ascenseur_1) GScript command: wait 800
Disable spawning!
ERROR No tracemap found for map
2 teams with 4 entities
-----------------------------------
Setting MOTD...
700 : (portes) GScript command: wait 200
700 : (documents) GScript command: wait 200
700 : (transmitter_obj) GScript command: wait 200
700 : (portes) GScript command: wait 200
700 : (allied_compost_built) GScript command: wait 400
700 : (axis_compost_built) GScript command: wait 400
700 : (axis_compost_built_model) GScript command: wait 400
700 : (allied_compost_built_model) GScript command: wait 400
700 : (mur2) GScript command: wait 200
700 : (ascenseur_1) GScript command: wait 800
700 : (ascenseur_1) GScript command: wait 800
700 : (ascenseur_1) GScript command: wait 800
1000 : (portes) GScript command: constructible_class 3
1000 : (portes) GScript command: constructible_class 3
1000 : (mur2) GScript command: constructible_class 3
1200 : (allied_compost_built) GScript command: trigger allied_compost_built setup
1200 : (allied_compost_built) GScript event: trigger setup
1200 : (allied_compost_built) GScript command: setchargetimefactor 1 soldier 1
1200 : (allied_compost_built) GScript command: setchargetimefactor 1 lieutenant 1
1200 : (allied_compost_built) GScript command: setchargetimefactor 1 medic 1
1200 : (allied_compost_built) GScript command: setchargetimefactor 1 engineer 1
1200 : (allied_compost_built) GScript command: setchargetimefactor 1 covertops 1
1200 : (allied_compost_built) GScript command: sethqstatus 1 0
1200 : (allied_compost_built) GScript command: constructible_class 2
1200 : (axis_compost_built) GScript command: trigger axis_compost_built setup
1200 : (axis_compost_built) GScript event: trigger setup
1200 : (axis_compost_built) GScript command: setchargetimefactor 0 soldier 1
1200 : (axis_compost_built) GScript command: setchargetimefactor 0 lieutenant 1
1200 : (axis_compost_built) GScript command: setchargetimefactor 0 medic 1
1200 : (axis_compost_built) GScript command: setchargetimefactor 0 engineer 1
1200 : (axis_compost_built) GScript command: setchargetimefactor 0 covertops 1
1200 : (axis_compost_built) GScript command: sethqstatus 0 0
1200 : (axis_compost_built) GScript command: constructible_class 2
1200 : (axis_compost_built_model) GScript command: setstate axis_compost_built_model invisible
1200 : (allied_compost_built_model) GScript command: setstate allied_compost_built_model invisible
-----------------------------------
Userinfo: \g_password
one\cl_guid\unknown\
snaps\20\rate\25000\cl_wwwDownload\1\cl_punkbuster\1\cl_anonymous\0
ame\dFx\protocol\84\qport\30659\challenge\0\ip\localhost
PunkBuster Client: Game Version [ET 2.60b win-x86 May  8 2006]
PunkBuster Client: Connected to Server loopback
PunkBuster Server: Preparing to Disable PB Server... (F:\Wolfenstein - Enemy Territory\pb\)
RE_Shutdown( 0 )
----- R_Init -----

GL_VENDOR: NVIDIA Corporation
[...]
GL_MAX_ACTIVE_TEXTURES_ARB: 4

PIXELFORMAT: color(16-bits) Z(24-bit) stencil(0-bits)
MODE: 6, 1024 x 768 fullscreen hz:85
GAMMA: hardware w/ 0 overbright bits
CPU: AMD w/ 3DNow!
rendering primitives: single glDrawElements
texturemode: GL_LINEAR_MIPMAP_NEAREST
picmip: 1
texture bits: 16
multitexture: enabled
compiled vertex arrays: enabled
texenv add: enabled
compressed textures: enabled
anisotropy: 1
NV distance fog: disabled
Forcing glFinish
Initializing Shaders
----- finished R_Init -----
LOADING... collision map
LOADING... sounds
voice chat memory size = 0

.........................
Initializing Sound Scripts
...loading 'sound/scripts/vo_allies.sounds'
...loading 'sound/scripts/vo_axis.sounds'
...loading 'sound/scripts/decrypted2.sounds'
done.
LOADING... graphics
LOADING... maps/decrypted2.bsp
stitched 6 LoD cracks
...loaded 5899 faces, 486 meshes, 68 trisurfs, 0 flares 0 foliage
WARNING: light grid mismatch
LOADING... entities
LOADING... game media
LOADING...  - textures
LOADING...  - models
LOADING...  - weapons
LOADING...  - items
WARNING: Couldn't find image for shader models/mapobjects/furniture/sausage.tga
WARNING: Couldn't find image for shader models/mapobjects/furniture/bread.tga
LOADING...  - inline models
LOADING...  - server models
LOADING...  - particles
LOADING...  - classes
LOADING...  - game media done
LOADING... flamechunks
LOADING... clients
*** You have been authorized "referee" status ***
Type: ref (by itself) for a list of referee commands.
CL_InitCGame:  6.94 seconds
Com_TouchMemory: 0 msec
You must be in a level to record.
Userinfo: \cg_etVersion\Enemy Territory, ET 2.60\cg_uinfo\4 0 100\g_password
one\cl_gu
id\2CDFFC76ED03BB57C20F715E29410584\snaps\20\rate\25000\cl_wwwDownload\1\cl_punkbuster\1\cl_anonymous\0
ame\dFx\ip\localhost
Userinfo: \cg_etVersion\Enemy Territory, ET 2.60\cg_uinfo\4 0 100\g_password
one\cl_gu
id\2CDFFC76ED03BB57C20F715E29410584\snaps\20\rate\25000\cl_wwwDownload\1\cl_punkbuster\1\cl_anonymous\0
ame\dFx\ip\localhost
PunkBuster Client: PB Services socket initialized
Userinfo: \cg_etVersion\Enemy Territory, ET 2.60\cg_uinfo\4 0 100\g_password
one\cl_gu
id\2CDFFC76ED03BB57C20F715E29410584\snaps\20\rate\25000\cl_wwwDownload\1\cl_punkbuster\1\cl_anonymous\0
ame\dFx\ip\localhost
Userinfo: \cg_etVersion\Enemy Territory, ET 2.60\cg_uinfo\4 0 100\g_password
one\cl_gu
id\2CDFFC76ED03BB57C20F715E29410584\snaps\20\rate\25000\cl_wwwDownload\1\cl_punkbuster\1\cl_anonymous\0
ame\dFx\ip\localhost
7200 : (n/a) GScript event: playerstart
7250 : (n/a) GScript event: playerstart
dFx entered the game
dFx has joined the Allied team!
PunkBuster Client: PnkBstrA successfully loaded PnkBstrB
PunkBuster Client: PnkBstrB service installed and started successfully
==== ShutdownGame ====
------- Game Initialization -------
gamename: etmain
gamedate: Mar 10 2005
Enable spawning!
11750 : (flag_wobj) GScript event: spawn
11750 : (game_manager) GScript event: spawn
11750 : (game_manager) GScript command: wm_axis_respawntime 25
11750 : (game_manager) GScript command: wm_allied_respawntime 20
11750 : (game_manager) GScript command: wm_set_round_timelimit 15
11750 : (game_manager) GScript command: wm_number_of_objectives 6
11750 : (game_manager) GScript command: wm_objective_status 1 1 2
11750 : (game_manager) GScript command: wm_objective_status 1 0 1
11750 : (game_manager) GScript command: wm_objective_status 2 1 2
11750 : (game_manager) GScript command: wm_objective_status 2 0 1
11750 : (game_manager) GScript command: wm_objective_status 3 1 2
11750 : (game_manager) GScript command: wm_objective_status 3 0 1
11750 : (game_manager) GScript command: wm_objective_status 4 1 2
11750 : (game_manager) GScript command: wm_objective_status 4 0 1
11750 : (game_manager) GScript command: wm_objective_status 5 1 2
11750 : (game_manager) GScript command: wm_objective_status 5 0 1
11750 : (game_manager) GScript command: wm_objective_status 6 1 0
11750 : (game_manager) GScript command: wm_objective_status 6 0 0
11750 : (game_manager) GScript command: wm_set_main_objective 2 1
11750 : (game_manager) GScript command: wm_set_main_objective 2 0
11750 : (game_manager) GScript command: accum 1 set 0
11750 : (game_manager) GScript command: accum 2 set 0
11750 : (game_manager) GScript command: accum 5 set 0
11750 : (game_manager) GScript command: wm_set_defending_team 0
11750 : (game_manager) GScript command: wm_setwinner 0
11750 : (game_manager) GScript command: wm_teamvoiceannounce 0 sideentr_axis_defend
11750 : (game_manager) GScript command: wm_teamvoiceannounce 1 sideentr_allies_destroy
11750 : (flag_script) GScript event: spawn
11750 : (flag_script) GScript command: accum 5 set 0
11750 : (portes) GScript event: spawn
11750 : (portes) GScript command: wait 200
11750 : (portes) GScript event: spawn
11750 : (portes) GScript command: wait 200
11750 : (documents) GScript event: spawn
11750 : (documents) GScript command: wait 200
11750 : (documents_CMM) GScript event: spawn
11750 : (transmitter_obj) GScript event: spawn
11750 : (transmitter_obj) GScript command: wait 200
11750 : (portes) GScript event: spawn
11750 : (portes) GScript command: wait 200
11750 : (cm_amo) GScript event: spawn
11750 : (neutral_compost_toi) GScript event: spawn
11750 : (allied_compost_built) GScript event: spawn
11750 : (allied_compost_built) GScript command: wait 400
11750 : (axis_compost_built) GScript event: spawn
11750 : (axis_compost_built) GScript command: wait 400
11750 : (neutral_compost_closed_clip) GScript event: spawn
11750 : (axis_compost_built_model) GScript event: spawn
11750 : (axis_compost_built_model) GScript command: wait 400
11750 : (allied_compost_built_model) GScript event: spawn
11750 : (allied_compost_built_model) GScript command: wait 400
11750 : (neutral_compost_closed_model) GScript event: spawn
11750 : (mur2) GScript event: spawn
11750 : (mur2) GScript command: wait 200
11750 : (team_compost_open) GScript event: spawn
11750 : (n/a) GScript event: spawn
11750 : (n/a) GScript event: spawn
11750 : (ascenseur_1) GScript event: spawn
11750 : (ascenseur_1) GScript command: wait 800
11750 : (ascenseur_1) GScript event: spawn
11750 : (ascenseur_1) GScript command: wait 800
11750 : (pos_up) GScript event: spawn
11750 : (pos_down) GScript event: spawn
11750 : (ascenseur_1) GScript event: spawn
11750 : (ascenseur_1) GScript command: wait 800
Disable spawning!
ERROR No tracemap found for map
2 teams with 4 entities
-----------------------------------
Setting MOTD...
11750 : (portes) GScript command: wait 200
11750 : (documents) GScript command: wait 200
11750 : (transmitter_obj) GScript command: wait 200
11750 : (portes) GScript command: wait 200
11750 : (allied_compost_built) GScript command: wait 400
11750 : (axis_compost_built) GScript command: wait 400
11750 : (axis_compost_built_model) GScript command: wait 400
11750 : (allied_compost_built_model) GScript command: wait 400
11750 : (mur2) GScript command: wait 200
11750 : (ascenseur_1) GScript command: wait 800
11750 : (ascenseur_1) GScript command: wait 800
11750 : (ascenseur_1) GScript command: wait 800
12050 : (portes) GScript command: constructible_class 3
12050 : (portes) GScript command: constructible_class 3
12050 : (mur2) GScript command: constructible_class 3
12250 : (allied_compost_built) GScript command: trigger allied_compost_built setup
12250 : (allied_compost_built) GScript event: trigger setup
12250 : (allied_compost_built) GScript command: setchargetimefactor 1 soldier 1
12250 : (allied_compost_built) GScript command: setchargetimefactor 1 lieutenant 1
12250 : (allied_compost_built) GScript command: setchargetimefactor 1 medic 1
12250 : (allied_compost_built) GScript command: setchargetimefactor 1 engineer 1
12250 : (allied_compost_built) GScript command: setchargetimefactor 1 covertops 1
12250 : (allied_compost_built) GScript command: sethqstatus 1 0
12250 : (allied_compost_built) GScript command: constructible_class 2
12250 : (axis_compost_built) GScript command: trigger axis_compost_built setup
12250 : (axis_compost_built) GScript event: trigger setup
12250 : (axis_compost_built) GScript command: setchargetimefactor 0 soldier 1
12250 : (axis_compost_built) GScript command: setchargetimefactor 0 lieutenant 1
12250 : (axis_compost_built) GScript command: setchargetimefactor 0 medic 1
12250 : (axis_compost_built) GScript command: setchargetimefactor 0 engineer 1
12250 : (axis_compost_built) GScript command: setchargetimefactor 0 covertops 1
12250 : (axis_compost_built) GScript command: sethqstatus 0 0
12250 : (axis_compost_built) GScript command: constructible_class 2
12250 : (axis_compost_built_model) GScript command: setstate axis_compost_built_model invisible
12250 : (allied_compost_built_model) GScript command: setstate allied_compost_built_model invisible
Userinfo: \cg_etVersion\Enemy Territory, ET 2.60\cg_uinfo\4 0 100\g_password
one\cl_gu
id\2CDFFC76ED03BB57C20F715E29410584\snaps\20\rate\25000\cl_wwwDownload\1\cl_punkbuster\1\cl_anonymous\0
ame\dFx\ip\localhost
12250 : (n/a) GScript event: playerstart
dFx entered the game
FIGHT!
82100 : (ascenseur_1) GScript event: trigger appel_up
82100 : (ascenseur_1) GScript command: gotomarker pos_up 200 wait
83300 : (ascenseur_1) GScript command: wait 1500
84850 : (ascenseur_1) GScript command: gotomarker pos_down 200 wait

after entering the game, i pushed the button which call the trigger appel_up
What’s wrong ?
Help !


(Wezelkrozum) #2

I’ve had this once and it’s very irritating. This is the problem:


11750 : (ascenseur_1) GScript command: wait 800
11750 : (ascenseur_1) GScript command: wait 800
11750 : (ascenseur_1) GScript command: wait 800

The script runs all the command you give in the script 3 times because you have 3 entities with this scriptname in your map.
Probably the 2 target_script_triggers and the script_mover.
Create an other scriptname for the target_script_triggers and trigger the script_mover in the script from the scriptname of the target_script_triggers. If you don’t understand, here is an example of what I mean:


// ========
// ASCENSOR
// ========

ascenseur_1
{
	Spawn
	{
		wait 800
	}
	
	trigger appel_down
	{
		gotomarker pos_down 200 wait
		wait 1500
		gotomarker pos_up 200 wait
	}
	
	trigger appel_up
	{
		gotomarker pos_up 200 wait
		wait 1500
		gotomarker pos_down 200 wait
	}
}

<target_script_triggers scriptname>
{
    trigger appel_down
    {
        trigger ascenseur_1 appel_down
    }

    trigger appel_up
    {
        trigger ascenseur_1 appel_up
    }
}


(dFx) #3

Thanks anyway. working well this way.