1per1 with more than 26 maps + Attached 1p1

General assistance and guidelines for editing the server side of Soma.

1per1 with more than 26 maps + Attached 1p1

Postby Tiffany » Tue Feb 26, 2008 11:31 am

Originally posted by Finito on Pirate Forum

Code: Select all
This loads Soma Maps and EVT based on SERVERINFO table Zone info.

Offset in Hexeditor for Map Max which is set to 5 in here is : 0001B2BD ( HEX )

0041B188   . 33FF           XOR EDI,EDI     
0041B18A   . C68424 E400000>MOV BYTE PTR SS:[ESP+E4],4
0041B192   . 8B048A         MOV EAX,DWORD PTR DS:[EDX+ECX*4]
0041B195   . 8B40 18        MOV EAX,DWORD PTR DS:[EAX+18]
0041B198   . 3BC5           CMP EAX,EBP
0041B19A   . 0F8E 24010000  JLE Eonepero.0041B2C4
0041B1A0   > 68 CC000000    PUSH 0CC
0041B1A5   . E8 7FCC0800    CALL Eonepero.004A7E29
0041B1AA   . 83C4 04        ADD ESP,4
0041B1AD   . 894424 2C      MOV DWORD PTR SS:[ESP+2C],EAX
0041B1B1   . 3BC5           CMP EAX,EBP
0041B1B3   . C68424 E400000>MOV BYTE PTR SS:[ESP+E4],5
0041B1BB   . 74 0B          JE SHORT Eonepero.0041B1C8
0041B1BD   . 8BC8           MOV ECX,EAX
0041B1BF   . E8 DC35FFFF    CALL Eonepero.0040E7A0
0041B1C4   . 8BF0           MOV ESI,EAX
0041B1C6   . EB 02          JMP SHORT Eonepero.0041B1CA
0041B1C8   > 33F6           XOR ESI,ESI
0041B1CA   > 8B0D E49E5000  MOV ECX,DWORD PTR DS:[509EE4]    ; WONT BE NEEDED AFTER CHANGES
0041B1D0   . 8B15 049E5000  MOV EDX,DWORD PTR DS:[509E04]    ; WONT BE NEEDED AFTER CHANGES
0041B1D6   . C68424 E400000>MOV BYTE PTR SS:[ESP+E4],4
0041B1DE   . 8B048A         MOV EAX,DWORD PTR DS:[EDX+ECX*4]    ; WONT BE NEEDED AFTER CHANGES
0041B1E1   . 8B48 14        MOV ECX,DWORD PTR DS:[EAX+14]    ; WONT BE NEEDED AFTER CHANGES
0041B1E4   . 8B14B9         MOV EDX,DWORD PTR DS:[ECX+EDI*4]    ; !! CHANGE TO INC EDI to set EDI to 1 NOP THE REMAINDING BYTES !! 
0041B1E7   . 8BCE           MOV ECX,ESI
0041B1E9   . 8B02           MOV EAX,DWORD PTR DS:[EDX]      ; Gets Map No HERE! !! CHANGE TO MOV EAX, EDI !!
0041B1EB   . 50             PUSH EAX                                ; /Arg1  ; Map No from Above
0041B1EC   . E8 AF37FFFF    CALL Eonepero.0040E9A0                  ; \Eonepero.0040E9A0; LoadMapByNum
0041B1F1   . A1 389E5000    MOV EAX,DWORD PTR DS:[509E38]
0041B1F6   . 56             PUSH ESI
0041B1F7   . 50             PUSH EAX
0041B1F8   . B9 309E5000    MOV ECX,Eonepero.00509E30
0041B1FD   . E8 16C50800    CALL Eonepero.004A7718
0041B202   . 6A 1C          PUSH 1C
0041B204   . E8 20CC0800    CALL Eonepero.004A7E29
0041B209   . 83C4 04        ADD ESP,4
0041B20C   . 894424 2C      MOV DWORD PTR SS:[ESP+2C],EAX
0041B210   . 3BC5           CMP EAX,EBP
0041B212   . C68424 E400000>MOV BYTE PTR SS:[ESP+E4],6
0041B21A   . 74 0B          JE SHORT Eonepero.0041B227
0041B21C   . 8BC8           MOV ECX,EAX
0041B21E   . E8 FD98FEFF    CALL Eonepero.00404B20
0041B223   . 8BF0           MOV ESI,EAX
0041B225   . EB 02          JMP SHORT Eonepero.0041B229
0041B227   > 33F6           XOR ESI,ESI
0041B229   > 8B0D E49E5000  MOV ECX,DWORD PTR DS:[509EE4]; WONT BE NEEDED AFTER CHANGES
0041B22F   . 8B15 049E5000  MOV EDX,DWORD PTR DS:[509E04]      ; WONT BE NEEDED AFTER CHANGES
0041B235   . C68424 E400000>MOV BYTE PTR SS:[ESP+E4],4
0041B23D   . 8B048A         MOV EAX,DWORD PTR DS:[EDX+ECX*4]  ; WONT BE NEEDED AFTER CHANGES
0041B240   . 8B48 14        MOV ECX,DWORD PTR DS:[EAX+14]      ; WONT BE NEEDED AFTER CHANGES
0041B243   . 8B14B9         MOV EDX,DWORD PTR DS:[ECX+EDI*4]  ; WONT BE NEEDED AFTER CHANGES
0041B246   . 8BCE           MOV ECX,ESI
0041B248   . 8B02           MOV EAX,DWORD PTR DS:[EDX];Gets map no for EVT !! CHANGE TO MOV EAX, EDI !!
0041B24A   . 50             PUSH EAX  ; /Arg1 Map No
0041B24B   . E8 A099FEFF    CALL Eonepero.00404BF0; LoadEvent
0041B250   . 85C0           TEST EAX,EAX
0041B252   . 75 0E          JNZ SHORT Eonepero.0041B262
0041B254   . 3BF5           CMP ESI,EBP
0041B256   . 74 54          JE SHORT Eonepero.0041B2AC
0041B258   . 8B16           MOV EDX,DWORD PTR DS:[ESI]
0041B25A   . 6A 01          PUSH 1
0041B25C   . 8BCE           MOV ECX,ESI
0041B25E   . FF12           CALL DWORD PTR DS:[EDX]
0041B260   . EB 4A          JMP SHORT Eonepero.0041B2AC
0041B262   > A1 209E5000    MOV EAX,DWORD PTR DS:[509E20]
0041B267   . 56             PUSH ESI
0041B268   . 50             PUSH EAX
0041B269   . B9 189E5000    MOV ECX,Eonepero.00509E18
0041B26E   . E8 A5C40800    CALL Eonepero.004A7718
0041B273   . A1 E49E5000    MOV EAX,DWORD PTR DS:[509EE4]          ; WONT BE NEEDED AFTER CHANGES   
0041B278   . 8B0D 049E5000  MOV ECX,DWORD PTR DS:[509E04]          ; WONT BE NEEDED AFTER CHANGES
0041B27E   . 8B1481         MOV EDX,DWORD PTR DS:[ECX+EAX*4]        ; WONT BE NEEDED AFTER CHANGES
0041B281   . 8B42 14        MOV EAX,DWORD PTR DS:[EDX+14]    ; WONT BE NEEDED AFTER CHANGES   
0041B284   . 8B0CB8         MOV ECX,DWORD PTR DS:[EAX+EDI*4]    ; WONT BE NEEDED AFTER CHANGES
0041B287   . 8D4424 1C      LEA EAX,DWORD PTR SS:[ESP+1C]
0041B28B   . 8B11           MOV EDX,DWORD PTR DS:[ECX]      ; Get Zone no to be shown on 1p! !! CHANGE TO MOV EDX, EDI !!
0041B28D   . 52             PUSH EDX        ; Map Zone no 
0041B28E   . 68 60764C00    PUSH Eonepero.004C7660                  ;  ASCII "%d "
0041B293   . 50             PUSH EAX
0041B294   . E8 53BF0800    CALL Eonepero.004A71EC
0041B299   . 83C4 0C        ADD ESP,0C
0041B29C   . 8D4C24 1C      LEA ECX,DWORD PTR SS:[ESP+1C]
0041B2A0   . 51             PUSH ECX
0041B2A1   . 8D8B BC5D0600  LEA ECX,DWORD PTR DS:[EBX+65DBC]
0041B2A7   . E8 EED10800    CALL Eonepero.004A849
0041B2AC   > 8B15 E49E5000  MOV EDX,DWORD PTR DS:[509EE4]    ; WONT BE NEEDED AFTER CHANGES 
0041B2B2   . A1 049E5000    MOV EAX,DWORD PTR DS:[509E04]    ; WONT BE NEEDED AFTER CHANGES
0041B2B7   . 47             INC EDI        ; Increases map load amount !! CHANGE TO NOP !!
0041B2B8   . 8B0C90         MOV ECX,DWORD PTR DS:[EAX+EDX*4]    ; WONT BE NEEDED AFTER CHANGES
0041B2BB   . 3B79 18        CMP EDI,DWORD PTR DS:[ECX+18]    ; Compare EDI ( Current loaded map amount ) with Amount of maps to load !! CHANGE TO CMP EDI, 5 !!
0041B2BE   .^0F8C DCFEFFFF  JL Eonepero.0041B1A0
0041B2C4   > 55             PUSH EBP


Few things to point out:
When using a Euro 1p1 with these changes you changing values in the zone columns in SERVERINFO table will have no effect.

The maps are loaded in number order 1, 2 ,3 ,4 ,5 ,6 ,7 ,8 and so on...so you cannot have maps lodaing such as 1, 2 , 5 ,7 it just will not work

When adding new maps to server simply increase the max amount of map value within your euro 1p1 exe which can be changed using a hex editor and is at the address offset 0001B2BD ( HEX ).

Euro 1p1 Hex Edited with above > 26 maps and >level 100 fixes
http://rapidshare.com/files/95057302/Euro1P1_lvl999_greaterthan26maps.rar Edited by Epoledra/Tiffany.
Tiffany
SD Pro 2 Star
SD Pro 2 Star
 
Posts: 428
Joined: Sat Jan 12, 2008 1:17 pm

Re: 1per1 with more than 26 maps + Attached 1p1

Postby waily » Fri Jun 29, 2012 9:19 am

the file is unavailable....

can any1 re-upload this file?
waily
SD Four Star
SD Four Star
 
Posts: 152
Joined: Thu May 10, 2012 7:14 pm

Re: 1per1 with more than 26 maps + Attached 1p1

Postby envy360 » Sun Jul 08, 2012 6:12 pm

Please can someone re-upload this file.
Image
envy360
SD Four Star
SD Four Star
 
Posts: 157
Joined: Fri Apr 18, 2008 10:14 pm

Re: 1per1 with more than 26 maps + Attached 1p1

Postby arcanine » Sun Jul 08, 2012 8:13 pm

It would be dangerous to run this oneperone on a live server as it does not contain up to date security fixes, it seems the body of the post contains the details necessary to replicate the edit on another more secure oneperone
User avatar
arcanine
SD Pro 5 Star
SD Pro 5 Star
 
Posts: 1056
Joined: Mon Apr 21, 2008 2:53 pm


Return to Server Development

Who is online

Users browsing this forum: No registered users and 3 guests

cron