Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 23.09.2005, 08:41   #1
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default Hexing - 7Signs Sky and OGG

Hi,

some of u know how to hex l2server.exe to get dawn, dusk and normal sky, so in "music" folder u have "ssq_dawn_01.ogg", "ssq_dusk_01.ogg" and "ssq_neutral_01.ogg", maybe u could add some hex lines to automatically play (for all players) one of these music using command //enable_client_event 1, 2 or 0

Regards
krapno is offline  
Old 23.09.2005, 11:29   #2
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

First i gotta find out how to save the changes for those who re-login, but i gotta say that music fits the client_events animations perfectly xD
Metalmurphy is offline  
Old 24.09.2005, 11:01   #3
maximus
Архивный участник
 
Join Date: Jun 2005
Posts: 135
Default

//enable_client_event 100 101 102 xD
maximus is offline  
Old 24.09.2005, 12:35   #4
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

?? thats just the fast switch of the skyes maximus. no music
Metalmurphy is offline  
Old 24.09.2005, 15:27   #5
Lukas
Архивный участник
 
Join Date: Aug 2005
Posts: 34
Default

Quote:
Originally Posted by maximus
//enable_client_event 100 101 102 xD
//enable_client_event 1 <-- dusk
//enable_client_event 2 <-- dawn
//enable_client_event 0 <-- normal

this one is better it does a quick gradual change rather than "instant" 8)
Lukas is offline  
Old 24.09.2005, 16:24   #6
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

You guys are missing the point... oO
Metalmurphy is offline  
Old 24.09.2005, 16:30   #7
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

I agreee. Stay on topic please. And read carefully. :wink:
flakka is offline  
Old 24.09.2005, 17:49   #8
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

yes please stay in the topic, dont post if u have no idea about topic guys, tx
krapno is offline  
Old 25.09.2005, 00:24   #9
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

did u test it ?
krapno is offline  
Old 25.09.2005, 16:13   #10
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

livid //ride you sure it works ?
demon is offline  
Old 25.09.2005, 16:29   #11
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

Quote:
Originally Posted by demon
livid //ride you sure it works ?
offtopic demon, 1st warning :!:

so Livid i am totally n00b in hexing but i try to understand, can u please look at this and help me:

Code:
------------------------------------------------------------------
address		goto		value
------------------------------------------------------------------
004486D8	000486D8	68 00000000	PUSH 0
004486DD	000486DD	68 00000000	PUSH 0
004486DE	000486DE	68 00000000	PUSH 0
004486E3	000486E3	68 00000000	PUSH 0
004486E6	000486E6	68 00000000	PUSH 0
004486E7	000486E7	68 ????????	PUSH "ssq_dusk_01"
004486E8	000486E8	68 01000000	PUSH 1
004486EE	000486EE	68 98000000	PUSH 098
004486F3	000486F3	68 4C775E00	PUSH 5E774C
004486F8	000486F8	E8 63820A00	CALL 004F0960
Regards
krapno is offline  
Old 25.09.2005, 17:43   #12
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

PUSH "ssq_dusk_01" actually should look like:

PUSH xxxxxxxx

and at the address xxxxxxxx we have UNICODE srting ssq_dusk_01
like:
73 00 73 00 71 00 5F 00 64 00 75 00 73 00 6B 00 5F 00 30 00 31 00 00 00
Last 0000 is a string terminator.

String is VC++ 7.0 wChar type if you are interested.

Oh, and one more. To save space use 6A 00 instead of 68 00000000
Livid is offline  
Old 25.09.2005, 19:00   #13
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

well well well, i tried to understand more and i did something with what u wrote but, 1st, this string:

Code:
73 00 73 00 71 00 5F 00 64 00 75 00 73 00 6B 00 5F 00 30 00 31 00 00 00
is too long to be edited in one row, then i used more than one 68 (PUSH) to PUSH "ssq_dusk_01" string

and 2nd, L2Server crashes as soon as a player is connecting :?

Here some beautifull screens

Before


Hexing


Hexed


Kind regards
krapno is offline  
Old 25.09.2005, 19:15   #14
filrip
Архивный участник
 
Join Date: May 2005
Posts: 99
Default

PUSH xxxxxxx

xxxxx is an address where the string is stored, use something not 'really' used in .exe.

Example, at 2BBCE0 offset, write the string in unicode of the music (73 00 73 00 71 00 5F 00 64 00 75 00 73 00 6B 00 5F 00 30 00 31 00 00 00). (I havent tested it here.... if crash, then must be stored somewhere else).

Then the PUSH point to the virtual address of the 2bbce0 offset. If my count is correct, it's 6BBCE0. Then you must have "PUSH 6BBCE0" (for my example)
filrip is offline  
Old 25.09.2005, 19:18   #15
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

point is to have whole string pushed.
Livid is offline  
Old 25.09.2005, 20:28   #16
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

:roll: i am lost, i dont understand because i try to type that code:

Code:
------------------------------------------------------------------
address		goto		value
------------------------------------------------------------------
004486D8	000486D8	6A 00		PUSH 0
004486DD	000486DD	6A 00		PUSH 0
004486DE	000486DE	6A 00		PUSH 0
004486E3	000486E3	6A 00		PUSH 0
004486E6	000486E6	6A 00		PUSH 0
004486E7	000486E7	68 6BBCE000	PUSH "ssq_dusk_01"
004486E8	000486E8	68 01000000	PUSH 1
004486EE	000486EE	68 98000000	PUSH 098
004486F3	000486F3	68 4C775E00	PUSH 5E774C
004486F8	000486F8	E8 63820A00	CALL 004F0960
but address doesn't matches, i dont know if i have to add rows or update rows, and it seems i am only able to update rows using HIEW ...

Regards
krapno is offline  
Old 26.09.2005, 03:20   #17
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

6A 00 PUSH 0
6A 00 PUSH 0
6A 00 PUSH 0
6A 00 PUSH 0
6A 00 PUSH 0
68 E0BC6B00 PUSH 6BBCE0
6A 01 PUSH 1
6A 98 PUSH 098
68 4C775E00 PUSH 5E774C
E8 63820A00 CALL 004F0960
Livid is offline  
Old 26.09.2005, 07:36   #18
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

Tnx Livid with you're help i finaly understood something from Hexing , plz give me more codes so to that i can help Krapno .
TheOrder is offline  
Old 26.09.2005, 09:49   #19
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

I did that but Server crashes when players connects :cry:

Hexing


Hexed
krapno is offline  
Old 26.09.2005, 09:58   #20
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

What prog do you use to Hex you're files ??
TheOrder is offline  
Old 26.09.2005, 10:02   #21
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

Quote:
Originally Posted by TheOrder
What prog do you use to Hex you're files ??
HIEW x.xx
krapno is offline  
Old 26.09.2005, 16:03   #22
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default off topic

/offtopic -- once I have hexed the server.exe to see dusk/dawn sky which works great , i can only see moon by looking straight up not from a distance. is it suppossed to be this way?

for example. if im on top of a hill, i have to look straight up to see it, or if Im in dian town. cant see from a distanct I have to look up.

BIG NOOB Question!
Dave is offline  
Old 26.09.2005, 16:10   #23
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

it depend of server time...
krapno 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 20:06.