Entity Does Not Exist Error
Blitz3D Forums/Blitz3D Programming/Entity Does Not Exist Error
| ||
Why does the compiler say entity does not exist? Both the program and Object are in the same folder and the program is saved as all files. Graphics3D 800,600 SetBuffer BackBuffer() light = CreateLight() Global map = LoadMesh("GameWorldMap.map") camera = CreateCamera() While Not KeyDown(1) Cls PositionEntity map, 0,0,5 RenderWorld Flip Wend |
| ||
It should work, you use a lib to load the map? |
| ||
What is GameWorldMap.map? LoadMesh loads a .x or .3ds or .b3d. If GameWorldMap is one of these then it should be named appropriately. |
| ||
Also, try putting RuntimeError map after the LoadMesh line to see if it's loading. If zero, it's not loading the mesh, probably because of "What Floyd Said". |
| ||
Graphics3D 800,600 SetBuffer BackBuffer() light = CreateLight() Global map = LoadMesh("GameWorldMap.map") RuntimeError map camera = CreateCamera() While Not KeyDown(1) Cls PositionEntity map, 0,0,5 RenderWorld Flip Wend |
| ||
.map is not a valid mesh format for blitz. Whatever that format is. |
| ||
I have changed the entity extension to .3ds and updated the program to this and it still says entity does not exist. Why? Graphics3D 800,600 SetBuffer BackBuffer() light = CreateLight() camera = CreateCamera() map =LoadMesh("GameWorldMap.3ds") While Not KeyDown(1) PositionEntity map, 0, 0, 5 RenderWorld Flip Wend |
| ||
Is the mesh actually a 3DS file? Just changing the file extension won't make it so. Where did the model come from? |
| ||
pretty sure .map is a quake format. your going to have to export that as a .bsp file and use LoadBSP command in blitz3d to use that. |