I was wondering if anyone had any information on the amount of functions that an external module can hold. I’m working on a relatively large module which holds item descriptions in my game. I thought everything was working fine, but when I went to load it up in the simulator, I received a load error on the aforementioned external module.
I went back to troubleshoot, and after much testing and head-against-wall-banging, I found that I could top out at a certain amount of functions inside of this module. I haven’t even added them to the table as of yet. Through trial-and-error I have found that after function 200, the module just breaks, and won’t load. If the file has anywhere from 1 to 199 functions inside, it works like a charm. But put it up to 200, and it breaks every time. This can be tested by simply creating a module like the below, and duplicating one function 199 times:
[lua] local function createTest()
end[/lua]
Having two modules isn’t really an option because it would mean my identifier would need to go from one to another. I could of course decrement the amount of functions from an amount of 218 down to 199, but I hope there is a resolution with which I am not familiar. I might cross-post this to the bug forum, but at this point I’m not sure if it’s intrinsic to lua, or Corona. Any info would be greatly appreciated. Thanks!
[import]uid: 135394 topic_id: 35455 reply_id: 335455[/import]