[A16] HaulPriority (1.0.5) Fix (16.01.2017)

Started by Renzo471, April 07, 2016, 02:01:17 PM

Previous topic - Next topic

hwoo

Thank you! This mod is essential for mass hauling stone chunks. So bloody usefull for getting what you want done first as they are everywhere xD

Rock5

Is it possible to add your designators to the item selection designators? I'd like to be able to double click an item to select all like items on the screen, then click one of you designators.

Also I noticed a small bug. If there are multiple items on top of each other, eg. dead bodies, it tends to only select one, when you rectangle select multiple items with the mouse.

This was with the version before chunks were added.
Rock5 [B18] Mods
- Butchers Can Count Meat
- Sun Lamp Planner
- JTZoneButtons
- RimSearch
- JTExport

nuschler22

#17
Can someone tell me how to use this? 

I have no additional "Haul" orders, just the normal one.  I assume there is supposed to be an additional "Haul" order?

Also, does it just designate what to haul first, or designate hauling as the first priority over all other work until what you want hauled is done?

Also, I have the "Unforbid" designator (green check mark).

Thanks for the help!


Rock5

Quote from: nuschler22 on April 16, 2016, 02:40:45 PM
Can someone tell me how to use this? 

I have no additional "Haul" orders, just the normal one.  I assume there is supposed to be an additional "Haul" order?

Also, does it just designate what to haul first, or designate hauling as the first priority over all other work until what you want hauled is done?

Also, I have the "Unforbid" designator (green check mark).

Thanks for the help!
If you have VeinMiner like me and you load VeinMiner after HaulPriority then the HaulPriority designators wont show. If you load them the other way round then the VeinMiner designators wont show. That's why I had to merge them.
Rock5 [B18] Mods
- Butchers Can Count Meat
- Sun Lamp Planner
- JTZoneButtons
- RimSearch
- JTExport

nuschler22

#19
How do you merge them???

nuschler22

#20
For some reason, the designator is still not working with chunks unless I'm doing something incorrectly.

Also, what's the difference between the two versions with NoForbid and Lite?

Thanks!

Looks like it will be incredibly useful once I figure out how to use it.

Rock5

Quote from: nuschler22 on April 17, 2016, 04:35:18 PM
For some reason, the designator is still not working with chunks unless I'm doing something incorrectly.

Also, what's the difference between the two versions with NoForbid and Lite?

Thanks!

Looks like it will be incredibly useful once I figure out how to use it.
The same thing happened to me but when I downloaded it again and tried again, it worked. Maybe the download wasn't updated fast enough.

The NoForbid version doesn't include the Unforbid designator so you can use another from another mod if you prefer.
Rock5 [B18] Mods
- Butchers Can Count Meat
- Sun Lamp Planner
- JTZoneButtons
- RimSearch
- JTExport

Rock5

Quote from: nuschler22 on April 17, 2016, 02:59:56 PM
How do you merge them???
What I did was open Defs\DesignationCategoryDefs\DesignationCategories.xml of the mod I'm going to load last, in my case it was VeinMiner, then add the missing lines from the other mod. It should look like this.
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
  <DesignationCategoryDef>
    <defName>Orders</defName>
    <label>orders</label>
    <description>Designate specific interactions with specific things.</description>
    <order>900</order>
    <specialDesignatorClasses>
      <li>Designator_Cancel</li>
      <li>Designator_Deconstruct</li>
      <li>Designator_Mine</li>
      <li>Designator_Haul</li>
      <li>Designator_PlantsCut</li>
      <li>Designator_PlantsHarvest</li>
      <li>Designator_PlantsHarvestWood</li>
      <li>Designator_Hunt</li>
      <li>Designator_Slaughter</li>
      <li>Designator_Tame</li>
      <li>Designator_Uninstall</li>
      <li>Designator_Claim</li>
      <li>Designator_Strip</li>
      <li>Designator_RearmTrap</li>
      <li>Designator_Open</li>
      <li>Designator_PlanAdd</li>
      <li>Designator_PlanRemove</li>
      <li>HaulPriority.Designator_HaulPriority</li>
      <li>HaulPriority.Designator_HaulPriorityHighPriorityOverride</li>
      <li>HaulPriority.Designator_Unforbid</li>
      <li>VeinMiner.Designator_VeinMiner</li>
      <li>MineBrush.DesognatorMineBrush</li>
      <li>MineBrush.StripMiner</li>
    </specialDesignatorClasses>
  </DesignationCategoryDef>
</Defs>


That way VeinMiner loads the designators for HaulPriority too.
Rock5 [B18] Mods
- Butchers Can Count Meat
- Sun Lamp Planner
- JTZoneButtons
- RimSearch
- JTExport

nuschler22

#23
Thank you so much, Rock.  I'll give that a try.

I tried it before you posted this and ended having to reinstall both. Lol.


Add:  It worked perfectly, thank you again!

Poebe

Are there any chances of you making a compatibility patch so this works with veinminer? There used to be one back in A9 but nobody updated it so

Rock5

