Forum

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

Englisch Lua tutorial question

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Lua tutorial question

REVOLUTiON
User Off Offline

Zitieren
Ok *deep breath* Hi guys! its my first post!


Ok so, can u give me a link of a lua tutorial? i counldnt fined one (tried google.com)

and, oh! one more question,

Can u add Autobuy and Rebuy prevouis in the next cs2d 0.1.1.5?

alt Re: Lua tutorial question

spartan029
User Off Offline

Zitieren
There is no real tutorial. the way to learn is to to go your cs2d base directory and go to sys/lua and look in there for how to script. it will have every thing u need!

Here is a link to the lua requesting thread, If you cant script to good: http://unrealsoftware.de/forum_posts.php?post=120848#lastpost

Zitat
Can u add Autobuy and Rebuy prevouis in the next cs2d 0.1.1.5?


Is this a request for cs2d? Here is the CS2D Max sugestion thead. If you have ideas for the next upcoming versions of cs2d say them here!: http://unrealsoftware.de/forum_posts.php?post=120801#lastpost

alt Re: Lua tutorial question

DC
Admin Off Offline

Zitieren
there are actually many Lua tutorials out there and you can easily find them with Google.
for example http://lua-users.org/wiki/TutorialDirectory

however you have to read the sys/lua/info.txt as well as spartan029 said.
this file explains how you can use Lua in combination with CS2D - but it doesn't tell you how Lua itself works!

my suggestion how to learn this thing:
• read a general Lua tutorial which is not CS2D related
• afterwards read sys/lua/info.txt in your CS2D folder
• read and try my example scripts sys/lua/samples
• try to understand them and play around with them (change or extend them)
• use http://www.cs2d.unrealsoftware.de/help.php?cat=server as CS2D command reference. many of these commands are useful in Lua and have to be used with the Lua parse command (or you use sys/lua/wrapper.lua)

alt Re: Lua tutorial question

REVOLUTiON
User Off Offline

Zitieren
Alright Thanks, but (im a noob and even seeing the info.txt i cant even understand but ill try anyways )

OK i see that tutorials in this are Lua verion 5.1, is this version 5.1? i mean the cs2d lua, is it version 5.1? or do i to look on another tutorial?

√ Pls Help the Nooob!!!

alt Re: Lua tutorial question

Lee
Moderator Off Offline

Zitieren
REVOLUTiON hat geschrieben
Alright Thanks, but (im a noob and even seeing the info.txt i cant even understand but ill try anyways )

OK i see that tutorials in this are Lua verion 5.1, is this version 5.1? i mean the cs2d lua, is it version 5.1? or do i to look on another tutorial?

√ Pls Help the Nooob!!!


Yes, CS2D runs on version 5.1 (changelog.txt)

But it doesn't matter, no matter how old the version cs2d runs on, the language and syntax itself won't change, so there's no real reason to shy away from the tutorial just because you can't figure out if the versions are the same.

alt Re: Lua tutorial question

New Rex
User Off Offline

Zitieren
You are just like I was! I din't knew anything about LUA, a total noob... but now I've learned from the sys/lua/server.txt and saw the commands and comments. I made them to my friend's server [X-RDG] - « Xtreem » © Server #1 / FUN - etc etc.

And he makes his own.

Like, go to that server file, you can delete the comment with -------------------- (optional) and follow these tutorials given by DC.


Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht