Today's Lesson of the DayIf you're a tool developer, make sure your ENTIRE team has the same version of tools that you do. This way you don't waste any time trying to fix a non-existant bug or a bug that has already been fixed.
Also, if your team reports a bug, make sure you try to reproduce it so that you know where to look. And to make sure that it's a consistent bug.
In other news I finished up 2 editors today and started working on a script editor. The script editor is more for fun and practice than anything. There are somethings that I want to try. The first thing I attempted was auto-complete and it turned out fairly well. And, in doing so I learned some quirks about the textbox. For instance, you can retrieve the index of the caret by setting SelectedText to 0 and looking in SelectionStart. Or, you can insert text at the caret by copying it to SelectedText.
TextBox.SelectedText = 0;
int CaretIndex = TextBox.SelectionStart;
Point CaretPos = TextBox.GetPositionFromCharIndex(CaretIndex);
TextBox.SelectedText = CaretPos - 3;
TextBox.SelectedLength = 3;
TextBox.SelectedText = "TEXT!!!";
The bottom part will select 3 characters back and then replace it with 'TEXT!!!' For example:
'This is the t|ext'
'This is th|e t|ext'
SelStart-^ ^-SelStart + SelectedLength
'This is thTEXT!!!ext'
Do you guys think that $20 for a tool is too much? My friend is "making a game" and he wants me to do his map editor and such, so I told him $20 for each application and he says "fuck you too buddy" (no, it wasn't because I asked him to pay me, he told me he thinks that is too much.) I seriously think that that is a steal. I think my offer is pretty good (and so do the few people that have used my services):
- Free bug fixes & updates for 6 months
- Your choice of file format(s)
- Managed DirectX support
- Custom controls (like the auto-complete above)
- Other stuff I can't think of right now lol
The only thing I've ever charged extra for is a plugin system, which I can't do for C# at the moment. Obviously my applications aren't perfect, but I do my best and I'm readily available to fix any problems he has (I'm only like 10 miles away, plus he can call me or IM me.) Seriously, I do this for a living so I'm not going to give anybody free stuff (except for the people that I'm working for obviously (but then it isn't free anyway).) The only thing I give away free is art, source snippets, or open source projects.
Speaking of tools, I made a map editor and it turned out excellent IMO. I need to do some minor interface tweaks (mostly an easier way to switch between layers and fill modes.) You can check out screenshots here. The ones toward the top are the older ones.
It supports 3 layers, blended layers (in-editor only; makes it so you can see under whats on top), and in-editor animated tiles. It also can support any size map (as long as your computer can handle it. Also, you have to take into consideration your graphics card, since the only things I batch are the layers.) It uses managed DirectX for all of it's rendering.