Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

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


Recommended Posts

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 post
Share on other sites

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()}";
}

 

  • Thanks 1
Link to post
Share on other sites

Someone gave me the code fixes (the one above did not match my version of GRT.  Prize was paid.

Offer still stands for a recoded replacement.

Edited by Mals
Link to post
Share on other sites

I have paid out the reward to Steen as he provided a code and showed me a working example on Sunday.   Sorry @Nogard  

I am still curious what you came up with so would be glad to have a look.

Edited by Mals
Link to post
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
√ó
√ó
  • 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.