Jump to content


2.0.3 Camera Development -- file breakdown


  • Please log in to reply
32 replies to this topic

pigeon_kicker #21 Posted 12 February 2018 - 10:43 AM

    Second Lieutenant

  • Open Beta Tester
  • 259 battles
  • 1,457
  • [SF] SF
  • Member since:
    08-04-2013

I think that those two files i had mentioned earlier play a bigger part than first thought.

 

In the C:\Games\World_of_Warplanes\res\scripts\db\curves folder there are two XML files.

  • camera_duration_from_speed.xml
  • camera_position_from_speed.xml

 

First number in the line i think stands for the amount of movement, second is the time scale.

Each of the two files are only 6 lines or so long.


If you want to make god laugh, tell him about your plans for survival..

Lead developer for the NACCW web site. Author of the Pigeon Pak Mod Installer

www.team-sf.com

 

 


pigeon_kicker #22 Posted 12 February 2018 - 01:56 PM

    Second Lieutenant

  • Open Beta Tester
  • 259 battles
  • 1,457
  • [SF] SF
  • Member since:
    08-04-2013

Looking into the res/scripts/db/curve folder more.

It appears that this is a scalable setting area for the camera-center-slide effects, alot of effect files that match up to the game the more and more i look at it.

camera_position_from_speed.xml

 This is my first guess on which one changes the BOOST EFFECT in the cameras

4 sets, first set is throttle down i think, second normal, then boost, and last blown motor...

Moving you farther away from the aircraft with a larger number

 

<camera_position_from_speed.xml>
  <name>camera_position_from_speed</name>
  <cubic> true </cubic>
  <points>
    <pt> 0.000802 0.012000 </pt>
    <pt> 0.323238 0.156000 </pt>
    <pt> 0.552021 0.874000 </pt>
    <pt> 1.000000 1.000000 </pt>
  </points>
</camera_position_from_speed.xml>

 

camera_duration_from_speed.xml

 I think this one controls how long it lasts, higher number is faster.

 

<camera_duration_from_speed.xml>
  <name>camera_duration_from_speed</name>
  <cubic> true </cubic>
  <points>
    <pt> 0.000860 0.500000 </pt>
    <pt> 0.329608 0.920000 </pt>
    <pt> 1.000000 1.000000 </pt>
  </points>
</camera_duration_from_speed.xml>

 

 


Edited by pigeon_kicker, 12 February 2018 - 01:59 PM.

If you want to make god laugh, tell him about your plans for survival..

Lead developer for the NACCW web site. Author of the Pigeon Pak Mod Installer

www.team-sf.com

 

 


mnbv_fockewulfe #23 Posted 12 February 2018 - 09:41 PM

    First Lieutenant

  • Member
  • 148 battles
  • 2,065
  • [3NIC] 3NIC
  • Member since:
    12-06-2013

I've tried everything I could with those files.

I tried setting everything to <pt> 0.0 0.0 </pt> and the in both files and I still had the zoom without any change. I tried placing them in both the res folder and the res_mods folder.

Have you gotten any results with it PK?

edit: I'm fairly convinced it's a FoV change, not a position one. When looking right with the hat switch, the zoom happens, but the camera does not move forward or backward along the Z axis. It must be a FoV increase/decrease based on speed.


 

edit2: ok, when setting the camera position in the aircrafts_camera_presets.xml, to

<position>0 0 0</position>

it causes the camera to "fix" in place and not travel with the plane anymore (i.e. at the end of the battle when the plane flies away from the camera). In this mode, the camera doesn't experience any changes in position or field of view. If it were possible for use to return the camera to a "follow aircraft" state with a 0 0 0 position, it just might solve my problem.


 

