i think its done
testing it now
ok i got it exported but i have to give it cItems. how can i create that?


ok i got it exported but i have to give it cItems. how can i create that?
Random Chitchat 2012-2016
|
i think its done
![]() ![]() ok i got it exported but i have to give it cItems. how can i create that?
I expect something like this to work:
local Pickups = cItems(); Pickups:Add(...); Pickups:Add(...);
05-09-2013, 09:53 PM
i get an error at local Pickups = cItems();
Attempt to call a non-callable object.
05-09-2013, 10:06 PM
Try putting this code into cItems declaration (in source/Item.h, line ~100):
// tolua_begin /// Need a Lua-accessible constructor cItems(void) {} cItem & Get (int a_Idx) {return at(a_Idx); }Run AllToLua and try again.
05-09-2013, 10:20 PM
Thanks it works now. do you want the world.h etc?
05-09-2013, 11:41 PM
05-09-2013, 11:44 PM
Quote:you can spawn pickups using pluginsIf you do it please send me the first working version.
Commit those code changes to svn, I'm in the middle of other work so my code is "dirty" right now.
Oh and by the way, congratulations, you just managed to export a new function to the Lua API. You now know enough to make all the necessary changes, should you ever need to add another function ![]() How exactly does your plugin fix #338? By spawning the pickups with zero velocity?
yea thanks
![]() ![]() It seems like i can only commit changes to the Plugins folder ;( EDIT: No wait ![]() (05-09-2013, 11:54 PM)xoft Wrote: How exactly does your plugin fix #338? By spawning the pickups with zero velocity? I think so. at least i don't see any pickups above ground and i can pickup all the other pickups under ground. i think the problem is that the pickup gets spawned into another block and then the pickup gets moved above. |
« Next Oldest | Next Newest »
|