Jump to content

Paying $50 USD for a working and accurate version of GRT (Grid Reference Teleport)


Mals

Recommended Posts

  • Moderator

GRTeleport is no longer maintained.  The version I have runs but the locations are totally wrong.  I think I had a version someone fixed but accidentally updated and lost it. 😞

I am willing to pay $50 USD to whomever fixed it or replaces it with a similar plugin.  It is very useful and missed by admins and players.  A replacement would be even better, then you avoid any issues with the original author getting cranky, but I am not fussy here since my server is non-profit.

Thanks!

  • Like 1
Link to comment
Share on other sites

  • Administrator

Since the original file is unlicensed, I'm unable to send an edited version. However, I can share a snippet of code shared by MJSU sometime ago. It's not tested, so I'm unsure if this makes it any better. The real issue is how the zoom level of maps fluctuates, so accurately calculating grids is a bit touchy now of days.

private string GetGridPosition(Vector3 pos)
{
    const float gridCellSize = 146.3f;

    int maxGridSize = Mathf.FloorToInt(World.Size / gridCellSize) - 1;
    float halfWorldSize = World.Size / 2f;
    int xGrid = Mathf.Clamp(Mathf.FloorToInt((pos.x + halfWorldSize) / gridCellSize),0, maxGridSize);
    int zGrid = Mathf.Clamp(maxGridSize - Mathf.FloorToInt((pos.z + halfWorldSize) / gridCellSize),0, maxGridSize);
    
    string extraA = xGrid > 26 ? $"{(char) ('A' + (xGrid / 26 - 1))}" : string.Empty;
    return $"{extraA}{(char) ('A' + xGrid % 26)}{zGrid.ToString()}";
}

 

  • Love 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.4m

Downloads

Total number of downloads.

6.6k

Customers

Total customers served.

98.8k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.