Results 1 to 17 of 17

Thread: RestoreAngle in Mime random event

  1. #1
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default RestoreAngle in Mime random event

    Hello.

    Just got the Mime random event, and noticed that it set my camera angle to the lowest
    Simba Code:
    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.

    Forum account issues? Please send me a PM

  2. #2
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Well if you can think of a way to get the current camera angle, go ahead..
    I made a new script, check it out!.

  3. #3
    Join Date
    Dec 2011
    Location
    Kosovo
    Posts
    831
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Yeah I think that too. Need to be as low as possible to solve better,.
    Goals:
    Understanding TPAs
    Making Proggy for fighting
    Getting on SRL members
    Get 500 posts

  4. #4
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Markus View Post
    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.

    Simba Code:
    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.
    Last edited by masterBB; 04-09-2012 at 10:13 AM.
    Working on: Tithe Farmer

  5. #5
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

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

  6. #6
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    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.
    Last edited by Coh3n; 04-09-2012 at 05:24 PM.

  7. #7
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    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?
    Working on: Tithe Farmer

  8. #8
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    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.

  9. #9
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    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:
    Last edited by Coh3n; 04-09-2012 at 10:00 PM.
    Working on: Tithe Farmer

  10. #10
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    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.

  11. #11
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    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?

    Quote Originally Posted by Coh3n View Post
    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.
    Working on: Tithe Farmer

  12. #12
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    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?

    Quote Originally Posted by masterBB View Post
    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.

  13. #13
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    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 . 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.
    Working on: Tithe Farmer

  14. #14
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    I missread your post. And you are confusing me again with this one . 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.

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

  15. #15
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by [J]ustin View Post
    Hello.

    Just got the Mime random event, and noticed that it set my camera angle to the lowest
    Simba Code:
    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.
    Simba Code:
    if FindNormalRandoms then SetAngle(WHATEVER);
    or you could check if a specific random happened, but i'm sure you know how to do that...

  16. #16
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    Simba Code:
    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.

    Forum account issues? Please send me a PM

  17. #17
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •