ok i started my map and when i got into the script part it gives me that error as i try to start it. ive started this map and script like all my others so i dont know what could be wrong, anyone know what i need to hunt for or fix?
G_scripting (line 0) name expected?
I think you have a part which is not related to an entity.
Scriptparts start with the scriptname value of the entites.
ok, i know something is odd now about this error, i completely copied a prefab(which worked, it was the constructable health and ammo things that someone made on here) well i copied every little thing besides the world spawn and the team spawn things to see if i could get it to work. Then i copied its script to mine to test and i got this error again, i have no clue what is wrong
it does, and its fixed now, but its sort of weird what i did, i took my script, cut it then pasted it back into teh script file and saved it, then it worked, how odd
ok, i got this exact problem again, the funny think is i safed the world spawn, blue and red spawn points, and the script_multiplayer from a working map and also copied its script to a new map i was making. So i know this stuff works cause it did in my other map, yet it doesnt, it gives me the exact same error, i have know clue what is going on cause im not making my new maps any different from my old ones. Anyone have an idea y its doing this to me
come on, can someone help me fix this, i cant make anymore maps cause of this
sure, ill have to do it tomorrow though, sometime, ive been very busy lately, ill try to get it on here tomorrow
ok, here is the map
// entity 0
{
“classname” “worldspawn”
“mapcoordsmins” “-1024 1024”
“mapcoordsmaxs” "1024 -1024 "
// brush 0
{
( -1104 1024 -1016 ) ( -88 1024 -1016 ) ( -1104 -408 -1016 ) eigen/wand_7 -8 0 0 0.500000 0.500000 0 0 0
( -1344 1024 -454 ) ( -1344 -408 -454 ) ( -1344 -408 -510 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -8 1024 -456 ) ( -1024 1024 -456 ) ( -1024 1024 -512 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( 1024 -1040 -456 ) ( 1024 392 -456 ) ( 1024 392 -512 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -960 -1024 -456 ) ( 56 -1024 -456 ) ( 56 -1024 -512 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -88 1024 -1024 ) ( -1104 1024 -1024 ) ( -1104 -408 -1024 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
}
// brush 1
{
( -88 1024 -1024 ) ( -1104 1024 -1024 ) ( -1104 -408 -1024 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -1088 -408 1024 ) ( -1088 1024 1024 ) ( -72 1024 1024 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -960 -1024 -456 ) ( 56 -1024 -456 ) ( 56 -1024 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( 1024 -1040 -456 ) ( 1024 392 -456 ) ( 1024 392 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -1344 1024 -456 ) ( -1344 -408 -456 ) ( -1344 -408 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( 56 -1016 -456 ) ( -960 -1016 -456 ) ( 56 -1016 -512 ) skies/sd_batterysky 0 0 0 0.500000 0.500000 0 0 0
}
// brush 2
{
( -408 1024 -1024 ) ( -1424 1024 -1024 ) ( -1424 -408 -1024 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -1408 -408 1024 ) ( -1408 1024 1024 ) ( -392 1024 1024 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -1280 -1024 -456 ) ( -264 -1024 -456 ) ( -264 -1024 -512 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -328 1024 -456 ) ( -1344 1024 -456 ) ( -1344 1024 -512 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -1344 1024 -456 ) ( -1344 -408 -456 ) ( -1344 -408 -512 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -1336 -408 -456 ) ( -1336 1024 -456 ) ( -1336 -408 -512 ) skies/sd_batterysky -8 0 0 0.500000 0.500000 0 0 0
}
// brush 3
{
( -88 1024 -1024 ) ( -1104 1024 -1024 ) ( -1104 -408 -1024 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -1088 -408 1024 ) ( -1088 1024 1024 ) ( -72 1024 1024 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( 1024 -1040 -456 ) ( 1024 392 -456 ) ( 1024 392 -512 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -8 1024 -456 ) ( -1024 1024 -456 ) ( -1024 1024 -512 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -1344 1024 -458 ) ( -1344 -408 -458 ) ( -1344 -408 -514 ) common/caulk -8 0 0 0.500000 0.500000 0 4 0
( -1024 1016 -456 ) ( -8 1016 -456 ) ( -1024 1016 -512 ) skies/sd_batterysky -8 0 0 0.500000 0.500000 0 0 0
}
// brush 4
{
( -88 1024 -1024 ) ( -1104 1024 -1024 ) ( -1104 -408 -1024 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -1088 -408 1024 ) ( -1088 1024 1024 ) ( -72 1024 1024 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -960 -1024 -456 ) ( 56 -1024 -456 ) ( 56 -1024 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( 1024 -1040 -456 ) ( 1024 392 -456 ) ( 1024 392 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -8 1024 -456 ) ( -1024 1024 -456 ) ( -1024 1024 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( 1016 392 -456 ) ( 1016 -1040 -456 ) ( 1016 392 -512 ) skies/sd_batterysky 0 0 0 0.500000 0.500000 0 0 0
}
// brush 5
{
( -1088 -408 1024 ) ( -1088 1024 1024 ) ( -72 1024 1024 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -960 -1024 -456 ) ( 56 -1024 -456 ) ( 56 -1024 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( 1024 -1040 -456 ) ( 1024 392 -456 ) ( 1024 392 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -8 1024 -456 ) ( -1024 1024 -456 ) ( -1024 1024 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -1344 1024 -456 ) ( -1344 -408 -456 ) ( -1344 -408 -512 ) common/caulk 0 0 0 0.500000 0.500000 0 4 0
( -1088 1024 1016 ) ( -1088 -408 1016 ) ( -72 1024 1016 ) skies/sd_batterysky 0 0 0 0.500000 0.500000 0 0 0
}
}
// entity 1
{
“classname” “team_CTF_redspawn”
“origin” “-464 848 -992”
}
// entity 2
{
“classname” “team_CTF_bluespawn”
“origin” “-344 848 -992”
}
// entity 3
{
“classname” “info_player_deathmatch”
“origin” “-408 848 -896”
}
// entity 4
{
“scriptname” “game_manager”
“origin” “-304 648 -888”
“classname” “script_multiplayer”
}
and here is the script
game_manager
{
spawn
{
setchargetimefactor 0 soldier 0.1
setchargetimefactor 0 lieutenant 0.1
setchargetimefactor 0 medic 0.1
setchargetimefactor 0 engineer 0.1
setchargetimefactor 0 covertops 0.11
setchargetimefactor 1 soldier 0.1
setchargetimefactor 1 lieutenant 0.1
setchargetimefactor 1 medic 0.1
setchargetimefactor 1 engineer 0.1
setchargetimefactor 1 covertops 0.1
wm_axis_respawntime 1
wm_allied_respawntime 1
wm_set_round_timelimit 30
wm_number_of_objectives 1
accum 0 set 0
accum 1 set 0
wm_setwinner -1
}
}
can someone help me figure out what is wrong, this error is seriously getting on my nerves
I’ve read somewhere here in the forums that wm_setwinner should be 0 or 1 at the beginning.
If you want that noone wins if timelimit is hit use the timelimit hit event.
And set wm_setwinner -1 there.
I set the wm_setwinner 0, didnt work, and i in my other map setwinnner -1 worked perfect. The entire error i got is this
G_Script_ScriptPhrase (), Error (Line 0) : ‘{’ found, Name expected