Home | Forums | What's new | Resources | |
Program compiling issues |
television2000 - Sep 1, 2014 |
FacundoARG | Sep 2, 2014 | |||
Are you using Signed integers? Like Sint8. The application crashes? Please put some part of the code |
FacundoARG | Sep 2, 2014 | |||
Mmmmm. You use a Single int if I'm not wrong the compiler translate this to an Uint32. My advice, use reserved words from the compiler like Uint32,16,8 etc. P1, P2, Attackfinished, blabla are statics? 'cause aren't definied inside the function? At line 16 you are missing a semicolon ; Keep working |
television2000 | Sep 3, 2014 | |||||
The complier translate the single integer into a Uint32 ? Hmm... P1, P2, Attackfinished are define outside and used as an extern int actually, blabla was an example I just used to show what I usually do. Same for the missing semicolon at line 16, as I said this is a template and if I would compiled I woulda get an error stating a missing semicolon and fix it. Will work on this now and see to where it leads. However, this reminds me of a nasty thing that happened a few weeks ago where changing a simple int resulted in the whole screen having this Pink or green hue for some reason even when turning of the whole VDP2 functions off and even removing it. I made sure that it's not my Saturn going bad and tried my app on a different consoles all with the same result but somehow managed to disappear once I reverted to the original code and reworked the algorithm differently. But still that shouldn't happen at all because there was no complier errors or crashing in the app. Guess there's a lot of experimenting to do still... EDIT : Holy*!&@# your advice actually worked ! Thank you ! Does that mean I should only use reserved words from now on ? |
FacundoARG | Sep 3, 2014 | |||
Yes, it's better if you use reserved words. For example, you are wasting memory in your code using an Int (Uint32) because you have only 3 values in your switch-case. The correct type is Uint8 (255 posible values) I'm glad to help you. |