lenosisnickerboa / csgosl

A CSGO server launcher, one-click install & run
GNU General Public License v3.0
377 stars 39 forks source link

Start Server don't work - some path problems? #82

Closed Manni79 closed 7 years ago

Manni79 commented 7 years ago

Hello, I have a new PC with Windows 10 now. I wanted to check out new csgosl now, but run into Problems. It seems, that commands off cslgosl are not correctly executed on my computer.

For Example click on "start server"

Console tab in GUI Shows me: bin/server-start.bat "D:/Program Files (x86)/csgosl/server/srcds.exe" -game csgo -console -usercon -condebug +game_type 0 +game_mode 1 +mapgroup LAN_Group +map aim_redline +sv_setsteamaccount xxx -authkey xxxx -maxplayers_override 12 -tickrate 128 +sv_password yyy +hostname "yyyy" -port 27015 +sv_lan 0 +ip 0.0.0.0 +tv_enable 1

... but nothing happens. No Server start. no CMD Pop ups with Server start commands.

When i execute on command line the following

CMD: D:\Program Files (x86)\csgosl> bin/server-start.bat "D:/Program Files (x86)/csgosl/server/srcds.exe" -game csgo -console -usercon -condebug +game_type 0 +game_mode 1 +mapgroup LAN_Group +map aim_redline +sv_setsteamaccount xxx -authkey xxxx -maxplayers_override 12 -tickrate 128 +sv_password yyy +hostname "yyyyy" -port 27015 +sv_lan 0 +ip 0.0.0.0 +tv_enable 1

then I get error message "'bin' is not recognized as an internal or external command, operable program or batch file."

So it seems my Windows 10 is not understanding your command (because of the starting "bin" Folder path). But why? I think most of your user uses Windows 10 and then many People should have Problems. So it's curios.

when I do on command line cd bin then I am in CMD D:\Program Files (x86)\csgosl\bin>

and then execute your comamnd without bin/, then all works fine:

server-start.bat "D:/Program Files (x86)/csgosl/server/srcds.exe" -game csgo -console -usercon -condebug +game_type 0 +game_mode 1 +mapgroup LAN_Group +map aim_redline +sv_setsteamaccount xxx -authkey xxxx -maxplayers_override 12 -tickrate 128 +sv_password yyy +hostname "yyyy" -port 27015 +sv_lan 0 +ip 0.0.0.0 +tv_enable 1

and Server starts fine with that.

Any Idea ehy my PC /win10 have probelms with your command incl. path?

lenosisnickerboa commented 7 years ago

Just a guess but you have spaces in the path to your csgosl folder. Some people have problems with that. So try moving your csgosl folder to e.g. c:\csgosl and try from there.

Den 15 apr. 2017 5:02 em skrev "Manni79" notifications@github.com:

Hello, I have a new PC with Windows 10 now. I wanted to check out new csgosl now, but run into Problems. It seems, that commands off cslgosl are not correctly executed on my computer.

For Example click on "start server"

Console tab in GUI Shows me: bin/server-start.bat "D:/Program Files (x86)/csgosl/server/srcds.exe" -game csgo -console -usercon -condebug +game_type 0 +game_mode 1 +mapgroup LAN_Group +map aim_redline +sv_setsteamaccount xxx -authkey xxxx -maxplayers_override 12 -tickrate 128 +sv_password yyy +hostname "yyyy" -port 27015 +sv_lan 0 +ip 0.0.0.0 +tv_enable 1

... but nothing happens. No Server start. no CMD Pop ups with Server start commands.

  • Windows 10
  • installed in D:\Program Files (x86)\csgosl

When i execute on command line the following

CMD: D:\Program Files (x86)\csgosl> bin/server-start.bat "D:/Program Files (x86)/csgosl/server/srcds.exe" -game csgo -console -usercon -condebug +game_type 0 +game_mode 1 +mapgroup LAN_Group +map aim_redline +sv_setsteamaccount xxx -authkey xxxx -maxplayers_override 12 -tickrate 128 +sv_password yyy +hostname "yyyyy" -port 27015 +sv_lan 0 +ip 0.0.0.0 +tv_enable 1

then I get error message "'bin' is not recognized as an internal or external command, operable program or batch file."

So it seems my Windows 10 is not understanding your command (because of the starting "bin" Folder path). But why? I think most of your user uses Windows 10 and then many People should have Problems. So it's curios.

when I do on command line cd bin then I am in CMD D:\Program Files (x86)\csgosl\bin>

and then execute your comamnd without bin/, then all works fine:

