MegaMek / mekhq

MekHQ is a java helper program for the MegaMek game that allows users to load a list of entities from an XML file, perform repairs and customizations, and then save the new entities to another XML file that can be loaded into MegaMek.
http://megamek.org
133 stars 171 forks source link

Impossible To Refuel Aero #840

Open BLOODWOLF333 opened 6 years ago

BLOODWOLF333 commented 6 years ago

Environment

MekHQ 0.44.0 Java 1.8 Windows 8.1

Description

So, HQ will track and display an aero's current fuel points but, doesnt look like there is any code to track current fuel / max fuel. And I dont see a fuel part from @Dylan-M 's a928fff? I had to go into my cpnx file and change the Corsairs fuel value from 400 to 200 and reload HQ since we cannot GM edit fuel points but, doesn't show up in the repair bay or allow refueling. I dont see any fuel related options in Campaign Options and also tried turning on the StratOps fuel tracking rule in HQ's megamek options which had no effect. This was brought up by Astn on slack in #mekhq.

I changed fuel left from 400 to 200

  <unit id="623d286c-0eaf-49d7-9614-e412f03872f5" type="mekhq.campaign.unit.Unit">
      <entity chassis="Corsair" model="CSR-V12" type="Aerodyne" commander="false" externalId="623d286c-0eaf-49d7-9614-e412f03872f5">
          <structural integrity="6"/>
          <heat sinks="16"/>
          <fuel left="200"/>
          <bombs>
          </bombs>
      </entity>

Files

AeroRefueling.zip

Dylan-M commented 6 years ago

I believe Aero refueling is automatic on mission completion due to the ridiculously small times it takes to do it. I'm somewhat out of touch on it now though.

ndrwstn commented 6 years ago

Definitely not automatic, however this is less a bug than an enhancement.

Fuel states are ignored on load/save, so when you open the campaign they are all full. However, each scenario will save the resulting fuel state to memory in MekHQ (and report that fuel state to MegaMek on 'start game') so it will slowly deplete until the next time you open the campaign.

Dylan-M commented 6 years ago

I should have been more clear: I think the consensus was to make it automatic, but I wasn't sure it ever got done.

mkerensky commented 6 years ago

I thought MHQ fuel tracking was just an unimplemented feature. As of 0.43.5 (I think) it's been possible to set the fuel points for all types of aero in the MM lobby. Fuel still needs to be set up as a set of parts in MHQ with weights, "repair" times, cost and whatnot. Fuel tracking for unit types other than aeros is also still on the drawing board.

pheonixstorm commented 6 years ago

Fuel tracking has been talked about for awhile but no one has done any work on it. Aero refueling and vee fuel usage are two things I have been looking at for awhile but haven't put any work into as of yet. I guess first thing though is getting a fuel part for hydrogen and gas. Those are the main two and the only ones we should have need to track. The other fuel types are rarely used in any of the TROs. I think there is only one support tank that even uses a non standard fuel type.

Dylan-M commented 6 years ago

This should only need one part: Fuel. The part can have a flag to determine fuel type, and then you easily cover the whole gamut plus anything new that eventually comes along.

BLOODWOLF333 commented 6 years ago

fuel fuel.png fuel_impossible fuel_impossible.png fuel_na fuel_na.png fuel_transit fuel_transit.png

Necrofox91 commented 6 years ago

Actually isn't Aero, Dropship/Warship/Jumpship and Jump Jet fuel hydrogen? And Fuel Cells use hydrogen and oxygen? If memory serves one of the books had some very vague rules about fusion engines being able to actually produce it, so those cost could vary if you dedicate a fusion powered whatever OR a spare engine to produce fuel. This would all depend on water availability on the planet in question, depending on it water would be free and you could kill most of these fuel cost, or all of them, depending on how much you could process. On the other hand on water poor planets the price of water would be quite high and actual fuel for these engines would be even more prohibitively expensive than normal since these water costs would be for drinking it instead of just wasting it on war... Making water for you to process expensive and hard to acquire and getting fuel interesting for your admin personnel to roll for, when you don't take into consideration the penalties involved in the deployment itself. Just a thought... and quite an issue to actually implement but... ehhh there it is.

Necrofox91 commented 6 years ago

That would be pg. 179 from StratOps.