Page 1 of 1

Where do I write the scripts?

Posted: Thu Apr 24, 2003 8:32 pm
by Sonsai
Yeah, I see all this great scripting stuff, but where do I put it? :?:

Posted: Thu Apr 24, 2003 9:05 pm
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

Posted: Thu Apr 24, 2003 10:14 pm
by Sonsai
Eh it kinda helps, i'll read the basic .pk3 compliation tut thingy

Posted: Fri Apr 25, 2003 12:28 am
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

Posted: Fri Apr 25, 2003 1:04 am
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!

Posted: Fri Apr 25, 2003 1:13 am
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

confused

Posted: Fri Apr 25, 2003 6:22 am
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!

Posted: Fri Apr 25, 2003 5:45 pm
by Sonsai
Ahh, much more sense! Was wondering what those files were. Thanks! :lol:

Posted: Fri Apr 25, 2003 11:52 pm
by nuggets
these guys...??? if it's that complicated 2 understand then advice should only be recieved not given ;)