Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 18.07.2006, 14:00   #101
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default Re: wow

Quote:
Originally Posted by deathz0r
hey... nice thread here, I just wanted to thank everyone involved in this proyect I've started to learn something about how to hook the l2server and I'm currently documenting myself on C++ RipperX I added you to my msn if you don't mind.

back when there was no fuss about c4 retail server files and everything I believed that hooking the exec was a very good way to keep l2off alive, and I still think so.
Did you added me ? coz I don't see the Agree window.
RipperX is offline  
Old 18.07.2006, 20:01   #102
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Quote:
Originally Posted by HongK
Hey mcrabben is there anyway you could give me a glimpse into your code for handling npcinfo, charinfo, or userinfo? I just need a little bump to get some progress on it ... I'm trying to make it work for C2, so I realize yours will be slightly different, but any help would be awesome! Thanks..
Our DLL only hooks the C3/C4 parameters right now, plus abnormals. But somewhere around 4FECEC is UserInfo's packet send. NpcInfo is around that function, it's inside a different if statement for the UserInfo send packet.

CharInfo is...hmm...where was it. 4FF3A5 and 4FF93F should be both of them. Hope that helps.
mcrabben7 is offline  
Old 18.07.2006, 20:24   #103
MelkorTheStrong
Архивный участник
 
Join Date: Mar 2006
Posts: 135
Default

hey mcrabben, i'm not sure on this, but don't ppl on retail have the castle door HP bar working so ppl can view it like mobs? beats me, i've never seen it working on any private server, i'm so used to it not being there
MelkorTheStrong is offline  
Old 18.07.2006, 21:42   #104
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Quote:
Originally Posted by MelkorTheStrong
hey mcrabben, i'm not sure on this, but don't ppl on retail have the castle door HP bar working so ppl can view it like mobs? beats me, i've never seen it working on any private server, i'm so used to it not being there
I noticed it doesn't work. It's probably been broken since C2 or something. There is a packet called DoorStatusUpdate and I think HP is sent in there. I will take a look at that, later, and see how the C1 packet compares to the L2J packet.

Thanks for reminding me.
mcrabben7 is offline  
Old 18.07.2006, 22:11   #105
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

GJ mcrabben7 , i love 1 thing at u you continue your work even if people don't have faith in C1 any more !!! Tnx for everything you great !!!
TheOrder is offline  
Old 19.07.2006, 01:06   #106
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Quote:
Originally Posted by TheOrder
GJ mcrabben7 , i love 1 thing at u you continue your work even if people don't have faith in C1 any more !!! Tnx for everything you great !!!
Thanks. I still don't believe we'll have the entire retail C4 server fall into PP any time soon.

I also am learning a lot about many programming things, and teaching myself a lot of new programming skills. So, it's not like I am wasting time. I do enjoy doing this, tbh.
mcrabben7 is offline  
Old 20.07.2006, 00:50   #107
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

i agree...
even if retail c4 server is available...
i'd still find the importance of dll is still needed...
retail c4 server is NOT perfect.... there's more then u could imagine that require fixing and improving...
[Knowledge = Power]
Digital is offline  
Old 20.07.2006, 01:35   #108
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by mcrabben7
Quote:
Originally Posted by TheOrder
GJ mcrabben7 , i love 1 thing at u you continue your work even if people don't have faith in C1 any more !!! Tnx for everything you great !!!
Thanks. I still don't believe we'll have the entire retail C4 server fall into PP any time soon.

I also am learning a lot about many programming things, and teaching myself a lot of new programming skills. So, it's not like I am wasting time. I do enjoy doing this, tbh.
Quote:
Originally Posted by Digital
i agree...
even if retail c4 server is available...
i'd still find the importance of dll is still needed...
retail c4 server is NOT perfect.... there's more then u could imagine that require fixing and improving...
[Knowledge = Power]
Yes. Sounds well and I shall agree with it. Much that is made here, has assisted me to make for other work. But...
To invent a bicycle is not the best way of development. And even small envy to such big server - too not the best feeling for calm in с1 a server.
HF is offline  
Old 20.07.2006, 21:37   #109
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Quote:
Originally Posted by HF
Quote:
Originally Posted by mcrabben7
Quote:
Originally Posted by TheOrder
GJ mcrabben7 , i love 1 thing at u you continue your work even if people don't have faith in C1 any more !!! Tnx for everything you great !!!
Thanks. I still don't believe we'll have the entire retail C4 server fall into PP any time soon.

