SCRIPTING HELP!!!

Post your scripting questions / solutions here

Moderator: Moderators

Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

0o0o0o0o0oooo000ooooo :evil: :evil: :evil:

ok im mad :x :x :x

it still saves it as screen shot even with quotes.. :evil: :evil: :evil:

help :evil: :evil: :evil:
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

It shouldn't mater if your system still thinks it's a screen saver though, just don't double click it.

Open a CMD window and do a dir to see the file name. You will get the true file name here. Of course go to the proper directory first. You can rename it in the CMD window to whatever you want.

Code: Select all

ren myfile.scr.poc.stupid.1.last.try myfile.scr
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

ugh....

Post by Hashmark13 »

ok here is my script now...

Code: Select all

// testxpld
// ARCHITECTURE:Blind Sniper
// SCRIPTING:Blind Sniper
main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "exploding wall"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "exploding wall"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "none"

	// call additional stuff for playing this map round based is needed
	if(level.roundbased)
		thread roundbasedthread

	exec global/exploder.scr
		
	level waitTill prespawn

	//*** Precache Dm Stuff
	exec global/DMprecache.scr

	level.script = maps/dm/music.scr
	exec global/ambient.scr music

	//$world farplane 5000
	//$world farplane_color (.333 .333 .329)

	level waittill spawn

end
i cant figure out what im doing wrong...

i use notepad... i save my script as all files and the name is testxpld.scr because testxpld is my maps name ive tried quotes ive tried every thing and still mohaa crashes when i try and load the map
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Your level script is "music.scr", how come? Your music.scr should also be placed into your maps\dm folder. If all fails, try to add "" around your maps/dm/music.scr.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

...

Post by Hashmark13 »

ummm...

help... me=confused
me=dumb
me=wtf am i supposed to do


my map name is testxpld... if that could help you help me then i hope i can figure out wtf is goin on i copied it from nemisis's tutorial on making your map have music... >:{
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Try your level.script = "maps/dm/testxpld.scr".

Try adding this after level waittill prespawn:

exec global/DMprecache.scr
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Try removing the script altogether and see if the map loads ;).

Make a logfile with 'logfile 2' before loading the map and post it here.
Image
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

i dont know how to create a log file... i read about it in one of the threads here but i forgot where it was... :oops: and i dont know if my script is correct this is what it looks like.... im really frustrated because ive put about 3 weeks into a map and i plan to put about 3 more MONTHS into it and it is fairly large and complex but is easy to fight in...





Code: Select all

// testxpld
// ARCHITECTURE:Blind Sniper
// SCRIPTING:Blind Sniper
main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "exploding wall"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "exploding wall"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "none"

	// call additional stuff for playing this map round based is needed
	if(level.roundbased)
		thread roundbasedthread

	exec global/exploder.scr
		
	level waitTill prespawn
	exec global/DMprecache.scr

	//*** Precache Dm Stuff
	exec global/DMprecache.scr

	level.script = maps/dm/testxpld.scr
	exec global/ambient.scr music

	//$world farplane 5000
	//$world farplane_color (.333 .333 .329)

	level waittill spawn

end

maybe its something really stupid im doing wrong... :x
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

Try changing:

Code: Select all

setcvar "g_scoreboardpic" "none" 
to:

Code: Select all

setcvar "g_scoreboardpic" "" 
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

In the following:

Code: Select all

   if(level.roundbased) 
      thread roundbasedthread 
Do you have the roundbasedthread code below the end in you previous post?
Pan

Post by Pan »

as for mohaa crashing, I've had the same sort of thing (I think). I was fooling around with the door_locked.scr which I put in my own main/global-folder after I had edited it. It appeared I had done something wrong with it.

After removing this script-file from my main/global-folder, the game stopped crashing. I noticed you are working with the exploder.script, and since this is also a global script, this might solve the problem. Maybe you didn't do anything with the exploder.script but if you did extract it from the pak0.pk3 and put it in your own global folder, try to remove the script from the folder or even the whole folder.

If you don't have a seperate global-folder in your main-directory, make sure that there are no custom pk3's in your main-directory when editing.

If don't have either the global-folder or custom pk3's, then forget what I just said;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I don't think the script is the problem.

Create a logfile with 'logfile 2' in the console and we'll see 8)
Image
Post Reply