Jump to content

[1.1.2] WernherChecker v0.4.1 - Customizable Editor Pre-Flight Checklist ; (May 18)


Magion

Recommended Posts

I am proud, that I can introduce you the new version of WernherChecker, which contains long awaited feature - configuration file, where you can edit, what to check for.

So, how it works?

↓OUTDATED!!! - Check OP for UpToDate guide

Here is how the stock config file looks like:


items = Control Source,,Reaction Wheels,Power Source,,Engines,Parachutes,Communication,SCIENCE!!
modules = ModuleCommand,KerbalSeat,ModuleReactionWheel,ModuleDeployableSolarPanel,ModuleGenerator,ModuleEngines,ModuleParachute,ModuleDataTransmitter,ModuleScienceExperiment

If you want to check for one module per item, do it simply like this:


items = item1,item2,item3
modules = module1,module2,module3

If you want to check for two modules per item, don't write there anything(DON'T WRITE THERE A MARGIN NEITHER) in the items line on the same field as the second module


items = item1,,item2
modules = module1(item1),module2(item1),module3(item2)

You can check maximaly for two modules per one item! - changed in v0.1.4

Hopefully you got it, beacuse I am not very good at explaining things

And that's it. I hope you will enjoy the new feature.

Edited by Magion
Link to comment
Share on other sites

this seems like it may reduce the fun of the game. i mean, some of the important parts of KSP ARE forgetting solar panels, not being able to turn your ship, and so on.

It's the same case as MechJeb. Estimating Delta-V is part of the game too, but most of the people have it installed.

How about adding a checklist for inflight operations too? (Have I lowered my landing gear? Did I saved the game before initiating the final decent?)
This is thing, about that I was thinking too.
Link to comment
Share on other sites

  • 2 weeks later...

Hi,

Nice mod, would it be possible to add this checklist for each stage? Just yesterday it could save my mission on EVE, I had transfer and lander stage, but my solar panels were attached to transfer stage, as soon as lander has separated and entered atmosphere, it run out of power :( So that checklist per stage would be really useful

Link to comment
Share on other sites

I decided to have a look at your code to disable Jeb's suggestion and ended up doing a bit more.

It should be totally possible for users to define any number of modules per item, and I have written some pseudocode to explain the way I would do it.

Instead of having two seperate 'drawListItems' methods to handle items with either one or two modules, this one method can handle items with any number of modules.

onWindow{
if file exists{

for (int i=0; i<items.length; i++){ //For every item in the list

drawListItems(i); //Draw the Item and wether its true or not
inc windowHeight;
}
}
}

drawListItems(i){

bool hasModule = false;
int noMods = 1; //The number of modules linked to this item
int nextItem = i+1;
do{

bool longer = false;

if (items(nextItem)==""){ //if the next item is blank it means more modules
//are linked
longer = true;
noMods++;
nextItem++;
}
}while (longer==true);

if root selected{

foreach(part in ship){

for (int x = 0; x<noMods; x++){ //Check this part for every module

if(part.module.contains(modules[i+x])){

hasModule = true;
}
}
}
}

print(items[i], hasModule);
}

If you need any explanation of the code or help implementing it feel free to ask.

Love the idea of this mod, keep up the good work

**edit**

I have made the changes to the source to implement this but I am nowhere near a compiler so it is untested. Anyone wanting to try it can find it here

Edited by a__gun
Link to comment
Share on other sites

Hmm... Interesting...

I'll try to don't remember your code and figure out, how to write it on my own, because I don't want simply copy it. I want to improve my coding skills a bit.

BTW, I'm not a lawyer, but I affraid, that the code you pasted on the Pastebin is against the MIT License. You have to copy the license, which I have in the download file to the begining of your modified code.

Edited by Magion
Link to comment
Share on other sites

WernherChecker is customizable and compatibile with ALL mods. You just need to know the name of the PartModule of the part, that you want to check for. In your case, PartModule for RealChute parachutes is "RealChuteModule". Then you must edit the config file, located in "GameData/WernherChecker/Data/modules.cfg" the way, I explained in this post.

So your modules.cfg should then looks like this:


items = Control Source,,Reaction Wheels,Power Source,,Engines,Parachutes,,Communication,SCIENCE!!
modules = ModuleCommand,KerbalSeat,ModuleReactionWheel,ModuleDeployableSolarPanel,ModuleGenerator,ModuleEngines,ModuleParachute,RealChuteModule,ModuleDataTransmitter,ModuleScienceExperiment

At this time you can check only for two PartModules per one item - changed in v0.1.4

Edited by Magion
Link to comment
Share on other sites

Finally, v0.1.4 has been released!

This update may seems small, but it requied rewriting a lot of code, to support the new feature, which will appreciate mainly players, who have many mods installed, so parts of the same type use various PartModules. So the new feature is, that you are no longer limited in numbers of PartModules to check for per one item.

Link to comment
Share on other sites

Yeah, I almost forgot on that. I will probably make different list settings for SPH too. But this will be not in next update. In that are gonna be new textures and fonts for the window.

Edit: Wow, it's actually harder to import font, than I thought it's gonna be, so in next update is gonna be functionality in SPH.

Edited by Magion
Link to comment
Share on other sites

Hmm yeah I just saw your post on the previous page. Never compiled for KSP before, I guess I'll just ignore it. I hope it becomes optional in future versions, it's a nice joke but I don't always build designs that need boosters.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

And next version of WernherChecker is online!

So...What's changed?

* Checklist is now available in SPH too and you can configure it's items separatly from VAB

* Editor will be locked if you will hover over the window to preven unwanted parts grabbing

* Small code optimisation

Hope you enjoy!

Link to comment
Share on other sites

Cool!

Can you make it so it says something along the lines of "remember crew" because whenever I want a crew transport I always forget to check and see if the crew has disappeared (or can i do it in the config?)

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...