Forum

> > CS2D > Scripts > Am I the only one?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Am I the only one?

5 replies
To the start Previous 1 Next To the start

old Am I the only one?

Mami Tomoe
User Off Offline

Quote
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.

old Re: Am I the only one?

DC
Admin Off Offline

Quote
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!

old Re: Am I the only one?

Mami Tomoe
User Off Offline

Quote
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

old Re: Am I the only one?

XoOt
Super User Off Offline

Quote
@user Mami Tomoe: you could also enter the dofiles into your server.lua .. it isnt a hard step to rewrite these after each update.

old Re: Am I the only one?

GeoB99
Moderator Off Offline

Quote
@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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview