SCRIPTING HELP!!!

Post your scripting questions / solutions here

Moderator: Moderators

stupid auto login

SCRIPTING HELP!!!

Post by stupid auto login »

ok im gonna give you every detail about how i make a script file and i want some help as to of why it dont work..

Program: Notepad
Save as: 'mapname'.scr
Save in: ...maps/dm (with 'mapname'.bsp)
encoding: ANSI (the other options are Unicode, Unicode big endian, and UTF-8

LOOKING FORWARD FOR REPLY!!!
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Check your script for errors. Or, launch your map and check the console for script errors.
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 »

i cant check my console because when i try and run the map mohaa crashes... i only have one line in my script... its like



exec global/exploder.scr



ive seen in some script files (most script files) that it has stuff above and below the script... like some will say end at the end of the script... im not sure if this will help... and usualy it is several spaces below the script... hmm.... please help :( tell me every thing i need to add to the script... ugh...
" 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 »

Ok, is your map SP or MP?
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 »

Type:

Code: Select all

main:
exec global/exploder.scr
end
Mohaa wants to see at least one thread in a script file.
Image
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

hey jv_map im going to try that now... i will say if it works :D
" 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."
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

just does the same thing :x :x :x it just gives me an error message (BTW im on windowsXP) that asks me if i want to send an error report about mohaa :x :x :x :x :x :x :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."
NUFP VIP
Sergeant
Posts: 51
Joined: Tue Dec 24, 2002 9:12 am
Location: Ontario, Canada
Contact:

dont know

Post by NUFP VIP »

i dont know :(
Last edited by NUFP VIP on Thu Jan 02, 2003 8:01 am, edited 1 time in total.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Perhaps put a level waittill (pre)spawn in there.

Code: Select all

main:
    level waittill spawn
    exec global/exploder.scr
end
Image
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

...

Post by Hashmark13 »

i dont know what a pre-spawn is or what it does... ugh.... what format should i save the script in... BTW im using microsoft word so i have alot of options instead of notepad... its saved in text only format right now... im going to try that wait till spawn thing...

my script is going to look like:


main:
level waittill spawn
exec global/exploder.scr
end


so i hope it works.. i will be back to tell you if it does or not :o
" 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."
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

ok it dont work! i really need to figure out why when i add .scr on the end of my sciprt files it dont save it as a script file it saves as a screen saver!!!!

(i changed the swear words so i dont get in trouble or something)


ok here is every thing ive done...

saved the script as testxpld.scr and my map is saved as testxpld
ive tried every thing! its saved in the maps folder but the .map of testxpld is in dm folder... because its multiplayer and its a deathmatch map and i have an exploding wall...

i dont know what 'encoding' type i should save it as ive been using ANSI because it was the first option of 4... the other 3 were Unicode, Unicode big endian, and UTF-8... im so confused... those are the 4 options that i get with notepad..
" 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."
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I'd advise you to not use Word, but just notepad or something.

The .scr file should be in the directory where your .bsp file is in.
Image
Slyk
Lieutenant Colonel
Posts: 361
Joined: Sun Jul 14, 2002 12:42 am
Location: Elizabethtown, PA

Post by Slyk »

Ok, couple of things you need to do.........

1. Un-associate ".scr" with screen savers....
2. USE NOTEPAD and use the "save as" option
3. Save the .scr file in this format: "mapname.scr" USE the quotes around the name of the map in the file name box... so literally type "mapname.scr" then click save. Next time you open notepad you will go to 'open' and then in the lower box where the 'files of type' are you want to choose 'all files' then you will see your .scr files also.

Now, to fix the screen saver....(I have XP too)
1. open Explorer
2. go to 'tools' then 'folder options'
3. click on 'file types' tab
4. click on 'new' button
5. type 'scr' into the box and hit 'enter'
6. the program will ask if you want to 'un-associate' scr with a current file type, say 'yes'.

that should do it. I also work in ME (at the office when I have time) and it doesn't seem to be so picky. Being sure to always 'save as' and typing the file name with quotes around it and manually adding the .scr is usually enough. Good luck!
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 »

Slyk wrote:Ok, couple of things you need to do.........

........... and typing the file name with quotes around it and manually adding the .scr is usually enough. Good luck!
Let's all give Slky a "hurrumph", Good Job!!
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

...

Post by Hashmark13 »

ok umm... how do i un-associate .scr with screen savers???? :?

thats all i dont know how to do... so i am going to try and save it as "testxpld.scr" because that is the name of the map.. and i will include the quotations :shock: so i hope this works!!! :x :x :x


i still dont know if it will work without un-associating .scr with screen savers... :?
" 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."
Post Reply