Results 1 to 8 of 8

Thread: ChangeWorld misses selected world

  1. #1
    Join Date
    Apr 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ChangeWorld misses selected world

    After the update as of minutes ago, a few servers have been added. As a result, the Smart8 pointer ends up in between 2 worlds, at least on mine, and ends up canceling changing. I tried altering the array to match the new server list, but it still lingers in between. Where do I fix this?


    New Array:
    Code:
     worldarray :=
        [301,319,341,361,+
         302,320,342,362,+
         303,321,343,365,+
         304,322,344,366,+
         305,325,345,367,+
         306,326,346,368,+
         308,327,349,369,+
         309,328,350,370,+
         310,329,351,373,+
         311,330,352,374,+
         312,333,353,375,+
         313,334,354,376,+
         314,335,357,377,+
         316,336,358,378,+
         317,337,359,+
         318,338,360];
    Untitled.png
    Last edited by Soundzombie; 05-09-2013 at 03:32 PM. Reason: Attached Image

  2. #2
    Join Date
    Apr 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry to double post, but I'm assuming it's somewhere in one of these functions:

    [CODE](*
    WorldIndexToMSPoint
    ~~~~~~~~~~~~~~~~~~~

    .. code-block:: pascal

    function WorldIndexToMSPoint(Index: Integer): TPoint;

    Converts the World Index (spot in World) to a Mainscreen TPoint of the Index. (Top Left)

    .. note::

    Author: Ashaman88

    Example:

    .. code-block:: pascal

    msPoint := WorldIndexToMSPoint(index);
    *)
    function WorldIndexToMSPoint(Index: Integer): TPoint;
    begin
    Index := Index ;
    Result := Point(200 + (Index mod 4) * 94, 86 + Floor(Index div 4) * 24);
    end;

    (*
    WorldIndexToMSBox
    ~~~~~~~~~~~~~~~~~

    .. code-block:: pascal

    function WorldIndexToMSBox(Ind: Integer): TBox;

    Converts the World Index (spot in World) to a Mainscreen TBox of the Index.

    .. note::

    Author: Ashaman88

    Example:

    .. code-block:: pascal

    msBox := WorldIndexToMSBox(index);
    *)
    function WorldIndexToMSBox(Index: Integer): TBox;
    var
    P: TPoint;
    begin
    P := WorldIndexToMSPoint(Index);
    Result.X1 := P.X;
    Result.Y1 := P.Y;
    Result.X2 := Result.X1 + 83;
    Result.Y2 := Result.Y1 + 18;
    end; {CODE]

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

    Default

    Calling me out I see. Yeah it needs to be updated. I'll take a look tonight if someone hasn't updated by then

  4. #4
    Join Date
    Apr 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Not calling anyone out sir. Haha I totally understand that this is purely volunteer work. I just don't understand the scrit enough to fix it myself.

  5. #5
    Join Date
    Mar 2013
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    (*
    WorldIndexToMSPoint
    ~~~~~~~~~~~~~~~~~~~

    .. code-block:: pascal

    function WorldIndexToMSPoint(Index: Integer): TPoint;

    Converts the World Index (spot in World) to a Mainscreen TPoint of the Index. (Top Left)

    .. note::

    Author: Ashaman88

    Example:

    .. code-block:: pascal

    msPoint := WorldIndexToMSPoint(index);
    *)
    function WorldIndexToMSPoint(Index: Integer): TPoint;
    begin
    Index := Index ;
    Result := Point(200 + (Index mod 4) * 94, 74 + Floor(Index div 4) * 24);
    end;

    (*
    WorldIndexToMSBox
    ~~~~~~~~~~~~~~~~~

    .. code-block:: pascal

    function WorldIndexToMSBox(Ind: Integer): TBox;

    Converts the World Index (spot in World) to a Mainscreen TBox of the Index.

    .. note::

    Author: Ashaman88

    Example:

    .. code-block:: pascal

    msBox := WorldIndexToMSBox(index);
    *)
    function WorldIndexToMSBox(Index: Integer): TBox;
    var
    P: TPoint;
    begin
    P := WorldIndexToMSPoint(Index);
    Result.X1 := P.X;
    Result.Y1 := P.Y;
    Result.X2 := Result.X1 + 83;
    Result.Y2 := Result.Y1 + 22;
    end;
    this works nicely for me, still not flawless though, as sometimes it will try to switch to the f2p and bug out.

    And i changed the arrays aswell

  6. #6
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Ashaman88 View Post
    Calling me out I see. Yeah it needs to be updated. I'll take a look tonight if someone hasn't updated by then
    Sorry to pester, but is there an official fix for this yet?

    Cheers

  7. #7
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    http://villavu.com/forum/project.php?issueid=98

    EDIT: To make it work, open worldswitcher.simba, search for that worldarray, replace it (two times). Then replace the WorldIndexToMSPoint function and save.
    Last edited by Shatterhand; 05-13-2013 at 10:12 PM.

  8. #8
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Shatterhand View Post
    http://villavu.com/forum/project.php?issueid=98

    EDIT: To make it work, open worldswitcher.simba, search for that worldarray, replace it (two times). Then replace the WorldIndexToMSPoint function and save.
    Ah nice one mate thanks Just about to give it a try.

    Edit: Works, thanks
    Last edited by CoDFan819; 05-17-2013 at 01:35 PM.

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
  •