zefklop Posted November 4, 2007 Share Posted November 4, 2007 I found a bug which is quite obvious when you play BG2 and gemrb side by side. When you start a new game, all animation are played 2 or 3 times. It seems that it affects only animations created by CreateVisualEffect*. So I tried to debug it, and it appears that I don't quite understand how time is handled in gemRB. So I have one or two questions : what is AI_UPDATE_TIME ? from what I understand, every 1/AI_UPDATE_TIME seconds, scripts are updated. How is it related to framerate ? (is it even related ?) Link to comment
Avenger Posted November 4, 2007 Share Posted November 4, 2007 There is a PLAY_ONCE flag which should take care of this, even with shorter animation sequences. Link to comment
zefklop Posted November 4, 2007 Author Share Posted November 4, 2007 AH ? didn't find it.... BTW, why are not gamescript functions defined as in iesdp ? I mean, all functions in gemrb have myfunction(scriptable* sender, action* target) as prototype. For example, why not DisplayStringHead( strref* string, scriptable* target) , where "target" is the character to display "string" over his head ? Link to comment
Avenger Posted November 4, 2007 Share Posted November 4, 2007 Because the prototype is common, but the parameters are variable, even for the same action/trigger. It is easier to pass a single pointer than several variables. All of the parameters are in the parameters object. They are loaded straight from the .bcs The sender (the entity which runs the script) is different. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.