noinline
July 13th, 2010
A recent talk with a friend made me realize that the following declspec is not very well known. It’s used to avoid inlining a function (the opposite of what we’re usually looking for, which probably explains why it might have remained obscure for a lot of us).
With VC++:
__declspec(noinline)
With gcc:
__attribute__ ((noinline))
It’s very useful for example with templated arrays, to make sure things like the resize functions are never inlined.
Posted in Programming | 2 Comments »
Lara Croft in Konoko Payne
July 8th, 2010
The amazing hackers at ONI Central did it again, and recently added a Lara Croft model to Oni. So I ran OniSplit on their patch, which created a dat/raw Oni-level file, on which I ran my old Oni-Breaker, and tadaaaa! Presto, here’s Lara Croft in Konoko Payne. Yay.
If you want to try it out in the last KP release, here’s a small patch. I imagine anybody interested will figure out what to do with it (and if not, you don’t deserve it :))




Posted in Oni / Konoko Payne | No Comments »
Gravity gun quicktest
March 8th, 2010
Here’s a quick test for adding a gravity gun to KP.
- run the exe
- select “Developer => Load test level => GravityGunTest” (the only level included in this release anyway)
- pick up the gravity gun in front of you when the game starts. The console in your back gives some additional instructions.
Very quick test put together in one week-end, there are some bugs, etc. Just to have something to post… not much time for anything those days.
Posted in Oni / Konoko Payne | 3 Comments »
My dear PC…
December 21st, 2009
I hate you. I truly, terminally, passionately hate you. You’re a fucking piece of insane, mind-boggling junk. Having used computers for more than 2 decades now, I can assure you that you are, without a shred of a doubt, the crappiest, lamest machine I have ever used. It makes me sad that you’re the one who survived, because you obviously deserve it the least.
And now for the question of the day:
- I bought a brand new USB memory stick. Looks great.
- I have been using it for less than a month, sharing files between 2 machines (Win2K, WinXP).
- And today out of the blue, I’m told that the stick is “write protected”. I can’t add files to it. I can’t remove files from it. I can’t even reformat the sucker. Google tells me that this is a common problem (!!) but none of the “solutions” I found online worked.
- Help? Anybody knows how to unlock that thing?
For all I can see, it looks like I wasted my money on one more piece of PC garbage, and I can just throw it away and buy another. This is fucking ridiculous. It makes my blood boil that this so-called “user friendly” PC is in fact a fucking clueless money-making bastard that couldn’t care less about users. If you would care about users you would allow me to install VC9 on Win2K, for a start!
Posted in Rant | 9 Comments »
Life notes #2
December 15th, 2009
My girlfriend broke her foot a few days after moving back to Zürich, just when we didn’t have a Krankenkasse. Thank you Murphy.
My Xbox died halfway through Wet. I suppose that game was too hot, since I got 2 red lights in the Red Ring Of Death. Overheating. I guess that is a noble death for a console. At least its life was useful. Maybe it will cool down enough to start again, after a while. In the meantime I used this as an excuse to buy one of the new slim PS3’s. Finished Uncharted 2, went halfway through MGS4, just started Ninja Gaiden Sigma. Now you know why there’s no time for updating that blog
Worked on a serialization framework for the PhysX SDK, something similar to this.
Started investigating “CSG debris” in my spare time. So you carve bullet holes in meshes via a CSG operation, generating debris pieces at the same time. Debris are then rigid bodies, etc. Currently playing with t-junction removals, retriangulations, all that fun stuff. The even funnier stuff will be to update all the PhysX mesh data structures after a CSG operation. Stan Melax has a brilliant demo with runtime CSG a while back, I guess that’s the inspiration for this small side project. I hope I’ll be able to include that in Konoko Payne if it all works as planned.
…and there’s probably a million things more to post, but I don’t have time…
Posted in Life | 1 Comment »
Uninitialized variable FTW
October 26th, 2009
In Ninja Blade on 360. No ninja coders there…
But man, try to beat that score!!

Posted in Programming | 4 Comments »