Skin ids

Discussion for model development.

Skin ids

Postby arcanine » Mon Oct 12, 2009 4:35 pm

how does soma translate the skin id in the basic item table to the files like A000100.sql thinking of trying to code a c++ or php program that renames the files to their item name, stance, and gender, and then back again to A000100.sql to make it easier when editing items
User avatar
arcanine
SD Pro 5 Star
SD Pro 5 Star
 
Posts: 1056
Joined: Mon Apr 21, 2008 2:53 pm

Re: Skin ids

Postby Finito » Mon Oct 12, 2009 6:13 pm

Armature Type & Basicitem bArm
bArm: 0 => Armature Type: 1 (Helmet)
bArm: 3 => Armature Type: 0 (Top)
bArm: 4 => Armature Type: 3 (Pad)
bArm: 5 => Armature Type: 2 (Boot)
bArm: 6 => Armature Type: 5 (Weapon)
bArm: 7 => Armature Type: 4 (Shield)

Armature Type: 6 is for shadows
Armature Type: 7 is for auras

Item Index File
If you open up item.idx in client directory, you will see something like below:
0504 - How many items in total
00010010100
00020020600
00030030000
00040040400
00050050300

Using 00010010100 as example
First 4 numbers (0001) is the item picture number in database (sPicNum1)
Next 3 numbers (001) is the item picture number in client (ArmatureIndex).

First 4 Numbers >= 5000 or Last Number is 1 then its Devil Soma item and therefore refer to DArmature folder instead.

ArmatureIndex + 500 = Armature File for Female Gender therefore A507700.spl for Female is A557700.spl

Example Item: Five Star Sword
sPicNum1: 308
bArm: 6 so Armature type is 5
Find 0308 in item.idx.
Next 3 numbers are 030.
So filename is A503000.spl for Male and A553000.spl for Female

Example: A507700.spl:
5 - Armature Type
077 - Number from item.idx (ArmatureIndex)
00 - Animation Type

Look through item.idx to find an entry with ArmatureIndex of 77.
First 4 numbers give the sPicNum1.
Do query on database to find all items.

Animation Types
0 - Standing, No Weapon, 1H Sword, Bow, Staff, X-Bow, 1H Axe
1 - Standing, 2HSword, 2H Axe, Spear
4 - Walk1
5 - Walk2
6 - Attack X-Bow
7 - Attack No Weapon
8 - Attack 1H Sword, Staff, 1H Axe
9 - Attack 2H Sword
10 - Attack Spear
11 - Attack Bow
12 - Attack 2H Axe
13 - Character Hit
14 - Magic Cast
15 - Die
16 - Run
18 - Standing Peace Mode
Finito
SomaDev Staff
 
Posts: 425
Joined: Fri Jan 11, 2008 6:25 pm

Re: Skin ids

Postby MCG » Thu Oct 15, 2009 11:27 pm

Finito wrote:Armature Type & Basicitem bArm
bArm: 0 => Armature Type: 1 (Helmet)
bArm: 3 => Armature Type: 0 (Top)
bArm: 4 => Armature Type: 3 (Pad)
bArm: 5 => Armature Type: 2 (Boot)
bArm: 6 => Armature Type: 5 (Weapon)
bArm: 7 => Armature Type: 4 (Shield)

Armature Type: 6 is for shadows
Armature Type: 7 is for auras

Item Index File
If you open up item.idx in client directory, you will see something like below:
0504 - How many items in total
00010010100
00020020600
00030030000
00040040400
00050050300

Using 00010010100 as example
First 4 numbers (0001) is the item picture number in database (sPicNum1)
Next 3 numbers (001) is the item picture number in client (ArmatureIndex).

First 4 Numbers >= 5000 or Last Number is 1 then its Devil Soma item and therefore refer to DArmature folder instead.

ArmatureIndex + 500 = Armature File for Female Gender therefore A507700.spl for Female is A557700.spl

Example Item: Five Star Sword
sPicNum1: 308
bArm: 6 so Armature type is 5
Find 0308 in item.idx.
Next 3 numbers are 030.
So filename is A503000.spl for Male and A553000.spl for Female

Example: A507700.spl:
5 - Armature Type
077 - Number from item.idx (ArmatureIndex)
00 - Animation Type

Look through item.idx to find an entry with ArmatureIndex of 77.
First 4 numbers give the sPicNum1.
Do query on database to find all items.

