aboutsummaryrefslogtreecommitdiff
path: root/saga/sfuncs.cpp
AgeCommit message (Collapse)Author
2005-11-03-implement font substitution funcsAndrew Kurushin
-move puzzle data to itedata svn-id: r19411
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-10-17Fix bug #1326833 "ITE: Missing copy protection". Though it is disabledEugene Sandulenko
by default by kind permission from Wyrmkeep Entertainment Co. svn-id: r19125
2005-10-11This is an attempt to fix the actor frames in IHNM. It appears to be atTorbjörn Andersson
least partially successful. svn-id: r19025
2005-10-11Cleanups. Mostly whitespace.Torbjörn Andersson
svn-id: r19022
2005-10-11Fix portrait color. I just missed dependency from barometer.Eugene Sandulenko
svn-id: r19009
2005-10-09Now load actors only on demand. That lets select Nimdok (doctor) part. JustEugene Sandulenko
click on him and move mouse away quickly, so it will not try to get actor's name which is broken ATM. svn-id: r18984
2005-10-08_vm->getSceneHeight() --> _vm->_scene->getHeight() and make it return differentEugene Sandulenko
scene height for individual panel modes. svn-id: r18959
2005-10-07Draw acrtors (eriktorbjorn, rejoice).Eugene Sandulenko
It: o breaks intro, as now everything seems to be shifted. o Shows problem at our firt scene where there is no inventory drawn o Shows problem with our animation code, actor frames are wrong o Draws actors upside down and probably at wrong location o Due to incomplete implementation of whichObject() it crashes when you hover over characters. svn-id: r18952
2005-10-04IHNM changes:Eugene Sandulenko
o Latest bit of Game Object structure o Implemented spiritual barometer o Fixed Ethics points data type o Implemented sf74 and sf104 svn-id: r18933
2005-10-04I misunderstood sev on how sf75() should work. Perhaps this is better?Torbjörn Andersson
svn-id: r18932
2005-10-04Unstubbed sf75() as sfSetPortraitBgColor(), using information from sev. AnyTorbjörn Andersson
mistake is strictly my own, however. svn-id: r18931
2005-10-03Experimental IHNM fix: Since it looks like the intro doesn't clear theTorbjörn Andersson
cutaway explicitly, perhaps it's done implicitly by sfScriptGotoScene instead? svn-id: r18927
2005-09-29Fix fonts in intro. It is a very dirty code. Actually we should specifyEugene Sandulenko
font Ids in game settings. Also uhnm demo will definitely not work with current code as it has lesser number of fonts. svn-id: r18900
2005-09-29Remov obsolete commentEugene Sandulenko
svn-id: r18899
2005-09-28Cleaner code for sfWaitFramesEsc()Eugene Sandulenko
svn-id: r18895
2005-09-28Implement sfWaitFramesEsc()Eugene Sandulenko
svn-id: r18894
2005-09-28Some more IHNM-related stuff:Torbjörn Andersson
* Use the script-specified text area for subtitles, if there is one. * Fixed a word-wrapping bug that would happen if a new line began with a space. I don't know about ITE, but IHNM puts two spaces after periods. Of course, the case where I saw this happen will probably go away once we start using the right font, but it could still happen elsewhere. svn-id: r18890
2005-09-26Implemented some trivial IHNM opcodes. I'm not sure if the _ethicsPoints[]Torbjörn Andersson
array is large enough though. These opcodes modify what I assume to be the game state, so that information needs to be stored in the savegames. Not for ITE, though, so savegame compatibility is not broken by this. (Not deliberately, at least.) svn-id: r18885
2005-09-25Give more names to IHNM script functions.Eugene Sandulenko
svn-id: r18879
2005-09-24The IHNM intro animations run now, albeit in a slightly buggy fashion:Torbjörn Andersson
The intro runs a whole series of animations. Each of these use animation slot 0, like the original. Currently this means we leak a bit of memory for each new animation. More noticeably, we have no way of cancelling outstanding animation events, so unless the animations finish on their own - as some of them do - the events will just pile up, causing the animations to run faster and faster. I don't know if implementing the remaining cutaway opcodes will fix this automagically, or if we need to re-think our approach... svn-id: r18878
2005-09-24Some more preliminary cutaway work. The backgrounds are displayed now, butTorbjörn Andersson
not the animations themselves. Still, it's enough to make the IHNM intro look fairly interesting. svn-id: r18874
2005-09-21WhitespaceTorbjörn Andersson
svn-id: r18854
2005-08-30The intro asks to play song number 0. I'm almost sure that the music thatTorbjörn Andersson
is supposed to play at this point has resource number 32. _songTable[0] contains the value 32 at this point, so song 0 is probably a valid music request, and not a request to stop the music. At the other end of the list, I believe the song number has to be *less* than _songTableLen, not less or equal to it. But feel free to revert this change if I'm messing things up. svn-id: r18719
2005-08-30Implement sfPlayMusic for IHNMEugene Sandulenko
svn-id: r18717
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-16fix 1258781 & 1253993 bugsAndrew Kurushin
(difficulties of leaving scenes) svn-id: r18698
2005-08-11More debug output for IHNMEugene Sandulenko
svn-id: r18656
2005-08-10Improved debug output on stub script functions.Eugene Sandulenko
Impelmented sfSetSpeechBox, though it is not yet functional. svn-id: r18651
2005-08-10Rename event types to comply with our standards.Eugene Sandulenko
svn-id: r18647
2005-08-10Rename Actor class members to _members.Eugene Sandulenko
svn-id: r18645
2005-08-10EVENT -> EventEugene Sandulenko
svn-id: r18644
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-07-29WhitespacesEugene Sandulenko
svn-id: r18595
2005-07-29Show scene substitute image for demo versions of ITE.Eugene Sandulenko
svn-id: r18589
2005-07-25More IHNM differencesEugene Sandulenko
svn-id: r18582
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-19finally Resource manager rewritten:Andrew Kurushin
-adds patch file support -global _vm removed cleanups svn-id: r18560
2005-07-15Added the puzzle voices from the CD version. I don't know if this breaksTorbjörn Andersson
the floppy version, and it's still not flawless. But it's a start. svn-id: r18544
2005-07-14font & text related changes:Andrew Kurushin
-rewritten font loading -actors box text output implemented -many fixes -implemented nonactors textoutput svn-id: r18542
2005-07-09gfx rearangementAndrew Kurushin
code cleanups svn-id: r18523
2005-07-09remove 1pixel dos clippingAndrew Kurushin
svn-id: r18521
2005-07-08implemented per scene actors clippingAndrew Kurushin
so last sequence should look much better (not perfect) svn-id: r18516
2005-07-06Fixed stopping sounds. I think that at one point our 'param' used to beTorbjörn Andersson
unsigned, but it isn't any more. svn-id: r18504
2005-07-05Hid most of debug output to deeper levels. We're pretty close to officialEugene Sandulenko
launch so it should be invisible to users. svn-id: r18497
2005-07-03Implementation of sfShowMap. This was latest unimplemented script function :)Eugene Sandulenko
svn-id: r18487
2005-07-01implemented sfPickClimbOutPos, sfTossRifAndrew Kurushin
Komodo dragon now works svn-id: r18480
2005-06-25fix animation timings (now Shiala scene not stucks)Andrew Kurushin
svn-id: r18463