Jump to content

Contract Filter 1.5.2(1.1.2) Manage the contracts you receive to your liking!


silverfox8124

Recommended Posts

MOD UNDER NEW MANAGEMENT:

 

 

Welcome to Contract Filter! This mod was created as a "more extensive" version of Rejector. I used to use Rejector but found it had little problems and annoying windows to it. So I created this!

What Contract Filter allows you as the user to do, is to configure how you want each type of contract to be when you accept it or reject it.

For example, if you need 60 science to get that next node, and you know there's going to be contracts with a reward of 60 science, then you can click on the type of contract you want to receive, whether it's Part Testing, Collecting Science, ISRU contracts, Body Surveys, or Science Gatherings, then you scroll to the textbox for minScienceComplete and put that from 0 to 60. Now after you save that up, you can start sorting your contracts!

When it sorts the contracts, it'll check all the conditions of the contract to match all the numbers and letters you gave it. So since you had a minimum requirement of 60 science upon completion, all those little contracts with 12 science and 5 science go poof. But all the 60+ science ones stay :D

You can do this for funds, science, reputation, contract parameters, bodies, and strings!

If you don't like those pesky Part testing while flying over a planet contracts, it's simple! Just click on PartTest tab, then go to Blacklist Strings, then type into the box "flying over" (be careful, it's case sensitive!) and then add in the string to the blacklist. Save your settings, then start the sorting, and now all of those "flying over" contracts will vanish!

As another handy feature, you can just not get part test contracts at all! When you click on a contract type, just click the "Reject" button, and it will turn into an "Accept" button, letting you know that the type is now rejected, and you have the ability to accept the type again at any time.

WARNING: NOT SAVING YOUR SETTINGS CAN RESULT IN SETTINGS LOSS IF YOU CLOSE YOUR GAME, ALWAYS REMEMBER TO SAVE!

Pictures:

GkA6eCT.png

As you can see above, I don't want any Science collecting, Base making, or Planting of the flag contracts. Also, when I get my Explore x body contracts, I don't want to get them for Eve, Laythe, or the Sun.

17dSbjx.png

Now with a newly added Edit All button! You can edit all the type preferences at once!

Like here I'm telling every type of contract to be declined if it's for Kerbin.

(and a new toolbar icon thanks to BadSector/Luca!)

Download: http://spacedock.info/mod/696/Contract%20Filter

ALL PROBLEMS/ISSUES MUST BE ACCOMPANIED BY A SETTINGS FILE AND OUTPUT LOG!!

Changelog:

v1.5.2:

-Fixed OutofSync exception when closing EditAll window. Now properly closes and saves.

-Fixed Bug with contracts being declined instead of deleted.

-Re-added app buttons.

v1.5.1:

-fixed an NRE that happened at Main Menu scene switch

v1.5:

-Updated to work with KSP 1.1.2

v1.4:

-Updated to work with KSP 1.0.4

v1.3:

-Configured Contracts are now not shenanigans

-Added in a throttle for contract acceptance rates

-Fixed things

-Added in hotkey to sort

-Fixed Sandbox mode throwing errors

-Added in new graphics for showing the state of the filter

-I forget the rest...

v1.2:

-new toolbar icon

-Added new Edit All button

-Fixed some underlying save/loading bugs

v1.1:

-Changed name to Contract Filter

-Fixed loading/saving bug

-Fixed contracts being removed when they shouldn't be

v1.0: Initial release

Source: https://github.com/wased89/ContractFilter

Thanks to BadSector/Luca for the toolbar icon!

 

THIS MOD IS UP FOR ADOPTION IF ANY MODDERS WANT TO PICK IT UP, TALK TO ME ON IRC

 

All Rights Reserved

SilverFox8124~

Edited by silverfox8124
new ownership.
Link to comment
Share on other sites

Is there a way to apply criteria to all contract types? For instance, I'd like to filter out anything with a reward less than 50,000 funds, but I don't see a way to do that other than editing each type individually.

Link to comment
Share on other sites

@Luca/Badsector, WOW, thank you for these icons, I really like them, and they are quite a few steps above what I could do,as I'm not a graphical artist whatsoever.

@Catullus, I may look into that being a feature, one of the prides and joys of Contract Filter is the per type basis.

@quatch, yes, this is because I renamed the mod from Contract Controller to Contract Filter. Contract Controller is to be removed.

Link to comment
Share on other sites

@Catullus, Yes, that is what I'm working on, but the way I have the GUIs working doesn't make it too easy to do, I actually have to re-write the editing GUIs so that they can handle more than 1 contract type at a time, which means having to add new GUIs so I don't end up destroying the ones I have.

Don't worry, after this feature is added, the new Icon(thanks to BadSector) will go up with the update as well!

Link to comment
Share on other sites

Oh hush you~~ :blush: Anyways, I'll probably have the update out by the end of the day. Stay tuned for more!

Edit: Catullus, you say you're a programmer? How long have you been programming for? Have you written any mods?

Edited by silverfox8124
Link to comment
Share on other sites

@Badsector, no problem! Again thank you lots for the icon, I'm a s*** graphics artist so yeah XD

Just one more point, i have made 4 icons for that

1) All white: no active filter

2) filter green: filter is active

3) contract green: filter option window open

4) all green: filter option window open and filter active

With that i don't want to rush you into one update but if you like the idea

Regards again

Luca

Link to comment
Share on other sites

I understand it's been updated since two days ago when I tried this, but two things I'm curious about before I re-install:

1) Anytime I hit ESC, the windows for the contracts popped up. Has this been corrected with the implementation of the toolbar icons?

2) Despite setting it up to reject any parts tests whatsoever, they continue to show. Additionally, some clarification on where, exactly, this looks for the strings you blacklist would be nice. I place "in flight below" as a blacklist string under surveys, and still had those contract types show up as well.

Link to comment
Share on other sites

@Shadriss, I'm having a funny feeling you aren't starting the sorting process. I suggest updating first, seeing if the problem persists, then if it's still there, come back with more info on what's going on

- - - Updated - - -

@Badsector, I have the code put in for the switching of the icons. I'm going to wait a bit and see if any bugs or such come up before putting this out to release.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...