PlaneShift

Development => Development Deliberation => Topic started by: owen_a on November 28, 2010, 01:43:56 am

Title: How do I run a script with the server?
Post by: owen_a on November 28, 2010, 01:43:56 am
Hello all,

I was wondering if someone could tell me how I could run a script with my server which loads my maps. I already have a textfile saved in the directory of my server called 'loadmaps.txt'.

and inside that file are 4 lines:

loadmap hydlaa_jayose
loadmap jayose
loadmap ojaroad1
loadmap hyoja2

Can anybody help me?

Thanks!
Title: Re: How do I run a script with the server?
Post by: Sen on November 28, 2010, 08:15:25 am
It looks like I lost my files from that time, but, if I remember correctly, you can add a parameter "--run=/this/script.name" and place your script in your planeshift folder.

Sen

-edit- corrected stupid wording
Title: Re: How do I run a script with the server?
Post by: weltall on November 28, 2010, 10:56:33 am
exec pathtothescript
if the file is test in the application folder it would be /this/test
same goes for --run=pathtothescript