Lost + found
Moderator: Moderators
I opened your .pk3 and discovered that you used a separate .scr file for the music (soundmp3\mohdmsound1.scr). Since other players don't have this file, your mod will not work serverside.
What you need to do is have everything in one script (mohdm1.scr).
// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm1"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1
//exec global/ambient.scr mohdm2
//$world farplane 5000
//$world farplane_color (.333 .333 .329)
level waittill spawn
$world farclipoverride -1
wait 5
for(local.playernum = 1; local.playernum <= $player.size; local.playernum++)
{
$player[local.playernum] stufftext "tmstartloop sound\music\mus_16a_mystery.mp3"
}
wait 0.1
for(local.playernum = 1; local.playernum <= $player.size; local.playernum++)
{
$player[local.playernum] stufftext "tmvolume .5"
}
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
What you need to do is have everything in one script (mohdm1.scr).
// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm1"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1
//exec global/ambient.scr mohdm2
//$world farplane 5000
//$world farplane_color (.333 .333 .329)
level waittill spawn
$world farclipoverride -1
wait 5
for(local.playernum = 1; local.playernum <= $player.size; local.playernum++)
{
$player[local.playernum] stufftext "tmstartloop sound\music\mus_16a_mystery.mp3"
}
wait 0.1
for(local.playernum = 1; local.playernum <= $player.size; local.playernum++)
{
$player[local.playernum] stufftext "tmvolume .5"
}
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
-
punisher2202
- Lance Corporal
- Posts: 19
- Joined: Thu Mar 17, 2011 5:01 pm
this is a my mohdm1 . Again not work , only works when the. PK3 has and the clientCpt. Duke wrote:I opened your .pk3 and discovered that you used a separate .scr file for the music (soundmp3\mohdmsound1.scr). Since other players don't have this file, your mod will not work serverside.
What you need to do is have everything in one script (mohdm1.scr).
// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm1"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1
//exec global/ambient.scr mohdm2
//$world farplane 5000
//$world farplane_color (.333 .333 .329)
level waittill spawn
$world farclipoverride -1
wait 5
for(local.playernum = 1; local.playernum <= $player.size; local.playernum++)
{
$player[local.playernum] stufftext "tmstartloop sound\music\mus_16a_mystery.mp3"
}
wait 0.1
for(local.playernum = 1; local.playernum <= $player.size; local.playernum++)
{
$player[local.playernum] stufftext "tmvolume .5"
}
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
-
punisher2202
- Lance Corporal
- Posts: 19
- Joined: Thu Mar 17, 2011 5:01 pm
-
punisher2202
- Lance Corporal
- Posts: 19
- Joined: Thu Mar 17, 2011 5:01 pm
-
Dr.Pepper-US
- Private
- Posts: 7
- Joined: Wed Mar 16, 2011 4:13 am
- Location: America!! :D
Help With Basic SP Scripts
I need help scripting a new sp map im working on if anyone has a tut or helpful tips please post them haha any help is much appreciated 
Here are some useful tutorials.
Enjoy!
/tutorials.php?category=All
http://gronnevik.se/rjukan/index.php?n=Main.HomePage
Enjoy!
/tutorials.php?category=All
http://gronnevik.se/rjukan/index.php?n=Main.HomePage
-
punisher2202
- Lance Corporal
- Posts: 19
- Joined: Thu Mar 17, 2011 5:01 pm
Thanks the Zlatko from the modtheater for the solution works perfectly.
Zaltko script:
Zaltko script:
Code: Select all
// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" "mod by"
setcvar "g_obj_alliedtext3" "WARRIORs-of-BREIZH*rommel*"
setcvar "g_obj_axistext1" "visit web site"
setcvar "g_obj_axistext2" "warriors-of-breizh.com"
setcvar "g_obj_axistext3" "mail:warriors@live.fr"
setcvar "g_scoreboardpic" "mohdm1"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1
//exec global/ambient.scr mohdm2
//$world farplane 5000
//$world farplane_color (.333 .333 .329)
level waittill spawn
thread music
music:
local.STUFFSTRING = "tmstartloop sound/music/mus_04b_suspense.mp3; seta s_volume 5.999999; seta s_musicvolume 5.999999"
while(1)
{
for(local.i = 1; local.i <= $player.size; local.i++)
{
local.p = $player[local.i]
if(local.p.music_handled != 1)
{
local.p.music_handled = 1
local.p stufftext local.STUFFSTRING
}
}
waitframe
}
end
$world farclipoverride -1
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
-
Dr.Pepper-US
- Private
- Posts: 7
- Joined: Wed Mar 16, 2011 4:13 am
- Location: America!! :D
-
[D.o.G]FaDe2BlAcK
- Sergeant
- Posts: 55
- Joined: Fri Dec 17, 2004 9:48 pm
- Location: St. Cloud, MN
- Contact:
Flak Sounds
So I have a few flaks in my map, the question is... How do I make those bad boys roar?
It has been done on maps such as King Tiger 2 so I know it can be done... but how? Does it involve ubersound work?
It has been done on maps such as King Tiger 2 so I know it can be done... but how? Does it involve ubersound work?