0 of 0

File information

Last updated

Original upload

Created by

Morphyum

Uploaded by

Morphyum

Virus scan

Safe to use

9 comments

  1. Humpa
    Humpa
    • member
    • 0 kudos
    Would it be possible to add an option to reverse the order so the most difficult ones are on the top? An another option to put travel orders on top?

    Took a look in the source code, so something like this?:

    Settings settings = Helper.LoadSettings();
    int difficulty = contract.Override.GetUIDifficulty();
    if (settings.SortByRealDifficulty) {
    difficulty = contract.Difficulty;
    }
    if (settings.MostDifficultFirst) {
    difficulty = -difficulty + 11 //10 becomes 1 and 1 becomes 10
    }
    int result = 100;
    SimGameState Sim = (SimGameState)ReflectionHelper.InvokePrivateMethode(__instance, "get_Sim", null);
    if (Sim.ContractUserMeetsReputation(contract)) {
    if (contract.TargetSystem.Replace("starsystemdef_","").Equals(Sim.CurSystem.Name)) {
    if(settings.TravelFirst) {
    result = difficulty + 11; //Gives higher/later index if Travel is first
    } else {
    result = difficulty + 1;
    }
    } else {
    if(settings.TravelFirst) {
    result = difficulty + 1; //Gives lower/earlier index if Travel is first
    } else {
    result = difficulty + 11;
    }
    }
    } else {
    result = difficulty + 21;
    }
    __result = result;
    return false;

    code is easier to read  on the forums:
    https://forums.nexusmods.com/index.php?/topic/6690002-contractsort/?p=63590741
     
    And thanks for the mod.
  2. Humpa
    Humpa
    • member
    • 0 kudos
    What do you mean by "real difficulty"?
  3. troch22
    troch22
    • supporter
    • 0 kudos
    ..I love this small simple mod. Until you have and use it...Your like WTF, this is the way it should have been in the 1st place!!!!

    Thank Morph
    1. Morphyum
      Morphyum
      • supporter
      • 32 kudos
      np mate :)
  4. fys
    fys
    • member
    • 7 kudos
    Looks fine!
    There are more things that could be sorted: pilot and system attributes, or pilot-xp in hiring hall. Doesn't look great if such data is randomly shown.
    An all-in-one mod for all sorting options is welcomed too to shrink the ever-increasing mod list somewhat.
    1. Morphyum
      Morphyum
      • supporter
      • 32 kudos
      https://www.nexusmods.com/battletech/mods/147
      Is working on that
      This mod was basicly just a product made for roguetech, that i split off so others can use it.
  5. deltaassault
    deltaassault
    • member
    • 1 kudos
    You're on a roll, my friend. Really appreciate your hard work!
    1. Morphyum
      Morphyum
      • supporter
      • 32 kudos
      Thanks mate :)
  6. troch22
    troch22
    • supporter
    • 0 kudos
    ..