Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Project]C2 (https://postpacific.loc-online.com/showthread.php?t=6362)

HongK 03.12.2006 18:55

[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:

http://img77.imageshack.us/img77/3687/dyes1tc2.th.jpg http://img103.imageshack.us/img103/2461/dyes2aq2.th.jpg http://img77.imageshack.us/img77/9854/dyes3pm3.th.jpg http://img76.imageshack.us/img76/7676/dyes4cg2.th.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

Quote:

Originally Posted by HongK (Post 73522)
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

Quote:

Originally Posted by Marios145 (Post 73524)
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

Quote:

Originally Posted by ismael66 (Post 73525)
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:

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

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.pb...eta3-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

Quote:

Originally Posted by ismael66 (Post 73865)
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

Quote:

Originally Posted by ismael66 (Post 73865)
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+Ins.../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 :)


All times are GMT. The time now is 15:39.