Space Engineers

Space Engineers

[PAM] Path Auto Miner | Automated Mining, Grinding and Transportation | by Keks
1,845 Comments
kewa94 13 hours ago 
I have a large Ship with a Couple of Pam Miners That Come out of a Airtight Hanger and it Takes about 20sec for the hanger to decompress and open the hanger doors all the way to continue the flight. the only way i have gotten the system to have a delay is bye flying back and forth Infront of the gate. Outside of adding another PAM Program block is there any other way to add a wait time to my ship to just idle there for the 20 secs? is it posable to make a command into the code to add Sleep commands to the recording mid flight? like it would add a 5 sec sleep into the recording each press and there for you can press for desired result? i don't know how to code so adding it my self is way above my head. Is there any videos on this or about setting up the timer block method?
TechCoder Dec 1 @ 1:11pm 
Yes, it is true that small inset connector does not work with this magnificent script that has served for YEARS on THOUSANDS of ships (and still going strong!)

The small inset connector was introduced after the last update of the code and will not likely ever be useful. Partly due to the way Keen treats the connectors in the main program ('Connectors' are not 'Connectors' oddly enough...) so they aren't really compatible.

Though it is a small price to pay for such a reliable script!
murdockwan Dec 1 @ 10:15am 
@Wedges, it is still working well. Some reported issues with small inset connector, I have not tested it, maybe that does not work. Otherwise it's working great.
Wedges Dec 1 @ 10:13am 
Is this still working for new players ?
Vex Nov 23 @ 7:36am 
@Bakeneko not sure if you noticed; but this Script hasn't been updated in years.
The fact it still is functioning as designed for this long is astonishing enough.
Bakeneko Nov 15 @ 9:11am 
Cannot set home with the small inset connector. This script needs an update.
Sampl Oct 24 @ 1:51pm 
I am so happy this script still works!
i just cannot go without it.
Red_Fog Oct 23 @ 4:20pm 
anyone else notice lack of the original auto mode for stopping after mining ore per shaft?
murdockwan Oct 23 @ 10:29am 
@Alexis The Calico Yokai
> Does P.A.M. record actions like turning off the thrusters to land if I put it on a plane?

No, it does not.

Event Controller tracking a Connector object and acting on its connected/disconnected state, is one probable way of achieving what you are after (likewise with Landing Gear if you so prefer).

Programmable Block and custom script is another.

There are probably other methods too...
Alexis The Calico Yokai Oct 22 @ 8:16pm 
Does P.A.M. record actions like turning off the thrusters to land if I put it on a plane?
murdockwan Oct 14 @ 7:55pm 
This script works great - thank you!
I am using it with the XU-1 miner.
Sometimes, however, it experiences issues, and when that happens, I need to go get it, bring it back to my nearest base, and put it near my Nanite Control Factory, so that Nanite repair bots can auto-repair it.
For this purpose, I've created a lifter vehicle. If anyone else is interested, you can get it on the Workshop, here:
XU-1 Lifter (NO DLC)
Manyack Oct 12 @ 9:43am 
Is there any way to make it work with the small connectors? Or do we have to wait and see if someone fixes this (which I don't think will happen).
Sorry, my English is poor, but I use Google Translate.
ViccyQ Oct 5 @ 10:12am 
Anyone know of a similar script that takes advantage of the AI blocks?
Bockda Oct 2 @ 8:46pm 
i am also looking for an Open source or deminified Code to implement some of the functions for my own private use script..
jackik Sep 11 @ 7:11am 
This is an in-game script, you have full access to the script, that is the source.
If you're asking for permission and an open license that's something else.
Paper Crane Sep 9 @ 4:28pm 
I think it would be a wonderful idea to make the script open source or allow someone to maintain it.
MrFox Sep 1 @ 2:39pm 
SOurce code so i can update this please
MrFox Aug 30 @ 10:46am 
I know someone "Remade this" But this orginal is STILL the best and ALWAYS will be he removed many features that were loved.
Fvracer_x Aug 14 @ 5:08pm 
PAM still beats Keen's AI blocks hands down for ease of use and accurate repeatability. Best script ever written for SE, I've used it for years on literally hundreds of builds. :steamhappy:
Grand Cheese Wedge Aug 3 @ 12:17pm 
Is there a way to get it to effectively use the RMB function of the drills, the clearing, not mining function? I'm mining on a planet and as a result the ores are starting off quite deep, and I'm burning off loads of hydrogen just trying to mine down and then sit there dumping the stone.
lkcarfrey Jul 24 @ 9:52pm 
anyone else having issues with this script when after you turn the game off and log back in the script ejects the ore. (i.e. gold uranium) but if i use a fresh print it works fine.

i have checked all sorters and everything even recompiled
Anmaruk [GER] Jul 14 @ 8:34am 
Sadly don't work with the new small Connector.. Please make an update.
Martinez Jul 6 @ 7:56pm 
I love this script! Up to this day is still working just fine. I've been using it since 2021 ans I love it. It's magical! :spacerocketmars:
Jack Schitt Jun 29 @ 6:08am 
@keke: No because the official Keen servers do not allow scripts to be run. This is a script, not a "mod".
Soup Jun 28 @ 2:32pm 
does pam work on official keen servers?
rientelfon Jun 1 @ 9:12am 
I am getting "Setup Error! Can't Start" when setting up the job to start mining. It doesn't elaborate, any thoughts on what i am doing wrong?
Omega25647 May 20 @ 8:25am 
need to update to work with small connectors
Celica71 May 15 @ 1:13am 
@ Jack Schitt: I am running Build Info, I will try disabling it and see if that helps. Cheers!
Jack Schitt May 10 @ 3:49pm 
@ Celica71: Are you running Build Info? I've experienced that and a few other single mods causing the screens to get laggy. Yes, Build Info is a mod but it's a mod that has over 240 scripts in it. Too many scripts is probably what's going on.
Celica71 May 10 @ 3:18pm 
Hi guys, I am hoping someone can help me - I am running PAM on no more than 3 miners and one shuttle which initially works fine. After some time the LCD's on board to set up jobs etc become extremely laggy to the point it is effectively unusable. I only run ISY inventory and nanobot BAR scripts other than PAM. I have tried disabling these with no luck. Anybody got any ideas?
Paladwyn May 9 @ 8:25am 
Eanvillemain45 If you have a reactor on board and don't have uranium, make sure to turn off the reactor settings in the PAM menu. I can't remember exactly what it is but I had issues with that at first. It would fly to the site, start but then fly back because it was low on uranium, because I didn't have any.
Jack Schitt May 6 @ 6:44pm 
Share a blueprint of the ship, please. A copy of the code is in the in-game editor after you load the script to run it.
eanvillemain45 May 6 @ 5:45pm 
Also is there a way I can get ahold of a copy of the Code? I want to try a few things.
eanvillemain45 May 6 @ 5:39pm 
no, they're not on a subgrid, they're arranged on a grid of small conveyors on the bottom of the ship
Jack Schitt May 6 @ 4:45pm 
@eanvillenmain45 : Are the drills on a subgrid? If they are that's why it's not detecting them and going in to shuttle mode. None of these mining scripts can detect or operate drills if they're on a subgrid.
eanvillemain45 May 6 @ 4:38pm 
Tried a new world with this script, and the script seems stuck in shuttle mode. It has drills, but I can't settup a mining job.
RenegadeGray May 4 @ 12:37pm 
I'd really love to be able to set up circular mining jobs. I seem to get a lot of empty paths when I try to clear out an asteroid for pathing and shipyard space. Thanks again for suck a great tool to use!
Kevin Starwaster Mar 8 @ 7:10am 
@Dots Not sure if you still monitor the comments here but re: your issues with large distance operations: Try this version. (the problem is related to using singles instead of doubles)

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3383994502&searchtext=
Killer Bee Feb 27 @ 11:27am 
This scrit is invaluable for cargo, way better than vanilla solution.
Stavinair Caeruleum Feb 8 @ 11:45am 
Really wish we could save jobsites as presets...
Kham Jan 26 @ 5:16pm 
@Royalfly no it doesn't. They were added to the game long after the script was last updated.
Royalfly Jan 26 @ 3:07pm 
I feel like I am missing something. Does Pam not work with the small connectors?
Yorghalum_se Jan 25 @ 4:40am 
@KraziYeti
I just tested the timerblock triggering on dock/undock and it went well.
Question: your timer is on the PAM grid? Not on the station grid?

For the test:
- I've set up the shuttle route, "record path"
- I went in "setup shuttle job" / "next"
- I chose the timerblocks
- then "start" and "undock"

I've created timeblocks on both PAM grid and station grid, to check. I only see PAM grid ones.

I can share the test world if you want to compare with your setup.
Yorghalum_se Jan 24 @ 8:59pm 
@Jack Schitt
On shuttle mode, there is a page in the menu to trigger timers in shuttle scenario.
( "Timer events" in the guide ).

@KraziYeti
I didn't use this feature since long time ago. I'll give it a try.
I don't remember having to set tag nor anything else. Perhaps try recompile or force shuttle mode again, using the "shuttle" exec parameter? For the script to re-scan the grid connectors list.
Yorghalum_se Jan 24 @ 8:42pm 
@DocJopa
I recently faced same issue. In my case, I wonder if it was coming from far distance from world center.
My miner also faced some issues lining up with connector.
I tried Echthros variation, changing only variables types/precision , and it fixed it.
Maybe give it a try?

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3383994502

@Keks
Thanks again for this script. Love it so much.
Jack Schitt Jan 22 @ 10:58am 
What timer page? This doesn't have a page for timer blocks.
KraziYeti Jan 22 @ 3:48am 
Hi, I'm trying to run a cargo shuttle. On the job page where you can set a timer I cannot set anything. I've tried tagging the timer blocks and calling them Docking Connector 1 etc but when i get into that option and press apply nothing happens. Anyone got this setup or is it no longer a working option?
MrFox Jan 21 @ 4:03pm 
This is STILL the best!! WAY better then that guy who took this and removed parts that are much loved
Jack Schitt Jan 8 @ 7:12am 
Nose: The settings to turn broadcasting on and off are in custom data. See the guide for details.
Nose Jan 8 @ 7:03am 
Can I activate the Broadcast function from the PAM script without accessing the script manually? (Is there an option in the menu screen to activate it?) Also, thanks for this awesome script, @Keks!