GMan
BlitzMax Forums/BlitzMax Programming/GMan
| ||
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 :) |
| ||
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) |
| ||
just been testing it it in 1.12 and it works well :) but dont work in 1.14 |
| ||
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. |
| ||
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 |
| ||
@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. |
| ||
nice one gman it now works perfect for 1.14 exellent work |