|
You last visited: Today at 23:34
Advertisement
"Live" Editing.
Discussion on "Live" Editing. within the CO2 Private Server forum part of the Conquer Online 2 category.
01/01/2010, 03:55
|
#1
|
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
|
"Live" Editing.
Hey, I was just wondering if there is a way to edit Npc Dialog without restarting/compile the server to see the changes. Like how Qonquer or Jonquer has it, i know they can change Npc Dialog without restarting the server, is that just a java thing?
|
|
|
01/01/2010, 04:26
|
#2
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
If you use C#, i dont think is possible, maybe.
You need to make alot of hard coding.
The reason why i say is might not possible.
Is because you need to debug.
But is possible, but alot of hardcoding.
|
|
|
01/01/2010, 05:47
|
#3
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
|
Use extern NPC Script and when someone want to talk with a NPC, you read the script.
|
|
|
01/01/2010, 06:51
|
#4
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
Use a scripts instead of hard code or you'd have to write some kind of debugging engine that would let you modify the code at runtime.
|
|
|
01/01/2010, 07:44
|
#5
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
You could do something using ini files or a database npc system but that would require some significant source editing unless I'm mistaken. Large npcs would still not be easily codeable without restarting but it would allow for simple changes such as text.
I know CoEmu was partially converted at one point to use the database to store simple npc stuff. All the real "code" behind the npcs was still server side though.
|
|
|
01/01/2010, 07:56
|
#6
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
You could easily implement an IronPython or Ruby engine into a C# server
|
|
|
01/01/2010, 08:17
|
#7
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
|
Are we all forgetting my inlined C# and VB.NET engines?
/brag
|
|
|
01/01/2010, 08:58
|
#8
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
*cough* memory leak *cough*
|
|
|
01/01/2010, 09:01
|
#9
|
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
|
Quote:
Originally Posted by _tao4229_
*cough* memory leak *cough*
|
You should get that cough sorted.
|
|
|
01/01/2010, 12:33
|
#10
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Plenty of ways of doing this.
1) Scripts which are read when someone interacts with an npc.
2) Scripts which are stored seperate and loaded into the server using a method. (call the method when you update something)
3) C# Scripts which are stored seperate and compiled using a method.
4) Database based Dialogs which are loaded when you interact with the npc or by using a method.
5) Ini file style script loaded when interacting or via metthod.
Thats 5, theres alot more options, just use your imagination.
|
|
|
01/03/2010, 08:59
|
#11
|
elite*gold: 0
Join Date: Oct 2005
Posts: 295
Received Thanks: 342
|
On QO this is possible because the NPCs are not just dialogs, they are entire class files that are compiled in-line via our Admin Control Panel. When an NPC is clicked, the server loads the relevant class and executes it. Thus to change an NPC we just compile a new version of just that NPC and replace the class file, so the next time the NPC is clicked, the new class executes. This also has the advantage of allowing NPCs full access to the main server code allowing an NPC to do almost anything.
|
|
|
Similar Threads
|
[AUFRUF] An alle, die von "[Aimee]", "Blck-Sellerx" & ".Ava" betrogen worden sind!
03/23/2010 - Last Chaos - 34 Replies
Hallo libe ehrlichen Member von e*PvPers!
Im LastChaos und Metin Bereich im TBM Forum soll ".Ava" mehrere Leute abgezogen haben. Nun kommen aber plötzlich Gegenstimmen in der iTrader Bewertung die positiv ausfallen von "Black-SellerX" und "" bei genauerem Hinsehen bemerkt man, dass diese 3 Forenuser sich gegenseitig immer wieder positiv bewerten, dennnoch werden diese von vielen Usern negativ bewertet. Von "" wurde ich selber betrogen, daher mein Interesse.
Deshalb vermute ich, dass hinter...
|
All times are GMT +2. The time now is 23:34.
|
|