156 Commits

Author SHA1 Message Date
Max Horn
6762073acd perform y ciping for box polygons, too (avoids crashes)
svn-id: r8177
2003-05-31 14:24:06 +00:00
Max Horn
7b96eb0c2a fixed debugger command params bug
svn-id: r8176
2003-05-31 14:20:24 +00:00
Max Horn
b4ee5004d7 Patch #745022: More help in Debugger
svn-id: r8068
2003-05-28 22:27:38 +00:00
Max Horn
af2574c02d fixed o8_getStringWidth (should fix bug #741625)
svn-id: r8035
2003-05-27 15:33:38 +00:00
Max Horn
170444836c script index starts at 0
svn-id: r8021
2003-05-26 20:49:18 +00:00
Max Horn
b6a424a1df scumm vars are 32 bit, not 16
svn-id: r8020
2003-05-26 20:48:10 +00:00
Max Horn
9b9f457ba7 offset can be 5 digits
svn-id: r7984
2003-05-26 01:48:53 +00:00
Max Horn
c55a7e32da script numbers can have up to 5 digits
svn-id: r7982
2003-05-26 01:33:02 +00:00
Max Horn
0856fba592 output script offsets, too (very handy to debug script lockups)
svn-id: r7981
2003-05-26 01:32:02 +00:00
Max Horn
86d57f3c7a many pedantic warning fixes (and some actual potential buglets fixed, too)
svn-id: r7795
2003-05-21 18:09:49 +00:00
Max Horn
49e7f7564a renamed various things for clarity
svn-id: r7754
2003-05-20 20:58:26 +00:00
Max Horn
1a394aa3c7 added enum's for the known actor/object claasses; extended putClass/getClass to translate the X/Y flip classes; made code use the new enum's; some other cleanup
svn-id: r7753
2003-05-20 20:42:28 +00:00
Max Horn
18a6b5dcc1 renamed ScriptSlot::unk1/unk2 to freezeResistant/recursive
svn-id: r7688
2003-05-19 11:31:35 +00:00
Jamieson Christian
ac9a392a5b Fixed VC++ warnings
svn-id: r7652
2003-05-18 23:45:34 +00:00
Max Horn
988ec14c5f fixed debugger 'scripts' command
svn-id: r7644
2003-05-18 20:33:22 +00:00
Jamieson Christian
fcc11d19fa Added imuse_multimidi to debugger
svn-id: r7614
2003-05-17 19:03:25 +00:00
Jamieson Christian
319cbc1c8c Reset sounds on room load
svn-id: r7558
2003-05-16 00:19:30 +00:00
Max Horn
1da2ef8de3 always draw walkboxes into virtScreen 0
svn-id: r7504
2003-05-14 13:38:58 +00:00
Max Horn
4ab566af90 handle EOF (Ctrl-D) a little bit better
svn-id: r7492
2003-05-14 00:44:44 +00:00
Max Horn
395b11b26c added box drawing code from the old debugger to the new debugger (and cleaned it up + fixed it for rooms wider than one screen)
svn-id: r7491
2003-05-14 00:35:08 +00:00
Max Horn
f618744799 make it possible to use stdio for the debugger, instead of the console dialog (useful because the console is very narrow, which is annoying when using e.g. the 'box' command
svn-id: r7490
2003-05-13 23:56:30 +00:00
Max Horn
08f7ec192e NUM_ACTORS -> _numActors (for consistency)
svn-id: r7489
2003-05-13 23:42:41 +00:00
Max Horn
acb35fc915 renamed _scrWidth/_scrHeight -> _roomWidht/_roomHeight, and _realWidth/_realHeight -> _screenWidth/_screenHeight (inspired by MadMoose, but I'll take the blame - still this seems much more logical & intuitive)
svn-id: r7423
2003-05-10 21:49:59 +00:00
Max Horn
98881c3a6a init all VAR_* variables to 0xFF; replaced access to _vars in the form _vars[VAR_*] by VARS(VAR_*) which performs a validity checK; renamed _vars to _scummVars to make sure I updated all places; fixed two places where V6 and newer games would access V5 vars (but there are still some left, it seems); checked VAR access for now only generates a warning
svn-id: r7393
2003-05-08 15:48:50 +00:00
Chris Apers
f5caac359d Fix a bug with PalmOS
svn-id: r7368
2003-05-06 08:55:49 +00:00
Jonathan Gray
d12ff07ce2 patch #732518 loom learn drafts debugger command by erik
svn-id: r7342
2003-05-05 10:02:04 +00:00
Max Horn
975d325a92 Patch #731613: debugger tab-completion (thanks, Willem!)
svn-id: r7293
2003-05-03 21:49:19 +00:00
Max Horn
0cacf945f2 Patch #730309: DEBUGGER: Command to list Loom drafts
svn-id: r7233
2003-04-30 21:16:45 +00:00
Max Horn
e13e117976 pedantic checks
svn-id: r7177
2003-04-28 13:16:37 +00:00
Jonathan Gray
8137b70bdf close console after we run a script
svn-id: r7104
2003-04-25 13:13:16 +00:00
Jonathan Gray
3da2a09443 add importres and script starting functionality to the debugger
svn-id: r7100
2003-04-25 02:53:35 +00:00
Jonathan Gray
8fdcf48fc5 hmm
svn-id: r7083
2003-04-23 05:10:17 +00:00
Jonathan Gray
8d39d6ddb1 add script command to debugger and convert old printscripts function to new debugger
svn-id: r7082
2003-04-23 05:05:20 +00:00
James Brown
a8dfcb4eda Add somewhat hacky 'restart' command to debugger. Still needs work :)
svn-id: r7071
2003-04-22 04:40:30 +00:00
James Brown
79189f2e12 Dump Scumm error() to debugger
svn-id: r7033
2003-04-20 16:25:48 +00:00
Jonathan Gray
90dd401eab work around strange problem that breaks fbpack when _showStack is a bool...
svn-id: r7027
2003-04-20 14:28:25 +00:00
Jonathan Gray
f1353701f8 add stack tracing option to debugger
svn-id: r7025
2003-04-20 08:04:27 +00:00
Jonathan Gray
c597d0d4d6 add script hex dumping option to debugger
svn-id: r7024
2003-04-20 06:55:09 +00:00
Paweł Kołodziejski
aa3766018f updated copyrights headers
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
093428ae9a and more cleanup
svn-id: r6718
2003-03-06 17:58:13 +00:00
Jonathan Gray
3d75e1191d add commands to debugger, objects prints a table of local objects, object num pickup (room) will pickup an object, _currentRoom if no room specified, be warned this currently doesn't check the room is valid for the particular object number
svn-id: r6656
2003-03-02 07:50:49 +00:00
James Brown
a0b77e7389 LCA03 sync: Modified version of the untrap patch, debugger
savegame/loadgame changes, attempts at making the ComI save/load screen
(F1) work. The savegame part of the screen does not work due to a crash,
the load part SHOULD... but something resets the saveload flags before
they are processed (help! :)

svn-id: r6545
2003-01-26 06:17:25 +00:00
Paweł Kołodziejski
e7c81140ea fixed compilation under VC6
svn-id: r6502
2003-01-18 16:26:53 +00:00
Jonathan Gray
c982b4f00b add help command to debugger to list commands and vars, we should probably have a help string for each but this is much better than reading the code for now :)
svn-id: r6501
2003-01-18 16:04:28 +00:00
James Brown
97ff115e7d Fix shadowed variable in debugger, change bundle compression tables to be dynamic
svn-id: r6499
2003-01-18 15:54:38 +00:00
Jonathan Gray
d591eb77f7 add the view/set debug level command 'level' from the old debugger
svn-id: r6496
2003-01-18 14:51:06 +00:00
Jonathan Gray
0b4830e80a add bounds check for debugger costume switcher
svn-id: r6492
2003-01-18 11:23:02 +00:00
Jonathan Gray
41a5927a96 add ability to change actor costume via the debugger
svn-id: r6491
2003-01-18 10:38:32 +00:00
James Brown
08d34d17c0 Skeleton for actor debugger commands - current command is useful for states where actors in CMI get stuck with "I can't reach it"
type stuff. :)

svn-id: r6351
2003-01-07 09:46:51 +00:00
Max Horn
f167eafee6 added two debugger commands
svn-id: r6268
2002-12-30 01:27:33 +00:00