August 1924
LUA in da house
icon1 admin | icon2 c + + , engine , software | icon4 08 24th, 2009 | icon3 7 Comments »

Well, I managed to finally what I planned for a long time but I could never be picked up. Since yesterday I plugged lua'ą enjoy. Thanks I finally separated from the logic of the game engine. I even managed to rewrite the whole logic of the player on the scripts and a large part of the motor. Luabind writes down here very well. Only during the rewriting logic appeared a problem, which is contrary to people's arguments scripting languages namely debugging. When it comes to writing scripts in the "clean" lua debugging is not much of a problem, but again, as the hook for example, our own engine if a problem occurs. Fortunately, this is not as bad as it looks. With the help comes to us a program called Decode ( http://www.unknownworlds.com/decoda ), which is very nice lua debugger. The program is fully graphical application ("konsolówki" fuuuu), has its own quite interesting script editor (indentation, syntax coloring and prompting, etc), Project explorer, and what we are more interested or debugger. It has such functions as: breakpoint'y, call stack and the output is what is needed most. The principle of operation is very simple, we create a new project to highlight exe'ka in which we use our scripts, set the "working directory", press F5 (where we know it ..) and fires up our application, Decode itself reads the scripts used in it and start debug. The same principle of a debugger is really like as that in the visual, so there is no problem with the service.
In general, appreciate the program very positively, is what I was looking for, now writing scripts is much easier. An interesting fact is that the application allows you to debug the xbox360 and ps3 consoles. Unfortunately the app is not free, but no amount is not as surprising. Consolation is the price, which even in our country is not excessive. Indie license costs $ 50 while the license "full" is already more expensive and not so low because the $ 400, but I think that for a large part of india's license (for companies and individuals whose annual income does not exceed $ 100k) is sufficient.

decoda