Page 1 of 1

Newly embeddable materials don't work when the map is opened in the Map Editor

Posted: 09 Nov 2019, 17:17
by Harest
Hi,
niebo26 wrote:
11 Oct 2019, 14:10
...
- Custom Game Materials : these materials are game materials in which you can alter some parameters (like PhysicsID for example). Compared to normal custom materials, these ones are embeddable in maps ! ...
This works well when you play the map normally, and it's awesome o/. Thanks a lot for that, perfect timing for my next map :thx:.

However, i just want to report a simple bug and easily reproducible: When you try to open a map in the Map Editor which has embedding item(s) with custom material(s), these custom materials won't work and will display a red texture. Only if you don't have the custom mat locally ofc. If you're the creator of them, it'll be fine.

Have a nice one,
Harest.

Re: Newly embeddable materials don't work when the map is opened in the Map Editor

Posted: 12 Nov 2019, 09:47
by niebo26
Hi Harest,

This is a normal result. Custom Materials are not embeddable and the red material is a fallback when the game has troubles to load a material in an item. That's why unfortunately if you want to use custom materials, you'll need to give the Mat files or make a titlepack so people can play your map.
All of this doesn't apply to Custom Game Materials because they use game textures and thus can be embedded without any issue ^^

Niebo

Re: Newly embeddable materials don't work when the map is opened in the Map Editor

Posted: 12 Nov 2019, 17:42
by Harest
Sorry that it was unclear, but i'm indeed speaking of Custom Game Materials. I'd not have reported this otherwise ^^. Someone who tested my map had the issue i nthe editor, but before reporting it i tested myself and i could confirm the issue.

Re: Newly embeddable materials don't work when the map is opened in the Map Editor

Posted: 13 Nov 2019, 10:09
by niebo26
Hi Harest,

I think i finally understood what you meant, sorry ^^;
So if i got it right : your issue is the material not being loaded even though it's embedded. Just to be sure : does it mean the item (or an item with the same name) is here locally ? Cos if so, then everything is normal.
The material is embedded in the item, not the map. So if the game notices there is the item on your disk, it's gonna also search for the material on the disk. But if it doesn't find it, it will display that red material.
If you shared the item with someone else in the purpose of editing the map, unfortunately you need to share the Mat as well.

Niebo

Re: Newly embeddable materials don't work when the map is opened in the Map Editor

Posted: 13 Nov 2019, 13:46
by Harest
Okay, sorry. Let's try it one more time, fully clear with all the steps ^^:
- New map, place a vanilla block, F4, custom item from it, create a material from the environment you're in so "custom game material" and chose the physics id you want with the texture from the envi, save material, apply material wherever you want it on the item, like the top, save item.
- Put a start, a finish and your newly created item anywhere, validate the map and save it. The item will be embedded, with its material.
- Play the map yourself locally : OK, open the map in the editor : OK
- Share the map to anyone
- That anyone plays the map locally : OK, opening the map in the editor ? NOK, the block will be red despite the item being embedded with the material technically.

Hope that helped, sorry for all the confusion :oops:.