Page 1 of 1

black skys and 1 spawn point

Posted: Wed Jan 29, 2003 11:08 am
by richb
Can anyone please help i am not sure that i am in the corrct forum but here goes anyway, i have never created a map and at the present time i am not going to. but i get a problem when i download some maps, the sky is black, and on other maps when we enter the game we spawn in the same place can anyone shed some light please !!!!!!!!!!!

just to let you know i play on a LAN with 8 other people. we have AA and Spearhead.

any info would be much appreciated.

:cry:

Posted: Wed Jan 29, 2003 12:28 pm
by Innkeeper
The black sky problem is with custom maps run in Spearhead. You must increase the detail level in the game so that it will show up. If you are not using Spearhead, hmmm.... I have no clue.

Re: black skys and 1 spawn point

Posted: Wed Jan 29, 2003 12:40 pm
by mohaa_rox
richb wrote:Can anyone please help i am not sure that i am in the corrct forum but here goes anyway,
Of course you're in the right forum. :wink:

Posted: Tue Feb 25, 2003 10:47 pm
by panTera
i know this is an (pretty) old thread and in the wrong forum (should be scripting), but as I didn't want to start a new topic I'll just post it here.

About that black sky problem in SH, this is a cut & paste from a post on TMT:

Joe wrote:
?I am quite sure that by now you have seen something about the black sky problem with custom maps in Spearhead. I am also sure you know that by turning the graphics settings up to 32 bit, this will fix the problem. But on slower computers this would cause very poor fps, and make it hard to play.

I have been reading through the .scr files for the original maps in Allied Assault and Spearhead, and came across something you may find interesting. Below is the .scr for mohdm2 taken from Spearhead. Have a look at the bold text.

**************************************************
****

// DESTROYED VILLAGE
// ARCHITECTURE: NED
// SCRIPTING: NED

main:

// set scoreboard messages
setcvar ?g_obj_alliedtext1? ?Destroyed Village?
setcvar ?g_obj_alliedtext2? ??
setcvar ?g_obj_alliedtext3? ??
setcvar ?g_obj_axistext1? ??
setcvar ?g_obj_axistext2? ??
setcvar ?g_obj_axistext3? ??
setcvar ?g_scoreboardpic? ?mohdm2?

// call additional stuff for playing this map round based is needed

if(level.roundbased)
thread roundbasedthread

level waittill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level.script = maps/dm/mohdm2.scr
exec global/ambient.scr mohdm2

level waittill spawn

$world farclipoverride -1 (This line is not present in the Allied Assault .scr files, only in Spearhead)

end

//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

level waittill spawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end

**************************************************
***************

What I have discovered so far is that if you add this line to your .scr, the skies work just fine in Spearhead without increasing your graphics settings. But, if your map has fog and you add this line, the fog will work in Spearhead but not Allied Assault. The only change I have noticed in maps without fog is they seem to be a bit brighter.
So I am thinking that for maps that do not have fog and that are created for Allied Assault, you could add that line to the .scr, and it would be playable in Allied Assault and Spearhead.

If the map has fog and is created for Allied Assault, you would need to make 2 .scr files, one for Allied Assault WITHOUT adding that line, and one for Spearhead WITH that line added. Then make a second pk3 file for Spearhead with the same file structure (maps/dm) and place only this special .scr in it. (And of course this one would go in the mainta folder).

If the map is created to be played in Spearhead only, just add the line to the .scr. I have tested this very little, but I have seen no problems so far. Has anyone else tried this?"

maplesapt@hotmail.com > Joe

Re: black skys and 1 spawn point

Posted: Wed Feb 26, 2003 8:42 am
by jv_map
mohaa_rox wrote:
richb wrote:Can anyone please help i am not sure that i am in the corrct forum but here goes anyway,
Of course you're in the right forum. :wink:
It was in map reviews forum first. ;)

Oh and good info Pantera.