Animation Types
0 - Standing, No Weapon, 1H Sword, Bow, Staff, X-Bow, 1H Axe
1 - Standing, 2HSword, 2H Axe, Spear
4 - Walk1
5 - Walk2
6 - Attack X-Bow
7 - Attack No Weapon
8 - Attack 1H Sword, Staff, 1H Axe
9 - Attack 2H Sword
10 - Attack Spear
11 - Attack Bow
12 - Attack 2H Axe
13 - Character Hit
14 - Magic Cast
15 - Die
16 - Run
18 - Standing Peace Mode


Nice work finito 8-)
@Coonan
@Chasm
@Dark_Lucifer
Test server retired

New crafting based website
Still in production <- Mostly abandoned, will complete when SomaDev official launches <3
User avatar
MCG
SD Pro 5 Star
SD Pro 5 Star
 
Posts: 725
Joined: Tue Jul 28, 2009 6:00 pm

Re: Skin ids

Postby cappilio » Fri Oct 23, 2009 2:54 am

Finito wrote:Armature Type & Basicitem bArm
bArm: 0 => Armature Type: 1 (Helmet)
bArm: 3 => Armature Type: 0 (Top)
bArm: 4 => Armature Type: 3 (Pad)
bArm: 5 => Armature Type: 2 (Boot)
bArm: 6 => Armature Type: 5 (Weapon)
bArm: 7 => Armature Type: 4 (Shield)

Armature Type: 6 is for shadows
Armature Type: 7 is for auras

Item Index File
If you open up item.idx in client directory, you will see something like below:
0504 - How many items in total
00010010100
00020020600
00030030000
00040040400
00050050300

Using 00010010100 as example
First 4 numbers (0001) is the item picture number in database (sPicNum1)
Next 3 numbers (001) is the item picture number in client (ArmatureIndex).

First 4 Numbers >= 5000 or Last Number is 1 then its Devil Soma item and therefore refer to DArmature folder instead.

ArmatureIndex + 500 = Armature File for Female Gender therefore A507700.spl for Female is A557700.spl

Example Item: Five Star Sword
sPicNum1: 308
bArm: 6 so Armature type is 5
Find 0308 in item.idx.
Next 3 numbers are 030.
So filename is A503000.spl for Male and A553000.spl for Female

Example: A507700.spl:
5 - Armature Type
077 - Number from item.idx (ArmatureIndex)
00 - Animation Type

Look through item.idx to find an entry with ArmatureIndex of 77.
First 4 numbers give the sPicNum1.
Do query on database to find all items.

Animation Types
0 - Standing, No Weapon, 1H Sword, Bow, Staff, X-Bow, 1H Axe
1 - Standing, 2HSword, 2H Axe, Spear
4 - Walk1
5 - Walk2
6 - Attack X-Bow
7 - Attack No Weapon
8 - Attack 1H Sword, Staff, 1H Axe
9 - Attack 2H Sword
10 - Attack Spear
11 - Attack Bow
12 - Attack 2H Axe
13 - Character Hit
14 - Magic Cast
15 - Die
16 - Run
18 - Standing Peace Mode


Nice
Image
User avatar
cappilio
SD Pro 5 Star
SD Pro 5 Star
 
Posts: 770
Joined: Fri Jul 17, 2009 7:29 pm
Location: United Kingdom; East Midlands; Derby; Sinfin

Re: Skin ids

Postby Matt » Sat Oct 31, 2009 7:24 pm

Yeah I just been cataloging devil soma spls using misers somavision program, seems that each top armor has 15.spls each with a number of animations in them.

So it would take along time to edit or create new armor's due to the number of animations.
Matt
SD Four Star
SD Four Star
 
Posts: 237
Joined: Sun Oct 26, 2008 12:35 am

Re: Skin ids

Postby unvmeh » Sun Nov 01, 2009 1:20 pm

check tiffs website she has a nice table that shows u how everything works ...

if u get any problems give me a message ill get bk to u when i can....


item.idx might burn some holes in ppls heads.
........./´¯/)
......../¯..//
......./..../ /
./´¯/'...'/´¯¯`·¸
/'/.../..../......./¨¯\
('(...´(..´......,~/'...')
.\.................\/..../
..\.......... _.·´/
...\..............(
....\.............\
.....\.UNVMEH.\
User avatar
unvmeh
SD Pro 5 Star
SD Pro 5 Star
 
Posts: 1438
Joined: Tue Apr 29, 2008 7:33 pm


Return to Model Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron