Work related issues on the freelance proejct have cause a lot of late nights. Serveral bugs in the PSM SDK caused all manner of issues, one in particular turne out to be a major flaw in the Math systems for the PSM, took me days to find it, and indeed it was only my collegue Dino's instance that despite the documentation telling me the math funciton atan2 needed its paramaters x, then y, it should have been y x (this is an odd quirk of standard C libs) he was right...and a swap immediatly fixed my problem allowing me to progress towards a very late milestone.
Ironic really, since I am a proud exponant of programming solutions over maths solutions, but had been using some pretty simple maths to do a rotation translation...only to have it break and force me to seek help from a maths guru....to then find when the bug was discoveredf that my maths was working perfectly...as I aways knew it was...its a bit like entering 2+2 into a calulator and it says the answer is -17... you know its wrong but you entered the right vals.
Anyway, I am really relieved to have the hard shit out of the way and the last couple of days coding have been tremendous fun and lots of progress on nice polish details.
But the late nights mean I'm not sleeping so well..I plan to get back on track this weekend, with a days work, then nice evening of poker and friends and much booze...and avoid any more late sessions. Hopefully that will be the case as all the really hard work is done, now its just a case of doing gameplay an some optimisations to improve performance.
Another plus for me is, when this milestone is delivered I can invoice for all the work I've done, for which I had to register with the Dutch Tax office as a company and get a BTW number (same as VAT).
phew...but on the plus side, I will be able to make a massive dent in my credit card this month and clear it next month allowing me to sort out the mortgage transfer and cut the final ties with my ex.
An important step for me in the move forward with my life, so am going to pull out all the stops to make that happen sooner rather than later.
Better get to bed, or that days work will be a bit on the short side requireing a big day tomorrow.