Jump to content


Adding sky to zero hour/changing camera angles


33 replies to this topic

#1 Pav:3d

    YOUR WORLDS WILL BECOME OUR LABORATORIES

  • Project Leader
  • 7224 posts
  • Projects: EC, CORE, ER

Posted 14 May 2008 - 21:30

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.


Posted Image

Posted Image

#2 Slye_Fox

    FOXTec Leader

  • Project Leader
  • 2351 posts
  • Projects: CnC: Condition Red, Sigma Invasion, Armoured Sky: Ethereal Dawn

Posted 14 May 2008 - 22:05

has it even been done before?
Posted Image

#3 Pav:3d

    YOUR WORLDS WILL BECOME OUR LABORATORIES

  • Project Leader
  • 7224 posts
  • Projects: EC, CORE, ER

Posted 15 May 2008 - 17:40

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.


Posted Image

Posted Image

#4 nEGATIVE

    Visitor

  • Member
  • 38 posts

Posted 15 May 2008 - 18:21

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...
Don't worry sir, I have a punning clan...

#5 Pav:3d

    YOUR WORLDS WILL BECOME OUR LABORATORIES

  • Project Leader
  • 7224 posts
  • Projects: EC, CORE, ER

Posted 15 May 2008 - 18:56

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

Posted Image

Posted Image

#6 nEGATIVE

    Visitor

  • Member
  • 38 posts

Posted 16 May 2008 - 07:51

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.

Don't worry sir, I have a punning clan...

#7 Rich19

    I challenge thee!

  • Member
  • 1478 posts
  • Projects: Duelling

Posted 16 May 2008 - 10:28

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.

#8 Pav:3d

    YOUR WORLDS WILL BECOME OUR LABORATORIES

  • Project Leader
  • 7224 posts
  • Projects: EC, CORE, ER

Posted 16 May 2008 - 10:55

Ah I see, thank you rich!

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

Posted Image

Posted Image

#9 Rich19

    I challenge thee!

  • Member
  • 1478 posts
  • Projects: Duelling

Posted 16 May 2008 - 11:15

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)



#10 Pav:3d

    YOUR WORLDS WILL BECOME OUR LABORATORIES

  • Project Leader
  • 7224 posts
  • Projects: EC, CORE, ER

Posted 16 May 2008 - 11:20

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

Posted Image

Posted Image

#11 sturmstroppe

    Visitor

  • Member
  • 47 posts

Posted 17 May 2008 - 14:32

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.


#12 Lord Jon NOOB

    Amateur

  • Member
  • 132 posts

Posted 18 May 2008 - 14:54

Am I doing something wrong?
I add the skybox script and saved the map.
But still no skybox! :???:
AMD Athlon x64 X2 6000+ 3.1GHz
ATI radeon HD 4850 (1024 mb DirectX 10.1)
4 GB RAM ddr2
Windows 7 64 bit (build 7600)
500 watts power supply
1,25 TB disk space

#13 nEGATIVE

    Visitor

  • Member
  • 38 posts

Posted 18 May 2008 - 16:50

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.
Don't worry sir, I have a punning clan...

#14 Rich19

    I challenge thee!

  • Member
  • 1478 posts
  • Projects: Duelling

Posted 18 May 2008 - 17:06

View PostLord 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?

#15 Lord Jon NOOB

    Amateur

  • Member
  • 132 posts

Posted 18 May 2008 - 19:09

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.

AMD Athlon x64 X2 6000+ 3.1GHz
ATI radeon HD 4850 (1024 mb DirectX 10.1)
4 GB RAM ddr2
Windows 7 64 bit (build 7600)
500 watts power supply
1,25 TB disk space

#16 Lord Jon NOOB

    Amateur

  • Member
  • 132 posts

Posted 20 May 2008 - 14:35

Can somebody upload the modified GameData.ini and a working map with sky?
Maby that explains a lot ...
AMD Athlon x64 X2 6000+ 3.1GHz
ATI radeon HD 4850 (1024 mb DirectX 10.1)
4 GB RAM ddr2
Windows 7 64 bit (build 7600)
500 watts power supply
1,25 TB disk space

#17 Pav:3d

    YOUR WORLDS WILL BECOME OUR LABORATORIES

  • Project Leader
  • 7224 posts
  • Projects: EC, CORE, ER

Posted 20 May 2008 - 14:58

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

Posted Image

Posted Image

#18 Lord Jon NOOB

    Amateur

  • Member
  • 132 posts

Posted 20 May 2008 - 16:22

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! :)
AMD Athlon x64 X2 6000+ 3.1GHz
ATI radeon HD 4850 (1024 mb DirectX 10.1)
4 GB RAM ddr2
Windows 7 64 bit (build 7600)
500 watts power supply
1,25 TB disk space

#19 Lord Jon NOOB

    Amateur

  • Member
  • 132 posts

Posted 24 May 2008 - 13:20

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?
AMD Athlon x64 X2 6000+ 3.1GHz
ATI radeon HD 4850 (1024 mb DirectX 10.1)
4 GB RAM ddr2
Windows 7 64 bit (build 7600)
500 watts power supply
1,25 TB disk space

#20 Kris

    <Custom title available>

  • Project Team
  • 3825 posts

Posted 24 May 2008 - 13:44

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.







#21 Lord Jon NOOB

    Amateur

  • Member
  • 132 posts

Posted 25 May 2008 - 09:50

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.

AMD Athlon x64 X2 6000+ 3.1GHz
ATI radeon HD 4850 (1024 mb DirectX 10.1)
4 GB RAM ddr2
Windows 7 64 bit (build 7600)
500 watts power supply
1,25 TB disk space

#22 Lord Jon NOOB

    Amateur

  • Member
  • 132 posts

Posted 25 May 2008 - 10:53

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
AMD Athlon x64 X2 6000+ 3.1GHz
ATI radeon HD 4850 (1024 mb DirectX 10.1)
4 GB RAM ddr2
Windows 7 64 bit (build 7600)
500 watts power supply
1,25 TB disk space

#23 Kris

    <Custom title available>

  • Project Team
  • 3825 posts

Posted 25 May 2008 - 17:56

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.








#24 Jazzie Spurs

    [Pantsu-Dan]

  • Project Team
  • 4073 posts
  • Projects: Commanding the ECA 33rd Ground Assault Team.

Posted 25 May 2008 - 17:59

Nice work Chris :P

Posted Image
Posted Image
Posted ImageBlack Lagoon OST
Posted Image

#25 tigs

    Casual

  • Member
  • 77 posts

Posted 25 May 2008 - 18:23

View PostChris, 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.

Posted ImagePosted Image
Posted Image
Posted Image



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users