• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

shaders do not appear on monsters

poncex

Member
Joined
Nov 11, 2012
Messages
60
Reaction score
10
Hi everyone, I followed this tutorial:


to be able to add wings, shaders, etc. to my server, but when I try to add shaders to the monsters, nothing happens. It lets me add them to the NPCs and players, but not to the monsters.

Could someone help me? I've tried modifying the monsters.cpp file, even trying to follow the example of npc.cpp to see if it solves anything, but still nothing happens.
 
Please post the solution so others know
No :v
Post automatically merged:

The solution isn't difficult. The problem, at least for me, is that it doesn't detect shader names, at least for Monsters (unlike NPCs, where you can add the shader name to their respective XML files and it works correctly). I just had to change it so that instead of detecting by name, it detects by shader ID (this is shown in shaders.xml). When I get home from work, I'll post the solution so it's easier to understand.
 
Last edited:
Care to share it? I cant even add it to npcs with shader=”shadername here”, followed same commit and it works on players, but no shaders work on npc or monsters.

Thanks!
Z
 
Hello everyone,

I've added support for setting shader IDs via XML for both monsters and NPCs. This allows you to define the shader directly in their XML files using a new attribute.

Example:
<look ... shader="1" />
Just set the shader attribute and it works for both monsters and NPCs.

This requires source changes.
I’ve already committed them, so just update your source from the branch and it’ll work.
Here’s the commit:
shader
 
Back
Top