Forum

> > CS2D > Scripts > Am I the only one?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Am I the only one?

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Am I the only one?

Mami Tomoe
User Off Offline

Zitieren
Everytime I update CS2D using the auto updater thingy my script is getting corrupted and will not work unless I had a backup of it.

What can I do to stop it from happening? Its really annoying BTW! I'm using IF's Roleplay script.

alt Re: Am I the only one?

DC
Admin Off Offline

Zitieren
The auto updater is quite primitive and it just overwrites some files. server.lua will be overwritten I guess. So your script will get lost if it's in there.

There are two ways to avoid this problem:

• Do not use the auto updater and update manually (download the zip version and only replace stuff you really want to replace. Of course you should at least replace CounterStrike2D.exe)

• Don't use server.lua! Instead put your script in cs2d/sys/lua/autorun - it's better anyway!

alt Re: Am I the only one?

Mami Tomoe
User Off Offline

Zitieren
Oh good that I used my >>>BACKUP.BAT FILE<<< I knew it will be useful

I always thought it was the server.lua problem

I cant place it in auto run because this currect script has over 4 different .lua files and 2 text files and a data folder

I dont know how to edit lua that good so I guess ill have to just do what you said

Thanks

alt Re: Am I the only one?

GeoB99
Moderator Off Offline

Zitieren
@user Mami Tomoe: The dofile thingy is whenever you want activate or deactivate the functionality of a Lua Script.
You can see an example of dofiles in sys\lua\server.lua path.
Example...
Activating a script:
1
dofile("sys/lua/yourscriptname.lua")
Deactivating (preventing them to work)
1
--dofile("sys/lua/yourscriptname.lua")
This method is an alternative one of putting these scripts in Autorun folder. But it'd be better if you follow the user DC's advice by adding those scripts in autorun folder but is up to you to decide if you want to follow this method or the another one.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht