Commit Graph

744 Commits

Author SHA1 Message Date
a409a928b6 Exclude VS debugger streambuf from release build 2015-01-09 00:32:46 -05:00
c96dba2678 Redirect console output to Visual Studio debugger panel
- Or to logfile for the release build
2015-01-08 22:57:15 -05:00
b5ce8e1169 Fix buffer falsely considering messages to be duplicates when they have a common stem 2015-01-08 22:33:16 -05:00
3ef98712d5 Purge all uses of printf, fprintf, perror and most uses of sprintf
Also:
- Print "Target Spell" before the explanatory prompts, instead of after (when fancy targeting)
- Fix sell costs being drawn on top of the button
- String-insensitive comparing for dialogue keys
2015-01-08 22:26:41 -05:00
8350a22ecb Allow taking items from a scenario even if they summon monsters or have custom graphics. Breaks older saved games.
(Older saved games might still work if not in a scenario.)
- Remove items that call a special node when entering a new scenario
- Remove stone block if a monster is placed on it
- Monsters captured by Capture Soul now persist across scenarios
- Fix barrels/crates not being restored when re-entering the town
- Fix issue when saving monster status effects
- Fix version number stored in saved game file; also, it's now stored in hexadecimal
- Fix issue with saving which would have caused all but the first timer to be ignored when loading the saved game
- Fix timers being written to out-of-bounds memory when loading a saved game
- Fix use of std::skipws where std::ws was intended
- Fix issue with the fields array being shifted right by one tile on loading; also, fields array is now saved as hexadecimal
- Fields and terrain array use the town's dimension instead of dimension hard-coded (in the case of fields) or stored in the file
- Fix PC editor remove from scenario option not working properly
- Reconstruct the universe when loading a saved game to ensure there isn't leakage from the previous universe
- Fix excess padding in output tarballs when the filesize is a multiple of 512
- Add hasFile function to tarball class
2015-01-08 17:46:54 -05:00
095ab3be49 Fix preset creatures not showing up on Windows 2015-01-07 18:30:30 -05:00
38f398caa5 Several little fixes
- Save As not working when not in a scenario
- Recuperation trait not selectable
- (Mac) Reverse domain applied as file extension
- (Windows) File extension not auto-appended
- (Windows) Dialogs sometimes fell behind main window after exiting sub-dialog
2015-01-07 17:20:49 -05:00
3b1d083575 Move pictype enum to seperate file from pict control 2015-01-07 17:10:43 -05:00
2604be619a Fix up Windows game/PCed menus
- Journal added
- Move Reunite and Own Vehicles to end to match Mac ordering
- Fix seeing instant help for creating a PC when you already have 6 PCs
- Fix listing wrong spells in spell menus
- Fix indentation
- Disable PC editor edit menus when file not loaded
2015-01-05 19:10:34 -05:00
f25a6e58f3 Reform game menu -> command mapping so that the non-platform-dependent code doesn't need to know where the menuitem is
- Also fix some issues with the notes dialogs
- Journal is now available; has a different icon now
2015-01-05 18:39:54 -05:00
04b9aec921 Reform PC editor menu -> command mapping so that the non-platform-dependent code doesn't need to know where the menuitem is
- Also disable edit menus when no party loaded and fix item menus not being populated if the party is in a scenario
2015-01-05 17:17:34 -05:00
dfe54fd0a2 Fix Windows scenario editor menus 2015-01-05 13:49:51 -05:00
ec617322d0 Merge branch 'master' from Windows 2015-01-05 13:33:52 -05:00
584baa3f19 Reform scenario editor menu -> command mapping so that the non-platform-dependent code doesn't need to know where the menuitem is 2015-01-05 13:33:38 -05:00
60730702a5 Split PC editor items menus into columns
- And increase columns for scenario editor items menus
2015-01-05 13:25:18 -05:00
a58f643926 Fix crashes when writing saved game 2015-01-05 13:23:20 -05:00
75e340f945 Fix hidden towns being considered for non-town terrain types
- Caused a crash on Windows and mysterious black tiles on Mac
2015-01-05 02:17:22 -05:00
c5da4a6e05 Fix the Windows Release build 2015-01-05 00:49:35 -05:00
cc20eeaa92 Fix minor issue with editing special node text 2015-01-04 22:56:55 -05:00
bef76595b9 Merge branch 'master' from Windows 2015-01-04 22:56:16 -05:00
69f9018190 Fix pointer values overwriting the wrong fields in special nodes 2015-01-04 22:54:39 -05:00
ccd71b4597 Fix Mac PC editor build 2015-01-04 22:18:45 -05:00
f44f713cac Fix cursors not showing up on Windows.
(At least mostly; there might still be a few glitches.)
2015-01-04 22:03:24 -05:00
c3e801ad7a That comment was wrong. 2015-01-04 20:08:50 -05:00
e000b070ef Fix open file dialogs not working on Windows 2015-01-04 19:37:52 -05:00
daee11da8a Fix graphics being squished slightly due to the Windows menubar being attached to the window 2015-01-04 19:16:21 -05:00
91b3143233 Remove pwdset tool, which is now redundant since scenarios no longer have passwords 2015-01-04 14:09:40 -05:00
b2fc354855 Update README.md 2015-01-04 13:58:35 -05:00
fe98dec9f6 Clean up unused stuff in the XCode project 2014-12-30 23:23:56 -05:00
39ed049faa Get the scenario and PC editors to build 2014-12-30 23:16:49 -05:00
16d31f4a3f Rearrange Mac PC editor menus to match the Windows PC editor menus 2014-12-30 18:21:58 -05:00
fc22cdcc7d Fix Windows resource files encoding 2014-12-30 17:47:28 -05:00
d842a6a6b3 Fix Windows build 2014-12-30 17:44:45 -05:00
099a6a61b0 Fix Mac build (again) 2014-12-30 17:41:50 -05:00
0b330432b4 Get the game to compile, at least
- Scenario and PC editors still don't link
- Copy files stage set up in the Common project
- Scenario and PC editors now placed in Scenario Editor subfolder in the output directory
- Disabled some totally useless warnings
- "About" menuitem now considered to belong to "Help" menu (even on Mac code) as far as the handlers are concerned
- Dialog string filter is now a function instead of a custom iterator
- Modal session now requires parent window as additional parameter
- Preferences and menus work! Cursors still need some work.
- Since Visual Studio has no way of showing program output that I can find, stdout and stderr are now redirected to a file.
2014-12-30 17:20:22 -05:00
c0642fe993 Fix Mac build 2014-12-29 15:13:52 -05:00
b11199d7d9 Set up a Visual Studio project and tweak things until it compiles
- It doesn't link yet, but that was expected
- Fixed some issues with global variables having different types in different files.
2014-12-29 14:52:54 -05:00
fdb98bf34a Merge the two main git ignore files 2014-12-28 12:22:24 -05:00
af0ee110c6 Rename osx directory to src since it's now the official source base 2014-12-28 12:12:38 -05:00
ca15b2781e Fix up item editing dialog 2014-12-28 11:43:52 -05:00
e9f6e63b25 Fix up the monster editing dialogs 2014-12-28 11:31:57 -05:00
37089b471a Reimplement importing towns 2014-12-28 11:01:19 -05:00
805ffaaac6 Update scenario editor resource file so that the converted DITL resourcers are named by the filename of the converted dialog. Also deleted some DITL resources that are relics of Exile III. 2014-12-28 10:48:23 -05:00
5bbda27a1c Convert the last of the scenario editor dialogs 2014-12-28 10:47:25 -05:00
022571afe8 Make Choose buttons smaller in the edit special node dialog, as they used to be 2014-12-28 00:13:18 -05:00
ab57e71d90 Convert the two dialogue editing dialogs. 2014-12-28 00:12:59 -05:00
a1b83fa9d2 Fix tab key clobbering field contents 2014-12-27 17:31:56 -05:00
e25f8ccc3f Fix Choose buttons in town wandering dialog 2014-12-27 17:31:36 -05:00
df25711e87 Implement the remaining Choose buttons for the special node edit dialog.
Also:
- Fix text response node using wrong string for response matching
- Fix inability to change PC race during party creation
- Info string area in select trait dialog widened considerably
2014-12-27 17:25:46 -05:00
ddbc143c84 The select town/sector dialogs now offer a Choose button 2014-12-27 16:18:05 -05:00