PDA

View Full Version : [Project]C2


HongK
03.12.2006, 18:55
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:

http://img77.imageshack.us/img77/3687/dyes1tc2.th.jpg (http://img77.imageshack.us/my.php?image=dyes1tc2.jpg) http://img103.imageshack.us/img103/2461/dyes2aq2.th.jpg (http://img103.imageshack.us/my.php?image=dyes2aq2.jpg) http://img77.imageshack.us/img77/9854/dyes3pm3.th.jpg (http://img77.imageshack.us/my.php?image=dyes3pm3.jpg) http://img76.imageshack.us/img76/7676/dyes4cg2.th.jpg (http://img76.imageshack.us/my.php?image=dyes4cg2.jpg)

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

Met45
03.12.2006, 19:11
if i have time i'll help u...
like i said before in the fbi thread...

mcrabben7
03.12.2006, 20:29
Nice, Henna...I was going to get those added...did you ever get all that SQL code to work or not :P?

HongK
03.12.2006, 21:17
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.

ismael66
04.12.2006, 06:44
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.

HongK
04.12.2006, 14:37
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

Marios145
04.12.2006, 17:41
is it possible to do this with the c4 retail files?
i mean to remove extra stuff and change what needed to c2?

ismael66
04.12.2006, 17:49
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

HongK
04.12.2006, 20:49
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
04.12.2006, 20:58
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
05.12.2006, 03:21
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
05.12.2006, 20:41
For debugging purposes or if you are just generally interested in outputting text to the server console, you can use this function:

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

MelkorTheStrong
06.12.2006, 04:07
I actually have Prelude through C5 clients downloaded and ready to go there. If you need it...I suppose I could upload it eventually...

HongK
06.12.2006, 14:24
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.

silence_
10.12.2006, 19:05
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?

HongK
11.12.2006, 18:59
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.pbz/oraclevii/ProjectC2-Beta3-Final.rar

ppoldpack

ismael66
11.12.2006, 19:05
thank you,downloading right now..:)
Also found the client on filefront (it was quite easy) now searching for patched system

HongK
11.12.2006, 19:22
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

ismael66
11.12.2006, 19:29
I hope it will,think positive:P

silence_
11.12.2006, 19:33
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?

ismael66
11.12.2006, 19:38
yeah sure here you are
http://files.filefront.com/L2+C2+Installerzip/;3852726;/fileinfo.html

silence_
11.12.2006, 19:43
Cool. I was searching for it and couldn't find anything on Filefront xD

ismael66
12.12.2006, 14:00
with the 98 system i have a critical "cannot find L2font package.SmallFont.gly....etc

HongK
12.12.2006, 14:36
I'll see if I can find the fontfix package ..

ismael66
12.12.2006, 14:51
thx a lot pal :)

silence_
12.12.2006, 15:28
Any other link for C2? The Filefront one is broken. Stops at 70%

HongK
12.12.2006, 15:30
Use this system folder .. It's got the unencrypted l2.ini and was the best one released as far as I recall

http://rapidshare.com/files/7181256/C2_CLIENT_FOR_ProjectC2_BETAXX.rar.html

silence_
12.12.2006, 18:41
ismael66 did u download the client from filefront?

ismael66
12.12.2006, 19:34
yes it works ok

Met45
12.12.2006, 20:11
for me too

silence_
14.12.2006, 15:28
Here's the font fix:

http://rapidshare.com/files/7459821/fontfix.rar.html

Does anyone have a high UP speed to provide me another link for C2? I did download it from filefront and it's damaged :s

HongK
14.12.2006, 17:36
This project needs someone who's good with AI. I have been told that the problem with mobs losing paths is directly related to AI, not geodata or pathnode.bin. Does anyone remember the solution to this problem or know the way to fix it in AI?

Thalone
14.12.2006, 21:56
info for AI on my old old old blog:

http://blog.templar-studios.com/

Aikeleer
14.12.2006, 23:12
This project needs someone who's good with AI. I have been told that the problem with mobs losing paths is directly related to AI, not geodata or pathnode.bin. Does anyone remember the solution to this problem or know the way to fix it in AI?I know my way around the AI, especially the C1 one. All I can tell you is that I can't remember something about the paths in the ai... you call the AddAttackDesire function i.e. and the paths are handled by l2npc.

HongK
14.12.2006, 23:42
I know my way around the AI, especially the C1 one. All I can tell you is that I can't remember something about the paths in the ai... you call the AddAttackDesire function i.e. and the paths are handled by l2npc.

EDIT: Misunderstood what you said I think .. I know there are pathfinding functions in l2server that get called .. That's not the issue ..

Marios145
15.12.2006, 16:32
something less important..
in c2 what to hex to change soulshots/spiritshots effects?
does anyone have a link to a thread or smth?

i searched but found only for c3 so...

HongK
15.12.2006, 21:39
something less important..
in c2 what to hex to change soulshots/spiritshots effects?
does anyone have a link to a thread or smth?

i searched but found only for c3 so...

You can't change them. It's dependent on the client for the effects you see in game. The server has nothing to do with that.

Marios145
15.12.2006, 21:45
my mistake sry the different soulshot effect was implemented in c3

Met45
15.12.2006, 22:12
yeah that's client side and if u wanne implement it use the search

evets
21.02.2007, 07:51
Project dead?.
We are opening a C2 server so we are in the best way we can to help. :)

testdude
21.02.2007, 08:49
You can't change them. It's dependent on the client for the effects you see in game. The server has nothing to do with that.

what he is talking about is not the color of the soulshot when u use it, but when u attack, the burst that appears on the attacked player/npc, i fixed this in c3 to show the gold effect of S grade all the time, and i now know how to fix it for each grade, but like he said it was added in c3.