Using Different Meshes For Multiple/Stack Items?

Questions specific to OpenMW-CS can be asked, and content development related topics can be discussed here
Post Reply
SatoriLotus
Posts: 24
Joined: 22 Jun 2017, 16:03

Using Different Meshes For Multiple/Stack Items?

Post by SatoriLotus » 23 Aug 2017, 23:30

Sorry about the title, I have no idea how to phrase that.


So just to explain what I mean:

Gold looks like this in the CS:

Gold_001
Gold_005
Gold_010
Gold_025
Gold_100

Each entry has a different NIF with matching amounts of stacked gold.


My question is, how does the engine utilize this? Is it based on hard code and limited to gold only? Or will adding in numerical values for any item have the same effect? Is it limited to those values?

So could I add: Gold_050 a with new 50-stack nif and it work?

Or for instance, could take ingred_emerald_01 and make it:
ingred_emerald_01_001
ingred_emerald_01_005

with the second being a bag mesh or whatever else?

User avatar
Capostrophic
Posts: 256
Joined: 22 Feb 2016, 20:32

Re: Using Different Meshes For Multiple/Stack Items?

Post by Capostrophic » 24 Aug 2017, 11:50

It's only the gold.
shitty lingua anglica grammar ftw

User avatar
akortunov
Posts: 122
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation
Github profile: https://github.com/akortunov

Re: Using Different Meshes For Multiple/Stack Items?

Post by akortunov » 24 Aug 2017, 15:13

So could I add: Gold_050 a with new 50-stack nif and it work?
No, you will need to patch an engine for that. You can use only these IDs:

Gold_001
Gold_005
Gold_010
Gold_025
Gold_100

These IDs are hardcoded on engine level (here).

SatoriLotus
Posts: 24
Joined: 22 Jun 2017, 16:03

Re: Using Different Meshes For Multiple/Stack Items?

Post by SatoriLotus » 24 Aug 2017, 19:32

Thanks, I'll be sure to leave that naming structure alone then.

Could I possibly make this a feature request?

It seems like it'd be a limiting factor for a lot of people wanting to make standalone games in the future.

User avatar
Thunderforge
Posts: 154
Joined: 06 Jun 2017, 05:57
Github profile: https://github.com/Thunderforge

Re: Using Different Meshes For Multiple/Stack Items?

Post by Thunderforge » 01 Sep 2017, 02:16

SatoriLotus wrote:
24 Aug 2017, 19:32
Could I possibly make this a feature request?
Absolutely! Although given that it doesn't directly help support Morrowind, it probably won't get implemented until after 1.0. Still, having a request for it means that it's on people's radars and will get implemented at some point.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest