Commit Graph

1274 Commits

Author SHA1 Message Date
Martin Haye
d9e2011671 More reworking of title screen. Finished initial version of disk limiting. 2020-06-17 12:42:43 -07:00
Martin Haye
72f9827229 Adding disk limit and copyright message. Also fixed some plural matching problems. 2020-06-15 07:21:37 -07:00
Brendan Robert
7a03c7ab15 Fix ZPE on startup 2020-06-07 22:26:35 -05:00
Martin Haye
d3cfca29eb Merge branch 'master' of github.com:badvision/lawless-legends 2020-06-07 10:14:54 -07:00
Martin Haye
0e5ce285fe Memory rejigger to leave more room for title screen. 2020-06-07 10:14:43 -07:00
Martin Haye
4f696da1fa Better pause to see whole title screen. 2020-06-07 10:14:32 -07:00
Brendan Robert
deafd12267 * Added options for game upgrade
* Added MMU stats to CPu debug output
* Memory zeros out on warm resets now to prevent reboot failures
2020-06-06 02:05:28 -05:00
Martin Haye
1ec5712553 Merge branch 'master' of github.com:badvision/lawless-legends 2020-06-05 13:18:22 -07:00
Martin Haye
ccd7f269b1 Don't call flipToPage1 until renderer is loaded. 2020-06-05 13:18:16 -07:00
Brendan Robert
68d12365d6 Yucky hack to reset ram pattern even on warm boot, fixes rebooting glitches due to uninitalized engine state variables. 2020-06-01 09:10:45 -05:00
Brendan Robert
a81852294b Force lawless cheat module to load on start, fixes text color "glitch" 2020-06-01 09:10:00 -05:00
Martin Haye
9e93360d11 Save memory during automap display by packing small tilesets separately from regular tilesets. 2020-05-25 13:32:51 -07:00
Martin Haye
18031e182d Fixed bug: pModUtil3d was hanging around after memory reset. 2020-05-22 14:35:25 -07:00
Martin Haye
d114e8de8d Minor fix in automap clear 2020-05-06 06:40:49 -07:00
Martin Haye
8160a2e78c Take animation header into account in automap display. 2020-05-06 06:40:22 -07:00
Martin Haye
cf6b5d2b31 Fix hard-to-find return-to-different-world bug. 2020-03-15 12:33:21 -07:00
Martin Haye
b04e2c6f15 Strafe left/right were reversed. 2020-03-05 09:11:56 -08:00
Martin Haye
74f81a89a5 Fix animation showing over inventory screen. Fix mini powder keg in combat. 2020-03-05 07:22:22 -08:00
Martin Haye
db052ecf44 Merge branch 'master' of github.com:badvision/lawless-legends 2020-02-26 08:34:27 -08:00
Martin Haye
a1558fd0f8 Animated 2D tiles now working. 2020-02-26 08:34:22 -08:00
Brendan Robert
9060e27a22 Updating .gitignore so I don't accidentally check garbage in 2020-02-24 09:26:18 -06:00
Brendan Robert
6dd9c7e789 Various bug fixes and added story book mode 2020-02-24 09:06:24 -06:00
Martin Haye
3bc1bd6f65 Slow progress on tile animation prep. 2020-02-19 08:00:03 -08:00
Martin Haye
a134b1cde7 Centralized the complex logic of giving an item to the party. Fixed selling of countable items. 2020-02-13 08:01:27 -08:00
Martin Haye
dd9690ad82 Multiple loot groups per enemy now fully implemented. 2020-02-13 06:58:23 -08:00
Martin Haye
562a1bf285 Finished the item-generation split refactor. 2020-01-22 09:44:18 -08:00
Martin Haye
691fc35c40 Refactored generated items into separate weapons/armor/misc modules, because the combined module has been very unwieldy for quite a while. 2020-01-22 09:10:25 -08:00
Martin Haye
1aebcb1fa9 Merge branch 'master' of github.com:badvision/lawless-legends 2020-01-02 10:45:15 -08:00
Martin Haye
f5ea5f01b1 Added emulator flag to signal story mode. 2020-01-02 10:44:58 -08:00
Brendan Robert
19c68edadb Updated Jace emulator to allow HD images as well as 800kb floppy images 2020-01-01 18:56:30 -06:00
Martin Haye
b73e1c53aa Fixed out-of-mem at end of combat caused by portrait blocking load of giant item table. 2019-12-28 11:43:12 -08:00
Martin Haye
41efac1db0 Combat now paying attention to group selection. 2019-12-19 09:38:14 -08:00
Martin Haye
386494b8db Progress on group selection in combat. 2019-12-04 10:12:43 -08:00
Martin Haye
2043deeb70 More progress on gang combat, plus other misc fixes. 2019-11-14 09:36:39 -08:00
Martin Haye
04495cf36e Moved tools into their own dir. 2019-11-14 06:42:08 -08:00
Martin Haye
cbf17851b3 Good progress on gang combat. 2019-11-07 12:01:46 -08:00
Martin Haye
12d02919ab Making progress on combat gangs. 2019-10-10 09:48:21 -07:00
Martin Haye
a2425e0751 Added a new 'promptAnyKey' block to save space and time. 2019-09-12 07:21:09 -07:00
Martin Haye
cda4387507 Added ability to reload weapon from inventory screen. Added auto-reload after combat. 2019-09-12 07:20:54 -07:00
Martin Haye
37af866d24 Fixed floppy version of story mode. 2019-08-08 09:45:01 -07:00
Martin Haye
f1fa25da1c Several fixes to quest display logic. 2019-08-08 08:03:57 -07:00
Martin Haye
b97c5f6d6a Remapped keys for quest log and map pos. 2019-08-01 08:11:42 -07:00
Martin Haye
bb4be7a173 Fixed decompression bug: min 'underlap' needs to be 5 instead of 3 - case brought on by gen_flags.b 2019-08-01 08:11:28 -07:00
Martin Haye
c13776bd8e numberGameFlags wasn't finding flags in subsequent blocks. 2019-07-22 15:38:27 -07:00
Martin Haye
4965f80b58 Bumped output 2mg size to 5 megs, since we just exceeded 800k. Translate dotdotdot character to dots. 2019-07-18 16:28:39 -05:00
Martin Haye
0f79aba535 Moved some more 3d-only stuff to util3d. 2019-07-16 13:03:40 -05:00
Martin Haye
377d7c21f4 Added (press any key) to story mode screens. 2019-07-16 13:03:31 -05:00
Martin Haye
ad6e72af67 Translate curly quotes to regular quotes. Complain about other non-ASCII chars. 2019-07-15 10:49:25 -07:00
Martin Haye
f2da9203e0 Forgot the new code. 2019-07-15 10:49:03 -07:00
Martin Haye
317fa2c890 Refactored some 3d-only code into a new module, to reduce the bloated size of gameloop. 2019-07-15 10:21:12 -07:00
Martin Haye
995907da95 Added null pointer checking to PLASMA runtime. 2019-07-15 10:20:27 -07:00
Martin Haye
c93418510e Implemented switchable move mode: default -> fast -> classic 2019-06-27 08:59:17 -07:00
Martin Haye
1efc0d3630 Fix portrait debug switching in god mode. 2019-06-20 08:41:47 -07:00
Martin Haye
706fec214b Take advantage of wider text wrapping for help mode and story mode. 2019-06-20 07:38:44 -07:00
Martin Haye
54bb6f453f Support text wrapping in wider windows (limit raised from 127 pix to 255 pix). 2019-06-20 07:38:32 -07:00
Martin Haye
68de768e39 Split out itemutils to save memory during store interactions (didn't need all the party stuff). 2019-06-14 09:45:15 -07:00
Martin Haye
63a6d7c3eb Blink cursor while story mode waits for a key. 2019-06-13 10:08:20 -07:00
Martin Haye
7f6d3752c0 Story mode fully working now. 2019-06-13 09:50:11 -07:00
Martin Haye
65ba8a454f Lots of additions and fixes for story mode. Mostly working now. 2019-06-13 08:52:54 -07:00
Martin Haye
4d80243d8f Check automap marks first thing when making game, in case using incompatible file. 2019-06-13 08:52:30 -07:00
Martin Haye
f7a166ed41 Another record mode fix. 2019-06-13 08:51:49 -07:00
Martin Haye
6c22417d4a More reliable checks for the destruction of 3D rasterizer's line table on aux zp. 2019-06-13 08:50:38 -07:00
Martin Haye
929d884e41 Better recording. 2019-05-02 09:24:19 -07:00
Martin Haye
79e3867a21 Playback of recordings now working. 2019-05-02 08:06:36 -07:00
Martin Haye
7a38fa534d First recording made. 2019-04-30 06:35:41 -07:00
Martin Haye
49ade7b345 Optimized rand16 2019-04-24 09:22:44 -07:00
Martin Haye
32021f42fa Replaced random number generator. Made good progress on record mode. 2019-04-24 06:33:18 -07:00
Martin Haye
ff6c08b9d7 Working on record mode (required refactoring buildString to save cswl/cswh) 2019-04-12 07:21:57 -07:00
Martin Haye
027d988171 Story loading now works. 2019-02-21 09:23:34 -08:00
Martin Haye
023c33218f Implemented scroll-lock mode in font engine, in support of story mode. 2019-01-24 09:51:56 -08:00
Martin Haye
0139adca30 Progress on story mode. 2019-01-24 08:52:02 -08:00
Martin Haye
63f40d60b5 Basics of storybook packing now operational. 2019-01-10 09:45:40 -08:00
Martin Haye
6455a56f30 Final sprint to get display of quest target coords (or nearest exit when applicable). 2019-01-07 11:38:57 -08:00
Martin Haye
046141958a Had forgotten to use gen_mapsizes to validate the disk marks on load. That's done now. 2018-11-20 08:29:19 -08:00
Martin Haye
a208b5b4a0 More work on quest log locations. 2018-11-20 06:54:52 -08:00
Martin Haye
e1bc8de7f6 Lots of progress making automap target work. 2018-11-15 09:00:20 -08:00
Martin Haye
44a3aadf86 Fix for proper reload after player death. 2018-09-29 10:10:25 -07:00
Martin Haye
bca78c5040 Merge branch 'master' of github.com:badvision/lawless-legends 2018-09-29 09:46:27 -07:00
Martin Haye
2b6edd912a Refactored enemies table to make it smaller and split it in half. It was getting too big for memory. 2018-09-29 09:46:19 -07:00
Brendan Robert
e7c702136c Reworking sound bits 2018-09-15 16:23:58 -05:00
Brendan Robert
1d793f640a Emulator updates 2018-09-15 16:23:32 -05:00
Martin Haye
30405be0c2 Some fixes to quest log. 2018-09-13 08:27:57 -07:00
Martin Haye
6375b8aad1 Generating full quest data, I think. 2018-08-30 09:16:18 -07:00
Martin Haye
27c335444f Added two new cross-references to pack_report.txt: (1) Flag use, (2) Script locations. Also, started actually checking quest sheet values. 2018-08-28 08:10:09 -07:00
Martin Haye
eb0e68e33c Not sure what all that allowZoneInit stuff was about, but we need to able to adjust encounter zones at any time. 2018-06-07 09:11:07 -07:00
Martin Haye
f35739aec9 Merge branch 'master' of github.com:badvision/lawless-legends 2018-05-31 10:37:47 -07:00
Martin Haye
95d4415449 Added teleport cross-reference. 2018-05-31 10:37:44 -07:00
Martin Haye
06a9600d7a Now clears automap marks when starting new game. 2018-05-31 08:33:25 -07:00
Martin Haye
2b0e13b105 Wording change per Seth's request. 2018-05-31 07:35:09 -07:00
Brendan Robert
aaa234e278 Tweak startup behavior to prevent deadlocks on startup 2018-05-16 00:40:40 -05:00
Brendan Robert
99e57454d5 Updated configuration to synchronize access to child nodes to prevent concurrent modification exceptions 2018-05-16 00:40:01 -05:00
Brendan Robert
0af41844ca Changed romLoaded to atomicBoolean 2018-05-16 00:37:56 -05:00
Brendan Robert
26ba3083ea Fixed playback thread handling as well as isRunning detection to fix stuck threads 2018-05-16 00:37:25 -05:00
Martin Haye
7f4c90ddcb Fix to leave global tileset in mem. 2018-05-15 13:17:52 -07:00
Martin Haye
3d348a2a5e Added capability to 'Use' any skill. 2018-05-14 07:35:52 -07:00
Martin Haye
4839168bbf Even simpler automap icons. Fix big string generation problem. 2018-05-12 07:58:27 -07:00
Martin Haye
80cf33d17b Fix crash when starting combat. 2018-05-10 08:07:19 -07:00
Martin Haye
cad2626221 Fixed name generation bug with plain items. 2018-05-10 07:40:06 -07:00
Martin Haye
66d95451c2 Keep automap icons simple - no dither processing. 2018-05-10 06:53:55 -07:00
Martin Haye
de9de7288c Fix to put automap marks even on blank squares (since they may need an automap-special icon for a script there). 2018-05-10 06:53:40 -07:00
Martin Haye
ba748eed52 Excellent progress on displaying map special icons. 2018-05-09 09:11:27 -07:00
Martin Haye
7ffc63db8e Making progress on display of automap specials. 2018-05-06 09:25:42 -07:00
Martin Haye
f49a34434d Generating mapSpecials table. 2018-05-03 08:38:35 -07:00
Martin Haye
54735f5317 Refined the resource index so that wilderness map really does fully function from any of the data disks. 2018-04-28 09:38:24 -07:00
Martin Haye
681faa7187 Made pack_report.txt more compact and clear. 2018-04-28 07:22:41 -07:00
Martin Haye
28b7a97add Deduplicated strings to make gen_enemies and gen_items smaller. Optimized load order in combat. 2018-04-27 09:23:24 -07:00
Martin Haye
7e06ed5da7 Updated memory map. 2018-04-27 08:15:47 -07:00
Martin Haye
52ad5e43c7 Changed memory manager allocation policy to best-fit. 2018-04-27 08:03:21 -07:00
Martin Haye
3f73ebaf17 Refactoring mem mgr scan loops. 2018-04-26 09:55:57 -07:00
Martin Haye
8ab58e2ad1 Moved expander down into aux 00.790 2018-04-26 09:19:33 -07:00
Martin Haye
96f6529823 Use new FIND_IN_MEM. 2018-04-25 08:58:20 -07:00
Martin Haye
a94bd71ef6 Removed some debug code. 2018-04-25 08:58:09 -07:00
Martin Haye
8a5a1e1a65 Modified ProRWTS to preserve scratchpad space in aux text screen area. 2018-04-25 08:57:47 -07:00
Martin Haye
d29ac7ffea Fixed bug causing NPCs to never be attacked in combat. 2018-04-20 10:10:18 -07:00
Martin Haye
80bc9c277c Refactored godmode so it's not occupying memory most of the time. 2018-04-20 09:21:52 -07:00
Martin Haye
c7dfbef4c6 Fix bug when move backward called twice. 2018-04-16 08:19:38 -07:00
Martin Haye
eb4701f0d4 Working on marks verification and clearing. 2018-04-16 08:19:30 -07:00
Martin Haye
b487223783 Generating map sizes for diskops checking. 2018-04-16 07:46:54 -07:00
Martin Haye
c1bca9e125 Fixed bug in automap mark merging. 2018-04-16 06:18:47 -07:00
Martin Haye
f4062d506a Lots of work on automap marks. 2018-04-16 05:35:40 -07:00
Martin Haye
df61fb6baa Fix pluralization, and pave the way for multiple enemy groups. 2018-04-16 05:35:25 -07:00
Martin Haye
1e9813ba2a Fixed bug where script module wasn't beeing freed when wandering (or teleporting) for a long time on the wilderness map. 2018-04-08 10:08:50 -07:00
Martin Haye
4964220863 Added proper automap mark flushing. 2018-04-08 07:46:53 -07:00
Martin Haye
3f77c7cade Unload textures at proper moments. 2018-04-08 07:46:26 -07:00
Martin Haye
2db272f368 Slightly better debug messaging. 2018-04-08 07:46:01 -07:00
Martin Haye
b2eef925d8 Fixed several mark storage bugs. 2018-04-08 07:32:46 -07:00
Martin Haye
0248c70646 Automap mark saving working for 3D maps. 2018-04-05 08:30:04 -07:00
Martin Haye
94f5ab3a7e Tested out mark queueing code. 2018-04-01 07:55:13 -07:00
Martin Haye
fa6454fdfb Now loading mark queue/flush code into proper RAM bank. 2018-03-30 09:54:39 -07:00
Martin Haye
6fae3b6ea8 More groundwork for automap mark cache/flush. 2018-03-29 10:12:22 -07:00
Martin Haye
322fc7b1ba No need for string workaround anymore -- yay\! 2018-03-28 16:42:42 -07:00
Martin Haye
1dbd41d79e Workaround for PLASMA string thing. 2018-03-28 16:36:52 -07:00
Martin Haye
add1c62f75 Fix for double-freeing. 2018-03-28 16:36:37 -07:00
Martin Haye
91d58fb584 Merge branch 'master' of github.com:badvision/lawless-legends 2018-03-28 16:21:35 -07:00
Martin Haye
5d71d911a4 Massaging load/unload with an eye to automap flushing. 2018-03-28 15:29:49 -07:00
Martin Haye
7350c47b89 Better fix for return-to-2d from automap. 2018-03-28 15:16:34 -07:00
Martin Haye
ba46785fec Fix return to 2D map from automap. 2018-03-28 14:48:43 -07:00
Martin Haye
6468c0fef1 I couldn't resist saving a few bytes. 2018-03-28 14:47:39 -07:00
David Schmenk
1528d5f7aa Always output ENTER/LEAVE for functions (no zero locals optimization) 2018-03-28 13:00:58 -07:00
David Schmenk
d6c870112c Revert "Fix for strings in non ENTER/LEAVE functions"
This reverts commit fb0ef9848b.
2018-03-28 12:57:58 -07:00
Martin Haye
433eaf3f47 Merge branch 'master' of github.com:badvision/lawless-legends 2018-03-27 11:21:17 -07:00
Martin Haye
420db30768 Automap scrolling optimization. 2018-03-27 10:43:51 -07:00
David Schmenk
fb0ef9848b Fix for strings in non ENTER/LEAVE functions 2018-03-27 10:31:28 -07:00
Martin Haye
580a5126c5 Fix for adding countable things to inventory. 2018-03-27 10:01:40 -07:00
Martin Haye
314355e2ff Speeding up automap display. 2018-03-27 10:01:03 -07:00
Martin Haye
8f3f60ede7 Some little optimizations for automap display. 2018-03-27 07:37:11 -07:00
Martin Haye
faa5270a0c Improved song conversion and playback. 2018-03-26 13:48:10 -07:00
Martin Haye
c819c30b34 Added scrolling code to automap, in preparation for making everything faster. 2018-03-26 13:48:00 -07:00
Brendan Robert
e52d4016dd Self-clocking mockingboard is no longer tied to the main emulator speed 2018-03-21 20:24:55 -05:00
Brendan Robert
e0bc6a797e Used synchronized types to avoid race conditions 2018-03-21 20:24:55 -05:00