My app is completely broken now

4500 lines of code in one module? Sheesh… I’m working on a game that uses my own programmed code for physics and includes a level editor for tile, enemies, object and decoration, and I don’t have any module over 1500 line in code. What I’m trying to say is that I feel like you have a serious flaw in the underlying structure of your code --> which often makes it so complex to correct errors like these that projects become unmanageable. If I were you I’d split up the code into smaller chunks or modules. [import]uid: 70134 topic_id: 36237 reply_id: 143984[/import]

Well there are about 8 different user displays that usually require data context specific to the operation in order to display the information to the user. So 80 percent of the code is just controlling those displays, plus the context menu’s etc.

I mentioned above I’m still kind of a monkey with code, but if I broke those things up into modules which I considered, it means making a fair number of globals so I can hand off the information needed to each of the modules, and everything I’ve read says not to, at least more things say not to then say to modulerize the programming.

Plus, everything was working great before, and when I’ve done something that breaks the code up to this point, it usually spits out some kind of error as opposed to crashing the simulator with no error message and it’s always been easy enough to comment out until I find the problem.

With this problem, I just don’t have a clue where to start, since it doesn’t give me any info to start with.
[import]uid: 170004 topic_id: 36237 reply_id: 144006[/import]

same crash of the simulator for me in 1034

operating on a windows 7 laptop [import]uid: 170004 topic_id: 36237 reply_id: 144007[/import]

I guess I neglected to mention that I also now get 9 Warning messages when my app begins

warning: could not load font helvetica-bold. using default font
says it 9 times in a row.

I don’t ever specify helvetica
all my text is formatted as display.newText(units, 0, 0, native.systemFontBold, 12)
where in this case units is a variable that stores the number of units assigned to a leader

I don’t know if that has anything to do with my troubles [import]uid: 170004 topic_id: 36237 reply_id: 144009[/import]

@tbernard: I don’t usually do this but… email me your project if you wish and I will take a look today.

danny [at] coronalabs [dot] com [import]uid: 84637 topic_id: 36237 reply_id: 144011[/import]