obj_JetCan.iss fix for new inventory system/multiple can use

wco12

Member
https://www.dropbox.com/s/v4vrcnbvj5isex0/obj_JetCan.iss

This file updates obj_JetCan.iss to allow for access to the new inventory system.

Additions:
member CargoUsedCapacity

Changes:
member IsCargoOpen
member CargoCapacity
member CargoFreeSpace
function Open
function Close

Deletions:
obj_CorpHangarArray member IsCargoOpen
obj_CorpHangarArray member CargoCapacity
obj_SpawnContainer member CargoCapacity
obj_LargeShipAssemblyArray member CargoCapacity
obj_XLargeShipAssemblyArray member CargoCapacity

Note: These objects inherit obj_JetCan and now use that object's IsCargoOpen and CargoCapacity members

Known or reported fixes/behavior changes due to this update:
1. EVEBot miner no longer throws JetCan.Open timeout errors when trying to move ore to JetCans. This should keep your cargo from becoming full
2. EVEBot miner can now detect JetCan capacities, so should recognize full cans and jettison a new can when needed
3. EVEBot hauler has been reported to remove all ore (instead of all ore -1) from a can in some modes, which may be different from current behavior without this fix.
 

wco12

Member
Great patch. Merged into svn.

I particularly like that you took the time to remove the (now) redundant overloads.

Question, why did you comment out everything inside Close()?
Thanks.

I thought I added a comment to Close() that explained it but I guess not.

The current code didn't do anything and there is no actual way to close the JetCan right now (you can only close the main inv window), which IMO should be handled separately from the JetCan's window. So I commented it out. D

I didn't want to delete the member entirely because other files probably call it and would break. I left the member's code in (but commented) as a starting point for new code when a way to close the JetCan window (but not the main inv) happens.
 
Top Bottom