VPS questions

Post your questions here
Post Reply
Stormz
Posts: 2015
Joined: Wed May 12, 2010 7:52 pm
Location: US of A
Contact:

VPS questions

Post by Stormz »

I've got a virtual server, identical to Mx Sim Pits but Idk how to get track info files on it to play non-stock tracks. Im pretty dumb when it cones to this too, so a walk-through would be great if someone knows how to do this.

Also, how do I put scripts on said server?

Thanks!
rewrew421
Posts: 1421
Joined: Thu Dec 13, 2007 12:41 am
Team: Privateer
Location: West Kentucky, USA

Re: VPS questions

Post by rewrew421 »

PM me or if you have skype add me eckels141
D.Eckels #421 "The O-G"
Phathry25
Posts: 7481
Joined: Sat Dec 01, 2007 1:09 am
Team: No Frills Racing
Location: WI
Contact:

Re: VPS questions

Post by Phathry25 »

The scripts go in the same folder as the server's executable file.

Search the forums for wheels' server args builder program. That's the easiest way to set one up. Else just read YZed's server tutorial...
Stormz
Posts: 2015
Joined: Wed May 12, 2010 7:52 pm
Location: US of A
Contact:

Re: VPS questions

Post by Stormz »

Phathry25 wrote:The scripts go in the same folder as the server's executable file.

Search the forums for wheels' server args builder program. That's the easiest way to set one up. Else just read YZed's server tutorial...
I already have it set up, but i have to send my trackinfo to the server. It's not on my pc, like yz'ed, checkerz, etc. all that is on there currently is stock tracks and i want to add trackinfo's so i can put on the sx/outdoors tracks.
Phathry25
Posts: 7481
Joined: Sat Dec 01, 2007 1:09 am
Team: No Frills Racing
Location: WI
Contact:

Re: VPS questions

Post by Phathry25 »

You make them locally and upload them.

http://bit.ly/JnkaP1
Stormz
Posts: 2015
Joined: Wed May 12, 2010 7:52 pm
Location: US of A
Contact:

Re: VPS questions

Post by Stormz »

Ok, so I've been scratching my head as to why my results wont work, when I remember that batch files are for windows...not linux. So, what does the results upload command need to be?
jlv
Site Admin
Posts: 15358
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: VPS questions

Post by jlv »

You can use this shell script:
http://mxsimulator.com/scripts/uploadresults.sh

You run it like this: ./uploadresults.sh myserver.com results.txt mysuperhardtoguesspassword

You also need to make sure it has execute permission:
chmod +x uploadresults.sh
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Stormz
Posts: 2015
Joined: Wed May 12, 2010 7:52 pm
Location: US of A
Contact:

Re: VPS questions

Post by Stormz »

jlv wrote:You can use this shell script:
http://mxsimulator.com/scripts/uploadresults.sh

You run it like this: ./uploadresults.sh myserver.com results.txt mysuperhardtoguesspassword

You also need to make sure it has execute permission:
chmod +x uploadresults.sh
Awesome! Thanks for the info! I'll plug it in when I get home.
Stormz
Posts: 2015
Joined: Wed May 12, 2010 7:52 pm
Location: US of A
Contact:

Re: VPS questions

Post by Stormz »

Stormz wrote:
jlv wrote:You can use this shell script:
http://mxsimulator.com/scripts/uploadresults.sh

You run it like this: ./uploadresults.sh myserver.com results.txt mysuperhardtoguesspassword

You also need to make sure it has execute permission:
chmod +x uploadresults.sh
Awesome! Thanks for the info! I'll plug it in when I get home.
I plugged the './uploadresults.sh myserver.com results.txt mysuperhardtoguesspassword' in with my info which looks like ./uploadresults.sh 64.85.166.151 results.txt PWHERE

With no luck. It says 'No such file or directory"...what did i do wrong? the "chmod...." works fine

I edited the server args to say "--results-cmd uploadresults.sh"

The shell script has been edited to "curl -s -F "name=$64.85.166.151" -F "password=$LDLDLD" -F 'results=<'$tmpresults http://mxsimulator.com/uploadresults.php" I didn't change anything else in the .sh
jlv
Site Admin
Posts: 15358
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: VPS questions

Post by jlv »

Don't edit the script. Use this results command, but change "myserver.com" and "mysuperhardtoguesspassword".

--results-cmd "./uploadresults.sh myserver.com results.txt mysuperhardtoguesspassword"
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Stormz
Posts: 2015
Joined: Wed May 12, 2010 7:52 pm
Location: US of A
Contact:

Re: VPS questions

Post by Stormz »

It works! Thank you very much!.
Post Reply