Post Pacific

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

Thalone 24.05.2006 11:13

[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

tpuNIsher 24.05.2006 12:30

Awesome job my friend!

Ill look in it harder.. hopefully it will open up some doors to me :]

Digital 24.05.2006 13:07

good guide

hel 24.05.2006 14:10

Yeeeeeaaa. :D
Now I can take a look into asm with this guide.
Thanks to Torune, and thanks to Thalone. :)

tpuNIsher 24.05.2006 15:01

I have a proposal for you Gin :p
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? :p
The last resort to save L2 community imo.

Virexor 24.05.2006 15:50

damn that reference page is very nice thalone :thumbleft:

nish 24.05.2006 16:27

never tried asm, gonna try it out thx for the guide and your time :)

Aikeleer 24.05.2006 16:35

Dude freaking awesome man. Your the man

Aikeleer 24.05.2006 16:49

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?

Thalone 24.05.2006 19:52

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 24.05.2006 20:54

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 ^_^

Duna 24.05.2006 20:56

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.

Thalone 24.05.2006 21:15

thats what im trying to do Duna... as I learn I will teach others

Aikeleer 24.05.2006 21:33

Aspire posted an exmple of a full DLL source somewhere, will you be able to use that for making more guides Thalone?

torune 24.05.2006 21:41

looks good
i might post macro's source code later.

Sdw 24.05.2006 22:08

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.

Dmytro 24.05.2006 23:09

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 байт

elcapo 24.05.2006 23:13

push 7ah; // _S__7A_SYSTEMMESSAGE , a SystemMessage Packet
push sFormat_1; // TEXT_TYPE format ?
push pSocket; // UserSocket where the packet will be sent ?

Eanae 24.05.2006 23:22

Torune has gained my respect back. Props to ya all for this. Tutorials is what we needed, not full shares. :D

tpuNIsher 25.05.2006 02:57

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.

mcrabben7 25.05.2006 04:28

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!

tpuNIsher 25.05.2006 05:11

Best of luck :]

Thalone 25.05.2006 05:22

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

hel 25.05.2006 05:25

Thalone:
Great idea about this way sharing. Thanks!

Thalone 25.05.2006 07:54

Quote:

Originally Posted by tpuNIsher
I have a proposal for you Gin :p
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? :p
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


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