server-start.bat "D:/Program Files (x86)/csgosl/server/srcds.exe" -game csgo -console -usercon -condebug +game_type 0 +game_mode 1 +mapgroup LAN_Group +map aim_redline +sv_setsteamaccount xxx -authkey xxxx -maxplayers_override 12 -tickrate 128 +sv_password yyy +hostname "yyyy" -port 27015 +sv_lan 0 +ip 0.0.0.0 +tv_enable 1

and Server starts fine with that.

Any Idea ehy my PC /win10 have probelms with your command incl. path?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lenosisnickerboa/csgosl/issues/82, or mute the thread https://github.com/notifications/unsubscribe-auth/AQGy9o7YaRbZXsFfyMQ6iBRkGA_-YBKwks5rwNvZgaJpZM4M-XvR .

miguelpduarte commented 7 years ago

I am having the same problem. I had the file in a directory that caused the path to have spaces but I changed the path so that it does not have spaces anymore. It seems that csgosl itself doesn't recognize the command... Navigating to bin using cmd and copy pasting the command from csgosl works for me I guess...

CJNiiva commented 7 years ago

Any fix for this maybe?😂 love the app (you probably know that)

Sendt fra min iPhone

Den 16. apr. 2017 kl. 17.04 skrev Miguel Duarte notifications@github.com<mailto:notifications@github.com>:

I am having the same problem. I had the file in a directory that caused the path to have spaces but I changed the path so that it does not have spaces anymore. It seems that csgosl itself doesn't recognize the command... Navigating to bin using cmd and copy pasting the command from csgosl works for me I guess...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/lenosisnickerboa/csgosl/issues/82#issuecomment-294356333, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASeeL3BGs2RAxlX6doFo0N_dG-hOzHtcks5rwi3egaJpZM4M-XvR.

lenosisnickerboa commented 7 years ago

Do you mean that csgosl fails to start the csgo server even when you move it to a path without spaces?

If yes, can you all send me the complete paths where csgosl is installed so I can try to reproduce the problem.

If no, move csgosl to a path without spaces. I currently don't have time to fix this (and I don't see this problem when I try it on my windows 7 and windows 10 installations).

Manni79 commented 7 years ago

It's not a Problem of pathes with spaces, the Problem is the "bin/..." in the path, as the error message described above.

I tried a bit and have a solution, very simple.

bin/server-start.bat ... (with slash "/") ... is not working. Error message: 'bin' is not recognized as an internal or external command, operable program or batch file.

use backslash and it is working fine:

bin\server-start.bat ... (with backslash "\") is working fine.

lenosisnickerboa commented 7 years ago

Ok, I see. I'll go through all paths in the program and make sure to adapt them to the correct OS syntax. Thanks for finding the bug and a solution. Not sure though why this works for me? I have two windows servers, one with spaces and one without and also a linux server. They all worked fine with the 1.8.1 release. Hopefully I will fix this tomorrow evening, stay tuned...

CJNiiva commented 7 years ago

Its still because of the spaces, as it tries to launch c://whatever (space) bin/something and then you get the cannot recognise bin/something because it tries to execute “bin/something” as a command, I don’t know, but it might help to add the “” to the command, for example “c://whatever (space) bin/something” :)

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: lenosisnickerboamailto:notifications@github.com Sent: mandag 17. april 2017 23.36 To: lenosisnickerboa/csgoslmailto:csgosl@noreply.github.com Cc: CJNiivamailto:chris-robin-m@hotmail.com; Commentmailto:comment@noreply.github.com Subject: Re: [lenosisnickerboa/csgosl] Start Server don't work - some path problems? (#82)

Ok, I see. I'll go through all paths in the program and make sure to adapt them to the correct OS syntax. Thanks for finding the bug and a solution. Not sure though why this works for me? I have two windows servers, one with spaces and one without and also a linux server. They all worked fine with the 1.8.1 release. Hopefully I will fix this tomorrow evening, stay tuned...

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/lenosisnickerboa/csgosl/issues/82#issuecomment-294600825, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASeeL1sL8mwIBwT2qmZqfVO8hXTeSdhdks5rw9s_gaJpZM4M-XvR.

lenosisnickerboa commented 7 years ago

Sounds like you're having different problems with paths. I've reworked how server start/stop/update is performed in both windows and linux and it seems to be really stable, with or without spaces in paths. I will do some more testing and hopefully I will release 1.8.2 tomorrow fixing all the problems you've described above.

lenosisnickerboa commented 7 years ago

Tested some more and I think it works. Here's 1.8.2 with fixes for various path problems. Enjoy! (And please reopen this issue if you still have problems :) )