NPCs should also be able to display images #5178

Closed
opened 2023-08-22 15:06:10 +00:00 by Boot · 9 comments
Member

Instead of long texts only, it should also be possible to display images between the lines. These images must be uploaded to the server in advance and integrated from there. Images from external servers should not be included. In order for the integration to be as easy as possible, a uniform size, e.g. 512x512, the PNG form and the possibility to use transparency are sufficient.

This would increase the possibilities of the NPCs enormously, and quests in particular could be made more exciting.

Instead of long texts only, it should also be possible to display images between the lines. These images must be uploaded to the server in advance and integrated from there. Images from external servers should not be included. In order for the integration to be as easy as possible, a uniform size, e.g. 512x512, the PNG form and the possibility to use transparency are sufficient. This would increase the possibilities of the NPCs enormously, and quests in particular could be made more exciting.

many 512x512 images -> lot of data to download when connecting -> slow logins

many 512x512 images -> lot of data to download when connecting -> slow logins
Member

They already can. What the NPC show (provided the client is sufficiently up to date) is hypertext. Search for "Markup Language" in MT's doc/lua_api.md

Example:

Hello! I want to show you an image:

<img name=default_cobble.png width=100 height=100>

How does it look?

They already can. What the NPC show (provided the client is sufficiently up to date) is hypertext. Search for "Markup Language" in MT's doc/lua_api.md Example: ``` Hello! I want to show you an image: <img name=default_cobble.png width=100 height=100> How does it look? ```
Author
Member

many 512x512 images -> lot of data to download when connecting -> slow logins

Only if someone is talking to a NPC. Nothing to do with data download when connecting, no slow login.

> many 512x512 images -> lot of data to download when connecting -> slow logins Only if someone is talking to a NPC. Nothing to do with data download when connecting, no slow login.

many 512x512 images -> lot of data to download when connecting -> slow logins

Only if someone is talking to a NPC. Nothing to do with data download when connecting, no slow login.

Nope sixer is correct all assets(textures/sounds/models) for the server are downloaded on login if they are prepared in advance.
Only exceptions are dynamic media which are generated and downloaded while the server is running.

> > many 512x512 images -> lot of data to download when connecting -> slow logins > > Only if someone is talking to a NPC. Nothing to do with data download when connecting, no slow login. Nope sixer is correct all assets(textures/sounds/models) for the server are downloaded on login if they are prepared in advance. Only exceptions are dynamic media which are generated and downloaded while the server is running.
Author
Member

Only exceptions are dynamic media which are generated and downloaded while the server is running.

Ok, then let's just take it this way. ;)
Wish 512x512, get 256x256...

> Only exceptions are dynamic media which are generated and downloaded while the server is running. Ok, then let's just take it this way. ;) Wish 512x512, get 256x256...
AliasAlreadyTaken added the
1. kind/enhancement
label 2023-08-23 04:50:58 +00:00
Author
Member

They already can. What the NPC show (provided the client is sufficiently up to date) is hypertext. Search for "Markup Language" in MT's doc/lua_api.md

Soko's hint was worth its weight in gold, because you can really already include pictures of items. This means that many great things are already feasible and I am surprised that this has hardly been used or not used at all so far.

So my need for ADDITIONAL pictures is probably not so great anymore. However, there should be a standardized way to upload required images, as is already possible with skins.

> They already can. What the NPC show (provided the client is sufficiently up to date) is hypertext. Search for "Markup Language" in MT's doc/lua_api.md Soko's hint was worth its weight in gold, because you can really already include pictures of items. This means that many great things are already feasible and I am surprised that this has hardly been used or not used at all so far. So my need for ADDITIONAL pictures is probably not so great anymore. However, there should be a standardized way to upload required images, as is already possible with skins.
Member

That's indeed a good usage and could help a lot with the language barrier and make some things easier. Looks very good!

As to the images...they still need to be downloaded at startup, same as skins. It might be necessary to negotiate with Alias for each one.

That's indeed a good usage and could help a lot with the language barrier and make some things easier. Looks very good! As to the images...they still need to be downloaded at startup, same as skins. It might be necessary to negotiate with Alias for each one.
Boot added the
1. kind/documentation
5. result/fixed
labels 2024-01-15 21:16:09 +00:00
Boot self-assigned this 2024-01-15 21:16:18 +00:00
Member

what happened here? it's been closed without a comment? i assume it is fixed?

what happened here? it's been closed without a comment? i assume it is fixed?
Member

This was closed because NPCs can already display textures existing on the client via <img> tag.

If we want to use minetest.dynamic_add_media to load additional textures specific to the NPC, then we should reopen this (or, I guess, create a new issue requesting that + ability for players to submit images for quests).

This was closed because NPCs can already display textures existing on the client via `<img>` tag. If we want to use `minetest.dynamic_add_media` to load additional textures specific to the NPC, then we should reopen this (or, I guess, create a new issue requesting that + ability for players to submit images for quests).
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#5178
No description provided.