Change the default camera rotation?

melcher kürzer

Explorer
Joined
Aug 23, 2008
Messages
172
Location
Europe
Hey guys.
I really need your help. My goal is to play the game in a true isometric view (45 degree left or right). I will rotate all buildungs, improvements, light, etc. to fit the new view.
Easy so far.
Problem is i need to rotate the camera view to show the isometric view by default (normally you get this perspective by hitting ctrl+arrow key), so you get this perspective automatically when you start a new game or load a savegame.

I can't figure out how to rotate the camera by default myself. But i'm pretty sure it should be possible via python or the dll. Any advice or help? Please.
 
Unfortanely I never messed up with these before
Will look into it, but I probably won't be able to solve this anytime soon...
 
Hurray, Absinthe my hero!:D
No need to rush or solve the problem entirely. Sometimes i just need a poke in the right direction. So a hint where i have to look at may be enough and highly appreciated.
 
melcher kürzer;10768766 said:
Hurray, Absinthe my hero!:D
No need to rush or solve the problem entirely. Sometimes i just need a poke in the right direction. So a hint where i have to look at may be enough and highly appreciated.

Ehh, don't get your hopes too high :/
Right now I also don't have any idea where to look for it, so really, no promises
But maybe if we both look, we double the chances :)
Btw, I assume you need this for the Colonization mod
 
Ehh, don't get your hopes too high :/
Right now I also don't have any idea where to look for it, so really, no promises
But maybe if we both look, we double the chances :)
Btw, I assume you need this for the Colonization mod

Don't worry. I will find a solution. I needed almost 5 years to figure out what annoys me so much about the civ 4 graphic. It's just the perspective. This stupid topview is more like civ 1. Now nothing can hold me.

And i have an idea where i (or we) have to look at. I find out the Afterworld-mod for Bts uses a diffrent angle aswell. No .dll, so i must be possible via Python. Maybe they use an event, i have thought about that too (calender research in civ 4). But i'm not sure if it would work with load/save.

And yes, it's for Colonization. But not for the official TAC-Version, more for my own variant.

Here is an example on how i want the game to look like:
Spoiler :

attachment.php
 

Attachments

  • iso.jpg
    iso.jpg
    455.3 KB · Views: 1,218
There are values in the GlobalDefeins.xml file relating to camera settings, almost all are prefixed with the word "camera". There is not, as far as I can tell, a setting for a default angle. There are settings for a min and max angle (CAMERA_MIN_YAW and *_MAX_YAW, I think). I'm thinking that if the min and max are both 45 then perhaps it will force a 45 degree angle. Or, if you are really lucky, it could use an angle hlaf way between the two in which case setting them to 0 and 90 would allow you to have a 45 default and still keep the ability to change the angle by 45 degrees in either direction to get a different look (or let you click on the city when it is blocked by a ship, for example). Note: I have not tried any of this.
 
There are values in the GlobalDefeins.xml file relating to camera settings, almost all are prefixed with the word "camera". There is not, as far as I can tell, a setting for a default angle. There are settings for a min and max angle (CAMERA_MIN_YAW and *_MAX_YAW, I think). I'm thinking that if the min and max are both 45 then perhaps it will force a 45 degree angle. Or, if you are really lucky, it could use an angle hlaf way between the two in which case setting them to 0 and 90 would allow you to have a 45 default and still keep the ability to change the angle by 45 degrees in either direction to get a different look (or let you click on the city when it is blocked by a ship, for example). Note: I have not tried any of this.

You are awesome!:D
Thanks a lot. These settings aren't in the colonization GlobalDefines, but it's no problem to add them. No wonder i didn't find it.:D
And you are right, 45/45 will fore a 45 degree angle. But when you scroll you will get instantly a blackscreen. And i get lucky, it seeems the game uses MIN_YAW and MAX_YAW for the leftarrow+ctrl command and the rightarrow+ctrl command. The default angle is indeed choosen automatically between them. So using 30/60 do the trick.

Thanks again, this is so awesome!
 
Glad to see you guys have solved this :goodjob:
 
Back
Top Bottom