Jump to content
The simFlight Network Forums

Help with modifications, 737 NGX and LUA


Recommended Posts

Below is a message from someone about info on how to set the sliding and/or braking effects on the NGX how can i set this up without using the ground friction?


 


 


The problem with using the FSUIPC mod with the NGX is that PMDG have already adjusted engine thrust at low N1 so that taxiing thrust and breakaway thrust are representative. This compensates for the higher friction. If you apply friction is reduced so now the engine thrust is too high and the aircraft will roll with very little extra thrust.  On system with the mod enabled, the fully loaded -700 won't move at idle but begins to move at 22% N1.


 


However it's still worth using the mod because the lateral tyre forces and contaminated runway effects are much improved. I use the unregistered version, but with the Lua mod and a registered FSUIPC you can adjust the effects and choose which you want to use. So you could keep the rolling friction as it is and have the modified sliding and/or braking effects. Best of both worlds.


 

Link to comment
Share on other sites

 

Below is a message from someone about info on how to set the sliding and/or braking effects on the NGX how can i set this up without using the ground friction?

 

You need to adapt the Lua program so that it only adjusts the sliding frictions.  Just delete the lines which SetFriction for "ROLLING". The "RestoreFriction" at the start will put the FS defaults back for the rest. Take a look at the file -- it's plain text. Edit it with NotePad or similar, NOT WordPad or any word processing program.

 

Pete

Link to comment
Share on other sites

To be honest i'm not sure what i'm doing here, thats why i posted. Any guides?

 

Find the frictions lua file in your FS Modules folder. Load it into an editor. delete all lines containing "ROLLING". Save it. That's it. Can't explain it any simpler than that. Have you never edited a file before, ever? :-(

 

Pete

Link to comment
Share on other sites

Haha yeh of course just wasn't sure what file hehe

Where will i place the saved friction file once its done? Will i need to extract it...

 

Back to the Modules folder. I thought you were already using it? You are only modifying the file you are already using, surely. Didn't you say you'd added it into the Modules folder, and the lines to load it into the FSUIPC4.INI fioe. Or was that someone different?

 

[LATER]

 

No, it was you, in a different thread: Here

 

Driver170, on 05 Jan 2015 - 5:06 PM, said:snapback.png

I have added that line in FSUIPC.INI and also moved that file to the modules folder? Is that correct?

 

and i said

 

"You enabled the Lua friction file? that will explain differences in rolling resistance, for sure!  You'd need to undo that, and also make sure that "PatchSIM1friction=No" is set in the [General] section of the FSUIPC4.INI file -- else default frictions will be changed automatically too."

 

So you MUST know which file and where it is!!!

 

Pete

Link to comment
Share on other sites

this is what i have done

 

placed this  "PatchSIM1friction=No"

 

and Find the frictions lua file in your FS Modules folder. Load it into an editor. delete all lines containing "ROLLING"

 

is that all?

 

Well, you didn't need to use PatchSIM1friction parameter either way, since the Lua will be overriding it.

 

Otherwise, assuming you put the [Auto] section to run that Lua program into the FSUIPC4.INI file a way back (as you said you did), then it will be okay.

 

Pete

Link to comment
Share on other sites

Not "1=Frictions".  The [Auto] facility executes macros -- lists of actions as assigned to buttons.  It won't understand "frictions" as it isn't a command or control. You have to put

 

1=Lua Frictions

 

If you look through the button assignments list you'll find it there too, once FSUIPC sees the Lua file in the Modules folder.

 

Please, when you are following instructions from somewhere, do try hard to follow them properly, to the letter.

 

Pete

Link to comment
Share on other sites

is this right

 

 
 
ipc.SetFriction(WHEEL, CONCRETE, SLIDING, DRY, 1.000) --0.640
ipc.SetFriction(WHEEL, GRASS, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, GRASS_BUMPY,SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, ASPHALT, SLIDING, DRY, 0.950) --0.640
ipc.SetFriction(WHEEL, SHORT_GRASS,SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, LONG_GRASS, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, DIRT, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, GRAVEL, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, BITUMINUS, SLIDING, DRY, 1.000) --0.640
ipc.SetFriction(WHEEL, MACADAM, SLIDING, DRY, 0.950) --0.550
ipc.SetFriction(WHEEL, TARMAC, SLIDING, DRY, 1.000) --0.640
 
 
deleted all lines with rolling
Link to comment
Share on other sites

 

i started fsx and now have these lines

 

 
[LuaFiles]
1=Lua Frictions
 
2=Frictions

 

 

Sorry, I hadn't noticed you were referring to the [LuaFiles] section. Please DELETE all three lines. You do NOT edit the [LuaFiles] section! That's generated and maintained by FSUIPC, NOT by you!

 

I cannot understand how you don't know anything about what you are doing when you said way back that you had followed someone else's instructions and added the frictions facilities. That is surely why the Frictions lua file was in your Modules folder!

 

Macros to be automatically executed when FSUIPC starts are listed in the [Auto] section! Thus:

 

[Auto]

1=Lua frictions

 

If you are still very confused I suggest you visit the AVSIM FSX forum where I think there was a long discussion about all this stuff.

 

Pete

Link to comment
Share on other sites

 

is this right

 

 
 
ipc.SetFriction(WHEEL, CONCRETE, SLIDING, DRY, 1.000) --0.640
ipc.SetFriction(WHEEL, GRASS, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, GRASS_BUMPY,SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, ASPHALT, SLIDING, DRY, 0.950) --0.640
ipc.SetFriction(WHEEL, SHORT_GRASS,SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, LONG_GRASS, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, DIRT, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, GRAVEL, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, BITUMINUS, SLIDING, DRY, 1.000) --0.640
ipc.SetFriction(WHEEL, MACADAM, SLIDING, DRY, 0.950) --0.550
ipc.SetFriction(WHEEL, TARMAC, SLIDING, DRY, 1.000) --0.640
 
 
deleted all lines with rolling

 

 

It isn't my program, but is that all the lines left? What happened to the line at the beginning which restored the defaults? In the one supplied by me that line is certainly present to make sure you are starting from a known base.

 

Pete

Link to comment
Share on other sites

Right lets get this sorted cause i'm just going round in circles confusing you and myself lol

 

i only want the sliding friction so i'll just add this line in FSUIPC.INI -

 

[Auto]

1=Lua frictions
 
and when i start FSX it will create a line like this -
 
 
[LuaFiles]
1=Frictions
 
 
if i open frictions.lua with notepad i get this text pete -
 
what will i delete here?
 
-- This sets frictions according to the resluts by Johan Lees, early December 2012
 
ipc.RestoreFriction()
 
-- The original FSX values are shown in the comment at the end of each code line
 
ipc.SetFriction(WHEEL, CONCRETE, ROLLING, DRY, 0.030) --0.050
ipc.SetFriction(WHEEL, GRASS, ROLLING, DRY, 0.060) --0.080
ipc.SetFriction(WHEEL, GRASS_BUMPY,ROLLING, DRY, 0.070) --0.090
ipc.SetFriction(WHEEL, ASPHALT, ROLLING, DRY, 0.025) --0.050
ipc.SetFriction(WHEEL, SHORT_GRASS,ROLLING, DRY, 0.050) --0.060
ipc.SetFriction(WHEEL, LONG_GRASS, ROLLING, DRY, 0.060) --0.090
ipc.SetFriction(WHEEL, DIRT, ROLLING, DRY, 0.050) --0.060
ipc.SetFriction(WHEEL, GRAVEL, ROLLING, DRY, 0.060) --0.080
ipc.SetFriction(WHEEL, BITUMINUS, ROLLING, DRY, 0.030) --0.050
ipc.SetFriction(WHEEL, MACADAM, ROLLING, DRY, 0.030) --0.050
ipc.SetFriction(WHEEL, TARMAC, ROLLING, DRY, 0.030) --0.050
 
ipc.SetFriction(WHEEL, CONCRETE, SLIDING, DRY, 1.000) --0.640
ipc.SetFriction(WHEEL, GRASS, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, GRASS_BUMPY,SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, ASPHALT, SLIDING, DRY, 0.950) --0.640
ipc.SetFriction(WHEEL, SHORT_GRASS,SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, LONG_GRASS, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, DIRT, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, GRAVEL, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, BITUMINUS, SLIDING, DRY, 1.000) --0.640
ipc.SetFriction(WHEEL, MACADAM, SLIDING, DRY, 0.950) --0.550
ipc.SetFriction(WHEEL, TARMAC, SLIDING, DRY, 1.000) --0.640
 
ipc.SetFriction(BRAKE, CONCRETE, ROLLING, DRY, 0.900) --0.700
ipc.SetFriction(BRAKE, GRASS, ROLLING, DRY, 0.700) --0.500
ipc.SetFriction(BRAKE, GRASS_BUMPY,ROLLING, DRY, 0.650) --0.400
ipc.SetFriction(BRAKE, ASPHALT, ROLLING, DRY, 0.900) --0.700
ipc.SetFriction(BRAKE, SHORT_GRASS,ROLLING, DRY, 0.650) --0.500
ipc.SetFriction(BRAKE, LONG_GRASS, ROLLING, DRY, 0.650) --0.500
ipc.SetFriction(BRAKE, GRAVEL, ROLLING, DRY, 0.650) --0.500
ipc.SetFriction(BRAKE, BITUMINUS, ROLLING, DRY, 0.900) --0.700
ipc.SetFriction(BRAKE, MACADAM, ROLLING, DRY, 0.900) --0.700
ipc.SetFriction(BRAKE, TARMAC, ROLLING, DRY, 0.900) --0.700
 
 
Link to comment
Share on other sites

It isn't my program, but is that all the lines left? What happened to the line at the beginning which restored the defaults? In the one supplied by me that line is certainly present to make sure you are starting from a known base.

 

Pete

 

 

sorry i only highlighted some of it

Link to comment
Share on other sites

 

Right lets get this sorted cause i'm just going round in circles confusing you and myself lol

 

i only want the sliding friction so i'll just add this line in FSUIPC.INI -

 

[Auto]

1=Lua frictions
 
and when i start FSX it will create a line like this -
 
 
[LuaFiles]
1=Frictions
 
 
if i open frictions.lua with notepad i get this text pete -
 
what will i delete here?
 
-- This sets frictions according to the resluts by Johan Lees, early December 2012
 
ipc.RestoreFriction()
 
-- The original FSX values are shown in the comment at the end of each code line
 
ipc.SetFriction(WHEEL, CONCRETE, ROLLING, DRY, 0.030) --0.050
ipc.SetFriction(WHEEL, GRASS, ROLLING, DRY, 0.060) --0.080
ipc.SetFriction(WHEEL, GRASS_BUMPY,ROLLING, DRY, 0.070) --0.090
ipc.SetFriction(WHEEL, ASPHALT, ROLLING, DRY, 0.025) --0.050
ipc.SetFriction(WHEEL, SHORT_GRASS,ROLLING, DRY, 0.050) --0.060
ipc.SetFriction(WHEEL, LONG_GRASS, ROLLING, DRY, 0.060) --0.090
ipc.SetFriction(WHEEL, DIRT, ROLLING, DRY, 0.050) --0.060
ipc.SetFriction(WHEEL, GRAVEL, ROLLING, DRY, 0.060) --0.080
ipc.SetFriction(WHEEL, BITUMINUS, ROLLING, DRY, 0.030) --0.050
ipc.SetFriction(WHEEL, MACADAM, ROLLING, DRY, 0.030) --0.050
ipc.SetFriction(WHEEL, TARMAC, ROLLING, DRY, 0.030) --0.050
 
ipc.SetFriction(WHEEL, CONCRETE, SLIDING, DRY, 1.000) --0.640
ipc.SetFriction(WHEEL, GRASS, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, GRASS_BUMPY,SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, ASPHALT, SLIDING, DRY, 0.950) --0.640
ipc.SetFriction(WHEEL, SHORT_GRASS,SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, LONG_GRASS, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, DIRT, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, GRAVEL, SLIDING, DRY, 0.800) --0.640
ipc.SetFriction(WHEEL, BITUMINUS, SLIDING, DRY, 1.000) --0.640
ipc.SetFriction(WHEEL, MACADAM, SLIDING, DRY, 0.950) --0.550
ipc.SetFriction(WHEEL, TARMAC, SLIDING, DRY, 1.000) --0.640
 
ipc.SetFriction(BRAKE, CONCRETE, ROLLING, DRY, 0.900) --0.700
ipc.SetFriction(BRAKE, GRASS, ROLLING, DRY, 0.700) --0.500
ipc.SetFriction(BRAKE, GRASS_BUMPY,ROLLING, DRY, 0.650) --0.400
ipc.SetFriction(BRAKE, ASPHALT, ROLLING, DRY, 0.900) --0.700
ipc.SetFriction(BRAKE, SHORT_GRASS,ROLLING, DRY, 0.650) --0.500
ipc.SetFriction(BRAKE, LONG_GRASS, ROLLING, DRY, 0.650) --0.500
ipc.SetFriction(BRAKE, GRAVEL, ROLLING, DRY, 0.650) --0.500
ipc.SetFriction(BRAKE, BITUMINUS, ROLLING, DRY, 0.900) --0.700
ipc.SetFriction(BRAKE, MACADAM, ROLLING, DRY, 0.900) --0.700
ipc.SetFriction(BRAKE, TARMAC, ROLLING, DRY, 0.900) --0.700
 
 

 

 

Ah, not seen the full file. in that case just delete the WHEEL ROLLING ones, i.e. the first batch -- those are the ones you don't want, right? It's your choice, after all. I assume you still want the sliding and braking effects improved?

 

 

These things are just facilities or tools for you to use as you wish. This particular one was someone else's work. i just added the Lua commands to allow it to be done.

 

Pete

Link to comment
Share on other sites

I have done as above without deleting WHEEL ROLLING ones and i see the difference need to increase alot of thrust at MGW to get her going :)

 

If i leave the WHEEL ROLLING does that increase friction when pulling off?

 

I don't know if it increases or descreases. I know little about frictions and don't play with them, but from what folks said (wasn't that you?) the PMDG aircraft accelerate too quickly with the WHEEL ROLLING frictions set by this file, so I would guess they reduce friction.

 

I thought that was why you were deleting them? If you want more or less rolling friction you have to play with the number. I'm not the person to advise about that.

 

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.