Forum

> > CS2D > Scripts > Lua request
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua request

10 replies
To the start Previous 1 Next To the start

old Lua request

DiC
User Off Offline

Quote
Hi us,
i need an script like if my dedicated server will crash can any lua restart that?

sorry for my bad english...

old Re: Lua request

DiC
User Off Offline

Quote
hmm ok it is possible with an programm or so else

old Re: Lua request

Rainoth
Moderator Off Offline

Quote
Yes it is. You could actually find similar stuff/threads/posts about this if you used a magic tool called "Search".

old Re: Lua request

Avo
User Off Offline

Quote
Lua script? I don't remember any way to do it with lua only.

old Re: Lua request

Starkkz
Moderator Off Offline

Quote
As far as I know, if your server crashes then Lua crashes too.

old Re: Lua request

_Yank
User Off Offline

Quote
@user Avo, @user Starkkz: user Rainoth replied to
user DiC has written
hmm ok it is possible with an programm or so else


Anyway, I could say that it could be done with lua using os.execute and a bash script

old Re: Lua request

Avo
User Off Offline

Quote
@user sheeL: @file: It's a window app, nah.

I believe that oxy had something to restart a server. Ask him.

old Re: Lua request

MikuAuahDark
User Off Offline

Quote
I think, in windows, you can start your server with this(i am not familiar with MS-DOS syntax)
1
2
3
:myloop
cs2d_dedicated.exe
goto myloop

old Re: Lua request

Avo
User Off Offline

Quote
Yeah, it will work for Windows but most servers run on Linux.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview