Various stuff

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

Various stuff

Postby Finito » Mon Feb 25, 2008 11:42 pm

Various notes and stuff on the 1p1 etc.

VariousStuff.rar
You do not have the required permissions to view the files attached to this post.
Finito
SomaDev Staff
 
Posts: 425
Joined: Fri Jan 11, 2008 6:25 pm

Re: Various stuff

Postby Tiffany » Tue Apr 15, 2008 6:25 pm

Couldn't get one of them working as intended, so added some additional code in second code section.

ASM WITH DEVIL ITEMS
Code: Select all
0045D0F0  /$ 8B4424 04      MOV EAX,DWORD PTR SS:[ESP+4]
0045D0F4  |. 66:8B40 10     MOV AX,WORD PTR DS:[EAX+10]
0045D0F8  |. 66:3D 3A07     CMP AX,73A
0045D0FC  |. 7C 18          JL SHORT Eonepero.0045D116
0045D0FE  |. 66:3D 4907     CMP AX,749
0045D102  |. 66:3D 640F     CMP AX,0F64
0045D106  |. 7C 0E          JL SHORT Eonepero.0045D116
0045D108  |. 66:3D 8C0F     CMP AX,0F8C
0045D10C  |. 7F 08          JG SHORT Eonepero.0045D116
0045D10E  |. B8 01000000    MOV EAX,1
0045D113  |. C2 0400        RETN 4
0045D116  |> 33C0           XOR EAX,EAX
0045D118  \. C2 0400        RETN 4

Above code doesn't work for human hero as they are droppable.

Additional conditional jmp added to make it function as it is wanted. Can alter the values to suit the spare spaces in your db. Hsoma sSid1836-1849 and Dsoma sSid3985-3999 undroppable/untradable hardcoded - Edit(09/05/2010): this is additional to the current Hero Armour and just extends 14more spaces below sSid1850 for Hsoma and a group of 14 for Dsoma. Although this isn't equal it does allow some undroppable/untradable items for Dsoma.
Code: Select all
0045D0F0  /$ 8B4424 04      MOV EAX,DWORD PTR SS:[ESP+4]
0045D0F4  |. 66:8B40 10     MOV AX,WORD PTR DS:[EAX+10]
0045D0F8  |. 66:3D 2C07     CMP AX,72C
0045D0FC  |. 7C 1C          JL SHORT Eonepero.0045D11A
0045D0FE  |. 66:3D 4907     CMP AX,749
0045D102     7C 0E          JL SHORT Eonepero.0045D112
0045D104  |. 90             NOP
0045D105  |. 90             NOP
0045D106  |. 66:3D 910F     CMP AX,0F91
0045D10A  |. 7C 0E          JL SHORT Eonepero.0045D11A
0045D10C  |. 66:3D 9F0F     CMP AX,0F9F
0045D110  |. 7F 08          JG SHORT Eonepero.0045D11A
0045D112  |. B8 01000000    MOV EAX,1
0045D117  |. C2 0400        RETN 4
0045D11A  |> 33C0           XOR EAX,EAX
0045D11C  \. C2 0400        RETN 4
0045D11F     90             NOP
0045D120   $ C2 0400        RETN 4

Didn't really need the extra nop's in the middle but it splits the selections human / devil.
Last edited by Tiffany on Sun May 09, 2010 9:43 am, edited 1 time in total.
Tiffany
SD Pro 2 Star
SD Pro 2 Star
 
Posts: 428
Joined: Sat Jan 12, 2008 1:17 pm

Re: Various stuff

Postby Loki » Sun May 09, 2010 1:41 am

would this mean that hero armors ssid would need to be changed to fit in these? or is this additional?
I <3 Duckface
Loki
SD Three Star
SD Three Star
 
Posts: 87
Joined: Sun Feb 07, 2010 10:21 pm

Re: Various stuff

Postby Tiffany » Sun May 09, 2010 8:41 am

Loki wrote:would this mean that hero armors ssid would need to be changed to fit in these? or is this additional?

The group above (Hsoma) falls into the range of the current Hero Armour, sSid1836 to 1849 are additional.

All that was done was to extend this range to allow additional Hsoma Armour and Dsoma Armour + weapons to be fitted into the group which are undroppable/untradable also. This also keeps the assembly code to a manageable level.

Euro Soma Hero Armour was originally BasicItem sSid1850 to sSid 1865.

These were altered to Hsoma sSid1836-1865 which gives 14 more items before the current Hero Armour to add others and/or Hero Weapons/Accs/etc.

Dsoma never had an undroppable set so the ASM code adds this from Dsoma sSid3985-3999.


Looking at the BasicItem table either using MSSQL or the Item tools would have easily have shown that, in general, most DB's have spaces in the locations detailed. However, it is up to the person hexing the 1P1 what sSid's are added since it relies heavily what they have edited in the Database table Basicitem. Therefore, as detailed above, you can hex whatever values you require, although you would need to put them in one range as individual items or groups become more complex to fit in available space spaces in the 1P1.
Tiffany
SD Pro 2 Star
SD Pro 2 Star
 
Posts: 428
Joined: Sat Jan 12, 2008 1:17 pm

Re: Various stuff

Postby Loki » Tue May 11, 2010 1:02 am

Ah I see now
Hsoma sSid1836-1849 and Dsoma sSid3985-3999


This was the part that confused me, I thought the range was entirely changed, thank you for getting back :)

Looking at the BasicItem table either using MSSQL or the Item tools would have easily have shown that, in general, most DB's have spaces in the locations detailed. However, it is up to the person hexing the 1P1 what sSid's are added since it relies heavily what they have edited in the Database table Basicitem. Therefore, as detailed above, you can hex whatever values you require, although you would need to put them in one range as individual items or groups become more complex to fit in available space spaces in the 1P1.


I had spoken to Finito on this part and he told me exactly how it works with the numbers. I'm a bit new to olly so i wasnt sure what exactly it was doing.
Again thank you for the reply and thanks for doing it so quickly :p
You seem to be the best at getting back to people on basically everything! Keep up the awesome work
I <3 Duckface
Loki
SD Three Star
SD Three Star
 
Posts: 87
Joined: Sun Feb 07, 2010 10:21 pm

Re: Various stuff

Postby bashey » Sat Jan 14, 2012 5:11 pm

downloads broke says corrupted file :(
bashey
SD Three Star
SD Three Star
 
Posts: 133
Joined: Mon Jun 30, 2008 6:21 pm

Re: Various stuff

Postby phoenixgolden » Sun Mar 10, 2013 3:13 pm

Finito wrote:Various notes and stuff on the 1p1 etc.

VariousStuff.rar


oo
Phoenix.

Image

Human @Inca SomaDev (retired)
phoenixgolden
SD Pro 5 Star
SD Pro 5 Star
 
Posts: 1170
Joined: Sat Oct 08, 2011 9:24 pm

Re: Various stuff

Postby roachee » Sun Mar 10, 2013 3:30 pm

phoenixgolden wrote:
Finito wrote:Various notes and stuff on the 1p1 etc.

VariousStuff.rar


oo



not sure what that was but i have this its got loads to do with the 1p1

Notes-2012-02-08.zip
You do not have the required permissions to view the files attached to this post.
[url=http://www.points2shop.com/?ref=uin1304533051[url]
User avatar
roachee
SD Pro 1 Star
SD Pro 1 Star
 
Posts: 410
Joined: Mon Jun 07, 2010 2:26 pm

Re: Various stuff

Postby phoenixgolden » Sun Mar 10, 2013 3:39 pm

roachee wrote:
phoenixgolden wrote:
Finito wrote:Various notes and stuff on the 1p1 etc.

VariousStuff.rar


oo



not sure what that was but i have this its got loads to do with the 1p1

Notes-2012-02-08.zip



thank you so much, me wilson playing around with 1p1 learning new stuff already lol really fun too do you lot on this forum should try this sort of stuff :)


dex cap im gonna try do this :)
Phoenix.

Image

Human @Inca SomaDev (retired)
phoenixgolden
SD Pro 5 Star
SD Pro 5 Star
 
Posts: 1170
Joined: Sat Oct 08, 2011 9:24 pm

Re: Various stuff

Postby w1ls0n » Sun Mar 10, 2013 3:47 pm

Nice share, believe most of this is for a source client? or i'm just reading it wrong :lol:
Image
User avatar
w1ls0n
SD Pro 2 Star
SD Pro 2 Star
 
Posts: 459
Joined: Thu Mar 01, 2012 5:07 am

Next

Return to Server Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron