Commit Graph

1117 Commits

Author SHA1 Message Date
fecd268d5a Preserve spaces in scenario strings (and other longer strings) by using CDATA
- Involves a hack-mod of ticpp::Text to support it (for some reason, the support was there in TinyXML but not exposed by ticpp)
- Don't save all the intro strings if most are empty
- Don't save the init special if there isn't one
- Fix not saving the "I don't know" response for dialogue personalities

Strings that now preserve spaces:
- Descriptions of items, special items, and quests
- Descriptions of special shop items that call a special node when purchased
- Scenario, town, and outdoor strings
- Sign strings
- Journal strings
- All dialogue strings (both in personalities and in talk nodes)
2015-07-02 12:08:38 -04:00
1f5a1118f8 Some test cases for saving scenarios, and fix some bugs they revealed
- Fix variable town entry and saved item rects not being saved if they referenced an invalid town
- Fix "blank" scenario timers being saved
- Fix junk data appearing in timers
- Output operators for location and rectangle types
- Set timer node_type to 2 when loading from town record
2015-07-01 18:05:42 -04:00
9a2881ef66 Fix title message opcode 2015-07-01 16:12:15 -04:00
cf51efffe4 Add a hack to the Catch header to shorten test case output filenames 2015-07-01 16:10:58 -04:00
d8b4ee9c56 Start building some unit tests using Catch test library
- Current version of Catch is included in the repo at test/catch.hpp
2015-07-01 16:10:36 -04:00
ee9c089829 Add a Display Message With Title special node
- Remove Wandering Will Fight, which has been made redundant
2015-06-30 22:19:52 -04:00
c045c315aa Add a missing referenced dialog 2015-06-30 22:12:12 -04:00
baefd5bd40 Fix a couple of issues with the custom graphics documentation 2015-06-30 22:08:59 -04:00
74273783b9 Misc little things
- Some item abilities didn't appear in the editor ability selection dialog
- If have (+take) nodes took by default (ie when left at -1)
- Rename button in edit terrain dialog, as the old name barely fit
2015-06-30 12:53:42 -04:00
c1dbe192a1 New positioning mode for Relocate Creature node
(Tries to place monster in nearby space if exact target space is blocked)
2015-06-30 12:51:16 -04:00
5a3637c370 Now you can hold Alt while starting a scenario to skip party creation
(Only if party not loaded)
2015-06-30 12:49:01 -04:00
cea602ce6d Don't share the same temporary scenario directory between all programs
(Also fixes loading of unpacked scenarios)
2015-06-30 12:46:00 -04:00
0e70e716aa Make special node porting robust against arbitrary reordering of the eSpecType enum 2015-06-29 23:22:19 -04:00
c33e498ddc Allow designer to select smash/dispel for monster radiate abilities 2015-06-29 22:09:19 -04:00
77f149f64b Add missing Xcode scheme files 2015-06-29 20:59:46 -04:00
c1fa65a01d Much better error-checking when loading scenarios
- First of all, the program no longer crashes after an error.
- A lot more constraints are now checked for, such as required elements; even some constraints not expressed in the schema
- Special node parsing now has actually useful error messages
- Map data parsing now has error messages for the few invalid cases
- Fix the XML utility exception classes originally used only by the dialog engine; they're now correctly caught and properly report the error
- Fix loading of special shop entries
- Fix accepting any character as the separator in dice constants
- Verify that the monster ability type is on the right ability tag, that the extra element is present only if needed for general abilities, and that the missile and range elements are present for non-touch general abilities
- Use "infinite" for quantity in special shop items, instead of 0
- Tweak ticpp to fill out file/line/col information for _all_ exceptions, not just parse errors
- Raise error (ie, set stream failbit) when failing to convert an enumerator, instead of silently returning a default value (they do still return a default value though, if you don't bother to check stream state)
- Fix status effect enumerator not being correctly saved/loaded
2015-06-29 19:55:59 -04:00
860cf9d5dd Fix some rough edges when handling large pictures or full sheets
- Choose Picture dialog now scales these pictures down to fit in the available space, thus avoiding the ugly overlap issue.
- Choose Picture dialog now supports full sheets, scaling them down in a similar manner
- Due to the above, the Display Picture node now offers a Choose button
- The possibility of large (72x72) dialog pictures is now properly documented
2015-06-28 20:13:33 -04:00
f6d9ac7633 Make the background-removing script more generic 2015-06-28 15:49:15 -04:00
1dc59f4651 Random TODO comments 2015-06-28 15:18:35 -04:00
56d878a4db Add a big scenario icon for eventual use with Bandit Busywork
(Credit to The Almighty Doer of Stuff for creating this icon)
2015-06-28 12:16:12 -04:00
7fd6c85e37 Update status icon help to include new icons 2015-06-28 12:15:40 -04:00
4c4b0a131b Fix last two item graphics including black guide lines 2015-06-28 12:15:17 -04:00
9ae91feee6 Tiny scenario editor fixes
- Advanced monster edit dialog used stored node instead of node in text field
- Several preset item graphics missing from pick picture dialog
2015-06-28 12:14:58 -04:00
b307516d48 Fix several scenario editor dialogs still assuming there's a fixed number of special nodes 2015-06-28 11:58:23 -04:00
cc340e6d76 Default terrain flag1 to -1 instead of 0, for "no small icon" 2015-06-27 20:50:42 -04:00
ec8967dfb7 Fix missing "Alt-click" text in several modes in the scenario editor 2015-06-27 20:50:26 -04:00
7d18d94f3e Fix talk nodes being deleted if cancelled while last on the list 2015-06-27 20:50:00 -04:00
6dfb1c93d5 Fix many item abilities not working at all 2015-06-27 20:49:38 -04:00
5777d81745 Fix sleep clouds not being listed when looking at a space 2015-06-27 20:49:22 -04:00
d11e34b41b Adjust If Party Size node to match documentation 2015-06-27 20:49:02 -04:00
21435082c9 Add optional space insertion to string buffer append nodes 2015-06-27 20:48:14 -04:00
5646757fdc Fix rendering of custom item graphics in the editor terrain view 2015-06-27 16:16:49 -04:00
c863fb319b Default to "no icon" for legacy special-calling terrains 2015-06-27 16:16:34 -04:00
8a534c0524 Fix crash when loading scenarios packed by "tar -cf" 2015-06-27 16:16:12 -04:00
ef9fc69bb4 Fix incorrectly saving and loading item and terrain abilities
(as well as a few other enumerated types)
2015-06-27 16:15:24 -04:00
cfd46f8924 Windows: Launch Character Editor help on F1 2015-06-27 10:45:36 -04:00
39fd600673 Add alt-key equivalent to Install button on license page 2015-06-27 10:45:15 -04:00
7b167da087 Make uninstaller complain if BoE is already running 2015-06-27 10:44:54 -04:00
03754773f0 Add documentation to Windows installer 2015-06-27 10:43:42 -04:00
010f5c65e8 More documentation updates, mostly to the TOCs 2015-06-27 10:10:09 -04:00
e539327e08 Go to Contents instead of About for scenario editor help 2015-06-27 08:45:59 -04:00
95a9fa2502 Fix preset scenarios appearing in custom scenario dialog if their filenames included uppercase 2015-06-27 08:34:47 -04:00
225195c46f Launch a local copy of the help, if one exists 2015-06-27 02:29:30 -04:00
386993f5fa Mass update game docs 2015-06-27 02:16:38 -04:00
50bd421d7d Allow pausing with spacebar instead of numpad 5 2015-06-27 02:10:28 -04:00
dafe6c2790 Some character editor changes:
- Move Own Boats/Horses to Scenario menu
- Disable Scenario menu if not in a scenario
- Don't bother converting notes from legacy saves if not in a scenario (affects game too)
2015-06-27 02:08:15 -04:00
2397c540ab Add extra diagonal movement options for laptops 2015-06-26 23:47:28 -04:00
ecf0b77605 Don't print max health/spell points if clicking on main status description 2015-06-26 23:45:31 -04:00
dfddda8e82 Hard-wrap game docs 2015-06-26 23:06:59 -04:00
a0ec2490c7 Fix text overflow in edit outdoor encounter dialog 2015-06-26 22:03:28 -04:00