Hello all, I just started with BlitzMax and I'm looking to port a game I wrote in VB6 over to BlitzMax. I'm starting out by trying to build a small framework and expand upon it as need be. My first task I've drawn up for myself is creating a workable console window that will popup in-game which I would essentially be able to use to test/debug the game.
I have it displaying and accepting input and everything which is great, but I'm at a hurdle now where I'm not sure how to implement the important features I'm looking for in such an interface. I'm not sure if they are possible, or the best way to go out about doing such things. Theres really only two important features I'm looking, the first being extremely important and the reason I'm building the console interface, and the second I actually could probably get by without, but would be nice to have.
1.) The game will be heavily scripted. What I want to be able to do in the console window is issue commands to the game which will manipulate the game objects. Things such as give players health, teleport players, give them items, issue scripts, etc. without having to restart the game, change the scripts or objects and then restart the game. I could issue script changes without breaking from the game.
I'm thinking what I would basically need to do is hook the debug console into whatever scripting language I decide to use and just send all console commands through the script interpreter. Is this the best option for what I want to do? Is there even another option, like directly manipulating the BlitzMax variables? After having worked on this game extensively in VB and not having a console interface like this, I realized how much it hurt my development time and bug fixing. Something like this would be a lifesaver.
2.) Would it be possible to output the values of BlitzMax variables to the in-game console through user input? I looked around and didn't find any function equivalent to an Eval function which might work, is there anything like this? I can get by without this feature, but it would be nice to be able to just see what a variable or object property is at any given time and have it pop up in the console window.
Thanks in advance for any help or ideas anyone can provide!
|