help with singleplayer to multiplayer conversions
Posted: Wed Oct 06, 2004 8:49 pm
Alright decided to try to convert a singleplayer map. I choose to do m1l1. The script I wrote pretty much does nothing at all and I followed everything on the TMT forums. Here is what this one looks like:
//SinglePlayer Maps to MultiPlayer
//Level m1|1 Converted
//Converted by WD_Echo_Rancid
main:
removeclass actor
removeclass info_pathnode
//set scoreboard messages
setcvar "g_obj_alliedtext1" "Algeria, North Africa"
setcvar "g_obj_alliedtext2" "November 7, 1942"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Converted By"
setcvar "g_obj_axistext2" "WD_Echo_Rancid"
setcvar "g_obj_axistext3" "www.blackforty-four.com"
setcvar "g_scoreboardpic" "textures/mohmenu/m1l1.tga"
level.script = "maps/m1l1.scr"
//Allied Spawn Points
local.allied = spawn info_player_allied origin "-4670.46
-2940.74 104.13" angle 80
local.allied = spawn info_player_allied origin "-4698.85
-1921.02 247.79" angle 40
local.allied = spawn info_player_allied origin "-3227.80
-404.96 410.60" angle 180
local.allied = spawn info_player_allied origin "-2933.76
-2076.08 232.65" angle 125
local.allied = spawn info_player_allied origin "-2558.65
-2903.95 102.04" angle -180
local.allied = spawn info_player_allied origin "-3189.36
-3754.07 200.13" angle 115
local.allied = spawn info_player_allied origin "-3689.36
-3580.89 188.73" angle 85
local.allied = spawn info_player_allied origin "-2773.53
-3561.47 63.60" angle 125
local.allied = spawn info_player_allied origin "-5179.06
421.46 459.32" angle 0
local.allied = spawn info_player_allied origin "-4557.32
-1231.19 412.18" angle 60
local.allied = spawn info_player_allied origin "-3691.21
-267.64 405.95" angle 180
local.allied = spawn info_player_allied origin "-4125.43
-1505.62 283.33" angle 10
//Axis Spawn Points
local.axis = spawn info_player_axis origin "-6391.00
2548.15 432.13" angle -90
local.axis = spawn info_player_axis origin "-5847.13
2520.14 640.13" angle 180
local.axis = spawn info_player_axis origin "-5847.13
2083.13 640.13" angle 180
local.axis = spawn info_player_axis origin "-5647.91
1820.04 472.13" angle 180
local.axis = spawn info_player_axis origin "-6584.88
1435.04 432.13" angle 0
local.axis = spawn info_player_axis origin "-6960 1660.03
432.13" angle 0
local.axis = spawn info_player_axis origin "-6960.88
2480.87 432.13" angle -60
local.axis = spawn info_player_axis origin "-5882.31
1528.87 440.13" angle -90
local.axis = spawn info_player_axis origin "-6052.88 488.24
376.13" angle 0
local.axis = spawn info_player_axis origin "-5479.40 779.69
376.13" angle -90
local.axis = spawn info_player_axis origin "-4767.11 15.13
372.82" angle 90
local.axis = spawn info_player_axis origin "-4479.91 987.13
460.13" angle 180
//__________________________________________________ _______
__________________
//Free for All Spawn Points
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//__________________________________________________ _______
__________________
//Remove from SP
//__________________________________________________ _______
__________________
//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/t1l2.scr
exec global/ambient.scr m1l1
exec global/door_locked.scr
//Setup farplane
//$world farplane_color (0.038 .058 .099)
//$world farplane 3000
//__________________________________________________ _______
___________________
level waittill spawn
//__________________________________________________ _______
___________________
//Call Threads
thread sandbags
thread messages
sandbags:
local.static = spawn script_model
local.static model "static/sandbag_link_main.tik"
local.static.origin = (-4185.66 -348.26 364.00)
local.static.angles = (0.00 90.00 0.00)
local.static solid
end
messages:
while (1) { //loop forever
wait 60
iprintln_noloc "Mission 1 Level 1:Allied Assault"
iprintln_noloc "Converted to Multiplayer by
WD_Echo_Racnid"
wait 60
iprintln_noloc "Visit us At www.blackforty-four.com"
wait 180
} // end loop
end
//__________________________________________________ _______
______________
//RoundBased
roundbasedthread:
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
I can get into the map on my server but Nothing works, the script I made is pretty much not executing at all. This how I saved it:
Script = m1l1.scr
^put this in my maps folder in the pk3:
pk3 = zzz_m1l1.pk3
^put this in the mainta folder of my server
There are other singleplayer to multiplayer maps in the folder as well that work...done by Falc. Both of mine do not work, nothing at all. Ive tryed pretty much everything that I have read with 0 luck. Any suggestions? I would really like to figure this out, its really bugging me.
One other thing m1(l-this is supposed to be a lowercase L and not a |, above the enter key, correct?)1.scr
//SinglePlayer Maps to MultiPlayer
//Level m1|1 Converted
//Converted by WD_Echo_Rancid
main:
removeclass actor
removeclass info_pathnode
//set scoreboard messages
setcvar "g_obj_alliedtext1" "Algeria, North Africa"
setcvar "g_obj_alliedtext2" "November 7, 1942"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Converted By"
setcvar "g_obj_axistext2" "WD_Echo_Rancid"
setcvar "g_obj_axistext3" "www.blackforty-four.com"
setcvar "g_scoreboardpic" "textures/mohmenu/m1l1.tga"
level.script = "maps/m1l1.scr"
//Allied Spawn Points
local.allied = spawn info_player_allied origin "-4670.46
-2940.74 104.13" angle 80
local.allied = spawn info_player_allied origin "-4698.85
-1921.02 247.79" angle 40
local.allied = spawn info_player_allied origin "-3227.80
-404.96 410.60" angle 180
local.allied = spawn info_player_allied origin "-2933.76
-2076.08 232.65" angle 125
local.allied = spawn info_player_allied origin "-2558.65
-2903.95 102.04" angle -180
local.allied = spawn info_player_allied origin "-3189.36
-3754.07 200.13" angle 115
local.allied = spawn info_player_allied origin "-3689.36
-3580.89 188.73" angle 85
local.allied = spawn info_player_allied origin "-2773.53
-3561.47 63.60" angle 125
local.allied = spawn info_player_allied origin "-5179.06
421.46 459.32" angle 0
local.allied = spawn info_player_allied origin "-4557.32
-1231.19 412.18" angle 60
local.allied = spawn info_player_allied origin "-3691.21
-267.64 405.95" angle 180
local.allied = spawn info_player_allied origin "-4125.43
-1505.62 283.33" angle 10
//Axis Spawn Points
local.axis = spawn info_player_axis origin "-6391.00
2548.15 432.13" angle -90
local.axis = spawn info_player_axis origin "-5847.13
2520.14 640.13" angle 180
local.axis = spawn info_player_axis origin "-5847.13
2083.13 640.13" angle 180
local.axis = spawn info_player_axis origin "-5647.91
1820.04 472.13" angle 180
local.axis = spawn info_player_axis origin "-6584.88
1435.04 432.13" angle 0
local.axis = spawn info_player_axis origin "-6960 1660.03
432.13" angle 0
local.axis = spawn info_player_axis origin "-6960.88
2480.87 432.13" angle -60
local.axis = spawn info_player_axis origin "-5882.31
1528.87 440.13" angle -90
local.axis = spawn info_player_axis origin "-6052.88 488.24
376.13" angle 0
local.axis = spawn info_player_axis origin "-5479.40 779.69
376.13" angle -90
local.axis = spawn info_player_axis origin "-4767.11 15.13
372.82" angle 90
local.axis = spawn info_player_axis origin "-4479.91 987.13
460.13" angle 180
//__________________________________________________ _______
__________________
//Free for All Spawn Points
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//local.deathmatch = spawn info_player_deathmatch origin ""
angle
//__________________________________________________ _______
__________________
//Remove from SP
//__________________________________________________ _______
__________________
//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/t1l2.scr
exec global/ambient.scr m1l1
exec global/door_locked.scr
//Setup farplane
//$world farplane_color (0.038 .058 .099)
//$world farplane 3000
//__________________________________________________ _______
___________________
level waittill spawn
//__________________________________________________ _______
___________________
//Call Threads
thread sandbags
thread messages
sandbags:
local.static = spawn script_model
local.static model "static/sandbag_link_main.tik"
local.static.origin = (-4185.66 -348.26 364.00)
local.static.angles = (0.00 90.00 0.00)
local.static solid
end
messages:
while (1) { //loop forever
wait 60
iprintln_noloc "Mission 1 Level 1:Allied Assault"
iprintln_noloc "Converted to Multiplayer by
WD_Echo_Racnid"
wait 60
iprintln_noloc "Visit us At www.blackforty-four.com"
wait 180
} // end loop
end
//__________________________________________________ _______
______________
//RoundBased
roundbasedthread:
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
I can get into the map on my server but Nothing works, the script I made is pretty much not executing at all. This how I saved it:
Script = m1l1.scr
^put this in my maps folder in the pk3:
pk3 = zzz_m1l1.pk3
^put this in the mainta folder of my server
There are other singleplayer to multiplayer maps in the folder as well that work...done by Falc. Both of mine do not work, nothing at all. Ive tryed pretty much everything that I have read with 0 luck. Any suggestions? I would really like to figure this out, its really bugging me.
One other thing m1(l-this is supposed to be a lowercase L and not a |, above the enter key, correct?)1.scr