Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logistics enable/disable settings (no more compat 🎉) #7040

Closed
wants to merge 12 commits into from

Conversation

BaerMitUmlaut
Copy link
Member

When merged this pull request will:

  • Add enable settings for each component
  • Remove the need for compat addons for the logistic components

Status:

  • Refuel
  • Repair
  • Rearm

@BaerMitUmlaut BaerMitUmlaut added kind/enhancement Release Notes: **IMPROVED:** status/WIP labels Jun 7, 2019
GVAR(hooks)[] = {{0, 0.4, -0.5}, {0, -0.4, -0.5}};
GVAR(fuelCargo) = REFUEL_INFINITE_FUEL;
};
class Land_FuelStation_01_pump_malevil_F: House_F {
transportFuel = 0; //50k
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setFuelCargo won't work on map objects
e.g. the fuel station on stratis ([2713, 5796]) will fill a empty car

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I knew this command is somehow broken.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will check that. Hiding and replacing it with a simple object might be an option.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setFuelCargo won't work on map objects
e.g. the fuel station on stratis ([2713, 5796]) will fill a empty car

It does work, you must just handle all 3 pumps at the station.
The real problem here is that fuel pumps are Static children and they don't trigger InitPost EH. This can be handled with nearestObjects or nearObjects call with each pump class at mission init. But how to handle pumps created during mission with createVehicle after mission init?
At least fuel pumps class CBA_Extended_EventHandlers removed in #4533 can be restored. But this must be done also for all 3rd party pumps so some compat can be needed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

terrain objects can also stream in/out, and might not store their fuel state inbetween.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already tested this here #7613 (comment)

@dedmen
Copy link
Contributor

dedmen commented Jun 11, 2019

addons/repair/.vscode/ipch/1ce1e1282607b219/mmap_address.bin

burp
Maybe we should add .vscode to repository .gitignore?

@PabstMirror PabstMirror modified the milestones: 3.15.1, Ongoing May 24, 2022
@LinkIsGrim
Copy link
Contributor

If something does setUnitTrait it'll override, but IMO this is better than replacing every toolkit.

I'd rather defer the refuel/rearm compats to another PR, they'll need lots more special handling from the looks of it.

@BaerMitUmlaut
Copy link
Member Author

but IMO this is better than replacing every toolkit

Why? We have a framework for item replacement already and it stays compatible with the vanilla attributes. This is a regression.

@LinkIsGrim
Copy link
Contributor

I'd like to avoid item replacement because of custom toolkits. I'm aware item types can be replaced directly, but what about those custom toolkits' mass, item description, or whatever other custom properties? Or any other mod/mission checking for toolkit items by type, or for the item itself?

@LinkIsGrim
Copy link
Contributor

Succeeded by other PRs.

@LinkIsGrim LinkIsGrim closed this Apr 7, 2024
@LinkIsGrim LinkIsGrim deleted the logistics-no-compat branch April 7, 2024 01:16
@johnb432 johnb432 removed this from the Ongoing milestone Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:** status/WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants