Changes in / [908:fcf3c44650f1:917:803dc6bacfa5]
- Files:
-
- 7 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
MANIFEST.in
r36 r916 1 1 include mlx.nsi 2 2 include makeinst.bat 3 include winemakeinst.bat 3 4 include license.txt 4 5 include runmlx.py -
setup.py
r875 r916 63 63 glob(os.path.join(cefDir, "locales", "*")))) 64 64 65 if os.getenv("WINE")=="yes": 66 winsysdir=os.getenv("WINSYSDIR") 67 data_files.append(("", [os.path.join(winsysdir, "python27.dll")])) 68 data_files.append(("library", [ 69 os.path.join(winsysdir, "pywintypes27.dll"), 70 os.path.join(winsysdir, "WINHTTP.dll")])) 71 72 if gtkRuntimeDir: 73 gtkBinDir = os.path.join(gtkRuntimeDir, "bin") 74 data_files.append(("library", [ 75 os.path.join(gtkBinDir, "freetype6.dll"), 76 os.path.join(gtkBinDir, "intl.dll"), 77 os.path.join(gtkBinDir, "zlib1.dll"), 78 os.path.join(gtkBinDir, "libglib-2.0-0.dll"), 79 os.path.join(gtkBinDir, "libatk-1.0-0.dll"), 80 os.path.join(gtkBinDir, "libcairo-2.dll"), 81 os.path.join(gtkBinDir, "libexpat-1.dll"), 82 os.path.join(gtkBinDir, "libpangowin32-1.0-0.dll"), 83 os.path.join(gtkBinDir, "libgio-2.0-0.dll"), 84 os.path.join(gtkBinDir, "libgdk-win32-2.0-0.dll"), 85 os.path.join(gtkBinDir, "libpng14-14.dll"), 86 os.path.join(gtkBinDir, "libgobject-2.0-0.dll"), 87 os.path.join(gtkBinDir, "libgdk_pixbuf-2.0-0.dll"), 88 os.path.join(gtkBinDir, "libfontconfig-1.dll"), 89 os.path.join(gtkBinDir, "libpangoft2-1.0-0.dll"), 90 os.path.join(gtkBinDir, "libgmodule-2.0-0.dll"), 91 os.path.join(gtkBinDir, "libpango-1.0-0.dll"), 92 os.path.join(gtkBinDir, "libpangocairo-1.0-0.dll"), 93 os.path.join(gtkBinDir, "libgtk-win32-2.0-0.dll"), 94 os.path.join(gtkBinDir, "libgthread-2.0-0.dll") 95 ])) 96 if cefDir: 97 data_files.append(("library", [ 98 os.path.join(cefDir, "libcef.dll") 99 ])) 100 65 101 print data_files 66 102 -
src/mlx/acft.py
r899 r917 1149 1149 self.mtow = 100000 1150 1150 self.mlw = 80000 1151 elif bookedFlight.tailNumber=="HA-LCX": 1152 self.mtow = 100000 1153 self.mlw = 80000 1154 self.mzfw = 74000 1155 1156 self.flapSpeedLimits = { 15 : 227, 1157 28 : 194, 1158 36 : 178, 1159 45 : 162 } 1151 1160 1152 1161 def _appendLightsLoggers(self): -
src/mlx/checks.py
r896 r917 1021 1021 def isCondition(self, flight, aircraft, oldState, state): 1022 1022 """Check if the fault condition holds.""" 1023 isXPlane = (flight.aircraftType==const.AIRCRAFT_DH8D or 1024 flight.aircraftType==const.AIRCRAFT_B733) and \ 1025 (flight.fsType==const.SIM_XPLANE11 or 1026 flight.fsType==const.SIM_XPLANE10 or 1027 flight.fsType==const.SIM_XPLANE9) 1023 1028 if flight.stage==const.STAGE_CRUISE: 1024 isDH8DXplane = flight.aircraftType==const.AIRCRAFT_DH8D and \ 1025 (flight.fsType==const.SIM_XPLANE10 or 1026 flight.fsType==const.SIM_XPLANE9) 1027 bankLimit = 35 if isDH8DXplane else 30 1029 bankLimit = 40 if isXPlane else 30 1028 1030 elif flight.stage in [const.STAGE_TAKEOFF, const.STAGE_CLIMB, 1029 1031 const.STAGE_DESCENT, const.STAGE_LANDING]: 1030 bankLimit = 351032 bankLimit = 45 if isXPlane else 35 1031 1033 else: 1032 1034 return False -
src/mlx/const.py
r907 r917 49 49 ## Flight simulator type: Prepar3D 50 50 SIM_P3D = 5 51 52 ## Flight simulator type: X-Plane 11 53 SIM_XPLANE11 = 6 51 54 52 55 #------------------------------------------------------------------------------- -
src/mlx/fs.py
r765 r909 62 62 if type in [const.SIM_MSFS9, const.SIM_MSFSX]: 63 63 return fsuipc.Simulator(connectionListener, connectAttempts = 3) 64 elif type in [const.SIM_XPLANE9, const.SIM_XPLANE10 ]:64 elif type in [const.SIM_XPLANE9, const.SIM_XPLANE10, const.SIM_XPLANE11]: 65 65 return xplane.Simulator(connectionListener, connectAttempts = 3) 66 66 else: 67 "Only MS Flight Simulator 2004 and X or X-Plane 9 and 10are supported"67 "Only MS Flight Simulator 2004 and X or X-Plane 9, 10 and 11 are supported" 68 68 69 69 #------------------------------------------------------------------------------- -
src/mlx/gui/cef.py
r805 r915 309 309 container.connect("size-allocate", _handleSizeAllocate) 310 310 else: 311 container = gtk. VBox(True, 0)311 container = gtk.DrawingArea() 312 312 313 313 container.show() … … 327 327 windowID = window.handle 328 328 else: 329 m = re.search("GtkVBox at 0x(\w+)", str(container)) 330 hexID = m.group(1) 331 windowID = int(hexID, 16) 329 windowID = container.window.xid 332 330 333 331 windowInfo = cefpython.WindowInfo() -
src/mlx/xplane.py
r893 r909 506 506 (xplaneVersion, xplmVersion, xplraVersion) 507 507 if not autoReconnection: 508 fsType = const.SIM_XPLANE10 if xplaneVersion>=10000 else const.SIM_XPLANE9 508 fsType = const.SIM_XPLANE11 if xplaneVersion>=11000 else \ 509 (const.SIM_XPLANE10 if xplaneVersion>=10000 else const.SIM_XPLANE9) 509 510 510 511 Handler._callSafe(lambda: … … 1434 1435 1435 1436 flapsControl = data[self._monidx_flapsControl] 1436 flapsIndex = int( flapsControl * (len(self._flapsNotches)-1))1437 flapsIndex = int(round(flapsControl * (len(self._flapsNotches)-1))) 1437 1438 state.flapsSet = 0 if flapsIndex<1 else self._flapsNotches[flapsIndex] 1438 1439 … … 1878 1879 1879 1880 class T154Model(GenericAircraftModel): 1880 """Generic model for the Tupolev Tu-1 34 aircraft."""1881 """Generic model for the Tupolev Tu-154 aircraft.""" 1881 1882 fuelTanks = [const.FUELTANK_CENTRE, const.FUELTANK_CENTRE2, 1882 1883 const.FUELTANK_RIGHT, const.FUELTANK_LEFT, … … 1902 1903 del state.reverser[1] 1903 1904 return state 1905 1906 #------------------------------------------------------------------------------ 1907 1908 class FelisT154Model(T154Model): 1909 """Model for Felis' Tupolev Tu-154-M aircraft.""" 1910 @staticmethod 1911 def doesHandle(aircraft, (tailnum, author, description, notes, 1912 icao, liveryPath)): 1913 """Determine if this model handler handles the aircraft with the given 1914 name.""" 1915 return aircraft.type==const.AIRCRAFT_T154 and \ 1916 author.find("Felis")!=-1 and \ 1917 description.find("Tu154M")!=-1 1918 1919 def __init__(self): 1920 """Construct the model.""" 1921 super(T154Model, self). \ 1922 __init__(flapsNotches = [0, 15, 28, 36, 45], 1923 fuelTanks = T154Model.fuelTanks, 1924 numEngines = 3) 1925 1926 @property 1927 def name(self): 1928 """Get the name for this aircraft model.""" 1929 return "X-Plane/Felis Tupolev Tu-154-M" 1904 1930 1905 1931 #------------------------------------------------------------------------------ … … 1944 1970 1945 1971 AircraftModel.registerSpecial(FJSDH8DModel) 1972 AircraftModel.registerSpecial(FelisT154Model) 1946 1973 1947 1974 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.