Quote from: Poebe on April 30, 2016, 01:27:13 AM
Are there any chances of you making a compatibility patch so this works with veinminer? There used to be one back in A9 but nobody updated it so
The way they are written is each one completely redefines the buttons in the Orders tab, ie. they relist all the existing buttons and then add their own. This means that which ever is loaded second overwrites the first. My solution just lists all the original buttons and the buttons for both mods in the last mod loaded. To make it properly compatible they would have to be able to add their buttons without relisting the whole Orders list. I don't know how to do this. If it's possible it probably needs to be in the dll. I can't see any way to do it using just xml.
Rock5 [B18] Mods
- Butchers Can Count Meat
- Sun Lamp Planner
- JTZoneButtons
- RimSearch
- JTExport

eastwood6510

Quote from: Rock5 on April 17, 2016, 09:13:39 PM
Quote from: nuschler22 on April 17, 2016, 02:59:56 PM
How do you merge them???
What I did was open Defs\DesignationCategoryDefs\DesignationCategories.xml of the mod I'm going to load last, in my case it was VeinMiner, then add the missing lines from the other mod. It should look like this.
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
  <DesignationCategoryDef>
    <defName>Orders</defName>
    <label>orders</label>
    <description>Designate specific interactions with specific things.</description>
    <order>900</order>
    <specialDesignatorClasses>
      <li>Designator_Cancel</li>
      <li>Designator_Deconstruct</li>
      <li>Designator_Mine</li>
      <li>Designator_Haul</li>
      <li>Designator_PlantsCut</li>
      <li>Designator_PlantsHarvest</li>
      <li>Designator_PlantsHarvestWood</li>
      <li>Designator_Hunt</li>
      <li>Designator_Slaughter</li>
      <li>Designator_Tame</li>
      <li>Designator_Uninstall</li>
      <li>Designator_Claim</li>
      <li>Designator_Strip</li>
      <li>Designator_RearmTrap</li>
      <li>Designator_Open</li>
      <li>Designator_PlanAdd</li>
      <li>Designator_PlanRemove</li>
      <li>HaulPriority.Designator_HaulPriority</li>
      <li>HaulPriority.Designator_HaulPriorityHighPriorityOverride</li>
      <li>HaulPriority.Designator_Unforbid</li>
      <li>VeinMiner.Designator_VeinMiner</li>
      <li>MineBrush.DesognatorMineBrush</li>
      <li>MineBrush.StripMiner</li>
    </specialDesignatorClasses>
  </DesignationCategoryDef>
</Defs>


That way VeinMiner loads the designators for HaulPriority too.

Hey there. I merged the two just like your shows here and I still don't have the haul orders showing. I have haul priority loading right before vein miner.

Th vein miner icons are showing up but not the haul priority. Anyone have any ideas?

Here is my DesignationCategories.xml
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

 
  <DesignationCategoryDef>
    <defName>Orders</defName>
    <label>orders</label>
    <description>Designate specific interactions with specific things.</description>
    <order>900</order>
    <specialDesignatorClasses>
  <li>Designator_Cancel</li>
      <li>Designator_Deconstruct</li>
      <li>Designator_Mine</li>
      <li>Designator_Haul</li>
      <li>Designator_PlantsCut</li>
      <li>Designator_PlantsHarvest</li>
      <li>Designator_PlantsHarvestWood</li>
      <li>Designator_Hunt</li>
      <li>Designator_Slaughter</li>
      <li>Designator_Tame</li>
      <li>Designator_Uninstall</li>
      <li>Designator_Claim</li>
      <li>Designator_Strip</li>
      <li>Designator_RearmTrap</li>
      <li>Designator_PlanAdd</li>
      <li>Designator_PlanRemove</li>
      <li>Designator_Open</li>
  <li>HaulPriority.Designator_HaulPriority</li>
  <li>HaulPriority.Designator_HaulPriorityHighPriorityOverride</li>
  <li>HaulPriority.Designator_Unforbid</li>
  <li>VeinMiner.Designator_VeinMiner</li>     
  <li>MineBrush.DesognatorMineBrush</li>
  <li>MineBrush.StripMiner</li>
    </specialDesignatorClasses>
  </DesignationCategoryDef>
 
 
 
 
</Defs>


Edit: wow nevermind. I deleted the extra lines in my .xml and that fixed everything.....

Havan_IronOak

After reading through this thread I was able to get Vein Miner and HaulPriorityLite to "play nicely together" by editing the xml file. Thanks for the commenters here!

Any chance of the two developers (or a third party) creating a combined "Enhanced Orders" mod so as to eliminate the confusion with new releases and for those that are more reluctant to edit XML files?

Either way... I'm good and I love both mods! Just wish they loved each other more on install.

Lupin III

Quote from: Havan_IronOak on July 02, 2016, 02:56:56 PM
Any chance of the two developers (or a third party) creating a combined "Enhanced Orders" mod so as to eliminate the confusion with new releases and for those that are more reluctant to edit XML files?
Yes, I'm really annoyed by this as well and as I understand it is not the modders' fault. Better ask Tynan to allow mods to add and not completely overwrite whole menues. It's the same problem with buildings/objects and recipies.

skullywag

Im looking into this as part of CCL, we should be able to hopefully allow injection of designators to the different categories. Speaking to 1000101 now. It may already do it.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?