Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

BrisingrAerowing

Members
  • Content Count

    153
  • Joined

  • Last visited

  • Days Won

    18

Posts posted by BrisingrAerowing

  1. I am working on a mod that adds drivers for Tinker's Construct, and everything works, except the component name. For some reason, the adapter always gives back, e.g. gui_smeltery_name for the smeltery, while I set the name to be 'smeltery' in the setComponent method.

    The code: https://github.com/BrisingrAerowing/TinkersOCDrivers/blob/master/src/main/java/tinkersoc/smeltery/EnvironmentSmeltery.java#L20

    Anyone know why this happens and how to fix it?

  2. The draconic power orb has a getTransferPerTick, which gives either the input or the output per tick depending on which pylon the adapter is next to. Having two adapters (and a bit of user config for which is which) would allow for what @Rhajos wants. Optional of course. If there are more than one input / output pylon, you could get the transfer of each and display the values.

  3. I assume the Flux Points are connected using an adapter, so you can use the Analyzer on said adapters while holding Ctrl to copy each address into the clipboard and then paste it into the script using the following code to get each instance:

    local component = require("component")
    
    local fluxPoint1Address = "<ADDRESS 1 GOES HERE>"
    local fluxPoint2Address = "<ADDRESS 2 GOES HERE>"
    
    local fluxPoint1 = component.get(fluxPoint1Address)
    local fluxPoint2 = component.get(fluxPoint2Address)
    
    -- Do whatever with the flux points

    You don't need the address variables, I just place them with other settings / addresses / etc at the top of the file so they are easy to edit if needed (and I don't have to search for them throughout the file).

  4. I looked at the cable class, and found it always get the capability from whatever it is connected to each time the method hasCapability was called. I tried caching the result but there was still the one tick delay, so it seems the issue is deeper in the code than I thought. I don't know where the actual environment capability is obtained and used, and I haven't found it anywhere yet (I haven't looked too hard, though).

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.