I also am learning a lot about many programming things, and teaching myself a lot of new programming skills. So, it's not like I am wasting time. I do enjoy doing this, tbh.
Quote:
Originally Posted by Digital
i agree...
even if retail c4 server is available...
i'd still find the importance of dll is still needed...
retail c4 server is NOT perfect.... there's more then u could imagine that require fixing and improving...
[Knowledge = Power]
Yes. Sounds well and I shall agree with it. Much that is made here, has assisted me to make for other work. But...
To invent a bicycle is not the best way of development. And even small envy to such big server - too not the best feeling for calm in с1 a server.
I considered making it a completely Open SOurce project, using the Open GPL license and everything. But I'm just not sure that the community here would be able to support such a project. I'm just afraid it'd turn into one giant leech affair where people take the code and use it, and never give anything back. I also see custom L2J servers out there, but I don't think they share their code back with the main l2J branch. Those kinds of things worried me.

But you're right. Reinventing the bicycle sucks. I am still playing catchup with Linex and l2Extend because I am missing a few features they have. I "almost" have Linex functionality replaced, but not quite there yet. Missing some things still.

So, like I said, you are right. If I had source to start out with that was something like zzcat's level, this would of gone faster. But such is life.
mcrabben7 is offline  
Old 20.07.2006, 21:48   #110
[DeV/NuLL]
Архивный участник
 
Join Date: Aug 2005
Posts: 23
Default

Well, you always can start a project on sourceforge for example and get some coders for the project who are really interested on learn and write code for your project.
[DeV/NuLL] is offline  
Old 20.07.2006, 23:07   #111
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quote:
Originally Posted by mcrabben7
Quote:
Originally Posted by HF
Quote:
Originally Posted by mcrabben7
Quote:
Originally Posted by TheOrder
GJ mcrabben7 , i love 1 thing at u you continue your work even if people don't have faith in C1 any more !!! Tnx for everything you great !!!
Thanks. I still don't believe we'll have the entire retail C4 server fall into PP any time soon.

I also am learning a lot about many programming things, and teaching myself a lot of new programming skills. So, it's not like I am wasting time. I do enjoy doing this, tbh.
Quote:
Originally Posted by Digital
i agree...
even if retail c4 server is available...
i'd still find the importance of dll is still needed...
retail c4 server is NOT perfect.... there's more then u could imagine that require fixing and improving...
[Knowledge = Power]
Yes. Sounds well and I shall agree with it. Much that is made here, has assisted me to make for other work. But...
To invent a bicycle is not the best way of development. And even small envy to such big server - too not the best feeling for calm in с1 a server.
I considered making it a completely Open SOurce project, using the Open GPL license and everything. But I'm just not sure that the community here would be able to support such a project. I'm just afraid it'd turn into one giant leech affair where people take the code and use it, and never give anything back. I also see custom L2J servers out there, but I don't think they share their code back with the main l2J branch. Those kinds of things worried me.

But you're right. Reinventing the bicycle sucks. I am still playing catchup with Linex and l2Extend because I am missing a few features they have. I "almost" have Linex functionality replaced, but not quite there yet. Missing some things still.

So, like I said, you are right. If I had source to start out with that was something like zzcat's level, this would of gone faster. But such is life.
Hehe yea I worked on L2J as a developer for a while and it sucked when zabbix ran off with roberto to start their own branch and close it off even though they should technically get their asses sued for it ...

Enforcement is an impossible thing and if people branch off they will do it .. This was one of the hardest things the devs talked about .. I always suggested closed source, but ultimately the way you beat other developers is by having better code and more functionality .. It's actually a good thing because it fosters competition and competition in turn produces better products because if you don't compete you lose out .. Besides, atm if someone really wanted to they could just take the basic skeleton you have provided and start their own project just like you said .. They would just do it from scratch...You can't worry about people taking your open source code because if someone wants to be like that, they will .. But look at how far l2j came from the beginning .. I can guarantee you there are more things coded in there that would have NEVER been done if not for outside community support ... I used to not believe in open source, but I have seen the positive things that can happen .. Just look at Linux lol

If you don't have the resources to do all the coding yourself, it might help to let other people take a stab at it and see what happens .. I can tell you that there are shitloads of people that didn't know crap about java before they found L2J and now they are learning and becoming much better at it ...

I for one am interested in C++ .. I always have been, but have never had the time to really sit down and study it properly .. But since I started working with Ollydbg and learning how instructions map to memory addresses, it opened up a whole new world with pointers to me .. I remember two years ago reading about pointers and saying WHOA wth I don't understand any of this .. But looking at coding examples in your DLL and reading a chapter or two on pointers has completely changed my perspective ... So even if you don't open the project up to the public, I still gotta thank you for opening my eyes to hooking and helping me understand pointers :P

cheers
HongK is offline  
Old 20.07.2006, 23:11   #112
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

I don't think that Elhaym project will be open but as I said I can help you to learn. Just if is usefull for you.

gb
RipperX is offline  
Old 05.12.2006, 17:30   #113
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quick question..

I was reading through this thread looking for an answer to my question about getting user values like STR, INT, WIT etc and in comparing the offsets in the l2extension project I'm trying to figure out where you got those values from. For example, in the User struct in l2extension you have AI_X_LOC = 0x08, AI_Y_LOC = 0x10, AI_Z_LOC = 0x18 and on and on. But when I debug userinfo in l2server, the offsets are different numbers. For example at the beginning of the userinfo packet the offsets are EBP-xxx value ... EBP-210 = CharName, EBP-44 = race, EBP-50 = class .. But in the user struct in l2extension the offset for AI_NAME = 0xA0, not 0x210

Sooooo my question is, is my understanding wrong of the offset values? I just figured the offset values in the User struct in l2extension were just the offsets of EBP from data out of userinfo...
HongK is offline  
Old 05.12.2006, 18:27   #114
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

UserInfo stores values on the local stack. The original values were copied there from User->CSharedData. My code is right. Trust me.

I already have all the offsets for STR, INT, WIT, DEX, etc. in my code. One or two might be mixed up but they're all there.

It's always User + offset -> CSharedData + offset -> some variable.

I have all the C4 offsets stuck in my head so I can't tell you what the offsets are anymore. See my code :P
mcrabben7 is offline  
Old 05.12.2006, 18:38   #115
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

lol
c++ rulez
maybe someone will start up some public C4 DLL %)
this is small bugfix around striders/wywern without corralllls %)

Code:
bool CP_6A_Ride(CUserSocket *pUserSocket, char *pPacket)
{
	return true; //kick 
}
humordwarf is offline  
Old 05.12.2006, 18:40   #116
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quote:
Originally Posted by mcrabben7 View Post
UserInfo stores values on the local stack. The original values were copied there from User->CSharedData. My code is right. Trust me.

I already have all the offsets for STR, INT, WIT, DEX, etc. in my code. One or two might be mixed up but they're all there.

It's always User + offset -> CSharedData + offset -> some variable.

I have all the C4 offsets stuck in my head so I can't tell you what the offsets are anymore. See my code :P
Yes I know they are right .. That's not my question .. I wanted to get more information than is available currently .. So I was wondering how you got those offsets

So like you have User + offset -> CSharedData .. ok good so CSharedData + (offset) -> the variable

Where are you finding (offset)

oh that and what are INFECTED_SKILLS?
HongK is offline  
Old 05.12.2006, 18:51   #117
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

Quote:
Originally Posted by HongK View Post
Where are you finding (offset)
some of offsets u can get from AI.OBJ there after //names of variables.. so before - offsets %)
humordwarf is offline  
Old 05.12.2006, 19:03   #118
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quote:
Originally Posted by humordwarf View Post
some of offsets u can get from AI.OBJ there after //names of variables.. so before - offsets %)
Ahhhhh sweet .. thanks HD :P

One last question to Mcrabben, what is your implementation method for the C5 skills you are adding? For example I want to write skill handlers for some new C2 skills so I'm trying to figure out the best way to do it. Any suggestions?
HongK is offline  
Old 05.12.2006, 19:34   #119
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

I used a disassembler, of course. You will never get anything done without a good disassembler at your side. How did I find the offsets? L2server assembly. Once you know how to recognize a User *, CSharedData *, etc., things fall into place.

Not really any time for me to teach you right now, but learn to disassemble. HD is right about the AI offsets, because L2Server and L2NPC use Shared Memory IPC (Inter-Process Communication) all the offsets must be the same. I'm sure there are offsets in there I never cared to look up that may be of use to you.

P.S. Skill handlers are a pain in the ass. Alien003 was the master of skill handlers, compared to myself. I've had little experience with changing them, though I have my ideas.
mcrabben7 is offline  
Old 05.12.2006, 20:17   #120
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

One last question:

What are INFECTED_SKILLS? If those aren't skills that are currently applied to you, was there a way that you know of to check the skills that are currently applied on a character like guidance, focus, etc?
HongK is offline  
Old 05.12.2006, 22:17   #121
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Quote:
Originally Posted by HongK View Post
One last question:

What are INFECTED_SKILLS? If those aren't skills that are currently applied to you, was there a way that you know of to check the skills that are currently applied on a character like guidance, focus, etc?
Type the gm command //infected_skills sometime

INFECTED_SKILLS is where I think the infected skills buffer/array was. I never did use it. I know in C4 there is a function called bool CCreature::HasSkill(skill_id) but I haven't used it quite yet. It probably exists in C1 as well.

Add me to MSN HongK. It's in my profile. We can do more productive chatting there than forum camping :P

P.S. I might share some new code snippets of some improved code later. Just simple general purpose stuff I use in my own code.
mcrabben7 is offline  
Old 06.12.2006, 00:03   #122
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

agreed .. was gonna ask you for your msn
HongK is offline  
 


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 03:49.