Forum

> > CS2D > General > Lua script
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Lua script

19 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Lua script

Wolf97
User Off Offline

Zitieren
Hi guys.
I wanna learn how to make a lua script and I need some examples to make a script.

alt Re: Lua script

Wolf97
User Off Offline

Zitieren
yes
but create a file and write a name?
and dont need a program?

alt Re: Lua script

Cure Pikachu
User Off Offline

Zitieren
You don't need any extra programs. NotePad/WordPad should be enough
The extra programs like SciTe and NotePad++ are generally for checking for LUA errors and syntax highlighting

As for the name thingy, name it like this: *name* (Can be whatever you want).lua
1× editiert, zuletzt 14.08.10 18:55:48

alt Re: Lua script

Wolf97
User Off Offline

Zitieren
i read the info but i dont understand the commands
3× editiert, zuletzt 14.08.10 19:48:06

alt Re: Lua script

archmage
User Off Offline

Zitieren
hm set the default app as scite. You have scite if you downloaded Lua.

alt Re: Lua script

archmage
User Off Offline

Zitieren
Please explain yourself better. I don't understand you very well.

alt Re: Lua script

Divine
User Off Offline

Zitieren
I think he means is there a certain file you write the lua onto.

No you don't need anything except notepad.
Oh and right click any example and click properties.
Now choose open with...
Then choose notepad.

alt Re: Lua script

archmage
User Off Offline

Zitieren
Don't choose Notepad choose scite. You will have to browse for it.

alt Re: Lua script

Divine
User Off Offline

Zitieren
Notepad saves changes automatically.
You don't need to shut off the server and restart.
All you need to do is map change to same map.

alt Re: Lua script

Lee
Moderator Off Offline

Zitieren
Divine hat geschrieben
Notepad saves changes automatically.
You don't need to shut off the server and restart.
All you need to do is map change to same map.


Notepad cannot autosave; Scite can however be configured to autosave on content change (a rather CPU intensive operation that is disabled by default).

alt Re: Lua script

Divine
User Off Offline

Zitieren
It does auto-save. For what I know it does.
Just restart the server round.
Not game round.

alt Re: Lua script

Lee
Moderator Off Offline

Zitieren
Divine hat geschrieben
It does auto-save. For what I know it does.
Just restart the server round.
Not game round.


As in applying changes to the server? CS2D automatically reloads server.lua onto the stack each time it is initialized (game start, map change, etc) regardless of whether the server.lua file is saved in notepad or in any other editors.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht