While it mimics the original gameplay, the title comes. * must not carry reserved cargo, nor cargo to be unloaded or transferred. OpenTTD is an open source clone of MicroProse’s Transport Tycoon Deluxe game, specifically crafted to be used under the GNU/Linux platform. * You can only do this if the consist is not loading or unloading. * Check the capacity of all vehicles in a chain and spread cargo if needed. Return EnginesHaveCargoInCommon(from, to) * the engines needs to be able to carry the same cargo */ * make sure that we do not replace a plane with a helicopter or vice versa */ misc_flags, EF_ROAD_TRAM) != HasBit(e_to-> info. * make sure that we do not replace a tram with a normal road vehicles or vice versa */ roadtype)-> powered_roadtypes) = ROADTYPES_NONE) return false roadtype)-> powered_roadtypes & GetRoadTypeInfo(e_to-> u. * make sure the roadtypes are compatible */ railveh_type = RAILVEH_WAGON)) return false railveh_type = RAILVEH_WAGON) != (e_to-> u. * make sure we do not replace wagons with engines or vice versa */ railtype)-> compatible_railtypes) = 0) return false railtype)-> compatible_railtypes & GetRailTypeInfo(e_to-> u. * make sure the railtypes are compatible */ If (! IsEngineBuildable(to, type, company)) return false * check that the new vehicle type is available to the company and its type is the same as the original one */ * Checks some basic properties whether autoreplace is allowedīool CheckAutoreplaceValidity(EngineID from, EngineID to, CompanyID company)Īssert( Engine::IsValidID(from) & Engine::IsValidID(to)) Ĭonst Engine *e_from = Engine::Get(from) Return (available_cargoes_a = 0 || available_cargoes_b = 0 || (available_cargoes_a & available_cargoes_b) != 0) Static bool EnginesHaveCargoInCommon(EngineID engine_a, EngineID engine_b)ĬargoTypes available_cargoes_a = GetUnionOfArticulatedRefitMasks(engine_a, true) ĬargoTypes available_cargoes_b = GetUnionOfArticulatedRefitMasks(engine_b, true) * true if they can both carry the same type of cargo (or at least one of them got no capacity at all) * Figure out if two engines got at least one type of cargo in common (refitting if needed) ** autoreplace_cmd.cpp Deals with autoreplace execution but not the setup */Įxtern void ChangeVehicleViewports(VehicleID from_index, VehicleID to_index) Įxtern void ChangeVehicleNews(VehicleID from_index, VehicleID to_index) Įxtern void ChangeVehicleViewWindow(VehicleID from_index, VehicleID to_index) You should have received a copy of the GNU General Public License along with OpenTTD. * See the GNU General Public License for more details. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Result: the engines sometimes keep replacing even if auto-replace order was removed.* OpenTTD is free software you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. Set a new order to replace the engines to the desired one.Get some engines, not necessary old ones.ģ Change to a different model, let change when to an other version.Sometime the replace order jams even if it removed and engines are keeps constantly replaced one to an other engine. If I would like to change to the same engine again, I need to replace all engines to some other model and replace them again to the desired engine. I will upload my whole OTTD right away and will edit the post to provide a downloading link. I am using mart3ps latest drive-through station build. Only replace all eingine works to any other model.ī) It is not possible to replace to the engine to a same model. I also attached a saved game before trying to replace the ships with autoreplace. Actual resultĪ) It is not possible to replace engines if they go old. A) Possibility to replace old rail vehicles when it becomes old.ī) Auto replace all trains to the same type of engine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |