-
Posts
16 -
Joined
-
Last visited
Content Type
Profiles
Warranty Claims
Downloads
Forums
Store
Services
Downloads Plus Support
DOWNLOADS EXTRA
Everything posted by lafeiyatis
-
Storage adapter has issues on pump jack and mining quarry
lafeiyatis replied to lafeiyatis's Support Report in Support
Okay, I'll give it a try. Does your new version fix the storage adapter offset issue for the pump jack's output oil drum? -
Storage adapter has issues on pump jack and mining quarry
lafeiyatis replied to lafeiyatis's Support Report in Support
OK, while I'm not sure if this floating island uses "new rust rock", I think a raycast-based ground detection would be better. The pre-made terrain information is inaccurate or even outdated, and there are also player constructions, terrain decorations, floating islands, and so on up there. I suggest you cast a ray downward to find a walkable surface instead. -
Storage adapter has issues on pump jack and mining quarry
lafeiyatis replied to lafeiyatis's Support Report in Support
Success, this works. The only issue is the pipe direction isn't rendering correctly, but that's a minor problem. Here's the code I modified: private static float GetPipeLength(IOEntity from, int outputSlot, IOEntity to, int inputSlot) { if (from == null || to == null) return -1f; if (from.ioType != IOEntity.IOType.Industrial || to.ioType != IOEntity.IOType.Industrial) return -1f; if (outputSlot < 0 || outputSlot >= from.outputs.Length) return -1f; if (inputSlot < 0 || inputSlot >= to.inputs.Length) return -1f; var startWorld = from.transform.TransformPoint(from.outputs[outputSlot].handlePosition); var endWorld = to.transform.TransformPoint(to.inputs[inputSlot].handlePosition); var groundStart = new Vector3(startWorld.x, TerrainMeta.HeightMap.GetHeight(startWorld), startWorld.z); var groundEnd = new Vector3(endWorld.x, TerrainMeta.HeightMap.GetHeight(endWorld), endWorld.z); //return Vector3.Distance(startWorld, groundStart) // + Vector3.Distance(groundStart, groundEnd) // + Vector3.Distance(groundEnd, endWorld); return Vector3.Distance(startWorld, endWorld); } private static float GetPipeLengthToPlayer(IOEntity from, int outputSlot, Vector3 playerPosition) { if (from == null) return -1f; if (from.ioType != IOEntity.IOType.Industrial) return -1f; if (outputSlot < 0 || outputSlot >= from.outputs.Length) return -1f; var startWorld = from.transform.TransformPoint(from.outputs[outputSlot].handlePosition); var groundStart = new Vector3(startWorld.x, TerrainMeta.HeightMap.GetHeight(startWorld), startWorld.z); var groundEnd = new Vector3(playerPosition.x, TerrainMeta.HeightMap.GetHeight(playerPosition), playerPosition.z); //return Vector3.Distance(startWorld, groundStart) // + Vector3.Distance(groundStart, groundEnd) // + Vector3.Distance(groundEnd, playerPosition); return Vector3.Distance(startWorld, playerPosition); } private static void SetPipeLinePoints(IOEntity from, int outputSlot, IOEntity to, int inputSlot) { if (from == null || to == null) return; if (from.ioType != IOEntity.IOType.Industrial || to.ioType != IOEntity.IOType.Industrial) return; var slot = from.outputs[outputSlot]; var startWorld = from.transform.TransformPoint(slot.handlePosition); var endWorld = to.transform.TransformPoint(to.inputs[inputSlot].handlePosition); // Ground height under the two sockets var groundYStart = TerrainMeta.HeightMap.GetHeight(startWorld); var groundYEnd = TerrainMeta.HeightMap.GetHeight(endWorld); // Ground point under the start socket var groundStart = new Vector3(startWorld.x, groundYStart, startWorld.z); // Ground point under the end socket var groundEnd = new Vector3(endWorld.x, groundYEnd, endWorld.z); // All points in 'from' local space slot.linePoints = new[] { from.transform.InverseTransformPoint(startWorld), // [0] socket output //from.transform.InverseTransformPoint(groundStart), // [1] goes down to ground under 'from' //from.transform.InverseTransformPoint(groundEnd), // [2] travels along the ground to 'to' from.transform.InverseTransformPoint(endWorld), // [3] goes up to the input socket }; } -
Storage adapter has issues on pump jack and mining quarry
lafeiyatis replied to lafeiyatis's Support Report in Support
I think I know what the issue is with this function. You always want the pipe to go "down" to the ground, then run along the ground, then go "up" to the container — instead of going in a straight line. You're using TerrainMeta.HeightMap.GetHeight(startWorld) to find the ground, but this doesn't account for floating islands created by other plugins. This results in the pipe projecting dozens of meters downward from the floating island just to reach the game's base terrain. Maybe you did this for visual aesthetics? But I don't think it's necessary — just drawing a straight line between the two points would be fine. I'm going to modify your code and test it out. -
- 294 comments
-
- #industrial storage adaptor
- #expand storage adaptor
-
(and 44 more)
Tagged with:
- #industrial storage adaptor
- #expand storage adaptor
- #farming automation
- #dung composer
- #horse dung collector
- #splitter
- #composter split
- #auto split
- #chicken coop
- #hitch & trough
- #beehive
- #furnace
- #drop box
- #planter box
- #small generator
- #composter
- #mixing table
- #cooking workbench
- #recycler
- #auto turret
- #sam site
- #flame turret
- #shotgun trap
- #snow machine
- #chicken coop auto pet
- #chicken coop sunlight
- #beehive customization
- #beehive growth rate
- #beehive production speed
- #beehive production multiplier
- #beehive xp increase
- #eggs production speed
- #industrial conveyor customization
- #industrial customization
- #planter box automatic seeding
- #planter box automatic harvest
- #special seeds
- #seeds
- #eggs auto hatching
- #instant grow
- #custom genetics
- #fertilize plant
- #gene
- #genetic
- #mining quarry
- #pump jack
-
Storage adapter has issues on pump jack and mining quarry
lafeiyatis posted A Support Report in Support
As shown in the picture, you can see that after I stood here and hit the Storage Adapter of this mining quarry with a hammer, I didn't move, yet the distance already exceeded 30 meters, which means I practically can't connect it from anywhere. I placed the Mining Quarry on a floating island, taking advantage of the fact that you ignored the ground load-bearing mechanic. These are my coordinates. All Storage Adapters on the Mining Quarry and Pump Jack have a similar issue. ("Mining Quarry or Pump Jack: Disable stability control during spawning. Default false": true) But there is one exception: the Storage Adapter placed on the output bucket of the Pump Jack. It seems to not exist at all — it cannot be hit with a hammer (the hammer's striking sound is not a metal hit, and it doesn't produce the "connectable for 3 minutes" prompt after striking), and when aiming at it with the mouse, it shows "打开" — that is, the prompt to press E to open the UI for taking items out of the bucket. You can see from the first image that, under normal circumstances, what should be displayed here is "拾取" meaning that holding E would remove this Storage Adapter and put it back into your inventory. -
Why did it show over 100 meters when I just hit the storage adapter in front of me with a hammer as you instructed? Also, the storage adapter at the output end of the oil pump jack has no effect — the hammer can't hit it, and even when aimed at it, it doesn't show the prompt to hold E to dismantle. "打开" means open
- 294 comments
-
- #industrial storage adaptor
- #expand storage adaptor
-
(and 44 more)
Tagged with:
- #industrial storage adaptor
- #expand storage adaptor
- #farming automation
- #dung composer
- #horse dung collector
- #splitter
- #composter split
- #auto split
- #chicken coop
- #hitch & trough
- #beehive
- #furnace
- #drop box
- #planter box
- #small generator
- #composter
- #mixing table
- #cooking workbench
- #recycler
- #auto turret
- #sam site
- #flame turret
- #shotgun trap
- #snow machine
- #chicken coop auto pet
- #chicken coop sunlight
- #beehive customization
- #beehive growth rate
- #beehive production speed
- #beehive production multiplier
- #beehive xp increase
- #eggs production speed
- #industrial conveyor customization
- #industrial customization
- #planter box automatic seeding
- #planter box automatic harvest
- #special seeds
- #seeds
- #eggs auto hatching
- #instant grow
- #custom genetics
- #fertilize plant
- #gene
- #genetic
- #mining quarry
- #pump jack
-
- 294 comments
-
- #industrial storage adaptor
- #expand storage adaptor
-
(and 44 more)
Tagged with:
- #industrial storage adaptor
- #expand storage adaptor
- #farming automation
- #dung composer
- #horse dung collector
- #splitter
- #composter split
- #auto split
- #chicken coop
- #hitch & trough
- #beehive
- #furnace
- #drop box
- #planter box
- #small generator
- #composter
- #mixing table
- #cooking workbench
- #recycler
- #auto turret
- #sam site
- #flame turret
- #shotgun trap
- #snow machine
- #chicken coop auto pet
- #chicken coop sunlight
- #beehive customization
- #beehive growth rate
- #beehive production speed
- #beehive production multiplier
- #beehive xp increase
- #eggs production speed
- #industrial conveyor customization
- #industrial customization
- #planter box automatic seeding
- #planter box automatic harvest
- #special seeds
- #seeds
- #eggs auto hatching
- #instant grow
- #custom genetics
- #fertilize plant
- #gene
- #genetic
- #mining quarry
- #pump jack
-
- 294 comments
-
- #industrial storage adaptor
- #expand storage adaptor
-
(and 44 more)
Tagged with:
- #industrial storage adaptor
- #expand storage adaptor
- #farming automation
- #dung composer
- #horse dung collector
- #splitter
- #composter split
- #auto split
- #chicken coop
- #hitch & trough
- #beehive
- #furnace
- #drop box
- #planter box
- #small generator
- #composter
- #mixing table
- #cooking workbench
- #recycler
- #auto turret
- #sam site
- #flame turret
- #shotgun trap
- #snow machine
- #chicken coop auto pet
- #chicken coop sunlight
- #beehive customization
- #beehive growth rate
- #beehive production speed
- #beehive production multiplier
- #beehive xp increase
- #eggs production speed
- #industrial conveyor customization
- #industrial customization
- #planter box automatic seeding
- #planter box automatic harvest
- #special seeds
- #seeds
- #eggs auto hatching
- #instant grow
- #custom genetics
- #fertilize plant
- #gene
- #genetic
- #mining quarry
- #pump jack
-
- 294 comments
-
- #industrial storage adaptor
- #expand storage adaptor
-
(and 44 more)
Tagged with:
- #industrial storage adaptor
- #expand storage adaptor
- #farming automation
- #dung composer
- #horse dung collector
- #splitter
- #composter split
- #auto split
- #chicken coop
- #hitch & trough
- #beehive
- #furnace
- #drop box
- #planter box
- #small generator
- #composter
- #mixing table
- #cooking workbench
- #recycler
- #auto turret
- #sam site
- #flame turret
- #shotgun trap
- #snow machine
- #chicken coop auto pet
- #chicken coop sunlight
- #beehive customization
- #beehive growth rate
- #beehive production speed
- #beehive production multiplier
- #beehive xp increase
- #eggs production speed
- #industrial conveyor customization
- #industrial customization
- #planter box automatic seeding
- #planter box automatic harvest
- #special seeds
- #seeds
- #eggs auto hatching
- #instant grow
- #custom genetics
- #fertilize plant
- #gene
- #genetic
- #mining quarry
- #pump jack
-
- 294 comments
-
- #industrial storage adaptor
- #expand storage adaptor
-
(and 44 more)
Tagged with:
- #industrial storage adaptor
- #expand storage adaptor
- #farming automation
- #dung composer
- #horse dung collector
- #splitter
- #composter split
- #auto split
- #chicken coop
- #hitch & trough
- #beehive
- #furnace
- #drop box
- #planter box
- #small generator
- #composter
- #mixing table
- #cooking workbench
- #recycler
- #auto turret
- #sam site
- #flame turret
- #shotgun trap
- #snow machine
- #chicken coop auto pet
- #chicken coop sunlight
- #beehive customization
- #beehive growth rate
- #beehive production speed
- #beehive production multiplier
- #beehive xp increase
- #eggs production speed
- #industrial conveyor customization
- #industrial customization
- #planter box automatic seeding
- #planter box automatic harvest
- #special seeds
- #seeds
- #eggs auto hatching
- #instant grow
- #custom genetics
- #fertilize plant
- #gene
- #genetic
- #mining quarry
- #pump jack
-
Hello, author. I really like your plugin, but I personally believe there is still much room for performance optimization. About four to five months ago, I made some optimizations based on version 1.2.3, and I think the results are quite good. I would like to send it to you to see if there are any parts that you could take inspiration from and incorporate into your version branch. How should I send it to you?
- 294 comments
-
- #industrial storage adaptor
- #expand storage adaptor
-
(and 44 more)
Tagged with:
- #industrial storage adaptor
- #expand storage adaptor
- #farming automation
- #dung composer
- #horse dung collector
- #splitter
- #composter split
- #auto split
- #chicken coop
- #hitch & trough
- #beehive
- #furnace
- #drop box
- #planter box
- #small generator
- #composter
- #mixing table
- #cooking workbench
- #recycler
- #auto turret
- #sam site
- #flame turret
- #shotgun trap
- #snow machine
- #chicken coop auto pet
- #chicken coop sunlight
- #beehive customization
- #beehive growth rate
- #beehive production speed
- #beehive production multiplier
- #beehive xp increase
- #eggs production speed
- #industrial conveyor customization
- #industrial customization
- #planter box automatic seeding
- #planter box automatic harvest
- #special seeds
- #seeds
- #eggs auto hatching
- #instant grow
- #custom genetics
- #fertilize plant
- #gene
- #genetic
- #mining quarry
- #pump jack