Jump to content
w35

[WIP][REL] RageShowMyLocation

Recommended Posts

This plugin for rage plugin hook 0.24 Alpha does the same as Lt.Caine's plugin for ScriptHookV, plus some my additions (see below).

Plugin uploaded in download section.

Link to file http://gta5.36.waw.pl/dls/RageShowMyLocation.dll - this is "nightly" test build

Link to my site's plugin directory : http://gta5.36.waw.pl/sdm_categories/plugins/

 

Edited by w35

Share this post


Link to post
Share on other sites

Features status :

- configurable text position (done),

- add colors for different road types (done),

- configurable font name and size (done),

- add information about speed limit at given road (done, basic functionality - distinguishes road types and location),

- add information about current time in game (done),

- add information about territorial belonging of current freeway/route/highway (Los Santos City, Los Santos County, Blaine County) using player coordinates + street name (done)

- show moving direction (done)

- show current player speed (done)

- update plugin for RPH 0.35 and new GTA 5 update (waiting for RPH update)

Fixes :

- filter rural roads without a name (in progress)

- fixed flickering of text in game window (DONE, as much as RPH permits)

- correct some streets location - (in progress, mostly done

- correct some speed limits - (in progress, partly done)

Future development :

- add better speed limit checking for each element of road, as much as RPH permits

- add truck speed limits for better traffic policing

- add GUI to set position of text and font size(done)

- separate each displayed information on screen position setting (done)

Edited by w35
development update

Share this post


Link to post
Share on other sites

For plugin developers :

This is example of use of two exposed by my plugin static methods, using reflection to dynamically load ma plugin after checking if user has it installed in GTA 5. Plugin doesn't need to be referenced in project properties this is only code which is needed to load it and use exposed functions 

GetCounty(String street)

GetSpeedLimitINTString street)

use this code (its example) to get speed limit for given street name :

namespace YourPLugin
{
    using System;
    using System.IO; // we're looking for file here so we need IO namespace
    using System.Reflection;
    // among other namespaces  from LSPDFR and RPH You should use reflection to load assembly and operate on its exported methods

    class Plugin
    {
        static int GetSpeedLimit(String streetname) // or other function
        {
            int speed_limit = 0; // initialise var
            string path = Directory.GetCurrentDirectory();
            path = path + "\\Plugins\\RageShowMyLocation.dll";
            if (File.Exists(path)) // there must be exact path this one is only for example
            {
                var DLL = Assembly.LoadFile(path); 
                var LocationDLLtype = DLL.GetType("RageShowMyLocation.RageShowMyLocationClass");
                var class_object = Activator.CreateInstance(LocationDLLtype, null);
                object[] param_street_name = new object[1];
                param_street_name[0] = streetname;
                string street_w_location = (string)LocationDLLtype.GetMethod("GetCounty").Invoke(class_object,param_street_name);
                object[] param_street_wloc = new object[1];
                param_street_wloc[0] = street_w_location;
                var speed_limit_untyped = LocationDLLtype.GetMethod("GetSpeedLimitINT").Invoke(class_object,param_street_wloc);
                speed_limit = (int)speed_limit_untyped;
            }
            return speed_limit;
            
                      
            
        }
    }
}

You have to provide proper class for Rage Plugin Hook yourself -  this is just example of how to use my plugin API  in Your code. This code also check if Rage Show My Location is installed by user.

Edited by w35

Share this post


Link to post
Share on other sites

New version (0.0.13.2010 BETA) available.

changelog :

– added option for metric / imperial units switching, speed limit is calculated according to scheme selected by user,

– added leading “0” of hour/ minute string lengths is only one digit ( 7:10 AM is now 07:10 AM, 12:7 is now 12:07)

– some minor code improvements

Share this post


Link to post
Share on other sites

how to use the mod ? i install but dont no how to trun it on 

Installation :

- Unpack archive file (7-zip),

- Copy file named "RageShowMyLocation.dll" and "RageShowMyLocation.ini" to Gta5/Plugins directory,

- Enable Plugin in Rage Plugin Hook Settings Window (accesible after holding Shift key when starting RPH 0.24), plugins tab

Share this post


Link to post
Share on other sites

Plugin will be updated soon to support newest version of Rage Plugin Hook - 0.28, as it has some significant changes. (done)

Also plugin has been updated to RPH 0.29.

Now I'm testing how plugin behaves with RPH 0.31 (afert plugin rebuild for RPH 0.31). Theres current dev snapshop at My site

Edited by w35

Share this post


Link to post
Share on other sites

After some conversation with authors of RPH flickering issue has been resolved. For others to know - adding event handler for FrameRender when drawing text on game screen is not the best idea if You want avoid flickering,  better is : RawFrameRender. The second differs from first, because the second one isn't queued for rendering.

Rest of information is on rageluginhook.net forums.

Edited by w35
got some good news from RPH creators

Share this post


Link to post
Share on other sites

When I downloaded the file (not on this page) I unpacked it and everything but when I open it " RageShowMyLocation.dll " is not there. How do I fix this? (Yes Im 100% sure it's not there)

Aviary Photo_131177634185062817.pngAviary Photo_131177635291999115.png

Edited by AnonymousFFO

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...