Jump to content

Recommended Posts

Posted

Hey All,

Probably not the forum, but where I do not know...

Today I thought that I might edit my head position for the A-10C_2.  In the past I had simply edited C:\Users\%name%\Saved Games\DCS.openbeta\Config\View\SnapViews.lua.  Today however, my edits to this file did not make it into the game.

SnapView 01.gif

So I tried turning off User Snap-View Saving and indeed my head position reverted to the default position.  But, this is not the position that I want.  So I turned User Snap-View Saving back on.  It was still not reading my newly edited file.  I restarted the game and it was still not working correctly.

Next I saved a back-up and then deleted C:\Users\%name%\Saved Games\DCS.openbeta\Config\View\SnapViews.lua.  I restarted the game again, and a funny thing happened.  It was still using the original head position from before I tried to edit it.

This leads me to believe that C:\Users\%name%\Saved Games\DCS.openbeta\Config\View\SnapViews.lua is not being read by the game on start up nor is it required to determine the last used version of C:\Users\%name%\Saved Games\DCS.openbeta\Config\View\SnapViews.lua.  And that, it must be using a copy of this file from some where else.

So...

How to I force the game to re-read C:\Users\%name%\Saved Games\DCS.openbeta\Config\View\SnapViews.lua so that I can once again edit my head position for the A-10C_2?

SnapView 02.gif

SnapView 03.gif

SnapView 04.gif

Thanks in advance,

Caldera

Posted
6 minutes ago, Caldera said:

I had thought this was the forum to get ED help.  I must have been wrong.

 

I think that this Sub-Forum was meant to place game Tutorials.

6 minutes ago, Caldera said:

Anyone suggest where I should post this question?

 

Since the problem happens with the A-10C II, I would have placed it on that Sub-Forum:

 

https://forums.eagle.ru/forum/149-dcs-a-10c-ii-tank-killer/

 

Can you attach your dcs.log file to gather more clues about your issue?

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted

Rudel,

After messing with this the better part of an afternoon and getting frustrated enough to try for help here, well...

I really have no clue, but it started working again.  It baffles me how DCS can load data from a file this has been deleted.

The only thing that I can think of is that it is somehow related to the UH-1H which I flew in between times.  Just to take a break from the A-10C frustrating me.

Thanks again,

Caldera

  • Like 1
Posted
On 12/8/2021 at 12:50 AM, Rudel_chw said:

I think that this Sub-Forum was meant to place game Tutorials.

Please...

 

Having said that editing lua of own snapview file is nowhere near new user problems. It is also rarely done by veterans. Both facts affect your number of responses.

I'd also try searching the forums thoroughly.

  • Like 1

🖥️ Win10  i7-10700KF  32GB  RTX4070S   🥽 Quest 3   🕹️ T16000M  VPC CDT-VMAX  TFRP   ✈️ FC3  F-14A/B  F-15E   ⚙️ CA   🚢 SC   🌐 NTTR  PG  Syria

Posted (edited)

You find every detail of this matter in this thread 

DCS definitely reads the snapview.lua. The values there must not collide with the server.lua though.

From time to time there can be issues with certain modules, which are usually covered in the above thread.

Note that most modules (probably all) have a default views.lua in the master game directory…

So DCS is not reading from a „deleted“ lua, but falls back to a default set of settings.

 

Edit: If you edit the snapview.lua by hand (which I strongly support), make sure, you are in the 

a) right aircraft

b) right cockpit

c) right snapview (default)

Make sure your values are reasonable and that you don’t mess up . and ,

You can adjust your cockpit position in the game by using the numpad and save your result as a user snapview, and then fine tune it by hand by editing the.lua.

Edited by Hiob
  • Like 1

"Muß ich denn jedes Mal, wenn ich sauge oder saugblase den Schlauchstecker in die Schlauchnut schieben?"

Posted (edited)

Thanks Guys,

I am fairly experienced at editing SnapViews.lua as all of the views that I currently use are manually edited. They often do not resemble the default view much at all. 

That is actually the part that is still baffling me.  As the views that I was getting were not the default views, but in fact my edited views even with SnapViews.lua deleted.

Caldera

Edited by Caldera
  • 5 weeks later...
Posted

Hey All,

I think that I finally figured this out.  I do not know why nor how, but I believe that there are times when the SnapView config gets saved and loaded in with a mission file. 

I had been trying to change my head position in the Huey and I had been having not much luck.  I was using a custom mission that I had created for training to test changes.  No matter what I did the head position would not change.  I even deleted the SnapViews.lua file and that did not work.  I could not get the snap view to save using LALT NUM0.  It would seem to save the head position, but if I exited and re-entered this mission the head position was not changing.  I restarted the mission over and over.  I could not get it to change by manually editing the lua file either.

