Cyron43
-
Posts
199 -
Joined
-
Last visited
-
Days Won
1
Content Type
Forums
Gallery
Downloads
Tutorials
News Stories
Wiki
Community Guidelines
LSPDFR BOLO Series
GTA5 Native Database
GTA5 Native Parameters
Release Highlights
LSPDFR Mod Showcase
LML User Contributions
Posts posted by Cyron43
-
-
@LMS: .Net Reflector has become a commercial product (which one needs to pay for). I recommend ILSpy which does the same and looks the same but it's completely free.
As for "coding" in general: I suggest anyone who is truly interested in it should buy a good book about it. Learning software development is way too much stuff to put in a forum thread.
Also the MSDN Library is THE place to go for every serious .net developer as it explains each and every part of the .net framework, including example code.BTW: Personally I don't like the term "coding" or "coder". The latter is almost a swear word among professionals! Coders know nothing about software architecture. Ever heard of design patterns?

-
I prefer either a tuned airtug or a caddy.

-
The release candidate is up. I'm currently writing the guide and then it's done.
https://bitbucket.org/rainerhilmer/bikepatrol/downloads
EDIT
I have just uploaded V1.0.0. Once approved it will be available here:
'?do=embed' frameborder='0' data-embedContent>>
Or you can download it as well from my repository (see link above).
-
Sorry OutCAst, your request cannot be fulfilled because there is a concurrency issue with LCPDFR. My mod tells the partner to get on his bike and LCPDFR tells him to join on the player's bike. As long as the LCPDFR API provides no option to temporarily release the control over the partner I see no way to ever get this fixed.

-
Well that sure can be done. The question, however, is what others think of it. Do they prefer your way or do they rather want their partner to be on the backseat? I could make it right for everyone by providing a configuration file where one can set which one of the two options they want but my initial idea was that BikePatrol becomes an "install and forget" mod. Maybe we get some more feedback from others before I make a final decision. Shall we do that?
EDIT: Oh and while we are waiting: What bike should the partner ride? Always the police bike or the same as the player? I'd prefer the latter option.
EDIT 2: Done some thinking on that. I guess you are right. Having two cops on one bike just doesn't look right. I will make it so the partner gets the same type of bike spawned for him. Okay?
That solves the "problem" of getting a police bike in GTA IV right away with it. "Zwei Fliegen mit einer Klappe geschlagen" how we say in Germany.
-
Hello OutCAst, I need to have a look at how much has to be changed of the code for that. Currently it's designed to place your partner on a bike each time you are in a vehicle with no passenger seat free (so it also works if you drive a forklift or any vehicle with all passenger seats occupied by bodyguards).
@Phil: Thanks I will do that. :)
About the mod you have used: I don't know this one. Is it safe to use? I'm asking because if not, other users will blame me for recommending it. I guess it's okay when I tell something like "...can be used with GTA IV in case you migrated the police bike from TBOGT". I think most users would do that with OpenIV anyway.
-
One problem solved, the next shows up. It's always the same with software development. The biggest problem currently is concurrent handling of the partner, that means a fight between LCPDFR and my mod in certain situations. You can see this after any cop mission where the partner was involved in any way. He just stands there even though my mod orders him onto his bike.Good news: All bugs in the list are fixed. To do: more testing, some more polishing of the driving behavior and the guide.

There's a new test build in my repo (see link above). What still needs to be done can be seen on the issue tracker page.
-
Hello Lt Phill Bellic,
thank you for the kind words and for letting me know about this possibility. I will mention that in the guide together with your name (if you like, just tell me).
I know about that "on and off" glitch but as this is a minor issue I will deal with that later. However I forgot to create an issue ticket for it. So thanks for reminding me.
BTW guys, I'm testing this mod to the extreme. Yesterday I did some wide jumps. It's hilarious to see two cops flying on their bikes.
EDIT: Phill, I need the following information from you for the guide. How exactly did you implement the bike from TBOGT in GTA IV?
-
Hello OutCAst, thank you very much. :)
-
@CriminalKillaz: Okay you asked for it. *fg*
You can download the current state of work here:
https://bitbucket.org/rainerhilmer/bikepatrol/downloads
IMPORTANT! The mod has been renamed to BikePatrol.net.dll and you MUST delete the PolicePartnerOnBike.net.dll!
This is no official release yet but still work in progress. It's pretty stable already and the driving behavior is optimized. However it still suffers from some nasty little imps bugging me.
You are welcome to give me feedback and it would be most helpful for me if you don't post your issues here but file an issue ticket instead in the issue tracker of that project:
https://bitbucket.org/rainerhilmer/bikepatrol/issues?status=new&status=open
Please make sure there is not a ticket that describes your issue already before you open a new one.
Thank you :)
-
I'm taking a break from it today. I was working on it like a maniac the last to days. Or was it even 3? I have forgotten. Anyway I just wanna letcha guys know. ;)
-
Thanks for mentioning that behavior. I forgot to tell that the simple native trainer conflicts with this mod under certain configurations. I will add that to the guide.
- Make sure you always use "Spawn Ped" and NOT "Spawn bodyguard". The latter one leads to unwanted behavior anyway when you are on duty as a cop.
- Also you must disable the "Follow as driver" option in the Bodyguard/Ped spawn menu of the simple native trainer. Most likely that's the reason for what you saw the partner doing.
EDIT: I found the partner enters a different vehicle anyway under certain conditions. I'm looking for a solution.
-
Thanks.

