|
You last visited: Today at 11:38
Advertisement
Lua(?)
Discussion on Lua(?) within the CO2 Private Server forum part of the Conquer Online 2 category.
04/11/2010, 01:39
|
#1
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
Lua(?)
Heya, long time since I made a thread.
Recently, I was helping a friend with implemening Lua into his server, and then it hit me, why isn't Lua so popular by this community? Most (actually all I've seen so far from here) are using intern NPC scripts, when Lua is very efficiant.
World of Warcraft,
Buzz,
Fable,
Garry's Mod,
ROSE,
Rangnarok
Starwars
Those all have something in common - they all use Lua .
Lua is not a programming language, it's a scripting language which I recommend you to use with NPC dialogs. Not only is it easier to organize, it allows you to edit the dialogs while the server is on. Very, very good for BETA servers aswell as for up & running servers.
So, now to my question, would you guys want me to write a guide how to configurate your server to work with Lua?
Have fun!
|
|
|
04/11/2010, 01:55
|
#2
|
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
|
i have been saying get off the stupid internal npc dialogs piled up with 10k if statements in your client class and move onto this sort of stuff, nobody listens.
|
|
|
04/11/2010, 01:59
|
#3
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Quote:
Originally Posted by EmmeTheCoder
Heya, long time since I made a thread.
Recently, I was helping a friend with implemening Lua into his server, and then it hit me, why isn't Lua so popular by this community? Most (actually all I've seen so far from here) are using intern NPC scripts, when Lua is very efficiant.
World of Warcraft,
Buzz,
Fable,
Garry's Mod,
ROSE,
Rangnarok
Starwars
Those all have something in common - they all use Lua .
Lua is not a programming language, it's a scripting language which I recommend you to use with NPC dialogs. Not only is it easier to organize, it allows you to edit the dialogs while the server is on. Very, very good for BETA servers aswell as for up & running servers.
So, now to my question, would you guys want me to write a guide how to configurate your server to work with Lua?
Have fun!
|
Efficiency and RAM Usage is very important.
EDIT:
As I'm bored at the moment, I'll consider writing a library file for epvpers and a little guide on how-to implement it. I don't recommend using external scripts though.
|
|
|
04/11/2010, 02:05
|
#4
|
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
|
Quote:
Originally Posted by ImmuneOne
Efficiency and RAM Usage is very important.
|
that's not even an issue in this scenario. scripts are event driven (when a player talks to an NPC), i could understand if your saying thousands of scripts a second will be executed, but that's not the case.
|
|
|
04/11/2010, 02:05
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 50
|
I would sacrifice efficiency, speed, and RAM for readability and organization. Premature optimization is the root of all evil.
|
|
|
04/11/2010, 02:12
|
#6
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Quote:
Originally Posted by s.bat
I would sacrifice efficiency, speed, and RAM for readability and organization. Premature optimization is the root of all evil.
|
What would be the point of creating a good server then?
|
|
|
04/11/2010, 02:16
|
#7
|
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 50
|
Quote:
Originally Posted by ImmuneOne
What would be the point of creating a good server then?
|
For future productivity. A good server doesn't rely on those three points alone.
|
|
|
04/11/2010, 02:17
|
#8
|
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
|
Not just that, the amount of memory/cpu time we are talking about with using external scripts, is so small that like i said, is not going to be an issue (unless you've seriously done something wrong)
|
|
|
04/11/2010, 02:23
|
#9
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
@Ching
As stated on the first post, WoW is using LUA (although I'm not sure for what), so it can handle huge amount of requests at the same time (as WoW has 10 million players).
Anyhow, back to the point, is lua intresting?
|
|
|
04/11/2010, 02:27
|
#10
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Quote:
Originally Posted by EmmeTheCoder
@Ching
As stated on the first post, WoW is using LUA (although I'm not sure for what), so it can handle huge amount of requests at the same time (as WoW has 10 million players).
Anyhow, back to the point, is lua intresting?
|
Writing your own script language is way more interesting.
|
|
|
04/11/2010, 02:27
|
#11
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
True, but Lua is very cool aswell.
|
|
|
04/11/2010, 02:47
|
#12
|
elite*gold: 0
Join Date: Apr 2010
Posts: 273
Received Thanks: 51
|
There is lua in me and yukis
How ever i dont know how to use it lol
|
|
|
04/11/2010, 03:17
|
#13
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Couldn't think of anything original (3 AM)
[Preview]
Code:
[0]-Say ("Hello");
[0]-EndLink ("Bye");
Works fine so far.
|
|
|
04/11/2010, 03:39
|
#14
|
elite*gold: 0
Join Date: Apr 2010
Posts: 13
Received Thanks: 4
|
Always interested to new things.
|
|
|
04/11/2010, 11:35
|
#15
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
Thanks for that.
Also Emme implemented me LUA in my source for NPC-Dialoges so far.
Emme and me are now working on a NPC Maker proggy in C# lets see wich one will be better when we finished it. I might release mine.
|
|
|
All times are GMT +2. The time now is 11:38.
|
|