Adding new garments into older clients

02/12/2014 04:12 -Zo#1
Hello everybody..

I got a problem.. I've tried to add a new garment (DivaSuit) into a old client.

what i have done:

Added 3DTexture (ID direction to texture)
Added 3Dobj. (ID direction to mesh)
Added Armor (ID = texture & mesh)
Added the Texture to c3/texture, also the mesh in c3/mesh
Added ItemMinIcon & MapItemIcon .dds textures
Added those both textures into ItemMinIcon.ani & MapItemIcon.ani
Added DivaSuit into itemtype
Added DivaSuit into itemtype (source side)
Added DivaSuit into itemtype (database)

If i start my server i can creat that garment, i can drop it and see it in my inventory correctly, but i can't wear it. If i right click it i get the message "could not load script for item ID ******" But im pretty sure the ID is correct, also changed it for other possible ones.. anyone got an idea? may i forgot something?
02/12/2014 15:51 bashondegek#2
I don't know if its right, but i guess there is something in your source like:
Code:
if(itemid >= 123456 || itemid <= 123456) {

}
You can try to make the id higer, or copy that.

Again, i don't know if i'm right.. but i guess its something like that :)... its because the source can't handle the item now, because it don't know what kind of type it is i believe.
02/12/2014 16:10 -Zo#3
i can't find anything in the source, but i guess it has to be something with the source :/
02/12/2014 18:34 turk55#4
Quote:
Originally Posted by -Zo View Post
i can't find anything in the source, but i guess it has to be something with the source :/
It is not added server sided, make sure you add it in your itemtype table/file.
02/12/2014 22:34 -Zo#5
Quote:
Originally Posted by turk55 View Post
It is not added server sided, make sure you add it in your itemtype table/file.
It was added correctly.. but didnt worked
02/12/2014 23:01 turk55#6
Quote:
Originally Posted by -Zo View Post
It was added correctly.. but didnt worked
If it was added correctly it would of worked. ;)
02/12/2014 23:14 -Zo#7
Quote:
Originally Posted by turk55 View Post
If it was added correctly it would of worked. ;)
it is.. all 3 itemtypes (client,database and source) are correctly and the same..
02/12/2014 23:23 turk55#8
Quote:
Originally Posted by -Zo View Post
it is.. all 3 itemtypes (client,database and source) are correctly and the same..
What part of if it were correct added it would of worked don't you understand ?
Client sided it is correctly added, database sided aswell, the handling in the source is where it goes wrong. Make sure it reads the ID as an garment and put it in the right item slot.
02/13/2014 00:53 -Zo#9
Idk how to let it read as a garment.. can't find anything inside the source..
02/13/2014 01:23 turk55#10
Quote:
Originally Posted by -Zo View Post
Idk how to let it read as a garment.. can't find anything inside the source..
What source are you using?
02/13/2014 01:25 -Zo#11
Quote:
Originally Posted by turk55 View Post
What source are you using?
redux 2.9
02/13/2014 02:06 turk55#12
What is the itemID you have used for the garment?

EquipmentManager.GetDefaultItemLocation()

It returns the item location based on the first 3 digits of the item id. Location 9 is the garment id.
02/13/2014 02:40 -Zo#13
I use 188545 as ID
02/13/2014 02:49 Aceking#14
Well thats why....

Code:
case 181:
                case 182:
                case 191:
                    loc = 9;
Those are the garment IDs that will work.
You just need to add yours
02/13/2014 03:08 -Zo#15
Quote:
Originally Posted by Aceking View Post
Well thats why....

Code:
case 181:
                case 182:
                case 191:
                    loc = 9;
Those are the garment IDs that will work.
You just need to add yours
so i have to add case 188: ?