Difference between revisions of "Unknown Object"

From Luanti Wiki
Jump to navigation Jump to search
(Add object template)
(rename Minetest to Luanti)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Languages}}
+
{{Languages|nocat=1}}
 
{{Object Data
 
{{Object Data
 
|name=Unknown Object
 
|name=Unknown Object
 
|image=Unknown Object.png
 
|image=Unknown Object.png
 +
|collides_with_objects=No
 +
|collides_with_blocks=No
 
|entitystring=''N/A''
 
|entitystring=''N/A''
|health=1
+
|health={{Heart|0.5}}
 
}}
 
}}
An '''unknown object''' is pseudo-[[object]] in Minetest to represent an object (such as a [[Mobs|mob]]) of which the object definition is unknown. These objects must never appear in the game, it's always an error when you encounter one.
+
An '''unknown object''' is pseudo-[[object]] in Luanti to represent an object (such as a [[Mobs|mob]]) of which the object definition is unknown. These objects must never appear in the game, it's always an error when you encounter one.
  
 
== Behaviour ==
 
== Behaviour ==
 
An unknown object appears as a flat texture with “unknown object” written on it. The velocity of the original object is usually preserved so unknown objects often tend to fly through the world.
 
An unknown object appears as a flat texture with “unknown object” written on it. The velocity of the original object is usually preserved so unknown objects often tend to fly through the world.
  
Internally, an unknown object still knows the “real” object it represents and the associated data. You can see its entity/object ID by [[pointing]] it. If an unknown object is found by Minetest, there will also be an error message complaining about that a LuaEntity could not be found (this “LuaEntity” refers to the unknown object), along with its entity ID.
+
Internally, an unknown object still knows the “real” object it represents and the associated data. You can see its entity/object ID by [[pointing]] it. If an unknown object is found by Luanti, there will also be an error message complaining about that a LuaEntity could not be found (this “LuaEntity” refers to the unknown object), along with its entity ID.
  
 
To fix problems with unknown objects, first check the troubleshooting section. Unknown objects are destroyed when punching or if they receive any amount of damage.
 
To fix problems with unknown objects, first check the troubleshooting section. Unknown objects are destroyed when punching or if they receive any amount of damage.
Line 18: Line 20:
 
A common reason for an unknown object to appear is when you have previously activated a [[mod]] which added some new objects, then later deactivated said mod. Now all objects from this mod will appear as an unknown objects. In this case, you can solve this simply by enabling the missing mod again. If you forgot from which mod this object originated from, point it to learn its entity ID. The part before the colum is the mod name.
 
A common reason for an unknown object to appear is when you have previously activated a [[mod]] which added some new objects, then later deactivated said mod. Now all objects from this mod will appear as an unknown objects. In this case, you can solve this simply by enabling the missing mod again. If you forgot from which mod this object originated from, point it to learn its entity ID. The part before the colum is the mod name.
  
Another possible cause is a bug in mods or subgames. Developers of a subgame may have made a mistake or they removed object types intentionally without any replacement. Complain to the subgame authors if this happens, as this is generally considered poor development practice. If unknown objects occour without you using any mods, this is almost certainly a bug.
+
Another possible cause is a bug in mods or games. Developers of a game may have made a mistake or they removed object types intentionally without any replacement. Complain to the game authors if this happens, as this is generally considered poor development practice. If unknown objects occour without you using any mods, this is almost certainly a bug.
  
  
Line 25: Line 27:
 
* [[Unknown Node]]
 
* [[Unknown Node]]
  
[[Category:Blocks generated on special events]]
+
[[Category:Engine]]

Latest revision as of 20:42, 22 October 2024

Languages Language: English • Bahasa Melayu
Unknown Object
Unknown Object.png
An object in Luanti
Health Half heart.png
Object collision No
Block collision No
Entitystring N/A

An unknown object is pseudo-object in Luanti to represent an object (such as a mob) of which the object definition is unknown. These objects must never appear in the game, it's always an error when you encounter one.

Behaviour

An unknown object appears as a flat texture with “unknown object” written on it. The velocity of the original object is usually preserved so unknown objects often tend to fly through the world.

Internally, an unknown object still knows the “real” object it represents and the associated data. You can see its entity/object ID by pointing it. If an unknown object is found by Luanti, there will also be an error message complaining about that a LuaEntity could not be found (this “LuaEntity” refers to the unknown object), along with its entity ID.

To fix problems with unknown objects, first check the troubleshooting section. Unknown objects are destroyed when punching or if they receive any amount of damage.

Troubleshooting

A common reason for an unknown object to appear is when you have previously activated a mod which added some new objects, then later deactivated said mod. Now all objects from this mod will appear as an unknown objects. In this case, you can solve this simply by enabling the missing mod again. If you forgot from which mod this object originated from, point it to learn its entity ID. The part before the colum is the mod name.

Another possible cause is a bug in mods or games. Developers of a game may have made a mistake or they removed object types intentionally without any replacement. Complain to the game authors if this happens, as this is generally considered poor development practice. If unknown objects occour without you using any mods, this is almost certainly a bug.


See also