This is the head position in my "offending" custom mission and this is how it stayed no matter what I tried.  From this mission I saved a head position using LALT NUM0.

SnapView 05.gif

This is the Cold and Dark training mission.  This is the head position that I had saved.

SnapView 06.gif

This is another custom mission that I made to test my theory.  It is the exact same as the offending mission, but created new.  I had made no changes to the snap views.

SnapView 07.gif

As you can see there is quite a difference.  All three photos were taken after I saved a new head position, made no changes to the snap views and then entered the mission.  From my experience the UH-1H is not the only module that can be effected.   Going back to my original topic, the A-10C ii must have been effected the very same way. 

Anyone have a clue how to prevent this from happening?

I have attached the offending mission file.

Caldera

099-CAU-07-UH1 TRAINING.miz

Posted (edited)
40 minutes ago, Caldera said:

Anyone have a clue how to prevent this from happening?

I have attached the offending mission file

 

Hi,

Your mission seems to have been created by renaming a track file into a .MIZ one .. or it´s edited based on a previous version. A MIZ file is just a compressed set of files and folders, here is the content of your mission:

 

a8FnwrN.jpg

 

The track and track_data folders, are ones that allow one to have a track replay of this mission ... a native mission created with the Mission Editor does not have those two folders.

As I said, this mission seems to have been created by renaming a DCS Track file, and this one in particular seems to be a Track File of a Multiplayer mission. Many multiplayer servers force a specific DCS configuration for every client using the mission .. that data is on the Config and Scripts folder. For example, this is the data contained within /Config/View/ folder:

 

kO80RLp.jpg

 

You can remove all these extraneous folders, from within the MIZ file using a compressor tool, like WinRar .. this is how the mission looks without them:

 

kaj1Gvk.jpg

 

Just tested the modified mission, and I have no problem editing the View from this:

 

HkF9kP4.jpg

 

to this:

 

8gqH7BK.jpg

 

Eduardo.

 

099-CAU-07-UH1 TRAINING (by Caldera).miz

Edited by Rudel_chw
  • Like 1

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted

Rudel,

Thanks! 

I did notice when I replayed this mission over and over again, occasionally it would start as a track file and confuse the heck out of me.  I don't know how to create a mission from a track file so I must have done it by accident.  This mission was most likely created using "save as" from a mission that I had already created.  I need to look at my mission files I guess.  Others could be hosed up as well.

How does one intentionally create a mission from a track file? 

Why would you do it?

Caldera

Posted
Just now, Caldera said:

How does one intentionally create a mission from a track file? 

 

Easy ... just rename the .TRK file to a .MIZ file ... internally Tracks and Missions are exactly the same (besides the extra folders of the Tracks)

 

Just now, Caldera said:

Why would you do it?

 

Many people that enter an MP Server, want to have a copy of the mission so that they can practice it off-line and then return to the server with more experience. 

Mission authors usually don't like this, as it makes it easy to create similar missions without crediting the original author. So, lately there is a trend towards missions that store their logic within Scripts, to make it harder for another person to modify the mission.

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted

Rudel,

I did none of the above.  I do not know how it got that way. 

Attached is the first mission that I ever made and it has a long line of modifications that I did to it.  It is also like the base for the troubles I am seeing now.  This is not a copy from multiplayer game.  When I first started playing the DCS I used this same mission, in different forms, to do allot of practicing.  I modified it with many times with "Save As".  I knew that something was wrong however, as the load and save time for it is much longer than normal.  I stopped using it as my base mission after I noticed that.

I have 7-Zip and used it just now to open my miz files. That seems to work OK.  Is that program OK?

Caldera

 

001-CAU-01-A10 BATUMI GAMBLE.miz

Posted
16 minutes ago, Caldera said:

 I modified it with many times with "Save As". 

 

Yes, "Save As" will replicate all the contents of the old mission onto the new ... if you create all your missions that way it can explain why most of your missions contain those folders (like the one you attached has)

 

16 minutes ago, Caldera said:

I knew that something was wrong however, as the load and save time for it is much longer than normal. 

 

Correct,  notice that the "Track" folder on your missions can be quite large.

 

16 minutes ago, Caldera said:

I have 7-Zip and used it just now to open my miz files. That seems to work OK.  Is that program OK?

 

Any good compression utility should work, but I have no experience with 7-zip, as I prefer WinRar because of it easier interface even if it's not free.

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted
2 hours ago, Caldera said:

I have 7-Zip and used it just now to open my miz files. That seems to work OK.  Is that program OK?

Yep, it's great.

🖥️ Win10  i7-10700KF  32GB  RTX4070S   🥽 Quest 3   🕹️ T16000M  VPC CDT-VMAX  TFRP   ✈️ FC3  F-14A/B  F-15E   ⚙️ CA   🚢 SC   🌐 NTTR  PG  Syria

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...