obj for sh

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
guest

obj for sh

Post by guest »

ok, how and were do you put your pk3 for playing obj in sh?...
i have tried the same as mohaa but my map shows only in TDM in sh not obj?....
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Create a folder called maps and a subdirectory called obj. Put your maps into the obj folder (*.bsp, *.scr, *.lin, *.vis, *.min).
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 »

If you have a .lin file you've done something wrong.

It's a pointfile generated when your map has a leak ;).
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Ok, thanks for the tip. :wink:
Live to map, not map to live.
-mohaa_rox, .map
moderator
guest

Post by guest »

don't you think I done maps/obj..as I said it works for Mohaa but doing it this way does not work for SH..
Slyk
Lieutenant Colonel
Posts: 361
Joined: Sun Jul 14, 2002 12:42 am
Location: Elizabethtown, PA

Post by Slyk »

I had issues with getting my pk3 to be recongnized, but it's a DM and I fixed that issue by naming it with "mp_mapname_dm" and putting the file either in the mainta/dm folder OR the /main folder, worked from both locations. Try to make the name like the ones in SH....may need to rework all the scripts, etc. though...but not saying this is 100% right, just worked for me and actually seemed to make good organizational sense.
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 »

Spearhead uses a naming convention to separate the different types of object oriented games. Object games are ?obj_yourmapname? and tug of war maps are ?MP_yourmapname_TOW?.
Guest

Post by Guest »

ok, this is weird, got the obj to work in mohaa so I know its not the map, renamed to obj_assault nothing working in sh, renamed to user_assault, nothing working in sh.. now it must be the scripting which is as follows...

// obj_assault
// ARCHITECTURE: dodgerman20001
// SCRIPTING: dodgerman20001 & Gh?sT

main:
exec global/ambient.scr m5l1b
exec global/exploder.scr


level waitTill prespawn

setcvar "g_obj_alliedtext1" "Find And Destroy"
setcvar "g_obj_alliedtext2" "The Flak88"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Prevent The Destruction"
setcvar "g_obj_axistext2" "Of The "
setcvar "g_obj_axistext3" "Flak88"
setcvar "g_scoreboardpic" "obj_assault.tga"



exec global/DMprecache.scr

level.script = maps/obj/obj_assault.scr

level waittill spawn

level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.dmrespawning = 0 // 1 is respawn 0 is norespawn.
level.dmroundlimit = 6 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw

level waittill roundstart


$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker //activates bomb counter

$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb

thread bomb1_exploded $flak88_explosive1
end

//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------

axis_win_timer:

level waittill axiswin

end

//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------

allies_win_bomb:

while(level.targets_destroyed < level.targets_to_destroy)
waitframe

teamwin allies
end

//*** --------------------------------------------
//*** "Bomb 1 Exploded"
//*** --------------------------------------------

bomb1_exploded local.bomb1:

while (local.bomb1.exploded != 1)

wait .1

iprintlnbold "Allies have destroyed the Flak88!"


end

plz help as i'm sure your love this map.....
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Anonymous wrote:
level.script = maps/obj/obj_assault.scr
Ah hah! Try this:

level.script = maps/obj/MP_assault_obj.scr

Maybe it will work. Name all your maps to MP_assault_obj. When your map is finished, please let me know and maybe me and some of the staff can review it. By the way, sounds exciting. :wink: Feel free to register too.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Guest

Post by Guest »

damn damn damn...lol..i'm getting fed up now....now the normal obj's are not in pk1/2/3 of sh so it must look for the files from mohaa...does this apply to other obj pk's or can you even make a sh obj using sh stuff...god knows..
Guest

Post by Guest »

ok update, tried everything, i have the obj working but in sh it shows in tdm not obj as does dasboot, not i pk3 from map/obj and no matter what i name the damn thing it still won't go into obj..it does show in mohaa obj but not sh. now there must be a new way to pk3 that no one seems to now about.....
Guest

Post by Guest »

maybe this is why we have yet to see a obj map?...
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 »

There is no new way that I am aware of. All the AA object maps show up for me and even one that I testing for shifty. Havew you upgraded to 2.11?
Post Reply