Well-Actually War Trall Ishad Nha Posted July 9, 2009 Author Share Posted July 9, 2009 In my version, they have new key assignments, anyway download my version and you will see for yourself. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted July 9, 2009 Share Posted July 9, 2009 I would consider it if I used Windows. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted July 10, 2009 Author Share Posted July 10, 2009 Niemand would be able to tell you how to customize the Mac shortcuts. I don't know about Mac freeware compilers. But if you could compile the Mac source code it would be easy to find an arrangement of hot keys that is right for you. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted July 10, 2009 Share Posted July 10, 2009 I don't need Niemand's help to customize the Mac shortcuts. It's no harder than customizing the Windows shortcuts. As for Mac freeware compilers, the operating system comes with one so it's not a problem.  I think it would be best to make all the shortcuts customizable without re-compiling. It would mean the switch statement won't work, though – you'd have to replace it with a lot of if statements. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted July 11, 2009 Author Share Posted July 11, 2009 I know some programs and some games that have this, Microsoft Word and the Baldur's Gate games come to mind. It involves a preset table of possible commands, you can assign a letter to each possible command. Source code for these I have never seen. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted July 11, 2009 Share Posted July 11, 2009 Programming non-menu related configurable keyboard shortcuts is pretty trivial; you need a UI for entering them, an interface with a backing store to save them, and replacing hard coded switch statements with searching a list to match the keystrokes to shortcuts. Source code for such would be rather unenlightening, as it would be closely tied to the program it came from. I would note that at least on the Mac side making menu shortcuts user configurable is at the least a non-trivial annoyance; I've seen it done but the system libraries aren't geared to make it easy. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted July 11, 2009 Share Posted July 11, 2009 I don't think it would be too annoying, actually – if it's anything like BoE, the game just reads the keystrokes directly, so it would just have to look it up in a map or something to see if there is an associated command. The value of the map could be a function pointer, which you would simply call, or it could be an enum which you could then switch on. Which one really depends on whether it makes sense for all the commands to be called with the same function signature.  EDIT: Something like this: Code: std::map<char,eCommand> keyMap; // Global declarationswitch(keyMap.find(key)){case CMD_PENCIL: // ... break;case CMD_PAINT_SM: // ... break;// etc} or this: Code: std::map<char,void(*)()> keyMap; // Global declaration// Alternative declaration:// std::map<char,boost::function<void()> > keyMapkeyMap.find(key)(/*some params if necessary*/); Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast keira Posted July 11, 2009 Share Posted July 11, 2009 Couldn't you just have the editor read an ini file when it starts up for the key commands? I know of several games that do this. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted July 11, 2009 Share Posted July 11, 2009 That's a totally separate issue. You'd probably store the keyboard shortcuts along with any other preferences in a file somewhere. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted July 11, 2009 Share Posted July 11, 2009 Originally Posted By: Celtic Minstrel I don't think it would be too annoying, actually – if it's anything like BoE, the game just reads the keystrokes directly, so it would just have to look it up in a map or something to see if there is an associated command. This is true of the keys used for the editing tools but doesn't work directly for menu items, as a (deprecated) library function is used to do the lookup at the moment. Also, system libraries are handling reading the shortcut mappings from the resource file and set them on the menu items. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted July 11, 2009 Share Posted July 11, 2009 Yes, you're right about the menu items. I didn't think we were discussing those though. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted July 24, 2009 Author Share Posted July 24, 2009 Blades of Exile Scenario Editor enables you to create a scenario with a specific number of large, medium and small towns. By contrast, BoA always starts with only one town, always of medium size. If there was any desire for this feature it could be added easily enough. In the meantime you can create a new BoE scenario with the desired number of towns then port it to BoA using the Import Blades of Exile Scenario function in the Edit menu. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted July 24, 2009 Share Posted July 24, 2009 I think that there isn't a whole lot of need for creating all of the towns by size at the start, although being stuck with the first town always as medium sized is annoying. I hope soon to finish porting the code I wrote for the Mac version which allows it to change the size of a town that is already in the scenario, which would give designers the freedom to make the first town whatever size they want. Quote Link to comment Share on other sites More sharing options...
Garrulous Glaahk SamSniped Posted July 24, 2009 Share Posted July 24, 2009 OMG THANK YOUUUUUUUUUUU!!!!!!!!!!!!!!! My BoAE normally wont work but now...!!!!!!!!!!!!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted August 2, 2009 Share Posted August 2, 2009 I've just checked in changes which should alter the 3D view size to match that used by the game itself. I think I got all of the relevant changes that were need to make this work, but somebody should check me to make sure i didn't overlook something. Â Glancing over the ToDo list of major changes we have: (struck through items are completed) Add Undo/Redo support Correct 3D view size Rearrange tool buttons in order to... Add eyedropper, floodfill, terrain copy, and terrain paste tools Add creature and item palettes Fix crashing in BoE import feature(*) Replace delete last town feature with delete current town Add change town size command Fix Change Outdoors Size to not scramble data(**) Add list views when selecting town/outdoor section to load and when selecting town/outdoor section to import * If I understand correctly this is fixed. ** If I understand correctly this is a problem. Â Am I overlooking anything important? Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted August 2, 2009 Author Share Posted August 2, 2009 Eyedropper was implemented. Change Outdoors causes a crash when you try to load the outdoors and really messes up the towns. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 4, 2009 Author Share Posted September 4, 2009 Changing the subject: Town reports can be updated as needed, if they are opened in something like Crimson Editor. Simply choose the new 3D Editor's "Query > Town: Write Data To File" command once again, this will overwrite any previous version of this file found in the scenario's directory. Then use the File > Reload function found in Crimson Editor, this will reload the file showing the latest version of it. Thus you can continually update the report as you work on the given town. Ditto any other type of report generated by the Editor. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted September 8, 2009 Share Posted September 8, 2009 TextWrangler reloads automatically if the file has changed. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 9, 2009 Author Share Posted September 9, 2009 If Text Wrangler is Mac this trick will work for the Mac Editor too. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted September 9, 2009 Share Posted September 9, 2009 Indeed, and it's even easier. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 16, 2009 Author Share Posted September 16, 2009 Town reports have been altered to print the names of items and creatures. Terrain scripts used to have a default name of "Blank", then I changed that to "door". I might change that to "specobj" because most door scripts would be automatically placed with a door terrain type. I imagine that when a script is placed manually, most of the time most designers would place some other script. I might also create a Full Town Report that lists memory cells too, this will enable the tracking of memory cell 3 for creatures. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted September 17, 2009 Share Posted September 17, 2009 Originally Posted By: Ishad Nha Terrain scripts used to have a default name of "Blank", then I changed that to "door". I might change that to "specobj" because most door scripts would be automatically placed with a door terrain type. Yes, making "door" the default is as useful as having "Blank" as the default, whereas having "specobj" as the default could actually be useful sometimes... it is included in every scenario by default, right? Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 17, 2009 Author Share Posted September 17, 2009 Yes, at the end of the function create_basic_scenario you find the list of the default scripts: trap.txt door.txt specobj.txt basicnpc.txt guard.txt  Full town report function was created, it lists the memory cell contents for terrain scripts and creatures. It is included in my version of the 3D Editor: http://www.freewebs.com/ishadnha/VariantBoA3DEditor.zip  Next thing that needs fixing is that change outdoor size function. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 17, 2009 Author Share Posted September 17, 2009 Change Outdoor Size function is the one clear problem remaining. I changed a scenario so that it had one extra column of outdoor sections, W*H = 5*5 became 6*5. Outdoor section that was open at the time lost all its terrain, town entrances. Coordinates of area rectangles were reversed, ditto any other Short number. It was only this one outdoor zone. (I detected this by use of the Full Outdoor Write Up: All Zones function.) Now I am trying to understand the function, so I am reading townout.cpp. In Blscened.rc the relevant dialog is number 991. I copied it into Word, changed all the commas and quotation marks to tabs and then pasted it into an Excel spreadsheet. This will enable me to understand the code. I made a screen capture of the dialog box concerned. Then in Excel I sorted dialog 991 by the y coordinates of each entry then by the x. Comparing the screen capture with the contents of dialog 991 makes it easy to see what part of the screen is created by each line of the dialog. Â Â Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted September 17, 2009 Share Posted September 17, 2009 The problem has nothing to do with the dialog that lets the user select the changes to make, it's in the function do_save_change_to_outdoor_size() in Bl A Fileio.cpp. Your statement that 'Coordinates of area rectangles were reversed' could be an important clue though, as it may mean the only actual problem is one extra port() call or one call too few. If I get time tonight I'll take another look at it in light of this information. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 17, 2009 Author Share Posted September 17, 2009 I need to decrypt the dialog just to follow the function, I doubt the dialog itself is at fault. Function also crashed in the past, I will need to see what might cause that. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted September 17, 2009 Share Posted September 17, 2009 My point is that the dialog, and its associated functions (change_outdoor_size() and change_outdoor_size_event_filter()) merely take the user's requests; they do none of the actual work. If you want to understand them that's fine and a useful thing to do in and of itself, I just wanted to make sure you didn't get your time wasted by being sidetracked to the wrong area of the code. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 18, 2009 Author Share Posted September 18, 2009 My hunch is that all shorts were flipped. In the case of -1 this won't show because it is written FF FF when it is Short. This is not a big deal because you can always import the relevant section from the backup. Change Outdoor Size is not a very involved function, all you are doing is adding blank outdoor zones or deleting existing ones. Edit: I just tried adding a new column of zones to my A1 Template, nothing happened, the program reported error 61. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 18, 2009 Author Share Posted September 18, 2009 I have just taken the time out to add a current outdoor zone write up of data, based upon the town write up functions. It currently does not include outdoor encounters. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 23, 2009 Author Share Posted September 23, 2009 The official version has been updated too, see: http://www.freewebs.com/ishadnha/BoA3DEditor.zip Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted September 23, 2009 Share Posted September 23, 2009 Updated how? Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 23, 2009 Author Share Posted September 23, 2009 Brought into line with my variant, hence an outdoor zone report and so on. See the upload notes. Edit New features: [*] Both town reports show sign and area rectangle texts. [*] New full town write up that shows all memory cells for creatures and terrain scripts: 'Full Town Report.txt'. [*] New current outdoor zone write up report: 'Current Outdoor Zone Write Up.txt'. [*] All outdoor zone write up for special states and town entrances: 'Outdoor Zones Write Up.txt'. [*] Updated dimming out of Query entries, except for first two. [*] Changed version date. Â Â Â Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 24, 2009 Author Share Posted September 24, 2009 Latest revision to official version: Town reports, names are now listed last because they are the type of data that varies most in length. Preset fields now have their names shown. In the Query menu each item is preceded by a letter: A,B,C,D... this acts as a hotkey. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 25, 2009 Author Share Posted September 25, 2009 I added a scenario report that lists introductory text, variable town entries and item placement shortcuts. (I don't think anyone ever uses the item shortcuts in practice.) The report will enable designers to check the length of each paragraph to make sure that the limit of 255 characters is not exceeded. Might be handy if there was some way to paste text into the dialog box window, that way you could write it in Crimson Editor, check its length and then paste it right in. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon The Almighty Doer of Stuff Posted September 25, 2009 Share Posted September 25, 2009 I use Item Placement Shortcuts sometimes. They're good for placing things like pants and sticks and stuff that it doesn't really matter where they are specifically, but that are good to have here and there anyway. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted September 25, 2009 Share Posted September 25, 2009 What? I thought you could copy and paste in the text windows? Â I suppose that might be only in the Mac version... Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted September 25, 2009 Share Posted September 25, 2009 I can't think of any part of the Mac version where copy and paste work properly either; I've lost a good deal of time trying to fix that. Quote Link to comment Share on other sites More sharing options...
Magnificent Ornk nikki. Posted September 25, 2009 Share Posted September 25, 2009 Copy and paste do work in the Windows 3D editor - you have to right-click and copy/paste instead of using keyboard shortcuts, but it does work. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted September 26, 2009 Share Posted September 26, 2009 The Edit menu is not enabled in the dialogs in the Mac version? I'm pretty sure it is for BoE, at least... Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 26, 2009 Author Share Posted September 26, 2009 If I can't fix the dialog windows to accept normal copy and paste I will add a note about right-clicking. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted September 26, 2009 Share Posted September 26, 2009 @Celtic Minstrel: The Edit menu is there; that doesn't mean that its work as they should. If I remember correctly, things happen like that the scenario entry text fields won't accept text copied from other applications, but can be copied from, and will paste text copied from themselves. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted September 26, 2009 Share Posted September 26, 2009 Ah... Â I wonder if they'll paste text from other applications that has no style information associated with it... Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 26, 2009 Author Share Posted September 26, 2009 Yes, a quick check shows that it will paste from Crimson Editor, the relevant text was given a plain text format. Edit: The problem is that assigning the relevant shortcut keys, (Ctrl + C, Ctrl + V and Ctrl + X) to selected objects means they are not available in dialog boxes. Once this assignment is removed in Blscened.rc the shortcut keys work as they normally do. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 26, 2009 Author Share Posted September 26, 2009 Deletion of objects has been revised: Backspace now deletes any selected object, then it reverts to select object mode. Thus you can select objects and delete any you don't want. Just the thing for cycling through a list of items. Ctrl + C, Ctrl + V and Ctrl + X shortcuts have been removed because they stop the use of the copy, paste and cut functions when editing text. As I am not too sure how popular these changes will be they are made to the alternate version of the editor: http://www.freewebs.com/ishadnha/VariantBoA3DEditor.zip Edit: I have altered the Basic Scenario Details dialog in the Scenario menu so that the Description has more space for its display. Idea is to mimic the amount of space available in the Enter Scenario part of the BoA game. I had to guess the size of the space available in BoA. Font used seems to be different in size. I will need to check this before committing it. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted September 26, 2009 Share Posted September 26, 2009 Originally Posted By: Ishad Nha Ctrl + C, Ctrl + V and Ctrl + X shortcuts have been removed because they stop the use of the copy, paste and cut functions when editing text. Can't you just temporarily remove them while a dialog box is onscreen, then reinstate them when it's closed? Because by doing this you've created the exact same problem all over again, except for objects rather than text. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 27, 2009 Author Share Posted September 27, 2009 We already have three shortcuts: ",","." and "/". My programming knowledge is pretty basic. I tried that idea of course, but I don't know how to encode "if a dialog box is onscreen cut,copy and paste text". Edit: Actually, there are a few Ctrl + Letter shortcuts still free. So I could work out a replacement triple. Basic shortcuts: O, S, N, Q, Z, Y, D, L, R, T Shortcuts I want freed up: X, C, V Left overs: A, B, E, F, G, H, I, J, K, M, P, U, W Â I will be concentrating on these: A, B, E, F, M, P, U, W Â Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted September 27, 2009 Share Posted September 27, 2009 Um, what are you talking about? Cut, copy, and paste must be Ctrl-X, Ctrl-C, and Ctrl-V respectively, unless you want everyone to be utterly confused. Â I'd suggest trying to figure out how to do it properly, rather than creating workarounds for your lack of programming knowledge. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 27, 2009 Author Share Posted September 27, 2009 See if Niemand has any answers. It will take ages for me to figure out how to do it. I lack basic knowledge and resources. Edit: I can create two versions, one with the shortcuts and one without. It will take a while for me to get the hang of using the three shortcuts for two separate things, time that could be better spent elsewhere. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Niemand Posted September 27, 2009 Share Posted September 27, 2009 The first thing I have to say is please, for the love of all good things, don't mix up all of the keyboard shortcuts. Â I'm not sure what exactly would be entailed in allowing the standard cut, copy, and paste shortcuts to work normally on text when a dialog is showing, but the basic method would not be to check whether a dialog is showing so much as to switch behaviors when you show a dialog and switch them back when you take a dialog down, I think. Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Ishad Nha Posted September 27, 2009 Author Share Posted September 27, 2009 Okay, the official version has the usual shortcuts. Certain changes have been made to it: Certain query files now have the scenario name in their title. Basic Scenario Details dialog box has been increased in size, hopefully the description box will be roughly what the BoA game shows. Some dialog boxes tidied up to look better. Intro Text dialog boxes have a note at the bottom: "Cut, Copy and Paste Functions: " "Can only be accessed by right-clicking the text box and choosing them from the context menu." They have also been widened a bit to try and make sure all the text shows. Â I will introduce a "most recently used query function" which can be activated by a simple Ctrl + I. Then the scenario file will print the lengths of the paragraphs. Edit: I have been experimenting with using the arrow keys to change the currently selected floor or terrain. It is roughly working, with a few glitches in steering when you change keys. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.