Where do I write the scripts?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Sonsai
Colonel
Posts: 438
Joined: Mon Feb 17, 2003 1:40 pm
Location: Wisconsin
Contact:

Where do I write the scripts?

Post by Sonsai »

Yeah, I see all this great scripting stuff, but where do I put it? :?:
Image
Shifty
Map Reviewer
Posts: 717
Joined: Sun Dec 15, 2002 11:53 pm
Location: UK
Contact:

Post by Shifty »

Do you mean the location in your pk3 file? if so.....

Inside a basic map file you'll have the following folders and an explanation

maps

Inside here you'll have an obj folder then inside that you'll put your .bsp, .min, (both created in compile) .scr & the _precache.scr

scripts

In here you'll have the .shader for the loading screen and any custom texture .shader files

textures

in here u will put another folder called mohmenu then inside that objloading then in objloading your loading screen image

ui

In here will be your .urc file - its a script for the loading screen

Hope that makes sense cos im tired - and i'm thick when i'm tired
.MDT Webmaster, Mapper, Moddeler & Concept Artist
.Map Reviewer
Image
http://www.shiftys-bunker.tk Under Construction
User avatar
Sonsai
Colonel
Posts: 438
Joined: Mon Feb 17, 2003 1:40 pm
Location: Wisconsin
Contact:

Post by Sonsai »

Eh it kinda helps, i'll read the basic .pk3 compliation tut thingy
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

hey sonsai,

if you wanna create scripts for your maps, then just create them in the same folder as which the map lives, i.e if you wanna create a single player map put it in the main/maps directory, and same for the script file, if objective put it in map/ojb/***.map and map/obj/***.scr

if you've created and .scr (with notepad or wordpad etc...) put in it

main:
level waittill spawn
iprintlnbold "hiya this is my working script"
end

you'll see what this does if you do it right, then add all the necessary script that you need :D

sorry about speeling mistakes but i've had abber again :P i'll reply again if this doesn't help :D
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
Sonsai
Colonel
Posts: 438
Joined: Mon Feb 17, 2003 1:40 pm
Location: Wisconsin
Contact:

Post by Sonsai »

SO it's kinda like HTML, the script file is the image, and then the map just searches for it and when it finds it it just shows it... I get it! :!: 8) :lol: Tanks so much eveyrone!
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

well kinda, the .scr file only gets opened if it matches the .map file name, and only plays the main: thread, unless you 4get 2 put an end command in it :P
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

confused

Post by tltrude »

I think these guys are confusing you...

The script has to be the same name as the BSP file. So, if your map was named "mymap.bsp" the script would be named "mymap.scr", and they would both go in the same folder (maps, dm, or obj) depending on what type game it is.

A "mymap_precache.scr" script helps to pre-load models for your map, but you don't need one if you have only a few models.

The "mymap.min" file also goes in the same folder with your bsp and scr files. It is made automattically when anyone plays your map, but Apple computer owners can't play your map without a pre-made min file.

Hope that helps!
Tom Trude,

Image
User avatar
Sonsai
Colonel
Posts: 438
Joined: Mon Feb 17, 2003 1:40 pm
Location: Wisconsin
Contact:

Post by Sonsai »

Ahh, much more sense! Was wondering what those files were. Thanks! :lol:
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

these guys...??? if it's that complicated 2 understand then advice should only be recieved not given ;)
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply