Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 03.12.2006, 18:55   #1
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default [Project]C2

Ok, since some people suggested we should just stop talking about C2 in the FBI thread, I've decided to take it here. For those who don't know, I've been wanting to work on C2 for a while now, and I've finally started fixing all the stuff that was left over from the old Project C2 Beta files. Since I've mentioned this, there were a number of people who expressed interest in doing some development work, so if anyone else might be interested, you can post in this thread. The majority of the work we are doing involves working with our own dll that is based on mcrabben's l2extension project. In fact, it's kinda like l2extensionextension :P

Basically I've been working on modding out what's not needed in the dll and then creating new function hooks for stuff I need to work with to get things working on C2. For a sample of what I've been able to accomplish so far, see here:



There's still alot more we're gonna work on, including recipe shops and the other features that were brand new in C2. This project is very doable and if you're interested in helping out and you know some c++ and asm or maybe you're an AI god :P, then let me know.

For those who are asking why start a C2 server, well I'd have to say first that its for the memories, second for the pvp because I've never had more fun pvping in any other chronicle than C2(and lots of others agree) since you don't have seriously overpowered mages and necros, third I think that the world of Lineage 2 is too big in C4-C5 for private servers who aren't pushing 5k users like retail (too many places to hide out such as necros/catas/new c4 areas) and this leads to less pvp. When you can only xp at the higher lvls in LoA and ToI, there's really only two places people can go. I remember the days of C2 when I played retail. Two alliances controlled ToI and LoA. If you weren't in them you'd be pk'ed on spot :P and if you were in the enemy alliance, you always knew where you could go to find pvp at any time of the day :P

Anyway, aside from just straight up learning some cool stuff to do in c++, it's just for fun!

EDIT: btw, I know this thread is not exactly a l2 server modification yet, but it will most likely have mods posted in the future :P
HongK is offline  
Old 03.12.2006, 19:11   #2
Met45
Архивный участник
 
Join Date: Jan 2006
Posts: 281
Default

if i have time i'll help u...
like i said before in the fbi thread...
Met45 is offline  
Old 03.12.2006, 20:29   #3
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Nice, Henna...I was going to get those added...did you ever get all that SQL code to work or not :P?
mcrabben7 is offline  
Old 03.12.2006, 21:17   #4
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Nah I haven't done the sql side of it yet. I get sidetracked so easily. The biggest thing that is pissing me off right now that is completely unrelated to the programming side of things is mob pathfinding. For some freaking reason sometimes mobs either lose their path or cant find a suitable path to follow and "skip" across your screen on their path to you. Like you'd see them when you hit them and instead of seeing them run after you, they kinda port from spot to spot until they finally get close to you. It's driving me nuts and the only thing I can think is that there's not enough links to pathnodes for them. I had to use HD's pathnode generator for the c2 areas I added because using the C4 pathnode won't work. I also tried generating a new pathnode using the pathmaker prog that came with c4 but the server wont use it for some reason. It doesn't complain that it wouldn't load, it just won't use it in game. So now I gotta sidetrack and research pathnode to find out if there's gonna be a way to fix this.
HongK is offline  
Old 04.12.2006, 06:44   #5
ismael66
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

well,in my opinion I wish no other chronicle than C2 was never out,and last days I was searching for project beta C2 server files :P
If you need help we are here to make this possible...good luck.
ismael66 is offline  
Old 04.12.2006, 14:37   #6
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Glad to see more people getting interested :P Maybe we can all work together and have a "community" c2 server hehe

Did you find the project c2 beta files btw? If not let me know I can get those to you. The biggest problem I had was finding a patch for the C2 client lol

Anyway, I'll post some of the items that I'm currently working on and then maybe we can get a little more organized. I'm going to post some interesting functions we may want to look at later too.

--------------------------------------------------------------

EDIT: Some interesting functions we will probably need to make use of for the manor system:

MANOR RELATED
=============

unicode 0, <double CCastle::SaveCropData(unsigned int nI>
.rdata:005C5D08 unicode 0, <temClassId, int dDropRate, int nPrice, int n>
.rdata:005C5D08 unicode 0, <Level)>,0

.rdata:005C5DC8 unicode 0, <double CCastle:: DeleteCropData(unsigned int >
.rdata:005C5DC8 unicode 0, <nItemClassId)>,0

.rdata:005C5E40 unicode 0, <double CCastle::SetCropPrice(unsigned int nI>
.rdata:005C5E40 unicode 0, <temClassId, int nPrice)>,0

.rdata:005C60A0 unicode 0, <bool CCastle::SetCropPurchaseCount(unsigned >
.rdata:005C60A0 unicode 0, <int nItemClassId, unsigned int nCreatureInde>
.rdata:005C60A0 unicode 0, <x, int nCount)>,0

.rdata:005C6608 unicode 0, <bool CCastle:: DeleteCrop(unsigned int nItemC>
.rdata:005C6608 unicode 0, <lassId)>,0

.rdata:005C6C80 unicode 0, <double CCastle::SetCropDropRate(unsigned int>
.rdata:005C6C80 unicode 0, < nItemClassId, int nDropRate, int nLevel)>,0

.rdata:005C6D30 unicode 0, <double CCastle::SetCropData(unsigned int nIt>
.rdata:005C6D30 unicode 0, <emClassId, int dDropRate, int nPrice, int nL>
.rdata:005C6D30 unicode 0, <evel)>,0
HongK is offline  
Old 04.12.2006, 17:41   #7
Marios145
Архивный участник
 
Join Date: Oct 2006
Posts: 120
Default

is it possible to do this with the c4 retail files?
i mean to remove extra stuff and change what needed to c2?
Marios145 is offline  
Old 04.12.2006, 17:49   #8
ismael66
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

Quote:
Originally Posted by HongK View Post
Glad to see more people getting interested :P Maybe we can all work together and have a "community" c2 server hehe

Did you find the project c2 beta files btw? If not let me know I can get those to you. The biggest problem I had was finding a patch for the C2 client lol

I didn't find them
I would really appreciate if you could give me a link with the files..:P
And I hope I will find the client and patch so I can get in action :P
ismael66 is offline  
Old 04.12.2006, 20:49   #9
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quote:
Originally Posted by Marios145 View Post
is it possible to do this with the c4 retail files?
i mean to remove extra stuff and change what needed to c2?
It would be too much of a hassle .. The packet structures are far too different in C4 to reverse them to C2. The other issue I don't have the experience with is writing 64 bit dll's, which is what you'd have to do to make C4 work with C2.
HongK is offline  
Old 04.12.2006, 20:58   #10
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quote:
Originally Posted by ismael66 View Post
I didn't find them
I would really appreciate if you could give me a link with the files..:P
And I hope I will find the client and patch so I can get in action :P
Well you probably won't find the client around still and I'm almost positive you will not find the client patch :P

I'll go ahead and and rar up my development files and try to get that uploaded tomorrow when I have a faster connection to upload with. I'm not sure how I'm going to post the client, I'm guessing I'll prolly do it in sections of 500 megs each, but I'll try and do that tomorrow as well.
HongK is offline  
Old 05.12.2006, 03:21   #11
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Ok I need to figure out a way to check the current skills you have applied at the moment. Skills like focus, guidance, death whisper etc.. Any skills that are currently in your buff bar. I don't mean skills that you can use, but skills that have been cast on you. Anyone know of a function in l2server that gets that information?
HongK is offline  
Old 05.12.2006, 20:41   #12
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

For debugging purposes or if you are just generally interested in outputting text to the server console, you can use this function:

Code:
void ConsoleMessage(WCHAR * pMessage)
{

	DWORD message = (DWORD)pMessage;
	__asm
	{
		push	message
		push	0		//Message colors: 0 for black, 2 for red
		push	18AA81D8h
		call	LOG_ADD		//DWORD * to address of log_add function
		add	esp, 0Ch	//fix stack pointer
	}

}
You'll need to create a pointer to the address of the log function elsewhere like in a header file. The address is 0x0053EEE0. That function will accept a WCHAR * for text you want to have displayed in l2Servers console.

Possible reasons for wanting to do this:

1. Just to look cool when loading ExUser lol

2. Debugging

3. Prompting admins when something bad happens or whatever your mind can think of
HongK is offline  
Old 06.12.2006, 04:07   #13
MelkorTheStrong
Архивный участник
 
Join Date: Mar 2006
Posts: 135
Default

I actually have Prelude through C5 clients downloaded and ready to go there. If you need it...I suppose I could upload it eventually...
MelkorTheStrong is offline  
Old 06.12.2006, 14:24   #14
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Yea that would be really sweet if you had the chance to upload the C2 client. I've got the patch for it which I can easily upload, but I was waiting to get some good bandwidth before I uploaded the whole C2 client.
HongK is offline  
Old 10.12.2006, 19:05   #15
silence_
Архивный участник
 
Join Date: Apr 2006
Posts: 40
Default

Would you guys like to share a very basic project, so that the rest of the people who are interested, have something to work on?
silence_ is offline  
Old 11.12.2006, 18:59   #16
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Here's a link to the old Project C2 Beta 3 Final pack .. There's a slightly patched l2server in there that should have the casting bar fixed .. There's still a bunch of other hexing you'll need to do but I'll let you figure that out :P

http://www.mydatabus.com/6z/tznvy.pb...eta3-Final.rar

ppoldpack
HongK is offline  
Old 11.12.2006, 19:05   #17
ismael66
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

thank you,downloading right now..
Also found the client on filefront (it was quite easy) now searching for patched system
ismael66 is offline  
Old 11.12.2006, 19:22   #18
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quote:
Originally Posted by ismael66 View Post
thank you,downloading right now..
Also found the client on filefront (it was quite easy) now searching for patched system
That pack I uploaded contains the old 97.rar system patch .. cant remember if it actually works but you can try and mess with it
HongK is offline  
Old 11.12.2006, 19:29   #19
ismael66
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

I hope it will,think positive:P
ismael66 is offline  
Old 11.12.2006, 19:33   #20
silence_
Архивный участник
 
Join Date: Apr 2006
Posts: 40
Default

Quote:
Originally Posted by ismael66 View Post
thank you,downloading right now..
Also found the client on filefront (it was quite easy) now searching for patched system
Can u give us a link to download the client?
silence_ is offline  
Old 11.12.2006, 19:38   #21
ismael66
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

yeah sure here you are
http://files.filefront.com/L2+C2+Ins.../fileinfo.html
ismael66 is offline  
Old 11.12.2006, 19:43   #22
silence_
Архивный участник
 
Join Date: Apr 2006
Posts: 40
Default

Cool. I was searching for it and couldn't find anything on Filefront xD
silence_ is offline  
Old 12.12.2006, 14:00   #23
ismael66
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

with the 98 system i have a critical "cannot find L2font package.SmallFont.gly....etc
ismael66 is offline  
Old 12.12.2006, 14:36   #24
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

I'll see if I can find the fontfix package ..
HongK is offline  
Old 12.12.2006, 14:51   #25
ismael66
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

thx a lot pal
ismael66 is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:26.