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 24.05.2006, 11:13   #1
Thalone
Архивный участник
 
Join Date: Feb 2005
Posts: 134
Default [guide] recommendation (thx to torune)

Im learning asm atm and I thought it would be a good idea to use Torunes Rec code to teach myself and others on how to code.

*Note* this is not complete.. the parts I left out are the part I do not understand. Im hoping someone can continue on this guide or ill update it later.

P.S.: Guide comes with an awesome ASM reference page

http://templar-studios.com/Partial_Guide.rar

If i messed up on anything, please correct me. This is a learning process!


Edit: Take word wrapping off if you use notepad
Thalone is offline  
Old 24.05.2006, 12:30   #2
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

Awesome job my friend!

Ill look in it harder.. hopefully it will open up some doors to me :]
tpuNIsher is offline  
Old 24.05.2006, 13:07   #3
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

good guide
Digital is offline  
Old 24.05.2006, 14:10   #4
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Yeeeeeaaa.
Now I can take a look into asm with this guide.
Thanks to Torune, and thanks to Thalone.
hel is offline  
Old 24.05.2006, 15:01   #5
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

I have a proposal for you Gin
Let us join together.. all that still believes in sharing their work for other's help.. not fucking selling them for money..
Teach each other and learn slowly. I know it might sound retarded.. but better than any?
The last resort to save L2 community imo.
tpuNIsher is offline  
Old 24.05.2006, 15:50   #6
Virexor
Архивный участник
 
Join Date: May 2005
Posts: 81
Default

damn that reference page is very nice thalone :thumbleft:
Virexor is offline  
Old 24.05.2006, 16:27   #7
nish
Архивный участник
 
Join Date: May 2006
Posts: 237
Default

never tried asm, gonna try it out thx for the guide and your time
nish is offline  
Old 24.05.2006, 16:35   #8
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Dude freaking awesome man. Your the man
Aikeleer is offline  
Old 24.05.2006, 16:49   #9
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Got another question though. How do you know the function names of the l2server? Or do you have to write all functions yourself? Take fSendToSinglePlayer in example. It's used in the dll part multiple times, but is this simply already in the L2Server?
Aikeleer is offline  
Old 24.05.2006, 19:52   #10
Thalone
Архивный участник
 
Join Date: Feb 2005
Posts: 134
Default

yeah, thats already in L2server... I dont know how torune gets it though.

This is all a basic guide so hopefully torune or someone whose good in asm can help us out a bit and fill in the blanks. From this we can move on and hopefully work on things like CP/autoss

Thanks for all the replies ^_^
Thalone is offline  
Old 24.05.2006, 20:54   #11
Thalone
Архивный участник
 
Join Date: Feb 2005
Posts: 134
Default

Here is the online version of the reference page:
http://templar-studios.com/asm/Reference.htm

Here is a ASM Common instruction tutorial:
http://templar-studios.com/asm/Common_instructions.htm

For some GREAT C++ tutorials check out:
http://www.cprogramming.com/tutorial/lesson1.html

If you have any questions, feel free to pm/reply and ask. Ill answer if I can ^_^
Thalone is offline  
Old 24.05.2006, 20:56   #12
Duna
Архивный участник
 
Join Date: Aug 2005
Posts: 14
Default

U can use ollydbg program for debuging l2server. Then u will see ... I think good idea will be start new dll form 0. Coz i dont know how to make new dll. Can somone write guild about this ?. We dont need share. We need only someone who will be write basic info about this.
Duna is offline  
Old 24.05.2006, 21:15   #13
Thalone
Архивный участник
 
Join Date: Feb 2005
Posts: 134
Default

thats what im trying to do Duna... as I learn I will teach others
Thalone is offline  
Old 24.05.2006, 21:33   #14
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Aspire posted an exmple of a full DLL source somewhere, will you be able to use that for making more guides Thalone?
Aikeleer is offline  
Old 24.05.2006, 21:41   #15
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

looks good
i might post macro's source code later.
torune is offline  
Old 24.05.2006, 22:08   #16
Sdw
Архивный участник
 
Join Date: Sep 2005
Posts: 150
Default

Hello, and thanks. :wink:

To continue with comments, the basics of asm are not that hard. The problem is the call of function, and the use of some particular adress when we don't even know what is on it. I think that the main part to learn, and it seems to be a loooooong way to check this out.
Sdw is offline  
Old 24.05.2006, 23:09   #17
Dmytro
Архивный участник
 
Join Date: Nov 2005
Posts: 215
Default

Code:
#include <windows.h>

//DLLMain
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)  
{
	switch( fdwReason ){
		case DLL_PROCESS_ATTACH:
			//Start_Point
			break;
		case DLL_THREAD_ATTACH:         

			break;        
		case DLL_THREAD_DETACH:
			
			break;
		case DLL_PROCESS_DETACH:

			break;    
	}    
	return TRUE;  
}
This is empty dll (C++).
So, let's try fill it. =)

P.S. Big problem for me it's attach dll to server.exe )

Dll, that i attach to post, compiled from ASM code that Aspire post.
I can't test it, but you can do it (if you interesting this certainly)

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
li2patch_690.rar — 2286 байт
Dmytro is offline  
Old 24.05.2006, 23:13   #18
elcapo
Архивный участник
 
Join Date: Mar 2005
Posts: 107
Default

push 7ah; // _S__7A_SYSTEMMESSAGE , a SystemMessage Packet
push sFormat_1; // TEXT_TYPE format ?
push pSocket; // UserSocket where the packet will be sent ?
elcapo is offline  
Old 24.05.2006, 23:22   #19
Eanae
Архивный участник
 
Join Date: Jun 2005
Posts: 262
Default

Torune has gained my respect back. Props to ya all for this. Tutorials is what we needed, not full shares.
Eanae is offline  
Old 25.05.2006, 02:57   #20
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

I believe www.codeproject.com is one of THE BEST places to learn about dlls.

It's frigging AWESOME there..
they have frigging EVERYTHING.. but asm.
tpuNIsher is offline  
Old 25.05.2006, 04:28   #21
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Quote:
Originally Posted by tpuNIsher
I believe www.codeproject.com is one of THE BEST places to learn about dlls.

It's frigging AWESOME there..
they have frigging EVERYTHING.. but asm.
You don't have to write a DLL in assembly. You can do it the same in C++, or any other language which supports using the Windows API and DLL function importing/exporting

I know I'm new around here but I am going to take a stab at making my own basic C4 dll that will fix CharInfo and UserInfo packets based off some asm code aspire posted. It'll be a learning exercise for me, at least.

I'll be trying this after I do my college homework. If I get anything substantial I will try to post it. Wish me luck!
mcrabben7 is offline  
Old 25.05.2006, 05:11   #22
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

Best of luck :]
tpuNIsher is offline  
Old 25.05.2006, 05:22   #23
Thalone
Архивный участник
 
Join Date: Feb 2005
Posts: 134
Default

i updated the tutorial a little... torune said some things are out of place and im trying to figure out where, after i do ill post new code with comments.

Hopefully this can be a change from full shares to tutorials so others can make there own stuff
Thalone is offline  
Old 25.05.2006, 05:25   #24
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Thalone:
Great idea about this way sharing. Thanks!
hel is offline  
Old 25.05.2006, 07:54   #25
Thalone
Архивный участник
 
Join Date: Feb 2005
Posts: 134
Default

Quote:
Originally Posted by tpuNIsher
I have a proposal for you Gin
Let us join together.. all that still believes in sharing their work for other's help.. not fucking selling them for money..
Teach each other and learn slowly. I know it might sound retarded.. but better than any?
The last resort to save L2 community imo.
i'd be more than happy to do this. i have a server, website, and basicly unlimited bandwidth. msg me your msn or aim
Thalone 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 23:17.