aboutsummaryrefslogtreecommitdiff
path: root/saga/sthread.cpp
AgeCommit message (Collapse)Author
2005-08-26Allowed IHNM to use the opSpeak opcode. Aborting that code path early meantTorbjörn Andersson
that the instruction wasn't fully read, so the next opcode would be wrong. This is what caused it to crash. To keep the game from hanging, I also allowed the engine to call the _actors->direct() function for IHNM. This allows AM's intro speech to be played in its entirety. Since this includes the "hate" speech, I've removed that part from the hard-coded intro. To get the right music playing, I've enabled the sfPlayMusic() function for IHNM. This is pure guesswork, though. Once the scene changes, the wrong music plays again. However, this is scene music, i.e. not scripted. It doesn't play the background sound. Looks like _fxTable[] isn't generated for IHNM. More noticeably, until the scene changes it doesn't show any graphics apart from the subtitles, which are drawn in the wrong colour and (I believe) the wrong font. svn-id: r18712
2005-08-11More debug output for IHNMEugene Sandulenko
svn-id: r18656
2005-08-10More IHNM fixes. Now it tries to start Ellen part but crashes at invalidEugene Sandulenko
opcode because it tries to execute string data. svn-id: r18654
2005-08-10Rename Actor class members to _members.Eugene Sandulenko
svn-id: r18645
2005-08-10Implement part of chapter selection panel.Eugene Sandulenko
svn-id: r18643
2005-08-09o Fix some game parameters for IHNMEugene Sandulenko
o Load voices LUT for IHNM svn-id: r18640
2005-08-08oops. debug output slipped in.Eugene Sandulenko
svn-id: r18638
2005-08-08Fix bug #1252277 "ITE: Actions not performed under OS X"Eugene Sandulenko
svn-id: r18637
2005-08-07WIP on metaResources. Most resources are load. Now we start correctEugene Sandulenko
scene. But there are following problems: o Inclomplete support for actors speech, so opSpeak is skipped o For some weird reason actors do not appear at all. Actually code seems to be trying to read only protagonist frames o It crashes on reading sprites due to wrong input svn-id: r18624
2005-08-04fixed DUMMY resource in old mac cdAndrew Kurushin
fixed intro voice at endscene svn-id: r18616
2005-07-31Prevent infinite loop in executeThreads() for IHNM. I don't know if this isTorbjörn Andersson
the correct behaviour, but surely it's less evil now? svn-id: r18606
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-07-30Thread-related IHNM differences.Eugene Sandulenko
svn-id: r18602
2005-07-29WhitespacesEugene Sandulenko
svn-id: r18595
2005-07-24assign sf94 nameAndrew Kurushin
svn-id: r18579
2005-07-21More IHNM differencesEugene Sandulenko
svn-id: r18574
2005-07-21Partially implemented differences in IHNM script functions.Eugene Sandulenko
svn-id: r18573
2005-07-19Removed unused variable.Torbjörn Andersson
svn-id: r18564
2005-07-19finally Resource manager rewritten:Andrew Kurushin
-adds patch file support -global _vm removed cleanups svn-id: r18560
2005-06-19implemented sfGetNumberAndrew Kurushin
now use MagicHat (be carefull not to exceed overall scene number) svn-id: r18410
2005-06-15Don't access the thread after sfScriptGotoScene. As the comment points out,Torbjörn Andersson
the thread has been destroyed. This fixes a crash when leaving the ferret guild lodge, and probably other places as well. svn-id: r18399
2005-06-15some renamesAndrew Kurushin
svn-id: r18397
2005-06-13Fix crash on chasm.Eugene Sandulenko
svn-id: r18383
2005-05-12fixed interpreter bug (negative address offset - may crush system)Andrew Kurushin
implemented inventory save-load svn-id: r18071
2005-04-24fixed object frawingAndrew Kurushin
implemented sfGetObjImage, sfSetObjImage, sfSetObjName svn-id: r17789
2005-04-18converse support improved (still has some bugs)Andrew Kurushin
fixed: now protagonist can't be target object fixed: statusbar color added: *mouseButtonPressed in SagaEngine svn-id: r17672
2005-04-11Slightly more informative error message. (I get this if I try to speak toTorbjörn Andersson
one of the faire animals. I believe it's the one the original source code calls "FaireRam - 65", but I haven't verified that.) svn-id: r17544
2005-04-03-fixed interpreter bug: on opCall now pushes additional data for compatiblyAndrew Kurushin
ps:doors can be opened svn-id: r17350
2005-04-03- fixed tile doors drawingAndrew Kurushin
- right mouse action fixed svn-id: r17347
2005-03-29fixed gcc ISO C++ errorAndrew Kurushin
svn-id: r17287
2005-03-29endScene now aborts all running threads (fixing Okk stuckiness on way out of ↵Andrew Kurushin
tent) svn-id: r17286
2005-01-28Let IHNM run again. It has 105 script functions.Eugene Sandulenko
svn-id: r16653
2005-01-22- removed returning value from scriptFunctionsAndrew Kurushin
- implement some scriptFunctions svn-id: r16618
2005-01-22all opcodes revisitedAndrew Kurushin
all ITE opcodes supported (now we should go through scriptFunctions) svn-id: r16617
2005-01-22another 19 opcodesAndrew Kurushin
svn-id: r16616
2005-01-22rewritten 15 opcodesAndrew Kurushin
svn-id: r16615
2005-01-22Whitespace and indentation.Torbjörn Andersson
svn-id: r16614
2005-01-21some opcode fixes:Andrew Kurushin
opReturnV svn-id: r16609
2005-01-21Fix portabilityEugene Sandulenko
svn-id: r16608
2005-01-21now you can try to:Andrew Kurushin
- talk to someone - look at something svn-id: r16607
2005-01-21problems solved:Andrew Kurushin
- Allow more than one script work at once - Proper implementation of address methods some opcodes may be broken - cause work in progress todo: rewrite opcodes with new address functionality svn-id: r16604
2005-01-19o Made ITEColors enum public in interface.h. Please use them. These colorsEugene Sandulenko
stay in each scene except intro and fade-in/fade-outs. o Implemented status text coloring during work of auxiliary scripts. svn-id: r16598
2005-01-18- merged ActionMap and ObjectMapAndrew Kurushin
- remove ActionMap.h & ActionMap.cpp - ObjectMap names move to Scene::_sceneStrings as in original engine - fix wrong StringsTable::stringsCount calculation svn-id: r16592
2005-01-17First batch of converse implementation in scripts. To see it typeEugene Sandulenko
'scene_change 33' in debugger. svn-id: r16588
2005-01-16Some more untested opcode fixes. (By the way, I was wrong the other day:Torbjörn Andersson
The first IHNM script does not use random branching after all.) svn-id: r16573
2005-01-15some work in progress on verb stuff:Andrew Kurushin
- many structers and fields renamed to proper names - added missing functions svn-id: r16562
2005-01-14Fixed the "random branch" opcode, I hope. I haven't tested it. The firstTorbjörn Andersson
IHNM script seems to use it, but doesn't get that far because it terminates on an unknown script function. svn-id: r16558
2005-01-11- remove game.h & image.hAndrew Kurushin
- all display information of current game goes to SagaEngine - remove GameFontIds - hide SagaEngine _gameId,_gameType & etc with methods getGameId(), getGameType() svn-id: r16545
2005-01-08begining of verb implementationAndrew Kurushin
introduced getObjectName svn-id: r16491
2005-01-06Next batch of panel-related fixes. Still wrong.Eugene Sandulenko
NOTE: lines which start with `;' should contain calls to not yet implemented subsystems like Conversation subsystem svn-id: r16443