Commit Graph

1213 Commits

Author SHA1 Message Date
65128ab6c8 Add warning message if null special called in debug mode 2015-07-11 21:56:29 -04:00
ae8139333e Fix loading special nodes from legacy scenarios 2015-07-11 18:38:36 -04:00
60d2085744 Fix PC editor build 2015-07-11 10:55:50 -04:00
ed0810df66 Finish documentation of scenario format 2015-07-10 15:29:00 -04:00
8504245e5a Don't drop unused talk nodes on saving if they still contain text 2015-07-10 15:28:34 -04:00
6852479a4c Fix terrain shortcuts being ignored for terrains above 255 2015-07-10 15:03:13 -04:00
4104e08481 Factor out some common definitions from the XML schemas 2015-07-10 15:02:50 -04:00
353ed28795 More documentation of scenario format 2015-07-10 14:46:58 -04:00
1863554154 Make the scenario validating script validate embedded dialogs, if present 2015-07-10 14:46:21 -04:00
21c5c98c24 Some tweaks to scenario format 2015-07-10 14:43:15 -04:00
72effbd05b More documentation for scenario format 2015-07-10 01:50:20 -04:00
ce24fc8d25 Tweaks and updates to scenario format docs 2015-07-09 20:37:53 -04:00
5458bc0d7b Scenario format tweaks
- Fix monster attitude enumerator not being reflected in schemas
- Store the sound ID for sound names, instead of the index into the sound name array
2015-07-09 20:32:45 -04:00
07323b393a Fix the text dump function in the scenario editor
- In addition, text/data dump is now saved in the same folder as the scenario being edited, and the scenario's name is included in the output filename
2015-07-09 17:44:13 -04:00
c0ab32453b Add some documentation on the new scenario format 2015-07-09 16:53:55 -04:00
c957987b45 Tests for reading and writing map data
- Fix saving and loading boat/horse positions and property flag
2015-07-09 15:53:34 -04:00
66a5302515 Add auto-generated list of special node types to editor documentation
- Click one to jump directly to the description of that node.
- Back/forward buttons work thanks to history API.
- List is sorted alphabetically.
- This was also done for the page describing item abilities.
2015-07-08 12:32:05 -04:00
f435be2125 More tests for saving shops 2015-07-07 22:29:14 -04:00
59f60710c5 More test cases for reading shops 2015-07-07 22:22:10 -04:00
93f9860624 Tests for saving and loading shops
- Fix shop name not being loaded from the file
- Fix skills in shops not storing the skill ID
2015-07-07 22:04:11 -04:00
fd42f00e41 Test for saving quests 2015-07-07 21:10:17 -04:00
3c7569a068 Test cases for reading quests 2015-07-07 21:00:55 -04:00
ea17fe364b More scenario reading test cases 2015-07-07 20:41:53 -04:00
9ad0681205 Fix scenario editor build 2015-07-07 19:07:02 -04:00
137a3aa5d4 A few more scenario read tests
- Introduce enum for scenario content rating
2015-07-07 18:58:35 -04:00
2218513aa5 Several more tests for scenario loading 2015-07-07 17:10:09 -04:00
42734c8599 Test cases to ensure the integrity of the enum stream operators 2015-07-07 14:48:49 -04:00
233e732f5b Update XCode project version 2015-07-07 14:01:44 -04:00
6297d12e2a Make building monster display name more concise 2015-07-07 14:00:32 -04:00
a2d7a1a233 Introduce enum for monster attitudes
- Fix some issues with Hostile B monsters (their presence didn't prevent taking nearby items, and they became Hostile A after a mindduel)
- Fix the town a saved creature was in not being saved in the saved game file
- Fix town not going hostile when you damage a friendly monster
2015-07-07 13:59:54 -04:00
a5ea3174c8 In scenario editor, dump to start screen if scenario load fails 2015-07-05 23:31:01 -04:00
7b76d37237 Store talk node type in scenario file as enumerator instead of numer
- Also, don't write empty CDATA sections when dialogue name/look/job sections are completely empty.
2015-07-05 23:30:43 -04:00
6cc9e81a7b Widen spellcasting dialog so that Weak Summoning fits 2015-07-05 08:32:06 -04:00
aa72575270 Fix Show PC Spells dialog and the Alchemy button in PC Info 2015-07-05 08:31:30 -04:00
26cb146d4f Fix magic/identified mixup in item info dialog 2015-07-05 08:03:27 -04:00
d682a2b856 Some updates/reformatting of graphics credits 2015-07-04 17:20:35 -04:00
cfab036ea1 Fix bloodstain when deleting a PC in-game 2015-07-04 17:20:14 -04:00
973e765efd Fix Set SDF dialog (debug mode / PC editor)
- No longer crashes when pressing enter
- Enter now sets the SDF, escape exits the dialog
2015-07-04 17:02:29 -04:00
a2e4388c10 Fix crash when targeting certain spells on a PC (eg Acid Spray) 2015-07-04 00:39:51 -04:00
70f22e039e Allow added items in character editor to exceed max weight,
and give error if not enough room
2015-07-04 00:39:32 -04:00
a64db5f15f Fix a lot of text placement and similar issues
- In the game, text placement is better-aligned on the main-menu buttons, in the PC stat area (both PC info and food/gold/day), in the PC items area, and in the text info bar.
- Fix leaving artifacts of previous titles in the PC stats area
- Title of PC items area is now in yellow, to match the PC stats area
- Bold text now actually looks bold (affects all programs)
- In the scenario editor, the location of the info strings above and below the toolbar are fixed
- Text in the PC editor has received numerous tweaks too numerous to list. In particular, text on the right buttons is better centred, and gold and food aren't stuck together.
- PC editor now shows race even if it's a monster race
- PC editor now recognizes the presence of the forcecage status
- PC editor now shows all traits and status effects, even if the PC has every trait or every status effect in the game.
2015-07-04 00:39:08 -04:00
cb1c11badd Missed one oopsError 2015-07-04 00:22:01 -04:00
d594916fbf Show correct version number in main menu 2015-07-03 18:42:53 -04:00
a6d4d54723 Don't preserve whitespace in dialogue personality names 2015-07-03 18:18:05 -04:00
2d73bb01ae Nuke oopsError and out-dated "can't load game" error dialogs 2015-07-03 18:11:03 -04:00
558b1b8f62 Fix dialog-spam about invalid special node types when loading legacy scenarios 2015-07-03 17:16:39 -04:00
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