←  Games Modding

Fallout Studios Forums

»

Adding sky to zero hour/changing camera an...

Pav:3d's Photo Pav:3d 14 May 2008

I hath googled for a zero sky mod or something along those lines, but to no avail, anyone know of any links?

Also, since I'm here, how do you edit the camera angles?
I'm pretty sure these are all possible

This is all for a little project o mine...

Thank you in advance anyone who helps me out!

edit: damn, missed out one subforum, soz...
Edited by Pav3d, 14 May 2008 - 21:31.
Quote

Slye_Fox's Photo Slye_Fox 14 May 2008

has it even been done before?
Quote

Pav:3d's Photo Pav:3d 15 May 2008

Yes Ive seen and read about it before

I can vaguely remember changing the camera is about editing the ini somewhere

But adding sky I cant remember
Edited by Pav3d, 15 May 2008 - 17:47.
Quote

nEGATIVE's Photo nEGATIVE 15 May 2008

In GameData.ini look for "CameraPitch = 37.5" and edit the 37.5; 90 is looking straight at the ground, 0 straight at the horizon. However, anything below 33 and it starts to chop the edges of the map off, and above 45 just looks plain weird. Don't know about sky though...
Quote

Pav:3d's Photo Pav:3d 15 May 2008

Cheers negative! Thats exactly what I was looking for :)
Quote

nEGATIVE's Photo nEGATIVE 16 May 2008

No problem... I found it in the original Hovering Crusader mod, where it was set to 50 fro some odd reason. Looked vauguely RA2ish.
Edited by nEGATIVE, 16 May 2008 - 07:51.
Quote

Rich19's Photo Rich19 16 May 2008

You're looking in the wrong place for sky. For specific maps, you need to edit the scripts to turn the skybox on. For all maps, try editing the skirmish scripts.

Basically, you need to add a script that works like this:

If true (this is the default one)

Start skybox mode. (This script is found under camera/skybox in the script menu.
Quote

Pav:3d's Photo Pav:3d 16 May 2008

Ah I see, thank you rich!

Would you mind posting a script? As I have no idea how to script maps ;)
Quote

Rich19's Photo Rich19 16 May 2008

Here ya go. Here's what you need to do with the file inside the zip:

Open the map you want to add the skybox to in worldbuilder.
Go to the edit menu (dropdown from the top bar) and click "scripts...".
Press the import scripts button, and browse to the file.
Hit ok.
Save map, and play!

Attached File(s)

Quote

Pav:3d's Photo Pav:3d 16 May 2008

Nice one, that is full of awesome, thanks for all your help guys ;)
Quote

sturmstroppe's Photo sturmstroppe 17 May 2008

How will i be able to build if i cant see in what place im building when the camera is on the ground? :wahhhhhaa:
Also, is it possible to play in skirmish in that mode?
Edited by sturmstroppe, 17 May 2008 - 19:08.
Quote

Lord Jon NOOB's Photo Lord Jon NOOB 18 May 2008

Am I doing something wrong?
I add the skybox script and saved the map.
But still no skybox! :???:
Quote

nEGATIVE's Photo nEGATIVE 18 May 2008

The skybox only appears in that particular map. And you will only be able to play online if everyone else has the same GameData.ini.
Quote

Rich19's Photo Rich19 18 May 2008

 Lord Jon NOOB, on 18 May 2008, 15:54, said:

Am I doing something wrong?
I add the skybox script and saved the map.
But still no skybox! :???:


Hmm, are you sure you added it right? Which map did you use?
Quote

Lord Jon NOOB's Photo Lord Jon NOOB 18 May 2008

I tested it with Korea VS Japan (custom map).
I downloaded it here: http://cncden.com/ge..._featured.shtml
When I add the script, it appears in neutral.

The name is: [ns A D] [E N H] Turn skybox on
Script:

*** IF ***
True.
*** THEN ***
Start skybox mode (draw sky background).

After clicking ok, I save the map.
But when I play this map, it won't work!
I don't see any sky. :P

