Results 1 to 3 of 3

Thread: Simba 1.2 issues

  1. #1
    Join Date
    Oct 2015
    Location
    Nowhere
    Posts
    134
    Mentioned
    2 Post(s)
    Quoted
    64 Post(s)

    Default Simba 1.2 issues

    I'm checking out simba 1.2 (rev 1206), and I'm wondering why I'm getting this error:

    Error: Variable expected

    Simba Code:
    function TBoxArray.getMiddle(): TPoint;
    var
      i : integer;
    begin
      result := self.getBounds().getMiddle(); //this line
    end;


    Changing to this fixes the issue, but the previous used to work. Just a bug due to unstable build?

    Simba Code:
    function TBoxArray.getMiddle(): TPoint;
    var
      i : integer;
      b:TBox;
    begin
      b := self.getBounds();
      result := b.getMiddle();
    end;

    I want to use srl-6 with simba 1.2, but I've been replacing code for awhile now, is there something I'm missing? So far I've replaced all instances if GetTickCount64 with GetTickCount, I've also replaced all Boolean variable identifiers that were named 'static' as that was an error too. Now, I'm having the issue that I'm posting about and don't want to change everything without actually needing to

  2. #2
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    For functions to be "chained" like that they have to have constref; added to them for reasons @nielsie95; will explain and there's a branch for simab 1.2 here
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  3. #3
    Join Date
    Oct 2015
    Location
    Nowhere
    Posts
    134
    Mentioned
    2 Post(s)
    Quoted
    64 Post(s)

    Default

    Thanks so much, I have barely used github and was unfamiliar with branches so didn't know to check there. Saved me so much work

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
  •