Register for your free account! | Forgot your password?

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

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

Advertisement



[TQ Binaries] Discussion and documentation

Discussion on [TQ Binaries] Discussion and documentation within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 01/14/2012, 23:38   #16

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Well I at least have the information now. Time to figure out how to actually apply this but judging from the huge list of possible action types and my rather poor coding skills; I won't get very far. Is there any source out there with a working TQ style npc system? I would like to have a reference.
Kiyono is offline  
Old 01/14/2012, 23:42   #17


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
I know of 1 other source other than the l2h source that me and lat are working on that has it, and its not public to my knowledge, the implementation is also incorrect in it.
Korvacs is offline  
Old 01/14/2012, 23:43   #18

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
How exactly can the implementation be incorrect? I mean if it works, doesn't that mean that it's correct? It wouldn't work otherwise.
Kiyono is offline  
Old 01/14/2012, 23:51   #19


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
The decision process wasnt correct, so to counter that they had to also manually write in some npcs. As a result it was more of a hybrid system, some basic actiontypes and npcs worked with it, and the rest were done manually, no way near a fully correct implementation.
Korvacs is offline  
Old 01/14/2012, 23:56   #20

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
So how hard is it to at least implement a basic working system? (click npc, show dialog and dialog options)
//edit Skimming through the old Eudemons source (and found out that C++ is incomprehensible to me) and I saw that they had a auction system. Since it's in this source, conquer should have it too yet TQ never bothered to implement it =/
Kiyono is offline  
Old 01/15/2012, 00:03   #21
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
Quote:
Originally Posted by Kiyono View Post
So how hard is it to at least implement a basic working system? (click npc, show dialog and dialog options)
Not bad at all, as easy as doing your own implementation. Just start getting intimately familiar with the EO source.
Lateralus is offline  
Old 01/15/2012, 00:06   #22


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Heres how i did the basic system:


Korvacs is offline  
Old 01/15/2012, 00:14   #23

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by Lateralus View Post
Not bad at all, as easy as doing your own implementation. Just start getting intimately familiar with the EO source.
I'm currently tracing through the EO source but not understanding C++ is a bit of a problem. I'm currently here:
Code:
case EVENT_BEACTIVED:
		{
			CNpc* pNpc;
			IRole* pRole = RoleManager()->QuerySet()->GetObj(m_pInfo->id);
			if (pRole && pRole->QueryObj(OBJ_NPC, IPP_OF(pNpc)) && pUser->GetMapID() == pNpc->GetMapID())
			{
				pNpc->ActivateNpc(pUser->QueryRole(), 0);
			}
		}
		break;
Which apparently is where the NPC task thing starts, not sure though since this case is a part of some switch that I've never seen before.
These enums don't tell me a lot either:
Code:
enum {
		EVENT_BEACTIVED = 0,				// to server		// ´¥·¢
		EVENT_ADDNPC,						// no use
		EVENT_LEAVEMAP,						// to client		// ɾ³ý
		EVENT_DELNPC,						// to server
		EVENT_CHANGEPOS,					// to client/server
		EVENT_LAYNPC,						// to client(id=region,data=lookface), answer MsgNpcInfo(CMsgPlayer for statuary)
};
Quote:
Originally Posted by Korvacs View Post
Heres how i did the basic system:



Will watch when my internet stops being annoying and the video loads.
Kiyono is offline  
Old 01/15/2012, 00:15   #24
 
lostsolder05's Avatar
 
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by Kiyono View Post
Well I at least have the information now. Time to figure out how to actually apply this but judging from the huge list of possible action types and my rather poor coding skills; I won't get very far. Is there any source out there with a working TQ style npc system? I would like to have a reference.


Have fun, It's not a great implementation but last time I checked the majority of stuff worked.

There's also a few other sources off the top of my head I can think of that implement a TQ based NPC system (PMCO, ImmuneOne has one that does I believe(very basic), there's also a CoEmu one with a really poor implementation).
lostsolder05 is offline  
Old 01/15/2012, 00:15   #25
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
Quote:
Originally Posted by Kiyono View Post
I'm currently tracing through the EO source but not understanding C++ is a bit of a problem. I'm currently here:
Code:
case EVENT_BEACTIVED:
		{
			CNpc* pNpc;
			IRole* pRole = RoleManager()->QuerySet()->GetObj(m_pInfo->id);
			if (pRole && pRole->QueryObj(OBJ_NPC, IPP_OF(pNpc)) && pUser->GetMapID() == pNpc->GetMapID())
			{
				pNpc->ActivateNpc(pUser->QueryRole(), 0);
			}
		}
		break;
Which apparently is where the NPC task thing starts, not sure though since this case is a part of some switch that I've never seen before.
These enums don't tell me a lot either:
Code:
enum {
		EVENT_BEACTIVED = 0,				// to server		// ´¥·¢
		EVENT_ADDNPC,						// no use
		EVENT_LEAVEMAP,						// to client		// ɾ³ý
		EVENT_DELNPC,						// to server
		EVENT_CHANGEPOS,					// to client/server
		EVENT_LAYNPC,						// to client(id=region,data=lookface), answer MsgNpcInfo(CMsgPlayer for statuary)
};
Those are subtypes of packet 2031, so this is packet processing for subtype 0.
Lateralus is offline  
Old 01/15/2012, 00:18   #26


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by lostsolder05 View Post


Have fun, It's not a great implementation but last time I checked the majority of stuff worked.
Aha! That's the one, so i guess it is public, anyways yeah the implementation in this isn't correct, and is extremely limited.
Korvacs is offline  
Old 01/15/2012, 00:34   #27

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by lostsolder05 View Post


Have fun, It's not a great implementation but last time I checked the majority of stuff worked.

There's also a few other sources off the top of my head I can think of that implement a TQ based NPC system (PMCO, ImmuneOne has one that does I believe(very basic), there's also a CoEmu one with a really poor implementation).
I noticed that Exodus had it right before you posted, also found master15's CoEmuv2 guide on this and I apparently already had the RedemptionCO source but it never even occurred to me that it might have TQ's npc system, lol Not sure what PMCO is? Link?
Quote:
Originally Posted by Lateralus View Post
Those are subtypes of packet 2031, so this is packet processing for subtype 0.
It could be me but 2031 doesn't have subtypes?

But since you say so, it's either the unknown or the npc_mode.

//edit For some reason, RedemptionCO's system and Exodus use exactly the same structs (ActionStruct/TaskStruct even the spaces are in the same place) so that either means that Exodus' system is based on this or vice versa but since RedemptionCO's implementation was flawed (what was wrong with it again?) Exodus' version should be flawed too.
Kiyono is offline  
Old 01/15/2012, 00:40   #28
 
lostsolder05's Avatar
 
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by Kiyono View Post
I noticed that Exodus had it right before you posted, also found master15's CoEmuv2 guide on this and I apparently already had the RedemptionCO source but it never even occurred to me that it might have TQ's npc system, lol Not sure what PMCO is? Link?

it could be me but 2031 doesn't have subtypes?

But since you say so, it's either the unknown or the npc_mode.
lostsolder05 is offline  
Old 01/15/2012, 00:45   #29

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by lostsolder05 View Post
Oh, well that doesn't use TQ's system as that's the source that I'm trying to implement it in, lol
First time I've seen it be called PMCO btw
Kiyono is offline  
Old 01/15/2012, 00:46   #30
 
lostsolder05's Avatar
 
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by Kiyono View Post
Oh, well that doesn't use TQ's system as that's the source that I'm trying to implement it in, lol
First time I've seen it be called PMCO btw
ConquerServer_v2 Project (Project Manifest Source)

Lol my bad I just thought I remembered seeing it have them... Guess not then.
lostsolder05 is offline  
Reply


Similar Threads Similar Threads
[Moved] Binaries vs C# sources discussion and donation debate (aka the mods are mean)
01/13/2012 - CO2 Private Server - 37 Replies
Note: This was spawned in response to various server discussions in another thread.. I felt it was going extremly off topic. It's NOT designed as an attack and (at least from my standpoint) has nothing to do with Zero or his server. That being said I felt that deleting 10-15 posts that broke no rule (besides being a tangent from original topic) would be unfair to members and I feel that the conversation is at least somewhat relevant to the forum. </disclaimer> <In regards to pvp...
New packets documentation website
11/30/2011 - SRO Coding Corner - 1 Replies
I have opened new website where you will find packets + tools + mini emulator(open source) for beginners and advance developers wich will let you research on packets. For now there is not much on the website, i will public more packets every day. I posted it in new thread because many peoples may looking for knowledge here. I hope you will like it. website adres: SSE packets center http://img192.imageshack.us/img192/7762/strea.jpg
Request: MXI usage documentation (no PXI
08/13/2010 - Final Fantasy XI - 0 Replies
I know that MXI and (PXI svn change documentation only!!!) data is becoming hard to find let alone obtain. I wanted to know if anyone has any documentation from MXI (that you will post, so we can download it) mainly the svn stuff or usage of MXI theres plenty of PXI stuff, so please don't post it here



All times are GMT +1. The time now is 13:20.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.