Have I did something wrong, or didn't I understand something ...
Is the skybox the same sky as here: http://www.cncden.co...llchinav1.2.jpg
Edited by Lord Jon NOOB, 18 May 2008 - 19:14.
Quote

Lord Jon NOOB's Photo Lord Jon NOOB 20 May 2008

Can somebody upload the modified GameData.ini and a working map with sky?
Maby that explains a lot ...
Quote

Pav:3d's Photo Pav:3d 20 May 2008

Add rich's skybox script to any map and itll work
Quote

Lord Jon NOOB's Photo Lord Jon NOOB 20 May 2008

No, it doesn't! :???:
I've tryd it on ten maps. And it's still not working.

I changed some code in INIZH.big in the Gamedata.ini to:

DrawEntireTerrain = Yes
CameraHeight = 30.0
MaxCameraHeight = 100.0
MinCameraHeight = 30.0
Gravity = -32.0
HorizontalScrollSpeedFactor = 1.0
VerticalScrollSpeedFactor = 4.0
KeyboardScrollSpeedFactor = 4.0
MaxTerrainTracks = 150

Do I have to change the following to get the skybox working?:

DrawSkyBox = Yes
SkyBoxPositionZ = -100.0 ; lowers center of skybox under terrain
SkyBoxScale = 8.5 ; good for default 96 x 96 map, make 17.5 for 256x256

Thanks anyway for helping! :)
Quote

Lord Jon NOOB's Photo Lord Jon NOOB 24 May 2008

Still not working ...
This is working on my nerves! :nurse:
Maby I need to reinstall?!
Or doesn't this work with all maps?
Can somebody help me, please?
Quote

Kris's Photo Kris 24 May 2008

Make a "map.ini" and put it on the map's folder. Open Map.ini and add this:

WaterTransparency
  SkyboxTextureN = TSMorningN.tga
    SkyboxTextureE = TSMorningE.tga
    SkyboxTextureS = TSMorningS.tga
    SkyboxTextureW = TSMorningW.tga
    SkyboxTextureT = TSMorningT.tga
End


You can change the texture of the skybox by using that code.
Quote

Lord Jon NOOB's Photo Lord Jon NOOB 25 May 2008

Ok.
Thanks all for helping.
But nothing works. :???:
I'm going to remove Zero Hour and reinstall it.

I've done the folowing things in GameData.ini:

DrawEntireTerrain = Yes

DrawSkyBox = Yes
SkyBoxPositionZ = -100.0 ; lowers center of skybox under terrain
SkyBoxScale = 17.5 ; good for default 96 x 96 map, make 17.5 for 256x256
CameraPitch = 10
CameraYaw = 0.0
CameraHeight = 30.0
MaxCameraHeight = 100.0
MinCameraHeight = 30.0

I've add the script to the map I want to play with the skybox (Korea VS Japan).
And saved the map.

And I've add the code to map.ini in the map dir.

Results ... No skybox! ;)
See also my screen.

Jon

Attached File(s)


Edited by Lord Jon NOOB, 25 May 2008 - 09:51.
Quote

Lord Jon NOOB's Photo Lord Jon NOOB 25 May 2008

Okey. I have completely removed my Zero hour and Generals and I reinstalled them.
I have only edited the camera position in GameData.ini.
Edited the maps.
And I added the map.ini script.

I tested this on differend maps and gues what?!
NO SKY BOX!!! Arrrggggg!!! :stickattack2:
Can somebody post a map and edited GameData.ini that works?
Please? I'm driving crazy! :wahhhhhaa:

Jon
Quote

Kris's Photo Kris 25 May 2008

Posted Image
Skybox in a skirmish map =o ! (Added by NOT using Rich's script, I made my own. :P
Edited by Chris, 25 May 2008 - 18:05.
Quote

Jazzie Spurs's Photo Jazzie Spurs 25 May 2008

Nice work Chris :P
Quote

tigs's Photo tigs 25 May 2008

 Chris, on 25 May 2008, 12:56, said:

Posted Image
Skybox in a skirmish map =o ! (Added by NOT using Rich's script, I made my own. :P


Nice picture! :D
Edited by tigs, 25 May 2008 - 18:25.
Quote