Jump to content

Recommended Posts

Posted

Yesterday my external and cockpit mouse-look just randomly stopped working. I changed nothing so I'm really confused because it worked perfectly before. I even un-installed it, did a registry clean, re-installed and then set CockpitMouse = true and ExternalMouse = true in view.lua, MouseCockpit = 1 and MouseExternal = 1 in view.cfg and CockpitMouse = true in cockpit.lua but it STILL didn't work! Right now I'm lost since I don't know what else I can do. I'm running LOMAC V1.02. Here are my view.lua, cockpit.lua and view.cfg:

 

view.lua

-- Common view scripts

-- Copyright © 2004, Eagle Dynamics.

 

CockpitMouse = true

ExternalMouse = true

ExternalMouseSpeedSlow = 1.0

ExternalMouseSpeedNormal = 5.0

ExternalMouseSpeedFast = 20.0

ExternalViewAngleMin = 3.0

ExternalViewAngleMax = 170.0

-- If ExternalViewAngleDefault is not set here then cockpit value is used

-- Remove comment "--" in the next line and set your custom value:

--ExternalViewAngleDefault = 60.0

ExternalKeyboardZoomAcceleration = 30.0

ExternalKeyboardZoomAccelerateTimeMax = 1.0

CameraTerrainRestriction = true

ExplosionExpoTime = 4.0

ExternalAirObjectsLockDistance = 10000.0

 

-- Don't change existing values, they are requested from Ñ++!

-- Use these indices in Snap and CockpitLocalPoint tables.

PlaneIndex = {

iSu_27 = 1,

iSu_33 = 2,

iSu_25 = 3,

iSu_39 = 4,

iMiG_29 = 5,

iMiG_29K = 6,

iA_10 = 7,

iF_15 = 8,

}

cockpit.lua
-- Copyright © 2004, Eagle Dynamics.

-- Cockpit view scripts (F1, Ctrl-F1, Alt-F1)

-- Uses SnapViews.lua and Serialize.lua

 

CockpitMouse = true

CockpitMouseSpeedSlow = 1.0

CockpitMouseSpeedNormal = 10.0

CockpitMouseSpeedFast = 20.0

CockpitKeyboardAccelerationSlow = 5.0

CockpitKeyboardAccelerationNormal = 30.0

CockpitKeyboardAccelerationFast = 80.0

CockpitViewAngleMin = 20.0

CockpitViewAngleMax = 120.0

-- If CockpitViewAngleDefault is not set here then option value is used

-- Remove comment "--" in the next line and set your custom value:

--CockpitViewAngleDefault = 60.0

CockpitKeyboardZoomAcceleration = 300.0

DisableSnapViewsSaving = true

UseDefaultSnapViews = false

CockpitPanStepHor = 45.0

CockpitPanStepVert = 30.0

CockpitNyMove = true

CockpitHAngleOrigin = 0.0

CockpitVAngleOrigin = -9.5

CockpitHAngleAccelerateTimeMax = 0.15

CockpitVAngleAccelerateTimeMax = 0.15

CockpitZoomAccelerateTimeMax = 0.2

HAngleMaxDefault = 130.0

VAngleMinDefault = -65.0

VAngleMaxDefault = 115.0

HAngleMaxSu25 = 95.0

VAngleMinSu25 = -65.0

VAngleMaxSu25 = 80.0

HAngleMaxF15 = 135.0

VAngleMinF15 = -65.0

VAngleMaxF15 = 115.0

 

CockpitLocalPoint = {}

CockpitLocalPoint[PlaneIndex.iSu_27] = {8.05, 1.35, 0.0}

CockpitLocalPoint[PlaneIndex.iSu_33] = {8.35, 1.35, 0.0}

CockpitLocalPoint[PlaneIndex.iSu_25] = {3.0, 0.276, 0.0}

CockpitLocalPoint[PlaneIndex.iSu_39] = {3.0, 0.276, 0.0}

CockpitLocalPoint[PlaneIndex.iMiG_29] = {4.76, 1.284, 0.0}

CockpitLocalPoint[PlaneIndex.iMiG_29K] = {4.9, 1.254, 0.0}

CockpitLocalPoint[PlaneIndex.iA_10] = {3.991, 1.507, 0.0}

CockpitLocalPoint[PlaneIndex.iF_15] = {6.4, 1.218, 0.0}

 

function GetCockpitLocalPoint(iType)

local p = CockpitLocalPoint[iType]

return p[1], p[2], p[3]

end

 

function NaturalHeadMoving(tang, roll, omz)

local r = roll

if r > 90.0 then

r = 180.0 - r

elseif roll < -90.0 then

r = -180.0 - r

end

local hAngle = -0.25 * r

local vAngle = math.min(math.max(0.0, 0.4 * tang + 45.0 * omz), 90.0)

return hAngle, vAngle

end

 

function GetSnapAngles(iPlane, iKey)

local s = Snap[iPlane][iKey]

return s.hAngle, s.vAngle, s.viewAngle

end

 

function SetSnapAngles(iPlane, iKey, hAngle, vAngle, viewAngle)

local s = Snap[iPlane][iKey]

s.hAngle = hAngle

s.vAngle = vAngle

s.viewAngle = viewAngle

end

 

function WriteSnapViews(fileName)

local file = io.open(fileName, "w")

if file then

io.output(file)

local t = {}

Serialize("Snap", Snap, t)

io.close(file)

end

end

 

function ReadSnapViews(fileName)

dofile(fileName)

end

view.cfg
// If MouseCockpit is not set here then option value is used.

// Remove two slashes in the next line and set your custom value:

MouseCockpit = 1;

MouseExternal = 1;

MouseSpeedSlow = 1.0;

MouseSpeedNormal = 1.5;

MouseSpeedFast = 3.0;

KeyboardSpeedSlow = 0.5;

KeyboardSpeedNormal = 3.0;

KeyboardSpeedFast = 15.0;

CockpitViewAngleMin = 20.0;

CockpitViewAngleMax = 120.0;

// If CockpitViewAngleDefault is not set here then option value is used

// Remove two slashes in the next line and set your custom value:

//CockpitViewAngleDefault = 60.0;

ExternalViewAngleMin = 3.0;

ExternalViewAngleMax = 170.0;

// If ExternalViewAngleDefault is not set here then cockpit value is used

// Remove two slashes in the next line and set your custom value:

//ExternalViewAngleDefault = 60.0;

CameraTerrainRestriction = 1;

DisableSnapViewsSaving = 1;

UseDefaultSnapViews = 0;

ExplosionExpoTime = 4.0;

CockpitSnapStepHor = 45.0;

CockpitSnapStepVert = 30.0;

CockpitNyMove = 1;

ChazeCameraNyMove = 1;

 

Would really appreciate some help.

Posted

In V1.02, the only setting that matters is "CockpitMouse = true" in cockpit.lua. When you uninstalled the sim, did you check to make sure that all the files had been removed? I ask because, sometimes, mod files get left behind. And, if it was a mod that caused this, the problem could persist even after a reinstallation of the sim. If that is not the case, then there must be something external of the sim that is causing the difficulty. Add any new programs, video or audio packs, etc lately?

 

Rich

YouTube Channel: https://www.youtube.com/channel/UCU1...CR6IZ7crfdZxDg

 

_____

Win 11 Pro x64, Asrock Z790 Steel Legend MoBo, Intel i7-13700K, MSI RKT 4070 Super 12GB, Corsair Dominator DDR5 RAM 32GB.

Posted
In V1.02, the only setting that matters is "CockpitMouse = true" in cockpit.lua. When you uninstalled the sim, did you check to make sure that all the files had been removed? I ask because, sometimes, mod files get left behind. And, if it was a mod that caused this, the problem could persist even after a reinstallation of the sim. If that is not the case, then there must be something external of the sim that is causing the difficulty. Add any new programs, video or audio packs, etc lately?

 

Rich

 

Yea I deleted the Lock On folder that was left behind after the un-install so any mod problems would have been taken care of.

 

You should see if your mouse is set up correctly in the games control panel. The axis' 1 & 2 should be head movement vertical and horizontal.

 

I'll give that a try :)

 

One thing that I did notice, that could have been the cause of the problem but I don't know how, is that I was listening to Winamp when I started up LOMAC, and played with Winamp playing music at the same time. That's when I first noticed that my mouse wasn't working ingame.

Posted

From since keyboard has axis?! oO

 

Change to mouse...

Reminder: Fighter pilots make movies. Bomber pilots make... HISTORY! :D | Also to be remembered: FRENCH TANKS HAVE ONE GEAR FORWARD AND FIVE BACKWARD :D

ಠ_ಠ



Posted

Just for chuckles...try forcing LOMAC to use its own DLLs instead of the WIndows version. Open Notepad. Create an empty document. Select SAVE AS. Name it: lockon.exe.local . Put this empty file in your main LOMAC directory (same place as lockon.exe). Start LOMAC normally and click through any error messages you receive. With luck, you will have mouselook back.

 

I'm thinking that perhaps something has installed a different version of a DLL LOMAC uses in your Windows directory. This will force the sim to use the version it shipped with, if that's the problem.

 

Rich

YouTube Channel: https://www.youtube.com/channel/UCU1...CR6IZ7crfdZxDg

 

_____

Win 11 Pro x64, Asrock Z790 Steel Legend MoBo, Intel i7-13700K, MSI RKT 4070 Super 12GB, Corsair Dominator DDR5 RAM 32GB.

Posted

Still doesn't work :(. This is so damn weird! Do ED staff read the forums? Maybe they could try and help. I just don't understand how it suddenly stopped working! I didn't change anything.

Posted
Just for chuckles...try forcing LOMAC to use its own DLLs instead of the WIndows version. Open Notepad. Create an empty document. Select SAVE AS. Name it: lockon.exe.local . Put this empty file in your main LOMAC directory (same place as lockon.exe). Start LOMAC normally and click through any error messages you receive. With luck, you will have mouselook back.

 

I'm thinking that perhaps something has installed a different version of a DLL LOMAC uses in your Windows directory. This will force the sim to use the version it shipped with, if that's the problem.

 

Rich

Do you know which DLL it is? Because maybe you could upload your DLL that LOMAC uses and it could fix my mouse-look problems.
Posted
Try what IronHand said. That fix has dealt with many problems in the past, it is worth a try...

 

I've tried it but sadly it didn't work for me. :(

  • Like 1
Posted
I've tried it but sadly it didn't work for me.

OK. If you have properly uninstalled and reinstalled the sim and the "local" trick also hasn't helped, my only thought is that you were using another program in the background while you were in LOMAC and it somehow screwed things up for you. If that's the case, perhaps you should uninstall both programs. Then reinstall LOMAC. (See if it works.) Then reinstall that 2nd program.

 

But before you do that, have you tried using a different mouse?

 

Rich

YouTube Channel: https://www.youtube.com/channel/UCU1...CR6IZ7crfdZxDg

 

_____

Win 11 Pro x64, Asrock Z790 Steel Legend MoBo, Intel i7-13700K, MSI RKT 4070 Super 12GB, Corsair Dominator DDR5 RAM 32GB.

Posted
One thing that I did notice, that could have been the cause of the problem but I don't know how, is that I was listening to Winamp when I started up LOMAC, and played with Winamp playing music at the same time. That's when I first noticed that my mouse wasn't working ingame.
So it was probably Winamp that messed up my mouse-look? I un-installed both Winamp and LOMAC, did a registry clean and then installed both of them again and did the necessary config and lua changes to LOMAC but it still didn't work. I'll give it a try again though.

 

EDIT: nope haven't tried a different mouse, I'll do that now. :)

Posted

Okay I un-installed LOMAC and Winamp, deleted their folders and did a registry clean again. I then re-installed LOMAC but NOT Winamp and applied the v1.02 FPS tweak. But I still don't have mouse-look for the cockpit or external views. I also tried changing the mouse but that didn't work either. :(

Posted

Do you have a flightstick with a HAT or other programmable pointer device that uses the mouse axis?

 

 

See the ministick on my CH pro throttle? (marked as TDC/SEEKER)That acts as a mouse when the profile is active. I also cannot use the mouse to pan the view on external views, but it works otherwise.

 

 

To test- start lomac WITHOUT any stick profile running, and see if it works.

Posted

Nope I don't have a joystick, only a keyboard and mouse. Could a "stick profile" run even if I don't have a joystick? If so where could I disable it?

Posted
Alexrey,

have you tried Alt+Tabbing?

And also, do you use NewView, FreeTrack or some other similar software?

 

Yup tried Alt+Tab but that didn't work, but... YOU FIXED MY PROBLEM!!! :D I remember that I downloaded Free-Track and installed it but was still waiting to order the webcam so I just left it installed! :doh: Wow dude props to you, Thanks so much!

  • Recently Browsing   0 members

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