GMan

BlitzMax Forums/BlitzMax Programming/GMan

DaY(Posted 2005) [#1]
ive been trying to get your I irrlicht mod working but i keep getting this error

Compile Error Unable To Convert from 'Int' to T_irrIEventReceeiver(insert error here)'

its always the same error but not always the same function any idears?

using the BMax v 1.14 update and yes i do the the gui mod :)


TomToad(Posted 2005) [#2]
Make sure your receiver variable is of type T_irrIEventReceiver. like so:
Local receiver:T_irrIEventReceiver=T_irrIEventReceiver.create(MyEventReceiver.generate)

If you do it like this, then you'll get the above error.
Local receiver=T_irrIEventReceiver.create(MyEventReceiver.generate)

Another possibility is a spelling error
Local receiver:T_irrIEventReceiver
'the swapped i-e in receiver will make reciever an Int
reciever=T_irrIEventReceiver.create(MyEventReceiver.generate) 



DaY(Posted 2005) [#3]
just been testing it it in 1.12 and it works well :) but dont work in 1.14


gman(Posted 2005) [#4]
everything has been updated to be v1.14 compatible. this includes all samples.

to fix the Int to Object error for any of the samples, look for a 0 in the function/method call that is failing and change it to Null. v1.14 removed the auto conversion of Int to Object types. when i ported all the samples over from C++, 0 was used for null and i never changed it.


Smokey(Posted 2005) [#5]
Hi gman

I try to run irr , I get an error "can't find interface for module 'gg.irrbmax'

I tried to compile it again but without succes, any idea what's wrong


gman(Posted 2005) [#6]
@Smokey - greetings :) the compiler is not finding the irrlicht mod directories. when you expanded the mods zip file it should have created a directory called gg.mod which contains 2 directories (irrlicht.mod & irrbmax.mod). make sure that gg.mod is located directly under your blitzmax\mod folder.


DaY(Posted 2005) [#7]
nice one gman it now works perfect for 1.14 exellent work