|
You last visited: Today at 06:46
Advertisement
[Opinion]Npc Dialog System
Discussion on [Opinion]Npc Dialog System within the CO2 Private Server forum part of the Conquer Online 2 category.
07/24/2010, 14:01
|
#1
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
|
[Opinion]Npc Dialog System
Since I am currently working on  , I am now working on Npc implementation.
This won't be very hard, however perhaps the dialogue system will be, therefore I ask what kind of system do you recommend me to use?
I was thinking:
- Extern files, with a simple script language. (However, this will make it very hard to make functions, so I dislike this one)
- C# files, with a simple script language. (Just one, or multiple strings with a syntax the dialogue processor will read, advantage is you can still access the entity class.)
- Lots of other options.
I need detailed opinions and ideas!
|
|
|
07/24/2010, 15:01
|
#2
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
How about NPC DDL? Scripting in C# and still portable and you could edit them in realtime without server restart
|
|
|
07/24/2010, 16:11
|
#3
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
|
Use a seprate project exactly like impulse did. Works fine.
|
|
|
07/24/2010, 16:22
|
#4
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,444
Received Thanks: 1,176
|
A script file, but not in plain text  It's a good way to do this. Just need the imagination for a structure without limitation and the time to do the writer and the reader.
|
|
|
07/24/2010, 16:52
|
#5
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by ~Yuki~
How about NPC DDL? Scripting in C# and still portable and you could edit them in realtime without server restart
|
Like lua?
|
|
|
07/24/2010, 16:53
|
#6
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
|
How about named pipes?
|
|
|
07/24/2010, 17:26
|
#7
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Named pipes to do what?
You can use them to move serialized data between processes, but that doesnt solve your issue of how to construct the data in the first place.
|
|
|
07/24/2010, 20:18
|
#8
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
Quote:
Originally Posted by grillmad
Like lua?
|
Yes i mean lua when i say C# DLL duh!
<3
|
|
|
07/24/2010, 20:54
|
#9
|
elite*gold: 0
Join Date: May 2009
Posts: 162
Received Thanks: 26
|
somethink that can be edited in realtime will be the best i think,the server restart is boring xD
|
|
|
07/24/2010, 21:01
|
#10
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
|
For that, what if a player is using it then a sudden dialog change? + lag?
|
|
|
07/24/2010, 23:47
|
#11
|
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
|
Quote:
Originally Posted by Eliminationn
For that, what if a player is using it then a sudden dialog change? + lag?
|
It can be coded so that when a player is using it, it wont edit it until the player has finished.
|
|
|
07/25/2010, 04:58
|
#12
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
 (there's a .NET wrapper out there somewhere)
Edit: In my opinion IronPython/Ruby are your best bet, as they're decently fast (for inline scripting), and they work amazingly well with the .NET framework and what you've set up already.
You can pass any variable to IronPython/Ruby and access all the functions/data inside of it, and (using Func<t>/delegates) you can also pass functions. They're extremely, extremely easy to setup and use, ask me on MSN if you ened any help.
They're also really ******* easy to learn, so you could have someone else script NPCs for you.
As for LUA, I've never used it, but it's a decent language as well.
|
|
|
07/25/2010, 11:04
|
#13
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
I would like Ruby! Gonna make a wrapper for my server now.
|
|
|
07/25/2010, 13:22
|
#14
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Meh, I just like coding it inside your server, no extern **** or anything.
Also, I like the way Hybrid did it in the source he released, just as a string array, super sweet.
But meh, just my opinion.
|
|
|
07/26/2010, 17:09
|
#15
|
elite*gold: 0
Join Date: Jul 2010
Posts: 37
Received Thanks: 8
|
You might like this;
|
|
|
 |
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...
|
[HELP] Where is the NPC Dialog?
09/15/2009 - CO2 Private Server - 3 Replies
I'm copying and pasting codes and it says to go to NPC Dialog but I don't know where that is, can you help me find it?
|
Help me please i need Dialog.ini
08/18/2008 - Conquer Online 2 - 0 Replies
Hi all, i have a private server CO 2 and i want the file: Dialog.ini of NPCsStuff
Because some npc. Ej: ArcherGod, he change your class, and all the npc that changes the class to you, nobody of those can speak.
Please say me some download of Dialog.ini or say me the information of they.
-edit-
I want the npc to learn skills please
|
All times are GMT +1. The time now is 06:46.
|
|