Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 06:10

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

Advertisement



How should I organize my Npc Dialog?

Discussion on How should I organize my Npc Dialog? within the CO2 Private Server forum part of the Conquer Online 2 category.

View Poll Results: How should I organize NPC Dialog?
Switch Statements 3 16.67%
LUA Interface 5 27.78%
Scripting 5 27.78%
MySql / MsSql 3 16.67%
Ini Flat File Database 1 5.56%
Other 1 5.56%
Voters: 18. You may not vote on this poll

Closed Thread
 
Old   #1
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
How should I organize my Npc Dialog?

Hey! The poll is public so I can see and ask why you chose that answer if I need to.
Thanks for your opinion. Please, I'm open to any ideas. I appreciate the help!

Sincerely,
Fang
FuriousFang is offline  
Old 01/15/2011, 05:22   #2
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
I like using Lua because you can use Lua's API variables, then save/access them when needed via MySQL for saving quest info and other info you may wanna save. Secondly, I just like Lua's scripting style, and I used to make homebrew apps for PSP's in Lua.

What's the difference?
Obviously hard coded, basically *non-fetched* information will be the fastest.


*pees on thread*
.Ocularis is offline  
Thanks
1 User
Old 01/15/2011, 06:06   #3
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
LUA for base, Sourcecode for more advance npc's. So I guess some switching
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 01/15/2011, 07:43   #4
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by .Ocularis View Post
I like using Lua because you can use Lua's API variables, then save/access them when needed via MySQL for saving quest info and other info you may wanna save. Secondly, I just like Lua's scripting style, and I used to make homebrew apps for PSP's in Lua.

What's the difference?
Obviously hard coded, basically *non-fetched* information will be the fastest.


*pees on thread*
Me and Tommy were going to implement it into Elite CoEmu so I have the dll. I'll give it my best. Thanks for the input =] I appreciate it.

Sincerely,
Fang
FuriousFang is offline  
Old 01/15/2011, 08:11   #5
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
theres more options to write C# scripts than 'switching'.
ChingChong23 is offline  
Old 01/15/2011, 11:14   #6


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
.NET - IronPython
KraHen is offline  
Thanks
1 User
Old 01/15/2011, 16:28   #7
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by KraHen View Post
.NET - IronPython
Idk... IronPython is an addon isn't it? Would computers without it be able to support that? I'd rather do something like LUA unless IronPython has a significant advantage over efficiency.
FuriousFang is offline  
Old 01/15/2011, 17:42   #8


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
IronPython is a full-fledged scripting engine which incorporates extremely well with C# and has Visual Studio support as well (intellisense). It has been tested numerous times, it is stable, it is supported by a whole community.
KraHen is offline  
Thanks
1 User
Old 01/15/2011, 17:47   #9


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Also remember npc dialog management is dealt with by the server, the client just receives the packets, how you determine what the packets contain, and how you determine which to send is all done by the server, so as long as the server can use IronPython, the client needs never know about it.
Korvacs is offline  
Thanks
1 User
Old 01/15/2011, 21:08   #10
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Python is a lovely language.
Syst3m_W1z4rd is offline  
Old 01/15/2011, 22:09   #11
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by Korvacs View Post
Also remember npc dialog management is dealt with by the server, the client just receives the packets, how you determine what the packets contain, and how you determine which to send is all done by the server, so as long as the server can use IronPython, the client needs never know about it.
You're right. That's a great point. What would you advise though? LUA or IronPython?
FuriousFang is offline  
Old 01/16/2011, 05:41   #12
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Personally I use ironpython with lovely scripts (so like 42.npc or w/e) which allows for some very powerful scripting (not simply "if this say this") and I've never had a problem with them.

I kinda got turned off by python cause I was forced to use it in a course last year which I HATED and therefor dropped... so it left a bit of a sour taste in my mouth buy looking at it now, it's a hella nice language with a ton of promise.

I haven't really used LUA so I can't comment on which is better but when it comes right down to it, we're talking about a conquer private server here... some SLIGHT difference in performance or capabilities will almost never be realized by a project of this scope (we aren't talking about Npc characters with full ai, roaming, behavior attributes.... etc so what does it matter?)
pro4never is offline  
Thanks
1 User
Old 01/16/2011, 07:29   #13
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by pro4never View Post
Personally I use ironpython with lovely scripts (so like 42.npc or w/e) which allows for some very powerful scripting (not simply "if this say this") and I've never had a problem with them.

I kinda got turned off by python cause I was forced to use it in a course last year which I HATED and therefor dropped... so it left a bit of a sour taste in my mouth buy looking at it now, it's a hella nice language with a ton of promise.

I haven't really used LUA so I can't comment on which is better but when it comes right down to it, we're talking about a conquer private server here... some SLIGHT difference in performance or capabilities will almost never be realized by a project of this scope (we aren't talking about Npc characters with full ai, roaming, behavior attributes.... etc so what does it matter?)
Thanks for the advice and the honesty =p
I'll look more into it then. =] Thanks.
FuriousFang is offline  
Old 01/16/2011, 07:41   #14
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Python is like speaking english. I love it.
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 01/17/2011, 11:59   #15
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
IronPython rocks.
I'm going to stick with that- it's the best way that I've seen for coding NPCs to far =p
#request close.
FuriousFang is offline  
Closed Thread


Similar Threads Similar Threads
Cant Add NPC.Dialog
06/21/2010 - CO2 Private Server - 12 Replies
Alright everytime im adding a npc dialog i always get the do not talk anything useful yet. Well looking at guides they tell them to put npc.txt file or w.e, add the npc code there. I have the npc and the dialog goes to that npc. So far 5 codes havnt worked ,dunno what im doing wrong, This is a example of how the npc dialog starts off
NPC Dialog
06/14/2010 - Flyff Private Server - 3 Replies
Hallo ElitePvPers, Ich wuerde gerne wissen wie ich den Dialog von NPC's aendern kann. Z.b weiss ich das wenn ich den Dialog von Isruel aendern will, muss ich eine Datei oeffnen die "MaFl_Isruel.txt". Ich finde dieses .txt leider nirgendwo und frage euch nun, koennt ihr mir helfen mit dem problem? Bitee bitee bitee!! XD
NPC Dialog
12/12/2009 - CO2 Private Server - 6 Replies
Can anyone tell me what its wrong with this for some reason it is not working =\ This is for 5165 FTW! #region TOP TRO PK TOURNEY case 2772: { if (Control == 0) { GC.AddSend(Packets.NPCSay("Hey there i hold every Class PK Tournament for Trojans, Warriors, Ninjas, Taoists And Archers, So Tell me your Class so i can...
Organize a CoFuture Development thread
04/07/2008 - Conquer Online 2 - 0 Replies
I was hopeing some people would be interested in sharing all the code changes they made to the CoFuture code found in This Thread . Possibly post stable updates after we share our changes as well. Anyone interested?
A organize way for macro
01/12/2008 - RF Online - 2 Replies
i dont know if its easier than just copy and paste lol but sure its more organize than just copy and paste and its more easy to do since its all there just have to change it :) hope u like it may somebody makes a macro or do something for autoatack lol :D. u might wana check it out..:P this how i found it keyex3.exe - FileFront.com



All times are GMT +2. The time now is 06:10.


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.