SRL Archive - SRL Bugs

RestoreAngle in Mime random event


Justin

2012-04-09 05:24:22

Hello.

Just got the Mime random event, and noticed that it set my camera angle to the lowest
  clickNorth(SRL_ANGLE_LOW); // REQUIRED. Data was gathered at this angle

That's find and all but would there be a chance that we are able to make it so the Random event gets the current camera angle and height and then after the random event is solved it would restore the camera angle and height?

Please let me know if you need any more details.

Markus

2012-04-09 05:25:31

Well if you can think of a way to get the current camera angle, go ahead..

begginer

2012-04-09 05:53:00

Yeah I think that too. Need to be as low as possible to solve better,.

masterBB

2012-04-09 06:07:01

From: Markus
Well if you can think of a way to get the current camera angle, go ahead..


That would be a lot of work. And quite unneeded. If you use lape I recommend to overload all the camera angle set functions and make them store there parameters in a variable. Then you can make your own anti random function that overrides the old one where you will set it back to the previous angle.

var 
LastAngle:Integer;

procedure SetAngle(angle:Integer,remember:Boolean); overload;
begin
if remember then
LastAngle := angle;
setAngle(angle);
end;

function FindNormalRandoms:Boolean; override;
begin
Result := inherited;
SetAngle(LastAngle);
end;

Typed in browser, not sure about mistakes.

Ashaman88

2012-04-09 08:04:20

I always just do if findnormalrandoms then setanglewhateverineedformyscript…little tedious but it works

Coh3n

2012-04-09 13:21:10

I really don't know how you'd go about getting the camera angle, but the compass can be reset to what it was when the random was found, and the camera angle can be set to low or high, but nothing in between.

E: This could be added to _FindAllRandoms so the angle/compass is reset no matter which random is found.

masterBB

2012-04-09 15:05:19

From: Coh3n
I really don't know how you'd go about getting the camera angle, but the compass can be reset to what it was when the random was found, and the camera angle can be set to low or high, but nothing in between.

E: This could be added to _FindAllRandoms so the angle/compass is reset no matter which random is found.


With reset you mean high and north?

Coh3n

2012-04-09 17:16:29

From: masterBB
With reset you mean high and north?
Yeah. Only problem with that is the script being run may need the camera at low.

At the very least, the compass angle can be set back to the original angle. I don't think it would be a big deal if the angle was set to high, though, since as far as I know, the majority of scripts are set like that anyway.

masterBB

2012-04-09 17:34:27

From: Coh3n
Yeah. Only problem with that is the script being run may need the camera at low.

At the very least, the compass angle can be set back to the original angle. I don't think it would be a big deal if the angle was set to high, though, since as far as I know, the majority of scripts are set like that anyway.


Then I would prefer this 'fix' not to be added to the srl include. The code I posted above would stop this problem without modifications to the srl include and is very easy to implement by the users who have trouble with this issue. Setting it too high cause that is what the majority of the scripts need is just a inhuman punch in the face for scripts that do need it. Setting the angle to high immediately followed by turning it to low isn't human at all.

edit, wanted to post the adds I just saw on this thread:

Coh3n

2012-04-09 18:00:20

From: masterBB
Then I would prefer this 'fix' not to be added to the srl include. The code I posted above would stop this problem without modifications to the srl include and is very easy to implement by the users who have trouble with this issue. Setting it too high cause that is what the majority of the scripts need is just a inhuman punch in the face for scripts that do need it. Setting the angle to high immediately followed by turning it to low isn't human at all.

edit, wanted to post the adds I just saw on this thread:
I agree on the camera angle, but I do think the compass angle reset can be added. Also, that code you posted won't work until SRL has switched to Lape.

And I don't understand why you posted that ad.

masterBB

2012-04-09 18:07:21

From: Coh3n
I agree on the camera angle, but I do think the compass angle reset can be added. Also, that code you posted won't work until SRL has switched to Lape.


No but if one would just add a 2 in the name instead of an override/overload it would work. If you add it to srl, could it be choice? So it isn't the default option and can be turned on?

From: Coh3n
And I don't understand why you posted that ad.


I agree it was offtopic. I just noticed the only adds I get on villavu today seems to be dating adds or marriage with foreign woman adds. I think that is odd.

Coh3n

2012-04-09 18:15:00

From: masterBB
No but if one would just add a 2 in the name instead of an override/overload it would work. If you add it to srl, could it be choice? So it isn't the default option and can be turned on?
Why? Wouldn't you want the camera angle to be the same as when the random was detected?

From: masterBB

I agree it was offtopic. I just noticed the only adds I get on villavu today seems to be dating adds or marriage with foreign woman adds. I think that is odd.
Oh. :p

masterBB

2012-04-09 18:19:46

From: Coh3n
Why? Wouldn't you want the camera angle to be the same as when the random was detected?


I missread your post. And you are confusing me again with this one :p . There is no reason to not set the compass angle back, but setting the camera angle at high is not wanted behavior in my opinion.

Coh3n

2012-04-09 18:46:48

From: masterBB
I missread your post. And you are confusing me again with this one :p . There is no reason to not set the compass angle back, but setting the camera angle at high is not wanted behavior in my opinion.
Yes, I agree. :p

Sorry for confusing you, but we're on the same page.

footballjds

2012-04-09 18:54:50

From: [J]ustin
Hello.

Just got the Mime random event, and noticed that it set my camera angle to the lowest
  clickNorth(SRL_ANGLE_LOW); // REQUIRED. Data was gathered at this angle

That's find and all but would there be a chance that we are able to make it so the Random event gets the current camera angle and height and then after the random event is solved it would restore the camera angle and height?

Please let me know if you need any more details.


if FindNormalRandoms then SetAngle(WHATEVER);
or you could check if a specific random happened, but i'm sure you know how to do that…

Justin

2012-04-13 04:04:33

From: footballjds
if FindNormalRandoms then SetAngle(WHATEVER);
or you could check if a specific random happened, but i'm sure you know how to do that…


Yeah, I understand it was a huge ask to restore the camera angle as I have realised it would be extremely hard to get the original camera angle without reading the actual game code. Feel free to close this topic.

Coh3n

2012-04-13 21:01:24

I've added the resetting of the compass angle to the latest version.