The instance shouldn't be a big deal I guess.
The injected functionality could probably be achieved by a delegate as parameter for smaller things like lambdas or an interface injection for whole classes but that's just a spontaneous idea. I don't know about the bowels of the API.
EDIT: Sorry if I said stupid things. I had a programming overdose yesterday.
-
What the...??? The police bike is a single-seater! Is that a modded police bike? o_Oif I order the police ped to follow me (lcpdfr) he sits behind me on the bike<
What you describe does NOT work with the original one.
Also please make sure you select "Policeman" at the Bodyguard/Ped spawn menu, "Select Model" line. I haven't tested other models yet.
I wish some other people would come here and tell about their experiences so I get a comparison.
Anyway I suggest you wait a little longer. I'm making good progress. The driving behavior is optimized, breaking bugs are eliminated, the partner switches the siren according to the player (see picture below).
It has become late here in Germany but I expect to release the first full version of my BikePatrol mod in the next days along with a detailed guide and a demo video on YouTube.

-
Well there should be a ScriptHookDotNet.dll in your Scripts folder. If not then that explains why nothing happens.
Do you see a folder called "for Developers" inside the scripts folder? Open that, then open the bin folder inside and you should find the ScriptHookDotNet.dll. Copy it to the scripts folder please and try again.
-
What happens, nothing at all or do you get a crash message?
You do have the ScriptHookDotNet.dll installed, right?
EDIT: I got rid of the nastiest bug which prolly caused the mod to crash right at the start.
I have also removed the reference to the Donex.dll. You can safely delete that file now from the scripts folder if you download the zip again.
-
Hi OutCAst, sorry for the inconvenience but I just found out there's a reference to a Donex.dll which was missing in the Zip. I have uploaded a new zip right now which contains the Donex.dll. I need this for debug logging. Just install it along. It does not phone home, promised, but I can't actually provide a mod version without it because the code for debug logging is all over the place. Just remove the Donex.dll along with the mod when you don't want to use it anymore.
-
Hello LCPDFR developers, it would be great if the LCPDFR API would provide us with the actual partner instance. I could use this in my BikePatrol mod to clearly distinguish him from any other cops around. Currently the closest cop is assumed to be the partner but that's probably not a 100% sure way.
I can also imagine mods which inject additional behavior/commands to the partner.
-
There is no use in saving your game after playing lcpdfr anyway, seeing as it doesn't actually change anythnig to the game.
That as I don't use crime statistics.
-
I made a proof of concept. Further information and download here:The mod has been released now. You can find it here: '?do=embed' frameborder='0' data-embedContent>>
-
So here it is, my proof of concept. You can find the download at the bottom of this post. This is NOT an LCPDFR plugin, so install it in the Script folder just as any other .net mod.
(How can I resize pictures here?)

POLICE PARTNER ON BIKE
----------------------
Hi there,
what you got here is not a real mod yet but just a so called "proof of concept".
Please do not install this dll if you expect something which runs flawless and fun.
I made this because some GTA IV players requested a mod which enables your police partner to go on bike patrol with you.
Some people think that's not possible but here you go. :)
A "Proof of concept" showcases the feasibility of an idea for a software solution and is a very very early version of a software product.
Does it work? Yes but expect a lot of bugs and glitches.
WHAT NEEDS TO BE DONE
---------------------
- Optimize the driving behavior of your partner.
- Eliminate the bugs
- Remove debug messages
HOW TO USE
----------
Please follow these instructions to get a first glimpse of what you will get in the future:
- Place Luis (TBOGT only) anywhere on a pavement or a street. (1)
- Spawn a police bike for you.
- Spawn a cop ped with the simple native trainer. (2) (3)
- Sit on your bike.
The next thing that should happen is that another police bike is automatically being spawned.
Now go on a ride. Your partner will sit on that other bike and follow you all along. (4) (5)
When you want to stop and get off your bike he will do the same after he approached near you.
You see there is no special keystroke or configuration involved with this. The intention of this mod is to "install and forget". It just ought to work as if it never has been any different.
LEGAL INSTRUCTIONS
-----------------
Please respect my work by not copying it and claiming it as your own somewhere else. This includes the code.
WHERE TO REPORT BUGS
--------------------
Nowhere yet. This is indeed a proof of concept and the code is not fully fleshed out yet. I know of the bugs already. :)
FOOT NOTES
----------
(1): The partner bike will most likely not spawn if there is no street or pavement nearby (i.e. if you are on the big parking lot at Northwood).
(2): Please use "Spawn Ped" but not "Spawn bodyguard". The latter one has a different behavior which probably leads to unexpected results.
(3): You can also make him your partner if you wish (Activate LCPDFR, aim at him with a pistol and press G).
(4): At the moment your partner enters the bike you will see the first glitch. He enters, gets off the bike, enters and so on. Just drive 20 meters or so away and you will see he will begin to drive also.
(5): As I already said, the driving behavior needs optimization. At the current project state your partner just attempts to drive with 50Mph and he may probably crash into you if you drive much slower than this. On the other hand he will fall way behind if you drive any faster than 50Mph.
- OutCAst and DivineHustle
-
2
-
For anyone interested in the progress: You can watch what currently happens by visiting my project repository. The description (right there on the main page) has a section "current project status".
https://bitbucket.org/rainerhilmer/policepartneronbike -
Oh my god!

And those comments on YouTube... I thought I read "FAKE" all over the place but what I found there is almost as disturbing as the real footage itself. *shakes head in despair*
-
Thank you OutCAst.

I know that mod as I have it in my plugins folder.
Well honestly there's an unwritten law among developers that forbids to just copy&paste code from others. In case it's claimed as on copyright anyway but it's also a matter of honor. I have the ambition to develop the code on my own. I hope you understand.

.png.fdab16d62ab8306ef34cec59284f4b12.png.9d5e6cf9427ad028178843acb6c725cb.png)








Patrol bike in pairs
in Suggestions & Requests
Posted
I have updated the guide. Besides eliminating some typos I added a Q/A in the FAQ section about what to do in case your partner gets stuck somewhere with his bike.