Zap, if you could make a post on the RU forum inquiring about this, they might be able to help (it's alright to make a post in English over there from what I understand).


Edited by mnbv_fockewulfe, 12 February 2018 - 11:39 PM.

Be sure to check your logic privileges before posting on the forum.

 

mnbv_fockewulfe.png


 


SkyWolf__WM #24 Posted 13 February 2018 - 08:19 PM

    Captain

  • Closed Beta Tester
  • 1520 battles
  • 3,870
  • [GW__S] GW__S
  • Member since:
    07-13-2012
I'm too stupid to care about the cam stuff. I just want cool skins and HUD.
***************Fail to Suck****************

I shall use my aircraft and my skill to slightly inconvenience mine enemies.


mnbv_fockewulfe #25 Posted 13 February 2018 - 10:01 PM

    First Lieutenant

  • Member
  • 148 battles
  • 2,065
  • [3NIC] 3NIC
  • Member since:
    12-06-2013

View PostSkyWolf__WM, on 13 February 2018 - 08:19 PM, said:

I'm too stupid to care about the cam stuff. I just want cool skins and HUD.

 

If you have nothing to contribute, then go away worthless piece of floating debris and water vapor. :trollface:

Be sure to check your logic privileges before posting on the forum.

 

mnbv_fockewulfe.png


 


pigeon_kicker #26 Posted 14 February 2018 - 06:41 PM

    Second Lieutenant

  • Open Beta Tester
  • 259 battles
  • 1,457
  • [SF] SF
  • Member since:
    08-04-2013

View Postmnbv_fockewulfe, on 13 February 2018 - 05:01 PM, said:

 

If you have nothing to contribute, then go away worthless piece of floating debris and water vapor. :trollface:

 


If you want to make god laugh, tell him about your plans for survival..

Lead developer for the NACCW web site. Author of the Pigeon Pak Mod Installer

www.team-sf.com

 

 


SkyWolf__WM #27 Posted 15 February 2018 - 04:53 PM

    Captain

  • Closed Beta Tester
  • 1520 battles
  • 3,870
  • [GW__S] GW__S
  • Member since:
    07-13-2012

View Postmnbv_fockewulfe, on 13 February 2018 - 05:01 PM, said:

 

If you have nothing to contribute, then go away worthless piece of floating debris and water vapor. :trollface:

 

I have a terminal degenerative brain disease, a non terminal brain disease, and I have had 8 ischemic strokes in the last two years. I AM to stupid to use camera mods. I do appreciate the other features of the mod pack.

So KMA.


***************Fail to Suck****************

I shall use my aircraft and my skill to slightly inconvenience mine enemies.


mnbv_fockewulfe #28 Posted 16 February 2018 - 04:16 PM

    First Lieutenant

  • Member
  • 148 battles
  • 2,065
  • [3NIC] 3NIC
  • Member since:
    12-06-2013

View PostSkyWolf__WM, on 15 February 2018 - 04:53 PM, said:

 

I have a terminal degenerative brain disease, a non terminal brain disease, and I have had 8 ischemic strokes in the last two years. I AM to stupid to use camera mods. I do appreciate the other features of the mod pack.

So KMA.

 

My apologies, I meant the post in jest. Hence the troll face and the rather uninsulting insult (I called you a cloud). I'd like to keep this thread drama free and I do realize I started it.

Edited by mnbv_fockewulfe, 16 February 2018 - 04:25 PM.

Be sure to check your logic privileges before posting on the forum.

 

mnbv_fockewulfe.png


 


pigeon_kicker #29 Posted 16 February 2018 - 07:04 PM

    Second Lieutenant

  • Open Beta Tester
  • 259 battles
  • 1,457
  • [SF] SF
  • Member since:
    08-04-2013
:facepalm:

If you want to make god laugh, tell him about your plans for survival..

Lead developer for the NACCW web site. Author of the Pigeon Pak Mod Installer

www.team-sf.com

 

 


mnbv_fockewulfe #30 Posted 19 February 2018 - 07:59 PM

    First Lieutenant

  • Member
  • 148 battles
  • 2,065
  • [3NIC] 3NIC
  • Member since:
    12-06-2013

In camera.pyc


 

def onEnterSideView(self, stateData, cameraFreezed):
        if cameraFreezed:
            if self.getState() != CameraState.FreeFixable:
                self.setState(CameraState.FreeFixable)
            self.__cameraStateMachine.updateStateAttr(CameraState.FreeFixable, 'rotationPower', stateData[1])
        else:
            state = stateData[0]
            self.setState(state)


 

I feel like this means when z position is set to zero it'll fix the camera in place.

I don't know enough python to interpret this correctly.


Be sure to check your logic privileges before posting on the forum.

 

mnbv_fockewulfe.png


 


mnbv_fockewulfe #31 Posted 20 February 2018 - 09:08 PM

    First Lieutenant

  • Member
  • 148 battles
  • 2,065
  • [3NIC] 3NIC
  • Member since:
    12-06-2013

confirmed by comunication edited

The zooming of the camera is controlled by this file.

CameraStrategyLegasyProxy.py

now to find the lines in it that affect it.


Edited by mnbv_fockewulfe, 21 February 2018 - 12:37 PM.

Be sure to check your logic privileges before posting on the forum.

 

mnbv_fockewulfe.png


 


mnbv_fockewulfe #32 Posted 20 February 2018 - 11:59 PM

    First Lieutenant

  • Member
  • 148 battles
  • 2,065
  • [3NIC] 3NIC
  • Member since:
    12-06-2013

There are these two terms that seem to be related.

There is a "forsage" effect and a "brake" effect that have a FoV multiplier attached to them.

forsage.maxFovMultiplier = 1.1

brake.maxFovMultiplier = 0.9

while brake is obvious, the meaning of forsage is less so. As far as I can find out, forsage is an archaic word in a Germanic language meaning, "forsake". In the context of the game, I think it means to apply boost.

edit: anyone know how to recompile a .pyc_dis?

this one looks promising too.

speed.maxPositionSettings.planeDistance = -2


Edited by mnbv_fockewulfe, 21 February 2018 - 12:02 AM.

Be sure to check your logic privileges before posting on the forum.

 

mnbv_fockewulfe.png


 


mnbv_fockewulfe #33 Posted 21 February 2018 - 12:14 AM

    First Lieutenant

  • Member
  • 148 battles
  • 2,065
  • [3NIC] 3NIC
  • Member since:
    12-06-2013


Be sure to check your logic privileges before posting on the forum.

 

mnbv_fockewulfe.png


 





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users