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

Logistic module pt. 2 #581

Merged
merged 29 commits into from
Apr 7, 2019
Merged

Logistic module pt. 2 #581

merged 29 commits into from
Apr 7, 2019

Conversation

Dubjunk
Copy link
Contributor

@Dubjunk Dubjunk commented Apr 7, 2019

Q A
Bug fix? no
New feature? yes
Needs wipe? no
Fixed issues #569

Description:

This PR adds the cratefiller to the logistic station and includes several code optimizations.
Also the resource module is now fully integrated into the recycle and resupply functions.

Content:

  • Adjusted KP cratefiller
  • Resource implementation
  • Additions/changes/improvements

Successfully tested on:

  • Local MP Vanilla
  • Dedicated MP Vanilla

Compatibility checked with:

  • ACE

@Dubjunk Dubjunk added this to the Sprint 11 milestone Apr 7, 2019
@Dubjunk Dubjunk self-assigned this Apr 7, 2019
@Dubjunk Dubjunk requested review from Wyqer and veteran29 April 7, 2019 00:04
Copy link
Member

@Wyqer Wyqer left a comment

Choose a reason for hiding this comment

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

Very huge addition, great contribution to the project. 👍
Some smaller changes requested like removing "player" in the getFOB call, as it's the default value for the function.
Haven't marked it, but many functions miss the Public attribute, maybe you want to go through all of the ones which are added in the PR and add the attribute.

Wyqer and others added 6 commits April 7, 2019 18:36
Co-Authored-By: Dubjunk <31448659+Dubjunk@users.noreply.github.com>
Co-Authored-By: Dubjunk <31448659+Dubjunk@users.noreply.github.com>
Co-Authored-By: Dubjunk <31448659+Dubjunk@users.noreply.github.com>
Co-Authored-By: Dubjunk <31448659+Dubjunk@users.noreply.github.com>
Co-Authored-By: Dubjunk <31448659+Dubjunk@users.noreply.github.com>
Co-Authored-By: Dubjunk <31448659+Dubjunk@users.noreply.github.com>
Co-Authored-By: Dubjunk <31448659+Dubjunk@users.noreply.github.com>
// find configclass
switch true do
{
case (isClass (configFile >> "CfgMagazines" >> _classname)): {"CfgMagazines"};
Copy link
Member

Choose a reason for hiding this comment

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

It would be a lot faster if the function would return config itself instead of an string.

Also the result could be cached in namespace for faster access in subsequent calls to this function.
see: KPLIB_fnc_common_getIcon

@Wyqer Wyqer merged commit d7a1fc8 into v0.97S11 Apr 7, 2019
@Wyqer Wyqer deleted the v0.97S11-569 branch April 7, 2019 20:26
@Wyqer Wyqer added done and removed review/QA labels Apr 7, 2019
@Wyqer Wyqer mentioned this pull request Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants