American Eagles Modding Forums


Hi! You are currently viewing forum as a guest. For more features please login or register!

Member Login



Lost your password?

Forum Stats

Latest Member


Not a member yet? Sign Up!



*



October 21, 2018, 09:37:39 PM

Author Topic: scripting problems  (Read 75 times)

0 Members and 1 Guest are viewing this topic.

Offline MikeLowery (OP)

scripting problems
« on: October 13, 2018, 12:58:25 AM »
The mouse control is giving me issues on the dedi server. It want to make the game lag.. here it the error log it gave.

Warning (LUA): 'streamWriteBool': Argument 1 has wrong type. Expected: Bool. Actual: Nil
  ..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (640): expectedType == Value::VoidType
LUA call stack:
  =C:/Users/hawat/Documents/My Games/FarmingSimulator2017/mods/ControlMouseV1/ControlMouse.lua (197) : streamWriteBool
  dataS/scripts/vehicles/Vehicle.lua (1962) : writeUpdateStream
  dataS/scripts/network/Client.lua (113) : writeUpdateStream
  dataS/scripts/BaseMission.lua (1521) : update
  dataS/scripts/FSBaseMission.lua (2187) : update
  dataS/scripts/missions/mission00.lua (346) : update
  dataS/scripts/main.lua (1922) : update
Warning (LUA): 'streamWriteBool': Argument 1 has wrong type. Expected: Bool. Actual: Nil
  ..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (640): expectedType == Value::VoidType
LUA call stack:
  =C:/Users/hawat/Documents/My Games/FarmingSimulator2017/mods/ControlMouseV1/ControlMouse.lua (200) : streamWriteBool
  dataS/scripts/vehicles/Vehicle.lua (1962) : writeUpdateStream
  dataS/scripts/network/Client.lua (113) : writeUpdateStream
  dataS/scripts/BaseMission.lua (1521) : update
  dataS/scripts/FSBaseMission.lua (2187) : update
  dataS/scripts/missions/mission00.lua (346) : update
  dataS/scripts/main.lua (1922) : update
Warning (LUA): 'streamWriteBool': Argument 1 has wrong type. Expected: Bool. Actual: Nil
  ..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (640): expectedType == Value::VoidType
LUA call stack:
  =C:/Users/hawat/Documents/My Games/FarmingSimulator2017/mods/ControlMouseV1/ControlMouse.lua (201) : streamWriteBool
  dataS/scripts/vehicles/Vehicle.lua (1962) : writeUpdateStream
  dataS/scripts/network/Client.lua (113) : writeUpdateStream
  dataS/scripts/BaseMission.lua (1521) : update
  dataS/scripts/FSBaseMission.lua (2187) : update
  dataS/scripts/missions/mission00.lua (346) : update
  dataS/scripts/main.lua (1922) : update
Warning (LUA): 'streamWriteBool': Argument 1 has wrong type. Expected: Bool. Actual: Nil
  ..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (640): expectedType == Value::VoidType


any help will be greatly appreciated thanks team.





 

Offline jb3pc4sale

Re: scripting problems
« Reply #1 on: October 13, 2018, 09:27:57 AM »
Try the map and that mod only and see if you have the same error. Sometimes another script is causing the problem
 

Offline alfalfa6945

Re: scripting problems
« Reply #2 on: October 13, 2018, 11:57:35 AM »
Edit the ControlMouse.lua. Starting on line 31 add these lines (should be blank, though you could add these lines anywhere in load() and it would be fine):

Code: [Select]
self.MouseSteuer = false
self.KeyAD_Pressed = false
self.KeyWS_Pressed = false

On line 231 it probably reads:

Code: [Select]
self.KeyAD_Pressed = nil;
Make it read:

Code: [Select]
self.KeyAD_Pressed = false
And on line 236 it probably reads:

Code: [Select]
self.KeyWS_Pressed = nil;
Make it read:

Code: [Select]
self.KeyWS_Pressed = false
The errors result from streamWriteBool trying to write "nil" values, which it cannot do. It has to be boolean, true or false (though "nil" can be equal to false in Lua, a "nil" variable is not a boolean value for a write).

I've never seen this mod before today, the edits I listed are untested (I still haven't used this mod), your mileage may vary.
 
The following users thanked this post: MikeLowery

Offline MikeLowery (OP)

Re: scripting problems
« Reply #3 on: October 13, 2018, 02:37:54 PM »
Thanks man!! it worked perfect...





 

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
1284 Views
Last post April 21, 2013, 10:16:34 PM
by 1972chevy
5 Replies
1012 Views
Last post February 21, 2015, 01:34:13 PM
by farmerboy69
7 Replies
1494 Views
Last post April 06, 2015, 01:37:03 AM
by ozgamer
1 Replies
520 Views
Last post June 18, 2015, 08:29:09 PM
by farmerboy69
1 Replies
449 Views
Last post May 22, 2016, 08:26:21 PM
by JohnDeere1952

Powered by EzPortal