which is obviousely wrong (for i=0 and j=0, this yields a negative index into the h_base array).However, I'm not very familiar with the code. So could you point me into the right direction to fix this? I'd really like to do some development on that code

EDIT: Okay, looking at the code a bit more, it actually seems correct (but maybe not the most command semantic).Anyway, the game crashes for me at that code.I tried to replace it with this:

where hbase_loc is int hbase_loc = x_int + z_int * width_;.It doesn't crash any more, however, it still doesn't work correctly. The heightmap seems to be messed up resulting in the tank either not driving at all or jumping through the map :/

edit 2: nvm.. I forgot the * cx[j]. It seems to work correctly with that now.

I seem to have a different problem, all the trees are invisible for some reason, and only appear when hit. Did you have similar issues?

Hey.I got my code to work. I simply forgot the *cx[j]. WIth that it worked perfectly.About your solution: I'm not sure if this still works correctly. Well, I'm pretty sure it doesn't. Don't you get problems with your heightmap? (e.g. the tank driving not correctly but jumping from time to time and stuff like that?)

About the trees: Not sure. I did many changes to the code to port it to more recent library versions (newer version of boost-filesystem, new version of OSG, etc).

I had the problem once after the new OSG customizations, but it was a mistake by myself and I could easily fix it.

Anyway.. I have - as I said - made many customizations to the code to improve it. I have that code online in a private SVN (talked to Quanticode about forking or SVN write-access to their repository but diddn't get a useful response yet).If you want, you can PM me and I give you access to my code and you try that out. I think it should work better than the original one. Especially on more modern systems with more recent libraries.And it also works on 64 bit (but I diddn't change anything for that. It just worked).

you should have access to the SVN and Wiki (if you would like to add smth. to the build instructions) on sourceforge by now. feel free to commit your code changes and thanks for your effort in advance!

The process of fixing bugs is termed "debugging" and often uses formal techniques or tools to pinpoint bugs, and since the 1950s, some computer systems have been designed to also deter, detect or auto-correct various computer bugs during operations. Most bugs arise from mistakes and errors made in either a program's ...coursework writing service