Register for your free account! | Forgot your password?

You last visited: Today at 11:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Lua(?)

Discussion on Lua(?) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
_Emme_'s Avatar
 
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!
_Emme_ is offline  
Old 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.
ChingChong23 is offline  
Old 04/11/2010, 01:59   #3
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by EmmeTheCoder View Post
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.
ImmuneOne is offline  
Old 04/11/2010, 02:05   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
Quote:
Originally Posted by ImmuneOne View Post
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.
ChingChong23 is offline  
Old 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.
s.bat is offline  
Old 04/11/2010, 02:12   #6
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by s.bat View Post
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?
ImmuneOne is offline  
Old 04/11/2010, 02:16   #7
 
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 50
Quote:
Originally Posted by ImmuneOne View Post
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.
s.bat is offline  
Old 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)
ChingChong23 is offline  
Old 04/11/2010, 02:23   #9
 
_Emme_'s Avatar
 
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?
_Emme_ is offline  
Old 04/11/2010, 02:27   #10
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by EmmeTheCoder View Post
@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.
ImmuneOne is offline  
Old 04/11/2010, 02:27   #11
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
True, but Lua is very cool aswell.
_Emme_ is offline  
Old 04/11/2010, 02:47   #12
 
zTREME's Avatar
 
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
zTREME is offline  
Old 04/11/2010, 03:17   #13
 
ImmuneOne's Avatar
 
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.
ImmuneOne is offline  
Old 04/11/2010, 03:39   #14
 
UniqueSandwich's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 13
Received Thanks: 4
Always interested to new things.
UniqueSandwich is offline  
Old 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.
~Yuki~ is offline  
Thanks
1 User
Reply




All times are GMT +2. The time now is 11:38.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.