(Please help) Named Items

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
HolyCrusader
Beta Tester
 
Posts: 251
Joined: 24 Nov 2014, 15:47

(Please help) Named Items

Post by HolyCrusader » 02 Nov 2015, 18:27

Are named items no longer possible w/ server-side only changes? I created a new weapon in the objects_type database by inserting it into the dump.sql file (copied the original weapon row & then set a new unique ID). Then I went in GM mode in the server and added it to my inventory. Upon doing that my client crashes. (Everytime you connect to the server and load items in your inventory it crashes). The item is in the 'item's table of the database and in my character's root container. Character will continue to crash at load-in until item is deleted from items table.

Also tried to create named containers. (Chests)
First, I created three new named chest items with unique object_type IDs by inserting the rows into the dump.sql file.

I created 3 chests in-game, then replaced the chest object_type ID in the containers table, the movable_objects table and in-game the chests still appear as "chest". Then I updated the object_type ID in the final table, objects_patch and when I went in the server the chests were completely invisible (but actually still there - trying to walk into them resulted in not being able to walk thru/over)

On the server side, I also cloned the "chesT" entry in the cm_objects.xml file and changed the object_typeID to the new values for each new named Chest

I also cloned the original weapon/tool IDs in the cm_equipTypes.xml file and changed the object_typeIDs to the new values for each named weapon/tool

Any help / tips are appreciated

Thank you!

edit: more info:
I want the clients to be able to see the name of the items (Chest should have a new name ie, SPEAR CHEST when the client hovers over it in-game) and when they open the chest I want them to be able to see the named weapon inside of it - ie. GOLD SPEAR.

I don't want the client to be able to take the spear out of the chest - so I set the container capacity to 800 and made the spear weigh 800

I do want the client to be able to move around the chest to another point

User avatar
HolyCrusader
Beta Tester
 
Posts: 251
Joined: 24 Nov 2014, 15:47

Re: (Please help) Named Items

Post by HolyCrusader » 02 Nov 2015, 20:39

I'm going to try this again but

in objects_patch I'm going to leave the object_typeID as the original Chest ID 101 which will make the chests visible again.. (although when I try to open the chest, no popup window appears)

Then I'm going to modify the DB to change the container from my inventory to these chests to put them directly in there & see if that works (since they won't be on my char it won't crash my client)

I doubt it will work since I don't think I'll be able to open those chests up and have a new window for the container appear


Alakar
Beta Tester
 
Posts: 202
Joined: 23 Jan 2015, 07:39

Re: (Please help) Named Items

Post by Alakar » 02 Nov 2015, 23:37

So you changed the server but not the client?
You didn't change the objects_types.xml file in the data folder then or alter the skills_types.xml for interacting with them?

User avatar
HolyCrusader
Beta Tester
 
Posts: 251
Joined: 24 Nov 2014, 15:47

Re: (Please help) Named Items

Post by HolyCrusader » 02 Nov 2015, 23:44

Alakarsiann wrote:So you changed the server but not the client?
You didn't change the objects_types.xml file in the data folder then or alter the skills_types.xml for interacting with them?

Thanks for the quick reply Alakar

I was hoping to achieve everything without client side mods. So I've not done those yet. I'm realizing that named containers will be impossible without client side modifications. If I placed a named item in a container (not in an inventory which causes a client side crash if the client didn't have appropriate files) I am thinking maybe that might work.

Is there supposed to be a server side object_types.xml in the data folder, server side?

User avatar
HolyCrusader
Beta Tester
 
Posts: 251
Joined: 24 Nov 2014, 15:47

Re: (Please help) Named Items

Post by HolyCrusader » 04 Nov 2015, 19:02

Can confirm these simply don't work without client side updates. Disregard this thread.


Alakar
Beta Tester
 
Posts: 202
Joined: 23 Jan 2015, 07:39

Re: (Please help) Named Items

Post by Alakar » 05 Nov 2015, 04:57

Twiztedmike wrote:Can confirm these simply don't work without client side updates. Disregard this thread.


Correct if you have an item in your inventory that you know nothing about, then you will always crash with I believe and Invalid Version message.

User avatar
HolyCrusader
Beta Tester
 
Posts: 251
Joined: 24 Nov 2014, 15:47

Re: (Please help) Named Items

Post by HolyCrusader » 12 Nov 2015, 14:01

OK I went about this the wrong way. I tried to create custom items because I wanted them to have custom properties such as not being able to fit in a player's inventory (via adjusting the weight)

Instead, for named items (ONLY, without custom properties), I just ensured I had the base item I wanted from the items table, and added corresponding entries in the features table & feature column of the items table & the custom text table

Return to Game mods