What directory do scripts need to be in for SPAWN_SCRIPT

For all the help you need with Armagetron!
Post Reply
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2342
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

What directory do scripts need to be in for SPAWN_SCRIPT

Post by compguygene »

I am starting to use php scripts with a server and wanted to use the SPAWN_SCRIPT command to launch the script. What I don't seem to find documented is where to place the script so the command will find the script. Is it based on --userdatadir, --userconfigdir, or some other option in the launch of the armagetronad-bin dedicated server. And yes, I am on Linux and understand this only is supported on Linux.
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
User avatar
aP|Nelg
Match Winner
Posts: 621
Joined: Wed Oct 22, 2014 10:22 pm
Contact:

Re: What directory do scripts need to be in for SPAWN_SCRIPT

Post by aP|Nelg »

compguygene wrote:I am starting to use php scripts with a server and wanted to use the SPAWN_SCRIPT command to launch the script. What I don't seem to find documented is where to place the script so the command will find the script. Is it based on --userdatadir, --userconfigdir, or some other option in the launch of the armagetronad-bin dedicated server. And yes, I am on Linux and understand this only is supported on Linux.
Should go in scripts/ by default
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: What directory do scripts need to be in for SPAWN_SCRIPT

Post by dlh »

<userdatadir>/scripts
User avatar
aP|Nelg
Match Winner
Posts: 621
Joined: Wed Oct 22, 2014 10:22 pm
Contact:

Re: What directory do scripts need to be in for SPAWN_SCRIPT

Post by aP|Nelg »

dlh wrote:<userdatadir>/scripts
For future reference, don't forget to put the ending slash or someone might think its a txt file or something, instead of a folder
User avatar
sinewav
Graphic Artist
Posts: 6413
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: What directory do scripts need to be in for SPAWN_SCRIPT

Post by sinewav »

aP|Nelg wrote:...someone might think its a txt file or something, instead of a folder
In this case it probably wouldn't matter.
Post Reply