Commit Graph

808 Commits

Author SHA1 Message Date
bd0dc55995 Fix scenario editor build 2015-01-10 20:12:49 -05:00
6b107f8273 Write the code to save special nodes, as well as a skeletal outline of the new scenario format output code 2015-01-10 20:08:35 -05:00
6cae5d8bbd Add rudimentary error messages to the special nodes parser
- It tells you the line number, but not the nature of the error
- Unfortunately it can't currently cope with files that don't end in a newline
2015-01-10 19:12:33 -05:00
2e0c994b9b Switch the special node parser over to the older, better-documented version of Boost.Spirit 2015-01-10 02:38:12 -05:00
9a19db553f Fix the specials code parser not compiling in Visual Studio 2015-01-10 00:36:29 -05:00
1a7ff2c631 Fix Windows build 2015-01-10 00:29:25 -05:00
9f57f35428 Change .h -> .hpp in tools/ directory 2015-01-09 22:32:47 -05:00
1fc317d5af Update style guide 2015-01-09 18:11:40 -05:00
8a692b16d4 Create a script to build a Windows installer 2015-01-09 18:06:04 -05:00
4af3b8ee8f Add license file 2015-01-09 15:36:00 -05:00
3b3fec3843 Merge branch 'master' from Windows 2015-01-09 14:23:30 -05:00
057f271fe7 Redirect VS release build log to a file in %APPDATA% rather than in the program directory
- Will be important once there's an installer, since apps may not have permission to modify the program directory
2015-01-09 14:22:40 -05:00
49e508042c Update VS copy files stage to include DLLs 2015-01-09 13:45:40 -05:00
6b62f9b8f5 Remove unused logging stream 2015-01-09 01:00:16 -05:00
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