Space Engineers

Space Engineers

[PAM] Path Auto Miner | Automated Mining, Grinding and Transportation | by Keks
1.845 opmerkingen
kewa94 6 dec om 18:00 
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 1 dec om 13:11 
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 1 dec om 10:15 
@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 1 dec om 10:13 
Is this still working for new players ?
Vex 23 nov om 7:36 
@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 15 nov om 9:11 
Cannot set home with the small inset connector. This script needs an update.
Sampl 24 okt om 13:51 
I am so happy this script still works!
i just cannot go without it.
Red_Fog 23 okt om 16:20 
anyone else notice lack of the original auto mode for stopping after mining ore per shaft?
murdockwan 23 okt om 10:29 
@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 22 okt om 20:16 
Does P.A.M. record actions like turning off the thrusters to land if I put it on a plane?
murdockwan 14 okt om 19:55 
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 12 okt om 9:43 
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 5 okt om 10:12 
Anyone know of a similar script that takes advantage of the AI blocks?
Bockda 2 okt om 20:46 
i am also looking for an Open source or deminified Code to implement some of the functions for my own private use script..
jackik 11 sep om 7:11 
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 9 sep om 16:28 
I think it would be a wonderful idea to make the script open source or allow someone to maintain it.
MrFox 1 sep om 14:39 
SOurce code so i can update this please
MrFox 30 aug om 10:46 
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 14 aug om 17:08 
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 3 aug om 12:17 
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 24 jul om 21:52 
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] 14 jul om 8:34 
Sadly don't work with the new small Connector.. Please make an update.
Martinez 6 jul om 19:56 
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 29 jun om 6:08 
@keke: No because the official Keen servers do not allow scripts to be run. This is a script, not a "mod".
Soup 28 jun om 14:32 
does pam work on official keen servers?
rientelfon 1 jun om 9:12 
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 20 mei om 8:25 
need to update to work with small connectors
Celica71 15 mei om 1:13 
@ Jack Schitt: I am running Build Info, I will try disabling it and see if that helps. Cheers!
Jack Schitt 10 mei om 15:49 
@ 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 10 mei om 15:18 
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 9 mei om 8:25 
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 6 mei om 18:44 
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 6 mei om 17:45 
Also is there a way I can get ahold of a copy of the Code? I want to try a few things.
eanvillemain45 6 mei om 17:39 
no, they're not on a subgrid, they're arranged on a grid of small conveyors on the bottom of the ship
Jack Schitt 6 mei om 16:45 
@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 6 mei om 16:38 
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 4 mei om 12:37 
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 8 mrt om 7:10 
@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 27 feb om 11:27 
This scrit is invaluable for cargo, way better than vanilla solution.
Stavinair Caeruleum 8 feb om 11:45 
Really wish we could save jobsites as presets...
Kham 26 jan om 17:16 
@Royalfly no it doesn't. They were added to the game long after the script was last updated.
Royalfly 26 jan om 15:07 
I feel like I am missing something. Does Pam not work with the small connectors?
Yorghalum_se 25 jan om 4:40 
@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 24 jan om 20:59 
@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 24 jan om 20:42 
@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 22 jan om 10:58 
What timer page? This doesn't have a page for timer blocks.
KraziYeti 22 jan om 3:48 
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 21 jan om 16:03 
This is STILL the best!! WAY better then that guy who took this and removed parts that are much loved
Jack Schitt 8 jan om 7:12 
Nose: The settings to turn broadcasting on and off are in custom data. See the guide for details.
Nose 8 jan om 7:03 
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!