Entity Does Not Exist Error

Blitz3D Forums/Blitz3D Programming/Entity Does Not Exist Error

nyybaseball(Posted 2014) [#1]
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


Yue(Posted 2014) [#2]
It should work, you use a lib to load the map?


Floyd(Posted 2014) [#3]
What is GameWorldMap.map? LoadMesh loads a .x or .3ds or .b3d. If GameWorldMap is one of these then it should be named appropriately.


BlitzSupport(Posted 2014) [#4]
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".


Yue(Posted 2014) [#5]
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 




Matty(Posted 2014) [#6]
.map is not a valid mesh format for blitz. Whatever that format is.


nyybaseball(Posted 2014) [#7]
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


BlitzSupport(Posted 2014) [#8]
Is the mesh actually a 3DS file? Just changing the file extension won't make it so. Where did the model come from?


Leon Drake(Posted 2014) [#9]
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.