Phew! Apologies on the missed post; I was intently busy once more on fixing up that data reading/writing assignment.
Turns out the problem lay on two fronts:
The first front was an easy mistake - turns out I specified "w" instead of "wb" on the write mode of my binary files. The frustrating part is, it works most of the time, but on some sections writes an extra byte where it shouldn't. The madness!
The second front dealt with a much larger problem - the numbers got too high when I used a fixed point conversion by way of multiplying by 100 then dividing. In the case that the number (30 bytes, shorts, etc for example) was too small, the division wouldn't work due to the quotient being larger than a word. The solution? Divide by the value number AND the fixed point number multiplied together, then convert the remainder to the hundreths place and redivide to get a rounding value.
What next? After doing some work with the UI and finding out more emergent solutions, our project is more than ready to go:
Heck, even our heavy pumpkins can be stacked like platforms when they're small enough and in the exact same horizontal spawn spot.
What next? Not much, really. I figured it'd be time to tackle mobile development, and I know for a fact most of FIEA deals in Android devices, so I'm setting up SDK use for Android devices. So far Android Works with Unreal has thrown me some issues involving user permissions for installations, but I'm currently downloading the SDK for Unity and have fingers crossed for the best!
No comments:
Post a Comment