Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
enhancement_small.png
OPEN  Enhancement #1654  -  Collision material used for step sound relies on texture file name
Posted Nov 01, 2022 - updated Jan 14, 2023   Shortlink: http://arx.vg/1654
action_vote_minus_faded.png
1
Votes
action_vote_plus_faded.png
Issue details
  • Type of issue
    Enhancement
  • Status
     
    New
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Lalike
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Priority
    Not determined
  • Reproducability
    Always
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Any
  • Architecture
    icon_customdatatype.png Not determined
  • Fixed in
    icon_customdatatype.png Not determined
Issue description
Hello!

I've added a custom texture with the filename "ladder.jpg" and it loads fine in game, however it doesn't come with wood sound when I walk on it even if I add POLY_WOOD to the texture flags. However if I rename the file to "ladder-wood.jpg" then I get the sounds that I want.
Steps to reproduce this issue
  1. Download the following work in progress map: https://drive.google.com/file/d/1pNB6xHqvUEu89O-2Ei8s_NwV3FbH-2w8/view
  2. Go through the 2 doors to the other side of the wall
  3. Stand in front of the 2 ladders
  4. The left one's texture contains "wood" in it's name and climbing onto it gives off wooden sounds
  5. The right one's texture contains no material in it's name and only the POLY_WOOD flag exits. It has no wooden sound to it

#5
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jan 06, 23:51
The material flags like POLY_WOOD from the scene mesh are used for collision sounds for e.g. thrown/dropped items ( see the setmaterial command documentation).

For the step sound, currently the only option is the texture name as documented on the wiki for the setstepmaterial command.

I agree that this is not ideal and perhaps we don't really need a different step and collision materials but I fear that changing the engine to always use the mesh material flags over the texture name is probably going to break something in the game - and in any case there are some differences in the details.

At some point we should add additional files for material information for textures so that at least it doesn't have to depend on the filename.
#6
icon_reply.pngReply
Comment posted by
 Lalike
Jan 14, 16:08
My least obstructive/incompatible solution is this so far: https://github.com/arx/ArxLibertatis/pull/275