G_scripting (line 0) name expected?


(Lock Ness Monster) #1

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?


(nUllSkillZ) #2

What’s the first line in you script?


(Lock Ness Monster) #3

game_manager


(nUllSkillZ) #4

I think you have a part which is not related to an entity.
Scriptparts start with the scriptname value of the entites.


(Lock Ness Monster) #5

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


(nUllSkillZ) #6

Do you have a “script_multiplayer”-entity in your map?


(Lock Ness Monster) #7

yes i do


(TFate) #8

The script_multiplayer must have a “scriptname” of “game_manager”


(Lock Ness Monster) #9

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


(Oxygen - o2) #10

might be a format error? huh maybe?


(Lock Ness Monster) #11

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


(Lock Ness Monster) #12

come on, can someone help me fix this, i cant make anymore maps cause of this


(carnage) #13

can you post the code and ill look for you


(Lock Ness Monster) #14

sure, ill have to do it tomorrow though, sometime, ive been very busy lately, ill try to get it on here tomorrow


(Lock Ness Monster) #15

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


(nUllSkillZ) #16

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.


(Lock Ness Monster) #17

hmm ill try that


(Lock Ness Monster) #18

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


(Lock Ness Monster) #19

hope someone can help