Mxserver Tutorial

Post anything about MX Simulator here. Please. I'm begging you.
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Mxserver Tutorial

Post by jlv »

.bat files are for Windows. You need a shell script on a Linux server.
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.
AirFlexoxo
Posts: 147
Joined: Sun Nov 01, 2009 11:03 pm
Location: France

Re: Mxserver Tutorial

Post by AirFlexoxo »

nioubie wrote:Hey, having some problem trying to setup uploadresults.sh on my linux server :

it says : sh: uploadresults.sh: not found

the file is in the same folder as serverargs.txt
the command i did put in serverargs.txt : --results-cmd uploadresults.sh

i installed curl from the app center. didnt reboot server thought.

Thx for help.

Yeah but i have same problem of nioubie my console say sh: "uploadresults.sh: not found"
Image
AirFlex, #354
AirFlexoxo
Posts: 147
Joined: Sun Nov 01, 2009 11:03 pm
Location: France

Re: Mxserver Tutorial

Post by AirFlexoxo »

Code: Select all

sh: uploadresults.sh: command not found
Image
AirFlex, #354
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Mxserver Tutorial

Post by jlv »

The current directory isn't in your path by default so you need ./uploadresults.sh to run it if it's in the current directory.
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.
AirFlexoxo
Posts: 147
Joined: Sun Nov 01, 2009 11:03 pm
Location: France

Re: Mxserver Tutorial

Post by AirFlexoxo »

Like this?

Code: Select all

--results-cmd ./uploadresults.sh
didn't work
Image
AirFlex, #354
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Mxserver Tutorial

Post by jlv »

You might need to add execute permission to the script too.

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.
AirFlexoxo
Posts: 147
Joined: Sun Nov 01, 2009 11:03 pm
Location: France

Re: Mxserver Tutorial

Post by AirFlexoxo »

jlv wrote:You might need to add execute permission to the script too.

chmod +x uploadresults.sh
Where? Permission have been already setup to 777 via ftp protocol
Image
AirFlex, #354
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Mxserver Tutorial

Post by jlv »

You'd enter that at the shell prompt.

I'd wouldn't use 777 as anyone can write to the file that way.
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.
AirFlexoxo
Posts: 147
Joined: Sun Nov 01, 2009 11:03 pm
Location: France

Re: Mxserver Tutorial

Post by AirFlexoxo »

with your following command chmod +x uploadresults.sh
0 1014 Player 354 rmz450(2013) MICHEL Gautier |Eleven 10Mods
sh: ./uploadresults.sh: Permission denied
Slot 0 is ready
All ready!
Image
AirFlex, #354
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Mxserver Tutorial

Post by jlv »

You definitely have the permissions set incorrectly. Try

chmod 755 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.
AirFlexoxo
Posts: 147
Joined: Sun Nov 01, 2009 11:03 pm
Location: France

Re: Mxserver Tutorial

Post by AirFlexoxo »

For now no more error but the server didn't show up. What's wrong with the new ccool4.me, easier to cfg à server few month ago. This thing makes me crazy.

Step 1: Add to serverargs.txt
--results-cmd ./uploadresults.sh

Step 2: Setup permission
chmod +755 uploadresults.sh

next step?
Image
AirFlex, #354
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Mxserver Tutorial

Post by jlv »

Just 755 with no + sign.
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.
AirFlexoxo
Posts: 147
Joined: Sun Nov 01, 2009 11:03 pm
Location: France

Re: Mxserver Tutorial

Post by AirFlexoxo »

Done. server didn't show up
Image
AirFlex, #354
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Mxserver Tutorial

Post by jlv »

You need to add the server address, results file and password to the server parameters.

--results-file results.txt
--results-cmd "./uploadresults.sh myserver.com:19800 results.txt superrandompassword"

Obviously, change "myserver.com" and "superrandompassword".
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.
dani22
Posts: 1077
Joined: Thu Feb 25, 2010 9:40 pm
Location: SPAIN
Contact:

Re: Mxserver Tutorial

Post by dani22 »

Hey guys, does anyone remember how was the operation the set the rate on the serverargs file?
I had this one "--rate 104857" when i had 0.8 mb upload, but a friend with better conection is going to host it so i need to remember how was that operation for better work.
Thanks ;D
Post Reply