Everything posted by Albo1125
-
Traffic Policer (Breathalyzer, Traffic Offences, Speed Detection & more)
- 3,646 comments
- 306 reviews
-
Unit Testing
Something I've also taken a liking to is using lots of Game.LogTrivials in problematic parts so I can see exactly where it's going wrong. I also use the variable value printing LtFlash mentioned. Another nice thing you can do is copy the .pdb file of your assembly to the same folder in your GTAV directory. If an exception occurs, the pdb will tell you exactly in which class and which line of your code this happened. If you're used to unit testing I guess that could work too. Glad it's working now! :)
-
Unit Testing
I've never done this before personally - it's much easier to just run your code in the game,especially as you can test your code basically in real time. There's no need to reload the entire game every time. You can just reload the LSPDFR Plugin or any other Plugin you're using from the RPH console - you can replace the files while you're in game too. If you decide to do it this way, what might help you is renaming Ragepluginhooksdk.dll to RAGEPluginHook.dll as that's the name it'll look for.
-
Placing a vehicle at the side of the road
Absolutely. Doesn't take too much time to do it, you just need a good tool to use that provides output to copy paste into your code. I did try this however it's hardly as reliable as I hoped.
-
Placing a vehicle at the side of the road
There's no real reliable way. For my Traffic Stop backup locations, for example, I collected the Vector3s and headings myself.
-
Traffic Policer (Breathalyzer, Traffic Offences, Speed Detection & more)
There's always a message displayed with the reason it's not loading. Try solving that. If that doesn't work post your log please.
- 3,646 comments
- 306 reviews
-
Traffic Policer (Breathalyzer, Traffic Offences, Speed Detection & more)
This is a server issue. Try again later and if it doesn't work post in the support forums; it's outside my control unfortunately.
- 3,646 comments
- 306 reviews
-
Guide to using the LSPDFR API and Documentation
As per popular request, I've fully explained how to properly create LSPDFR API plugins and the entire thought process behind it. I've also included an example project that I will elaborately discuss in the PDF file, along with some development tips. There is also an entire appendix documenting the available LSPDFR API functions and their use. Enjoy! If you're new, I recommend following the PDF guide first and checking your results against the finished project afterwards for maximum effectiveness. Guide to using the LSPDFR API and Documentation - Albo1125.pdf Guide to using the LSPDFR API - Finished Project.rar Note: It should be self-explanatory but please don't re-upload my example plugin as your own. I've also created a video guide to supplement the above files. If you're looking for a guide to access my own APIs, like the Traffic Policer API, check this out:
-
Traffic Policer (Breathalyzer, Traffic Offences, Speed Detection & more)
- 3,646 comments
- 306 reviews
-
Traffic Stop Hazard
Traffic Policer actually does currently feature a 'NoSweat' option that improves this behaviour and works in the background. The best bet as of now is to Mimic them far enough - I'll see if I can get them to swerve around even better for a later update.
-
Stuttering with or without Traffic Policer
In this business, no news tends to be good news most of the time
- British Policing Script - Preview
-
Ambient Traffic Stops + Radio Chatter
I can confirm traffic related audio files do exist (think of my ANPR hit's 'Traffic Alert') and that there are various ones that could be used for something like this (e.g. the available 'Traffic Violation', 'Traffic Felony' etc.). I can simply cut & paste together audio files containing 'Traffic' and 'Stop' like I've done for various of my currently released modifications to create this. As ambient traffic stops very likely are not high on the LSPDFR devs' development list I'll probably add a nice implementation of this into Traffic Policer in due course
-
[REL][WIP] British Policing Script (New Traffic Stops, Persona, Vehicle Records & Court System)
British Policing Script - Enhanced Persona & Traffic Stops - New Callouts - Court System Download: British Policing Script is currently a work in progress. It is a script modification designed to give LSPDFR a slightly more British feeling. This is done by overhauling certain LSPDFR features, like the Persona looking up system and the Traffic Stop system, while retaining LSPDFR's basic controls (minimal extra keys required) and smoothness. Current features: Overhaul LSPDFR's persona system to improve it and give it a British flavour. Overhaul LSPDFR's Traffic Stop system to improve it and give it a British flavour. Add a magistrates' court simulation to receive details of your arrestees' sentencing. Add British styled callouts (currently Fail to stop, TWOC & ANPR Hits). Proper Breathalyzer. [Added to Traffic Policer] API for other developers to develop British callouts & events using British Policing Script's realistic databases etc. Any suggestions that I find appealing. Gallery of preview screenshots (subject to change): https://gyazo.com/collections/7af46fbe83f38babf8f554b5b032eb30 Videos: British Policing Script's currently released! If you'd like to get future early version access, check out the Loyalty Rewards Programme. British Policing Script is currently undergoing thorough testing. All Loyalty Rewards Programme participants have been invited to participate in this.Thank you to all the British modders ( @Double Doppler, @festivalmatt) and all others who have been a huge help in helping to make this modification a success! For those wanting a more international version of British Policing Script's features; Yes, I plan on releasing a plugin like this soon, along with some other features too
-
Measuring time lapsed during callouts
There you have it!
-
Measuring time lapsed during callouts
That's actually really smart, I used to just sleep a GameFiber but this is much more efficient For the OP: just to clarify the above pseudocode a bit: DateTime now = DateTime.Now; //when call is accepted //Wait until the player is at the location DateTime later = DateTime.Now; TimeSpan elapsedtime = later - now; int responsetime = (int)Math.Round(elapsedtime.TotalSeconds); Hope it helps
-
I guess this counts as Code 4? [Video]
LOL!
-
Discussion of spawn points (developer feedback requested)
If you want a spawnpoint on the nearest valid road, you can use this: World.GetNextPositionOnStreet(YourSpawnPoint); If you have the Vector3.Around extensions (https://github.com/LMSDev/LSPDFR-API/blob/master/Extensions/Vector3Extensions.cs) you can use this to get a spawnpoint roughly 200m from the player: World.GetNextPositionOnStreet(Game.LocalPlayer.Character.Around(200f)); A Vector3 will be returned and it's guaranteed to be on a GTA valid road. Hope this helps.
- Scripts&Plugins section error
-
Need Help adding CALLOUTS
Come off it mate...You read the readme file!
-
I Need Help Modders/Developers/Anyone
If you didn't create a backup or used a Mods folder, you'll have to reinstall the game. If that's the case, well, lesson learned. A modder/developer isn't really required to tell you this, though ^
-
Arrest Manager (Grab Peds, More Jail Points, Prisoner Transport & more)
It has to be in the folder. You don't need to set any Transport Regions if you don't want to though.
- 1,915 comments
- 242 reviews
-
Stuttering with or without Traffic Policer
Good to hear - I hope this latest fix has remedied most of the issues. Would love to hear from the rest of you what your results are on the latest TP update (possible tanks to all the info above )
-
Arrest Manager (Grab Peds, More Jail Points, Prisoner Transport & more)
Plugins/Plugins/LSPDFR? That's wrong. It should be in GTAV/Plugins/LSPDFR. If this doesn't solve it post your log and screenshots of your folders.
- 1,915 comments
- 242 reviews
-
Traffic Policer (Breathalyzer, Traffic Offences, Speed Detection & more)
- 3,646 comments
- 306 reviews