Jump to content
  • entries
  • comments
  • views

Progress Report

Sign in to follow this  


~10pm CST
- Added basic exception handling to cmdset. It now captures and logs exceptions thrown by invoked commands.
- Added a 'Unknown command' fallthrough for the console cmdset.
- Fixed up the Cursor code.

It used to do a s/ /_/ (since spaces aren't registered by a MeasureString, which the cursor uses to know where to go; thus the cursor did not recognize spaces at the end of the string). In variable width fonts, that misplaced the cursor. The code was changed to do (semantically) s/ +$/_+$/; unfortunately, I'm not exceptional with regexes, so that turned into a m/( +)$/; string=string.Replace(" +$","") string.PadRight(str.Length+$1.Length,'_'); I might try to go back to a method I've used before (append '.' measure rect, subtract estimated width of '.'), but meh.

- Added 'script' to the console cmdset. Takes a filename as a parameter, and will open that file and run through it line by line as though each line were a command line entry.
- Added a pair of breakout/fallthrough pairs to consider '#' and '//' as console line comment commands.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!