entity doesn't exist?

Blitz3D Forums/Blitz3D Beginners Area/entity doesn't exist?

Lordon(Posted 2004) [#1]
i made an image of a fence in anim8or. im trying to get it to work in Blitz3D, but it always says 'entity doesn't exist'. i've exported it from anim8or as a .3ds file. is there anything else i need to do to it before i can use it?


N(Posted 2004) [#2]
Post your code?


RiverRatt(Posted 2004) [#3]
Make a folder and move your fence and any textures you use to that folder. Open your blitz program and then save it in that folder. If you have it coded correctly it will then work.


Lordon(Posted 2004) [#4]
my code to put the fence on the screen:

fence = LoadMesh("fence.b3d")
fence_tex = LoadTexture("fence.bmp")
EntityTexture fence,fence_tex
PositionEntity fence, 38,11,120


Lordon(Posted 2004) [#5]
err make that:
fence = LoadMesh("fence.3ds")

sry =/


Ross C(Posted 2004) [#6]
Is the fense and the texture and the .bb file, in the same directory?


BlitzSupport(Posted 2004) [#7]
Try changing that to "PositionEntity fence, 0, 0, 10" and see if it appears. I'd imagine that location is going to be way off-screen, assuming your camera is starting at 0, 0, 0...


big10p(Posted 2004) [#8]

Try changing that to "PositionEntity fence, 0, 0, 10" and see if it appears. I'd imagine that location is going to be way off-screen, assuming your camera is starting at 0, 0, 0...



That wouldn't account for him getting the 'entity does not exist' error, though.

So, yeah, what Ross C said. ;)


Lordon(Posted 2004) [#9]
ok, i made a completely new folder and put everything in it, and it worked. thx every1 =)


Beaker(Posted 2004) [#10]
Change this:
fence = LoadMesh("fence.b3d")
fence_tex = LoadTexture("fence.bmp")
EntityTexture fence,fence_tex
PositionEntity fence, 38,11,120

To this:
fence = LoadMesh("fence.b3d")
If fence=0 Then RunTimeError "Cannot find model file"
fence_tex = LoadTexture("fence.bmp")
If fence_tex=0 Then RunTimeError "Cannot find texture file"
EntityTexture fence,fence_tex
PositionEntity fence, 38,11,120