Page 1 of 2

Ready to play multiplayer

Posted: Thu May 08, 2003 6:23 pm
by Triicky
ok i made my level and i want to play it multiplayer so i put the .pk3 file to another computer put it in main but it doesnt work why is this? it doesnt appear in the DM folder in mohaa the game.

Posted: Thu May 08, 2003 6:31 pm
by nihilo
is the bsp in a maps/dm folder within your pk3?

Posted: Thu May 08, 2003 6:48 pm
by Triicky
Yer these are the files in my .pk3

.bak
.bsp
.lin
.map
.min
.scr
.vis

is there anything else that should be in there?

Posted: Thu May 08, 2003 7:10 pm
by Triicky
// Tricky's First Map
// ARCHITECTURE: Tricky
// SCRIPTING: Tricky

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Clear the Road"
setcvar "g_obj_alliedtext2" "Kill all Axis"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Defend the Road"
setcvar "g_obj_axistext2" "Kill all Allies"
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "none"

level waitTill prespawn

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

level.script = maps/obj/mappy.scr

level waittill spawn

end


this is my .scr i know it says obj because thats where i saved all the files in before .pk3ing it

Posted: Thu May 08, 2003 7:14 pm
by tuffstuff7
well i am not a scriptor and am still a newb but it seems to me that this

level.script = maps/obj/mappy.scr points to an obj map and also the map name is it mappy? or clear the road? like i said i am a newb so just seeing what i have not done

Posted: Thu May 08, 2003 8:01 pm
by Triicky
oh is this scripting? should i be putting this in the scripting bit? i will cheers everyone

Posted: Thu May 08, 2003 8:10 pm
by nihilo
you are just trying to get your pk3 working, right?

all you really need in your pk3 (assuming there's no custom textures or other fancy stuff) is the bsp and scr.... there's no need to put the other stuff (especially not the map file, thats yours)

what I meant by my previous post was that there needs to be the actual folder maps with the folder dm in it with your files inside that dm folder. Then you need to put the maps folder in your pk3. It needs the file structure to work.
eg. maps/dm/mappy.bsp and maps/dm/mappy.scr

assuming mappy is the name of your map, the line in your script
level.script = maps/obj/mappy.scr
should be
level.script = maps/dm/mappy.scr
in order for it to load up your script

hope this clears things up (and more importantly, I'm not wrong in the first place)

Posted: Thu May 08, 2003 8:11 pm
by SNap007be
You only need the .bsp file copyed into the \dm folders, did you compile it properly? Did you go to "Other Options" in the compiling menu and select your GameType

Posted: Thu May 08, 2003 8:44 pm
by TheShiznaeSpe
nihilo wrote:all you really need in your pk3 (assuming there's no custom textures or other fancy stuff) is the bsp and scr.... there's no need to put the other stuff (especially not the map file, thats yours)
sry to contradict-but it's important to include the .min file in your pk3 (in the same dir as the map: IE-maps/dm/ )

without the .min, mac users cannot play your map for some reason-also, the .min file adds the loading bar to your screen the first time someone plays the map new-shortening load time

Posted: Thu May 08, 2003 10:18 pm
by Surgeon
SNap007be wrote:You only need the .bsp file copyed into the \dm folders, did you compile it properly? Did you go to "Other Options" in the compiling menu and select your GameType
You need the .scr file and the .min file too. All the "Other Options" thing in MBuilder does is change the directory that your .bsp file will be copied too.

Posted: Thu May 08, 2003 10:34 pm
by Triicky
ok IM really confused!

so in PK3 file i need folders called something ???

with .scr , .min and .bsp yeah?


do i need to call my new folder maps/dm/something?
In my Mbuilder bit Other Options i got gametype Free For All.........


triicky

Help!

Posted: Thu May 08, 2003 11:08 pm
by nuggets
open the pk3, on the left hand side you'll see the hierarchy (if you have one)

for death match it'll need to look like this

{_}/
..- {_} maps
......-{_} dm
.........- yourmap.bsp
.........- yourmap.lin
.........- yourmap.min
.........- yourmap.scr
.........- yourmap.vis
..- {_} models (if you've added any .tik files)
..- {_} scripts (if you've added custom textures .shader files)
..- {_} textures (if you've added custom textures .tga files)

{_} is the folder
..- the hyphen shows which folder to put it in (the 1 directly above it)
and other files named accordingly with the correct suffixes (file types)

:D

No need for a pk3

Posted: Fri May 09, 2003 12:46 am
by tltrude
You don't need a pk3 to test it.

Just place the bsp (and script if you have one) in MOHAA/main/maps/dm. Then it will be in your game's list of deathmatch maps.

Posted: Fri May 09, 2003 1:09 am
by nihilo
sry to contradict-but it's important to include the .min file in your pk3 (in the same dir as the map: IE-maps/dm/ )

without the .min, mac users cannot play your map for some reason-also, the .min file adds the loading bar to your screen the first time someone plays the map new-shortening load time
figures that I would neglect mac users that way... I actually found out today from another place that min files were important and was going to fix it, but looks like you beat me to it 8)

triicky, if you want to see an example of how a map pk3 is set up, just take one of the custom pk3s you have and change the extension to zip and look at how it's set up

Posted: Fri May 09, 2003 11:29 am
by Sonsai
Here's How I .pk3:

First I make a folder called "maps".

Then in that folder I make a folder called "dm" or "obj".

Then in that folder (the dm or obj one) I put the ".bsp" the ".min" and the ".scr". Usually they will look like this: mymap.bsp, mymap.min, and mymap.scr.

Then once I have those files I go back to the first folder, "maps".

I right click and choose Winzip > Add to maps.zip. Just follow through the steps and a .zip file of your map will show up.

Then right click it, and rename it to "mymap.pk3".

And put it in your main, and voila! Good luck and have fun! :lol: