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

Moderator: English Moderator

Post Reply
User avatar
Harest
Posts: 144
Joined: 26 Mar 2018, 04:21
Contact:

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

Post 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.
User avatar
niebo26
Posts: 149
Joined: 19 Apr 2011, 19:00
Location: Grenoble, France

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

Post 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
"Don't mesh around !" - ® Haagse, 2019

SUPER SONIC SPEED !

Look for niebo26 in TMU & in TM² :)
User avatar
Harest
Posts: 144
Joined: 26 Mar 2018, 04:21
Contact:

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

Post 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.
User avatar
niebo26
Posts: 149
Joined: 19 Apr 2011, 19:00
Location: Grenoble, France

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

Post 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
"Don't mesh around !" - ® Haagse, 2019

SUPER SONIC SPEED !

Look for niebo26 in TMU & in TM² :)
User avatar
Harest
Posts: 144
Joined: 26 Mar 2018, 04:21
Contact:

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

Post 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:.
Post Reply

Return to “MP4.1 REPORTS / BUGS / INFORMATION”

Who is online

Users browsing this forum: No registered users and 4 guests