Page 2 of 2

game type

Posted: Sun Jan 04, 2004 7:34 pm
by tltrude
What type of game is your map, dm, obj, singleplayer? Can you post the script for it?

Posted: Mon Jan 05, 2004 8:16 pm
by Danker
Ok, that's a multiplayer map...but that is for a tutotial, so it can also be a singleplayer map...! :wink: :wink:

So that is the script !!!

//nom de la carte: tutorial_volets
//carte cr?e par: Danker
//script ?crit par: Danker (en s'inspirant de celui de Surgeon et de Tropheus pour le canon)
//Content de faire mon
//premier tuto !

exec global/ai.scr
exec global/loadout.scr maps/test_exploflak.scr

main:

level.script = maps/dm/tutorial_volets.scr
exec global/shutter.scr

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Tutorial pour les"
setcvar "g_obj_alliedtext2" "volets anim?s"
setcvar "g_obj_alliedtext3"
setcvar "g_obj_axistext1" "propos? par Danker"
setcvar "g_obj_axistext2" "en s'inspirant des tutos"
setcvar "g_obj_axistext3" "de Surgeon et de Tropheus"
setcvar "g_scoreboardpic" "none"

level waittill prespawn

exec global/exploder.scr

level waittill spawn

waitthread global/items.scr::add_item "explosive"

waitthread global/objectives.scr::add_objectives 1 2 "Faire sauter le flak" $obj1.origin
set_objective_pos $obj1
thread obj1
end
////////////////////l'explosion du flak/////////////////////
obj1:
$bomb1_trigger waittill trigger
$bomb1 model "animate/explosive.tik"
$bomb1 playsound explosive
$player loopsound bombtick
$player stopwatch 5
wait 5
$player stoploopsound bombtick
$bomb1 playsound explode_tank
thread global/shutter.scr::shuttrig 1
$bomb1 remove
waitthread global/exploder.scr::explode 1
radiusdamage $hurtobject1 256 384
waitthread global/objectives.scr::add_objectives 2 3 "Faire sauter le flak" $obj1.origin
end


level waittill roundstart

end


the script run correctly,... but when the console say " shuttershitt_01 need an allias in the ubersound.scr" i create a precache WITH this ubersound (aliascache shutterhit_01 sound/mechanics/Mec_ShutterHit_01.wav soundparms 0.5 0.2 0.8 0.4 250 2500 item loaded maps "m1l1 m5 ") !!

But the message still continue....!!! :evil: :evil: :shock: :cry:

so what is the problem......pleeezzzzzz ???? :cry:

Posted: Mon Jan 05, 2004 8:19 pm
by Danker
GGGRRRR, why each time i write "ShuttersH?T", that is moved in Shutterscrapt ???????,

map

Posted: Mon Jan 05, 2004 10:36 pm
by tltrude
Change this:

maps "m1l1 m5 "

to this:

maps "m dm obj t "

Try this script:

---------------------------------------------------------------------------
//nom de la carte: tutorial_volets
//carte cr?e par: Danker
//script ?crit par: Danker (en s'inspirant de celui de Surgeon et de Tropheus pour le canon)
//Content de faire mon
//premier tuto !

exec global/ai.scr
exec global/loadout.scr maps/test_exploflak.scr

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Tutorial pour les"
setcvar "g_obj_alliedtext2" "volets anim?s"
setcvar "g_obj_alliedtext3"
setcvar "g_obj_axistext1" "propos? par Danker"
setcvar "g_obj_axistext2" "en s'inspirant des tutos"
setcvar "g_obj_axistext3" "de Surgeon et de Tropheus"
setcvar "g_scoreboardpic" "none"

local.master = spawn ScriptMaster

local.master aliascache shuttersqueak_01 sound/mechanics/Mec_ShutterSqueak_01.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "
local.master aliascache shuttersqueak_02 sound/mechanics/Mec_ShutterSqueak_02.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "
local.master aliascache shuttersqueak_03 sound/mechanics/Mec_ShutterSqueak_03.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "
local.master aliascache shuttersqueak_04 sound/mechanics/Mec_ShutterSqueak_04.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "
local.master aliascache shutterhit_01 sound/mechanics/Mec_ShutterHit_01.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "
local.master aliascache shutterhit_02 sound/mechanics/Mec_ShutterHit_01.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "
local.master aliascache shutterhit_03 sound/mechanics/Mec_ShutterHit_01.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "
local.master aliascache shutterhit_06 sound/mechanics/Mec_ShutterHit_01.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "
local.master aliascache shutterhit_07 sound/mechanics/Mec_ShutterHit_01.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "
local.master aliascache shutterhit_08 sound/mechanics/Mec_ShutterHit_01.wav soundparms 0.5 0.2 0.8 0.4 250 2500 auto loaded maps "m dm obj t "


level waittill prespawn

exec global/exploder.scr
level.script = maps/dm/tutorial_volets.scr
exec global/shutter.scr

level waittill spawn

waitthread global/items.scr::add_item "explosive"

waitthread global/objectives.scr::add_objectives 1 2 "Faire sauter le flak" $obj1.origin
set_objective_pos $obj1
thread obj1

end

////////////////////l'explosion du flak/////////////////////
obj1:
$bomb1_trigger waittill trigger
$bomb1 model "animate/explosive.tik"
$bomb1 playsound explosive
$player loopsound bombtick
$player stopwatch 5
wait 5
$player stoploopsound bombtick
$bomb1 playsound explode_tank
thread global/shutter.scr::shuttrig 1
$bomb1 remove
waitthread global/exploder.scr::explode 1
radiusdamage $hurtobject1 256 384
waitthread global/objectives.scr::add_objectives 2 3 "Faire sauter le flak" $obj1.origin

end

---------------------------------------------------------------------------


I hope that works!

Posted: Tue Jan 06, 2004 8:10 am
by jv_map
Danker wrote:GGGRRRR, why each time i write "ShuttersH?T", that is moved in Shutterscrapt ???????,
lol 'shit' is a censored word, though I removed it from the censor list for you :)

Posted: Tue Jan 06, 2004 12:30 pm
by Danker
Thank you a lot tltrude to help me soo carfuly 8-) 8-) 8-) ! :D

But....(yes with me, there's always a "but" lol), i've done what you said (i've also changed "m1l1 m5 " into "m dm obj t " in the mymapname_precache.scr> must i do it ??? ) and, now there is another message in the console :
Load.......alliascache.......
ERRROR: any entity has a targetname : ScriptMaster ! ScriptMaster require this entity !

:shock: :shock:

So tell me what to do ??? ....pleeezzzzz

oops

Posted: Tue Jan 06, 2004 5:20 pm
by tltrude
I made a mistake. Change the line in your script to this:

local.master = spawn ScriptMaster

Sorry! Also, you should not need any aliascache in your precache script becuse it is in the main script now. You can, if you wish, "cache" the wav sound files in your map's precache script, but I don't know if it is really needed.

Posted: Thu Jan 08, 2004 6:48 pm
by Danker
:) :D tltrude, You are a genius...A CHEER GENIUS !!!! :P :P :)

Thank you !!!!! :D :D :D

It works.....at last ! :P

"But", there's another problem: when i satrt the game, the sounds doesn't work ! so i must write restart in the console and then they work....!!!

So what to do to prevent that ???

loading sounds

Posted: Fri Jan 09, 2004 1:17 am
by tltrude
I see that problem too, I think the game starts too fast--before the sounds load. Try putting this in your precache script.

cache sound/mechanics/Mec_ShutterSqueak_01.wav
cache sound/mechanics/Mec_ShutterSqueak_02.wav
cache sound/mechanics/Mec_ShutterSqueak_03.wav
cache sound/mechanics/Mec_ShutterSqueak_04.wav
cache sound/mechanics/Mec_ShutterHit_01.wav

Posted: Sun Feb 15, 2004 9:21 am
by Danker
Sorry, but it doesn't work at me... :roll: :roll:

Why ?

game?

Posted: Sun Feb 15, 2004 11:42 am
by tltrude
Is it mohaa?

You could try moving all the local.master stuff below "level waittill spawn". I don't understand why you have singleplayer objectives in a maps/dm script.

If it is singleplayer, your map name must start with the word "test_" and your bsp and script should be in the maps folder.