Person Transport Service

by Cyron43
Please explain why you're reporting this file:

Cancel
 
V6.1.2
MAJOR ISSUE FIXED
- All locations of a transportation type different from the current one got deleted when a location was marked as visited. I'm very sorry for this.

V6.1.1
CHANGES: Too many to list here. Please read the change log in the guide.

V6.0.1
- Fixed a rare bug that could occur when a location was marked as visited.
- Changed the customer pickup distance from 5 to 10.

V6.0
IMPORTANT!
You MUST overwrite the PTSConfig.xml and the PTSLocations.xml with the new versions provided with this download!

Changes:
- Visited locations are now recorded. The reason: Even with the new and advanced random
generator it happens that some locations are picked more than others. In order to get the most
diversity, each location where you either pick up or deliver a customer gets a "visited" flag. So
you will visit each location only once. When the time has come where each location has been
visited they all get reset to "not visited" but you can also do this reset with a new hotkey (see
Keyboard quick reference, "Reset visited locations"). These flags are persisted in the
PTSLocations.xml file. So the next time you fire up the PTS you will continue just with the
locations you haven't visited yet.
- Fixed a bug where the mod crashed in case you changed the JobDelayMax value in the
PTSConfig.xml to 0 (zero). This bug was introduced with the last PTS version with the new
random number generator.

V5.1.1
- Location blips are now displayed in their full amount when in a boat or a helicopter.
- Increased stability in case of a script engine failure.

PTS V5.0.3
Fixed a bug where the mod crashed on saving a new location under certain circumstances.

PTS V5.0.2
Fixed a bug where the wrong transport mission type was chosen when the player waited outside of the vehicle for his next job.
Fixed some errors in the guide which made their way in because of some flaws in the HTML designer of Visual Studio 2012.

PTS V5.0.1
Fixed a small bug where the mod probably crashed due to a premature destruction (caused by the game) of the Ped object at the time where the customer left the vehicle at the target spot.

PTS V5.0.0 is available.
CHANGES:
You can now choose between being a limo/taxi service, a helicopter service or a water taxi. Each service category comes with it's own locations.
IMPORTANT: the structure of PtsLocations.xml has been expanded. So you MUST overwrite this file with the new one provided with this download! Further information in the guide.

PTS V4.2.1 is available.
BUG FIX: Another attempt to increase the stability on ped spawning.

PTS V4.2.0 is available.
CHANGES: Modified the path to the configuration file. It's not Documents/GTA IV/ModSettings/PTS anymore but Documents/GTA IV/ModSettings now. This has changed for all of my mods. So now you have all config files in a single folder now (ModSettings). Please read the guide for further installation instructions.

PTS 4.1.8 is available for download.

BUG FIXES
- switching to HQ-mode was messed up in case HQLessByDefault was set to true in the config.

------------------------------

I decided to post the latest updates here because I think not many people bother to scroll the comments all the way down.

------------------------------

With this mod you can let your player character work as a person transport driver. You can use any vehicle you like. Want to drive your customers with an airtug, faggio or even a bus? No problem! :-)
You need HazardX's .net scripthook in order to run this mod
(http://www.gtaforums.com/index.php?
s=e763ad4f847114996cc56b618e1d64c9&showtopic=392325&st=0)

------------------------------

FYI: If anyone wants a taxi mod (someone drives YOU) go have a look at my Havoc! mod over here:
http://www.gta4-mods.com/script/havoc-f22844
Rating:
8.80/10 - 25 votes
Downloads: 5,629
Added: May 14, 2013 4:56PM
Last Downloaded: September 1, 2014 3:44PM
File Size: 529.13 KB
» Author Website

Sorry, you must be registered and logged in to add a video to this file. Log in now!

Everything else is explained in all detail in the PDF file which is included in the zip.

This mod is highly configurable and comes along with (currently) 260 locations. You can add more locations yourself with just pressing a key.
Posted on May 14, 2013 4:59PM by Cyron43
not running error in script:ı have latest scripthoks??
Posted on May 15, 2013 3:01AM by Primexfd Dot
cyron help meeeeeeeeeeeeee
Posted on May 15, 2013 4:26AM by Primexfd Dot
To make the script work, you first need to

1 - create a folder called "GTA IV" and another folder Called "ModSettings".

2 - Copy the folder in the archive to the "ModSettings" folder.

3 - Then put the "ModSettings" folder inside the "GTA IV" folder.

4 - Move the "GTA IV" folder to your Document folder or user document folder.

5 - Copy the .dll file from the archive to the scripts folder in gta4 installation directory.

6 - activate script by alt+L
Posted on May 15, 2013 5:06AM by yoshiko
BEST MOD EVER. Totally better than any taxi mod. Nice work Cyron43. Works Flawlessly and thanks for that PDF explanation. I Really like how the mod is not so restricted, in that you can choose what car to drive and set locations parameters. I will report any bug or improvement as I run some more tests.
Posted on May 15, 2013 5:38AM by yoshiko
Hello guys,

thanks for the feedback and the great rating. :-)

For all people who have problems running this mod: Please read the guide which is included in the zip. Every installation step is explained in all detail there. You need the latest scripthook which can be downloaded from the link I posted in the description.
Posted on May 15, 2013 6:31AM by Cyron43
FAQ addition:

Q: Why do we have to create that folder structure Documents\GTA IV\ModSettings\LimoService for the XML files?

This has three reasons.

1. Since Windows Vista the programs folder (and all of it's subfolders need special access rights (UAC) which makes the handling and editing somewhat cumbersome.

2. By choosing this structure I had future mods in mind. So Documents\GTA IV\ModSettings can be a central data repository for all mods.

3. Every user on a PC can define his own configurations and locations.
Posted on May 15, 2013 6:39AM by Cyron43
ok thanks coming a video :D
Posted on May 15, 2013 6:40AM by Primexfd Dot
Found a minor glitch: The first checkpoint (which is the first customer pickup location) is not being rendered. I'm going to look into this today.

Furthermore I plan to change the customer ped model. My idea is as follows: The mod will create a random ped with each job. In case you want a specific model you can give a model name in the <CustomerModel> node (which is not yet implemented).

What do you guys think?
Posted on May 15, 2013 6:43AM by Cyron43
I think that's a great idea, because cloning isn't mainstream yet. :p

Great script! I like the customization options so far.
Posted on May 15, 2013 7:54AM by cornflakes4u
I really like this script! :D And that you can actually change what car you are driving is just epic :P
Posted on May 15, 2013 8:46AM by Carrythxd
lol i think i'm going to work as a driver using the shopping cart as my vehicle :P
Posted on May 15, 2013 10:39AM by Driver097
The mod has been updated to V2.1.0.35489.

Bugfixes:

- First checkpoint was not rendered.

- Customer did not enter the vehicle if injured

New feature: Customers are now generated from random models. In case of a defined person type (other than "customer") the model is taken from a list of predefined models in order to prevent getting a punk, hooter and such as a doctor (or any other defined person type; see guide for further information).

IMPORTANT NOTE: You MUST also update the LimoServiceConfig.xml with the one provided in the new download because this new file has an additional CustomerModel node.
Posted on May 15, 2013 2:12PM by Cyron43
@Carrythxd: Hey thanks for the video. Great support here. :-)
Posted on May 15, 2013 2:58PM by Cyron43
Stupid me! I messed up "tag" with "node" in the guide.

Corrected
Posted on May 16, 2013 6:41AM by Cyron43
Found a nasty problem: It seems long location names make the game crash. Sorry but that's not the fault of my mod but due to bad game coding. I will implement string shortening as a workaround. The result will be a truncated name which maybe looks ugly but at least the game will keep running.

As long as the new version is not available I recommend to make locations names not longer than 30-40 characters (including whitespaces). I don't know exactly what string length causes a crash. I just had one with a length of 43 characters (one of the ropeway stations).
Posted on May 16, 2013 8:56AM by Cyron43
Mod updated to V2.1.1.37225.

Bugfix: Location names are truncated to 30 characters now in order to prevent the game from crashing. The street name is also truncated in case that is taken due to no given location name (but no changes to the XML are made).

I have tested this thoroughly and I had no crashes anymore.

@Admin: I am sorry for the inconvenience. I sincerely hope this was the last update in a long time.
Posted on May 16, 2013 2:57PM by Cyron43
Hey Cyron43, the updated mod is still buggy. It crash after about 5 deliveries when I use my "added cars, not replaced cars" to do deliveries. It seems to work fine with the default car.

And could you fix the display "100$" to "$100". And it would be nice if we could get more money for the drop offs.

I like the new random customer. Nice work.
Posted on May 17, 2013 6:24AM by yoshiko
Hi yoshiko,

I have never tested the mod with third party cars as I don't have any installed. Does the whole game crash or just the mod? In case of the latter, is there any way you can give me more details about the crash? What messages appear in the console window? The exception type and the first method of the list would be enough. I don't need the whole callstack.

I will change the place of the dollar sign today and I will also make the amount of money earned user configurable.

Thanks for the feedback. :-)
Posted on May 17, 2013 7:30AM by Cyron43
Ok Cyron43, I spend the last 3 hours testing this mod and here is what I have.

1 - The type of car you use to drive doesn't matter. Added, Default or Replaced.

2 - The mod itself crashes when there seems to be a pedestrian nearby when you try to pick up a customer. AND The customer don't spawn when a pedestrian is standing in the pickup zone and the mod crashes.

3 - Sometimes it crashes on your first pickup but most of the time it crashes on your third to forth customer. I can never seems to get pass 5 or more customer in a row.

I will post the console error in a few minutes.
Posted on May 17, 2013 8:53AM by yoshiko
Ok here it is.

Error in script LimoService.core <-- (shows up in white font on screen) and then the pickup zone disappear and the blue dot remains on the radar.

In the Console here is what I got.

Error during Tick in script 'LimoService.Core':

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> GTA.NonExistingObjectException: Invalid call to an object that doesn't exist anymore!

at GTA.Ped.get_Model()

at LimoService.JobElements.RandomCustomerModelIfModelIsUndefined()

at LimoService.JobElements.CreateCustomer()

at LimoService.JobElements.CustomerPickup()

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

at System.Delegate.DynamicInvokeImpl(Object[] args)

at LimoService.StateBroker.RunJob(ServiceState state)

at LimoService.Core.OnTick(Object sender, EventArgs e)

at GTA.Script.TryTick()

at GTA.Script.DoTick()

at GTA.ScriptThread.OnTick()

I hope I didn't provide you with the whole callstack :) I'm not a programmer so I don't know what's important or not.

Posted on May 17, 2013 9:22AM by yoshiko
Thanks for the report.

I have also faced this bug today and I can tell you it's another glitch in the game code or the scripthook. Sometimes peds don't get spawned even though the game is instructed to. I fixed it with the upcoming upload (in the next few minutes) with a recursive call until the customer gets spawned.

BTW that was the whole call stack but it was good you posted it.

See, the error happened in GTA.Ped.get_Model() which is a Method of the scripthook. That Method is called by LimoService.JobElements.RandomCustomerModelIfModelIsUndefined() which is part of my mod.
Posted on May 17, 2013 2:50PM by Cyron43
New version V2.2.0.36855 uploaded.

Bugfixes:

- Sometimes a random customer didn't appear and made the mod crash (see yoshiko's and my post above).

- In case the customer left the vehicle because of bad driving it wasn't recognized anymore.

- Mod didn't recognize it if the vehicle was destroyed.

- Dollar sign is now displayed in front of the amount.

New features:

- Income and fine can now be configured by the user (new tags added in the LimoServiceConfig.xml)

- In case your vehicle gets destroyed in any of the job states, you get a new one at the HQ.
Posted on May 17, 2013 4:59PM by Cyron43
NIceeee. I will run some tests now. Thanks for the little explanation of how scripts work.
Posted on May 18, 2013 2:13AM by yoshiko
Huh? Where is my post. Okay again (this is for all players).

IMPORTANT NOTE: With this new update you MUST also overwrite the LimoServiceConfig.xml with the new one as it contains some new tags!

@Yoshiko: Spawning error when there is already a pedestrian at the location. That could explain why the game doesn't spawn. If this issue is still due I will have to clear out the area of peds before spawning. Thanks for letting me know. :-)
Posted on May 18, 2013 8:59AM by Cyron43
Oh and something else to keep track of: I mentioned the recursive call for customer spawning. This is no good coding and a workaround but due to insufficient possibilities provided by either the game or the scripthook there is no other way. It might end up in a long or even endless loop. So if you face the game suddenly hangs for seconds or even completely stops responding in the customer pickup state it's because of that. Please let me know if you face this. I'm also going to run more tests now.

If such an error occurs I need to implement a timout, discard the current job and create a new one. :-/
Posted on May 18, 2013 9:06AM by Cyron43
9/10 nice
Posted on May 18, 2013 1:05PM by jeremax50
V2.2.1.36977 is now up.

Bugfixes:

- Customer sometimes didn't enter the vehicle due to a bug in the game code. The customer now has 20 seconds to get into the vehicle. Otherwise the job gets aborted (Message "Customer had second thoughts") and you get another job.

- As for random peds the defined peds from the static model list also didn't spawn sometimes for the same reason.

Dude, the customer pickup state was nasty! It took me a whole day to fix it.
Posted on May 18, 2013 2:52PM by Cyron43
LOL now you can even kick out the customer if you don't like him. I just did it with the fat biker. xD
Posted on May 18, 2013 5:19PM by Cyron43
hahah you updated the script already?

Ok This is what I got for version V2.2.0.36855.

Small chance of freezes with no error when you try to pick up a customer.

a) Sometimes customer spawn with immortality but dont get into car and the blue dot remains on radar and the script freezes.

b) If the Customer DO NOT spawn, The blue pickup zone remains visible and blue dot remain on radar.

script has a VERY HIGH probability to freeze without no error

when:

1 - car is destroy and you get a new one.

2 - when customer is killed or they leave because of bad driving.

When any of the two criteria happen and you try to pick up a customer,

they spawn but won't get into the car and they suddenly became immortal. Or they do not spawn at all.

When the script freezes, the blue pickup zone remains visible and the blue dot remains on radar

but nothing happens. IF customer spawn, they remain stationary and if you try to kill them they won't die.

The script no longer recognize a defined customer model within the xml file

My suggestions:

1 - Clean up unecessary codes/lines the script no longer use.

2 - Terminate the script automatically when car is destroy or when customer leave car because of bad driving.

I will reduce the number of location within the xml file by half to see if the problem lies there.
Posted on May 18, 2013 10:47PM by yoshiko
I'm on to version 2.2.1.36977 now.
Posted on May 18, 2013 10:50PM by yoshiko
Well its very unfortunate but this new version 2.2.1.36977 is much worst than the previous version V2.2.0.36855.

In version 2.2.1.36977. Script crashes 100% of the time within the first two pickups. In version V2.2.0.36855, pickup and drop off was very stable. I didn't get errors or crashes 90% of the time provided I didn't destroy vehicle or kill customer. Yes that's 1 error/crashes in every 10 straight pickups and drop off.

Below is the error log:

Error during Tick in script 'LimoService.Core':

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> GTA.NonExistingObjectException: Invalid call to an object that doesn't exist anymore!

at GTA.Ped.get_Model()

at LimoService.JobElements.RandomCustomerModelIfModelIsUndefined()

at LimoService.JobElements.CreateCustomer()

at LimoService.JobElements.CustomerPickup()

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

at System.Delegate.DynamicInvokeImpl(Object[] args)

at LimoService.StateBroker.RunJob(ServiceState state)

at LimoService.Core.OnTick(Object sender, EventArgs e)

at GTA.Script.TryTick()

at GTA.Script.DoTick()

at GTA.ScriptThread.OnTick()
Posted on May 18, 2013 11:27PM by yoshiko
New build 2.2.1.24517 is up.

Due to recent debugging sessions, which have been a real pita, I had totally forgotten to implement the defined customer model from the XML. I'm sorry for this.

About your other issues: I just ran 14 jobs in a row.

2 customers had second thoughts because I touched them with the car. As expected I got a new job after each of these accidents.

1 customer was frozen (game bug, not of my mod). After waiting the 20 seconds I got another job.

10 other jobs also worked like a charm.

After picking up the 14th customer I blew up the car with the customer in it with a sticky bomb and everything worked as expected. I got a fine because I killed the customer, I got a new car and a new job.

So I can't reproduce your issues.

Oh and on a sidenote: I don't produce unnecessary code. I can't stand unnecessary code as I am a member of the clean code developer community (yes they really exist. Just google for it).
Posted on May 19, 2013 2:39PM by Cyron43
Request: There should be a version of this mod where you can call your own limo to pick you up! Like roman's tazi, except it's a limo
Posted on May 19, 2013 7:50PM by ModxSwagg
Thats good to know Cyron43, Didn't know the clean code community exist but that's good that they exist.

Anyway I will give the new build a test and get back to you.

:)
Posted on May 19, 2013 10:30PM by yoshiko
Excellent Work Cyron43. This build is the most stable of them all. There is still some rare crashes but I don't think there is anything else you can do. This mod definitely came a long way since the first release. Just out of curiosity, how long does it take to develop something like this from scratch?

rated: 10/10
Posted on May 19, 2013 11:57PM by yoshiko
Just one little thing I would like to suggest.

In the location xml file in your documents, you might want to change the coordinates for the UNO Building because when a customer spawn, you get 4 stars wanted.

Change to the coordinates listed below if you don't want the whole LCPD battalion on your A$$

<TargetName>UNO building</TargetName>

<X>131.272751</X>

<Y>398.369873</Y>

<Z>15.1779861</Z>
Posted on May 20, 2013 12:32AM by yoshiko
Hi Yoshiko,

thanks for your feedback. :)

I just had a look at the project history. It started at the 8th of april. If you are interested in the process you can take a look here: https://bitbucket.org/rainerhilmer/limoservice/commits/all/10ec2563a8fa

Thanks for the information about the UNO building. I didn't recognize this problem because I play "never wanted" (simple trainer). I am going to change the location but I don't make another upload just because of it. The good thing is that everybody can change the coordinates on his own with ease. :)

@ModxSwagg: Sorry but that's a feature which is completely different from this mod's intention. Maybe I will create another mod.
Posted on May 20, 2013 6:52AM by Cyron43
Wow I just saw my mod has been featured now!

Thanks a lot to whoever did that and thanks a lot to Yoshiko for his great support in developing this mod. It wouldn't be like this without your help. *Hugs*
Posted on May 20, 2013 7:14AM by Cyron43
Error in Script LimoService.core:

"successfully started script 'LimoService.LocationCapture'

successfully started script 'LimoService.JobElements'

Error in constructor of script 'LimoService.Core'

System.ArgumentException: fullOrRelativePath is invalid at GTA.ScriptThread.LoaderScriptNow()"
Posted on May 20, 2013 11:33AM by vici30
@vici30: Please make sure you copied the LimoService folder with the two XML files to the right path.

It must be in Documents\GTA IV\ModSettings so you end up with this location for the XML files:

Documents\GTA IV\ModSettings\LimoService

Inside the LimoService folder you should see two XML files, namely LimoServiceConfig.xml and LimoServiceLocations.xml
Posted on May 20, 2013 11:42AM by Cyron43
I have EFLC (TBoGT) and My Documents has a Rocsktar Games folder..

My path looks like this:

Documents/Rockstar Games/TBoGT/ModSettings/LimoService

I also have a LocationRules.txt file in there.

So yeah, that's that, still not working.
Posted on May 20, 2013 11:52AM by vici30
No not the Rockstar Games folder!

Go to the Documents folder and create a folder GTA IV there.

Then enter that GTA IV folder and create a ModSettings folder in it.

Then copy the LimoService folder inside the ModSettings folder.

BTW you don't need the LocationRules.txt. That's not used by the mod but just a little user help for opening hours and days
Posted on May 20, 2013 1:38PM by Cyron43
Thanks, it worked!
Posted on May 21, 2013 8:01AM by vici30
Minor update

No changes to the mod.

I created the whole folder structure for the XML files for better user convenience.

Now just copy the GTA IV folder (which is inside the zip file) to your Documents folder.
Posted on May 21, 2013 12:30PM by Cyron43
This mod is great but I cant't seem to use any other vehicles besides the limo. if I turn up nothing happens. but if I use the limo they appear and get in.
Posted on May 21, 2013 3:33PM by Camelot55
Sorry but I don't quite understand you (language barrier maybe?). what do you mean with "if I turn up"? Turn up what?

Can you tell me in more detail what you did?

Make sure the the SpawnBodyguard tag is set correctly. You can't have a bodyguard in a 2-seater vehicle because there's no place left for the customer! So set it to false in this case. Some vehicles look as if they are 4-seaters but they are not (like the voodoo). Don't count the seats you see but the doors. 2-seaters have only one door at each side.

That should work as you are the first of 639 user who reports this issue. No one else seems to have that problem, neither Yoshiko nor me.
Posted on May 21, 2013 5:23PM by Cyron43
If I turn up to a job (to pick someone up) in any other car apart from the limo then nothing happens. am I doing something wrong?
Posted on May 21, 2013 6:25PM by Camelot55


1. Did you read the second part of my reply to you (about 2-seaters and bodyguards)?

2. What are your JobDelayMin and JobDelayMax settings? For instance, if you have set JobDelayMax to 5 and you play in real time than it means you have to wait up to 5 real time minutes before you get your next job order.

3. Make sure JobDelayMin is not greater than JobDelayMax.

4. In case you have the simple trainer installed make sure "Freeze time" is disabled. The same goes for any other mod or cheat that freezes time. My transport service needs a running clock!

4. Please read the manual. I didn't have a two days of work on it just for fun. ;)
Posted on May 21, 2013 7:26PM by Cyron43
Hi Camelot55, make sure you type in the correct name for the vehicle in the xml file you want to drive. The name must match the name inside the "vehicle.ide" file. And Make sure you download this mod and not the other mod that has the limo as the ONLY car to drive.

The other mod is called "Luxury Transport Driver"

This mod is called "Person Transport Service"
Posted on May 21, 2013 10:19PM by yoshiko
I downloaded this Mod. I dragged and dropped the limoservice.net into my script folder. Where do I put the mod settings? I red the readme but im still confused.
Posted on May 22, 2013 6:29AM by Camelot55
You see this GTA IV folder in the zip file? Just drag that into your documents folder and you end up with this folder path:

c:\Users\YourUserNameHere\Documents\GTA IV

The xml files (LimoServiceConfig.xml and LimoServiceLocations.xml) should already be at their respective place inside the LimoService folder, which is inside the ModSettings folder, which is inside the GTA IV folder.

So the complete path to the xml files is

c:\Users\YourUserNameHere\Documents\GTA IV\ModSettings\LimoService

but that should have been established automatically through dropping the GTA IV folder into the documents folder.
Posted on May 22, 2013 7:07AM by Cyron43
You're aware of all the bugs being reported so I won't mention them. I'm making this post to make a suggestion that could help alleviate the annoyances that come from it.

You would be wise to include a function to "force duty". The way it is now, the script bugs out every 3-4 jobs or so. I can reload the script, but then I have to go back to southern Algonquin to get on duty again. I must switch my car as well. It's important you thus:

1) Allow us to force duty so we can head to a new job from where we are.

2) Allow us to use any car we are in or any car we spawn.

3) If "2" is impossible, then have the transport vehicle teleported to the player.

I understand "2" might be impossible to implement, but "1" should be a cakewalk. I also know this isn't "realistic", but when dealing with this many bugs, the realism really just turns to frustration.

The last thing I want to mention is the job distanced. I am using this script while using the snow mod. That makes travel times much longer. By the time I arrive at most jobs, the customer has already changed his mind. Is this based on the "business hours" found in LocationRules? If not, is there some other way to change this so they change their mind less often?

Thanks for taking the time to read, and good work.
Posted on May 23, 2013 2:20AM by MarkC9
MarkkC9, did you install the latest update V2.2.1.24517? It's stable, Yoshiko and me tested it thoroughly. I tried 14 jobs in a row and everything worked like a charm. I even tried some hard situations like exploding the vehicle with the customer in it and even that worked.
Posted on May 23, 2013 4:10AM by Cyron43
the script is amazing, however i got a crash usually after the 2nd or 3rd customer only when i go to map mode to check the customer location, at the first customer everything is working like a charm .

game version 1.0.1.0

Posted on May 23, 2013 4:43AM by Deve
I just found a bug with the location map. It worked flawlessly until I saved the 269th location. Then toggling the location map on and changing to map mode makes the game crash.

Sorry but the map mode is crap coded and has already made problems in the past when I wanted to show the location IDs.

I am working on a solution. I'm planning to only show location blips at the actual surrounding of the player position (diameter? I don't know yet).

As long as there is no new update, I recommend to either

- don't use the location map (don't press ctrl+B)

- or don't have more than 268 locations. I guess this amount also depends on Blips shown by other mods (e.g. police station blips of the LCPDFR mod, the business mod or the Big city life mod). The more blips there are on the map the more unstable it seems to get.

Please don't count on an update today. I had to get up very early and I'm too tired to think straight right now.
Posted on May 23, 2013 8:23AM by Cyron43
I'm experiencing same issues as MC9. Snow mod too.

The snow mod may be throwing it off. I've been using the newest script, but the folders from the older mod. I updated them now though.

- I'm also encountering a bug where the vehicle keeps spawning frozen. I can enter it but I cannot drive it, even the doors don't actually happen, I just kinda step through them LOL. I reload the script but the same thing happens. I can spawn cars normally in SNT though.

I also run a boatload of other scripts so may be something is conflicting, I tend to have to "reloadscripts" quite often for this reason. With the car freezing like that though, I'd have to restart the game since I can't use a random one =(.

**I'll cross my fingers on suggestions for duty and use of any vehicle. I think for different reasons scripts can glitch out for on certain game setups, it's thus best to keep things "free" if that makes sense, in this case in regards to vehicle and duty.
Posted on May 23, 2013 11:12AM by AmazingGameMods
Oh, 10/10
Posted on May 23, 2013 11:17AM by AmazingGameMods
Hi and thanks for the rating. :-)

I face the problem of frozen cars, too. Strangely it never happened with my mod yet but with the business mod and the LCPDFR which I'm currently testing. I see also frozen peds which get spawned by any mod. This also happens once in a while with my mod. That's the main reason why I implemented the 20 seconds timeout.

To make a long story short: I think it's got nothing to do with any mod specifically but it's a bug in the game code or maybe in the .net scripthook. Here is what the mod does at this state in easy terms: tell the game to spawn a ped model soandso at coordinates x,y,z and then I tell that ped to enter my car. That's it. Mostly it works but sometimes the ped is frozen.
Posted on May 23, 2013 12:04PM by Cyron43
Incompatibility problem with LCPDFR found: The installation of LCPDFR overwrites the .netScripthook with an outdated version which makes my mod crash right from the start (Alt+L).

So please make sure you have the latest .netScripthook installed.
Posted on May 23, 2013 1:51PM by Cyron43
Yep I can confirm some other mods have the problem at times too, and as well requires a game restart. LCPDFR is the worst with it no doubt. Maybe a third of tasks will be bugged out like that.

Well I have an idea on how to potentially work-around the frozen ped problem. Maybe have a hotkey to "reload task". You arrive and the ped is frozen or nothing happens on the blip. You hit the hotkey, it deletes the task, and reloads it exactly the same. That + the other two suggestions and I think the inherent ped/car freezing bugs can become somewhat moot.

I realize this might be complicated to do, I really don't know anything about scripting. Just an idea.
Posted on May 23, 2013 5:59PM by AmazingGameMods
Thanks for your feedback. I will take that into consideration.

BTW I removed the business mod some hours ago and now LCPDFR runs way better. I had no frozen cars or peds ever since. Maybe it's also got something to do with the latest version of the .net scripthook that I reinstalled after finding that incompatibility issue.

I'll do further investigations and I'll try what I can do tomorrow.

N8 all
Posted on May 23, 2013 6:31PM by Cyron43
Works great! I have Steam version 1.0.7 if that matters. I have MANY, many other mods as well and I get no conflicts at all.

Great fun! Most definitely a 10/10
Posted on May 24, 2013 1:31AM by BossInvader


Thank you very much, BossInvader. :)

@all: I have written a failover routine which can be triggered with a configurable key. It does work under normal circumstances but I can't say whether it still does with a frozen customer or vehicle as long as I don't face this issue.

I'm not going to upload the new version until I'm sure.

So if anybody is willing to help me test this, please download the test build from here

https://bitbucket.org/rainerhilmer/limoservice/downloads

Download "LimoServiceFailoverTest.rar" there.

IMPORTANT: Also copy the GTA IV folder to your Documents folder and overwrite the XML files because the config file has been modified. It contains a definition for the failover key now (default is ctrl+R).

How it works: The failover routine is available at certain states only. Press ctrl+R:

- when you got on duty it will delete the vehicle and spawn a new one on the street. So look around before you say it didn't work.

- when you got a job order it deletes the vehicle and creates a new one somewhere around you on the street.

- when you are near the customer pickup point AND THE CUSTOMER HAS SPAWNED and he should run to your vehicle it deletes the customer and spawns a new one.
Posted on May 24, 2013 11:32AM by Cyron43
Update 2.3.0.34254 now available.

IMPORTANT NOTE: You must overwrite the LimoServiceConfig.xml with this new version because it has a new "Failover" key definition implemented.

- added a failover routine which can be triggered by pressing ctrl+R at certain states. For further information please read the guide.

- Added a troubleshooting section to the guide which contains further information about the failover routine.

- Added some Qs and As to the FAQ.

- Added a table of contents. The guide has grown so large that it's more convenient with such now.

ROADMAP (things to come)

- Better error handling: You will get more descriptive error messages which explain why the error happened. This will be combined with solutions in the troubleshooting guide. Example: If any key container cannot be found, you will be told what key in specific it is. The cause for this is most likely an outdated LimServiceConfig.xml.

- Force duty: going on duty without having to visit the HQ

- Any vehicle: Use your current car for the jobs

- Action trigger: With a press of a key you activate random (adjustable chance) action like some customer being wanted by the police or random melee attacks.
Posted on May 25, 2013 6:06AM by Cyron43
Oh Em Gee, yaaaaaaaay.

This is legit, thanks for taking the time to make the update.

I'll let you know if anything goes wrong.
Posted on May 25, 2013 9:44AM by AmazingGameMods
When i pressed any key on the keyboard.

the message pops up : Error: Key configuration not found! Check KeyContainer.Name

here's the error log

2013-05-26 18:38:06 - Error during Tick in script 'LimoService.Core':

System.NullReferenceException: Object reference not set to an instance of an object.

at LimoService.Core.CompareKeysWith(KeyContainer keyContainer, KeyEventArgs keyEventArgs)

at LimoService.Core.OnKeyDown(Object sender, KeyEventArgs e)

at GTA.Script.ProcessEvents()

at GTA.Script.DoTick()

at GTA.ScriptThread.OnTick()

2013-05-26 18:38:06 - Error in Thread.Abort:

System.Threading.ThreadAbortException: Thread was being aborted.

at System.Threading.Thread.AbortInternal()

at System.Threading.Thread.Abort()

at GTA.NetThread.Abort()
Posted on May 26, 2013 5:07AM by Airbus
Oops, there was a little mistake in the config file. The name for the failover key container was wrong (Recover instead of Failover).

I have just uploaded a corrected version. Either overwrite the old config by simply dragging the GTA IV folder from the zip to your Documents folder and accept all overwrites

or open the LimoServiceConfig.xml and rename the Recover key to Failover (<Name>Failover</Name>).

I'm sorry
Posted on May 26, 2013 7:27AM by Cyron43
FYI: Added an issue tracker on my Project repository site.

https://bitbucket.org/rainerhilmer/limoservice/issues

If you want you can file your issues there so this page drowns less in comments.
Posted on May 26, 2013 9:39AM by Cyron43
Announcement

Major update tomorrow. The code is done and tested. Just the guide needs an update.

See you then. :)

New features:

- Optional HQ-less mode (as requested you don't need to drive to the HQ anymore because you can use your current vehicle).

- HQ-less mode can be set as default mode in the configuration file.

- The SaveNewLocation key is now optional. It happened every now and then that I hit ctrl+S accidentally and that was annoying. Now you can save only while the mod is active AND if you have enabled that feature in the config.
Posted on May 27, 2013 5:07PM by Cyron43
MAJOR UPDATE V3.0.0.32720

PLEASE READ BECAUSE HERE ARE IMPORTANT NEWS!

CHANGES:

- The dll file has a new name. It's now PTS.net.dll. If you update from an older version you MUST delete the old LimoService.net.dll!!!

- also replace the GTA IV folder in your documents folder with the new version. The structure has changed to Documents\GTA IV\ModSettings\PTS and the XML-files have been renamed to PTSConfig.xml and PTSLocations.xml

- Don't just rename the configuration file because it's got some new tags!

- The guide was updated to reflect the new features.

- The guide was renamed to "PTS Guide.pdf"

- The url to the project's git repository has also changed to

https://bitbucket.org/rainerhilmer/pts/overview

but that's just for people who are interested to see the development workflow.

NEW FEATURES:

- HQ-less mode. Now you can decide whether you want to work for the PTS headquarter or do it on your own. For further information read the guide.

- Saving new locations is now optional (new tag in the PTSConfig.xml) but before you enable it please read the guide for important information!

BUGFIX:

- Customer didn't spawn if the mod was restarted after an immediate shutdown.
Posted on May 28, 2013 2:00PM by Cyron43
PTS 3.0.0.33689 now available.

Bugfix:

- Customer didn't enter the vehicle and didn't move if the passenger seat definition didn't match the current vehicle (i.e. RightRear for a 2-seater).

Now the customer still don't enter but leaves. Either get an appropriate vehicle or change the Passenger seat definition in the PTSConfig.xml.

In case you run in HQ-mode the mod shuts down.

After all it's less a bug but more of a configuration failure. Now the player gets a message that tells him about the misconfiguration.
Posted on May 29, 2013 12:53PM by Cyron43
When I first sat this, I thought it'd be a little crappy done mod, like a fuel mod etc, but man, I was wrong! You have put a LOT of time into this, and its done quite well and has a lot of features. 10 stars from me!
Posted on May 29, 2013 4:16PM by TenzwoodGaming
Thank you TenzwoodGaming. Great feedback is what makes the whole effort worth it. :)
Posted on May 29, 2013 4:19PM by Cyron43
Nice mod Member! Can a dude get a working manual transmission mod that works with the dang controller d pad or something?
Posted on May 30, 2013 7:17AM by BlkGrmn08
PTS 3.0.1.27739 now available.

CHANGES

IMPORTANT NOTE TO ALL PEOPLE WHO UPDATE!

Besides installing the new PTS.net.dll please also overwrite the GTA IV folder in your documents.

I changed the whole namespace of the project to PTS (formerly LimoService) and this is reflected in the new XML files as well.

BUGFIX:

- mod crashed during shutdown under rare condition.
Posted on May 30, 2013 9:49AM by Cyron43
For some reason I cannot get the script running. I have installed scripthook (I put the asi and dll files from it in the main directory of GTA IV). So I made a folder in GTA IV directory called "scripts" and put your PTS.net.dll file in there. Then I went to my documents and put the PTS xml file in C:\Users\Name\Documents\Rockstar Games\GTA IV\ModSettings\PTS.

When I load up GTA IV it says "error PTS.core not working" or something like that. I have 2 harddrives, one runs GTA IV and one runs my documents. I dont know if this is affecting it but the script won't load. I'll check back in a few days to see if you replied, thanks.
Posted on May 30, 2013 2:16PM by oogabooga
Hi oogabooga,

the installation is explained in all detail in the guide. Please read it carefully.

Thanks
Posted on May 30, 2013 2:59PM by Cyron43
Thanks for all the updates!
Posted on June 1, 2013 7:54AM by MarkC9
Cyron43: No, I did read it carefully as said in the directions. This is a screenshot to show what is going on:

http://i.imgur.com/SaJlFTs.jpg
Posted on June 1, 2013 7:44PM by oogabooga
oogabooga,

sorry but you didn't. You said you installed the xml files to

C:\Users\Name\Documents\Rockstar Games\GTA IV\ModSettings\PTS

but that's NOT what I wrote in the guide.

Forget about the Rockstar games folder. My mod has nothing to do with it!

Furthermore I said you should copy the .netScripthook into the scripts folder, which you didn't.

About your Documents folder on a different drive:

That depends on whether you told Windows this is your documents folder. My mod does not search hard coded for that directory but it asks Windows "please tell me where the Documents folder is" and Windows answers back with the path.

If you are unsure about that, open your user folder (where the documents folder resides), RIGHT click the documents folder and choose "Properties" from the context menu. In the window that now opens click on the "Path" tab. What you see there is what Windows answers back to my mod. This path and the real path to your documents folder should be the same!

If not then either change it or install the GTA IV folder into the Documents folder which Windows claims it is.
Posted on June 2, 2013 5:05AM by Cyron43
@Cyron43: I've sent you a PM.
Posted on June 2, 2013 11:25AM by VDH-SOFT
PTS 3.1.0.31543 now available.

CHANGES

- mod now has a configuration verifier built in. That means, if you have made any errors in the PTSConfig.xml the mod will refuse to start instead of crashing, you will get an error message in the console window and a log file in Documents\GTA IV\ModSettings\PTS which further explains what went wrong. Also see the troubleshooting section in the guide.

- PTS guide updated to reflect the changes.
Posted on June 2, 2013 12:23PM by Cyron43
For some reason why i cant get this to work on my Grand Theft Auto IV - Episodes From Liberty City

I download the ScriptHook and extract to D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City

and paste the PTS.net.dll D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City\scripts

I also pasted the ModSettings in D:\My Documents\Rockstar Games\GTA IV

i start my gta eflc and go to tbogt and press atl L but nothing happens

i am on 1.1.2.0 and win 7

Thnks
Posted on June 4, 2013 12:06AM by lohyixun
i might have missed something here, but when the game loads up and i hit alt and L the game freezes and says (script error pts.core).
Posted on June 4, 2013 12:41AM by psychoshot321
it seems every other time when i hit alt and L it will work, but the game crashes soon anyways with the message (fatal error smpa60). also i do have the lcpdfr and iron man mods and a couple car mods if that helps.
Posted on June 4, 2013 12:55AM by psychoshot321
ive tried placing those 2 script files in my scripts folder and in the main gta iv folder but my game still crashes after 2 mins and either says smpa50 or smpa60.
Posted on June 4, 2013 1:34AM by psychoshot321
the only thing i did not do was extract the scripts folder to my gta 4 directory because thats only for the script developers right?
Posted on June 4, 2013 1:38AM by psychoshot321
@lohyixun: Please read the installation guide CAREFULLY. You did it wrong. Forget about the Rockstar Games folder!

@psychoshot: Same message for you. Do it EXACTLY how the guide tells you.
Posted on June 4, 2013 5:24AM by Cyron43
Oh and psychoshot, that strange error message you get does NOT come from my mod. In fact I have never seen smpa50/smpa60. I suspect it's the iron man mod. I had also installed it and it made my game crash constantly. So I removed it. I hope you got a full backup to roll back everything to it's original state.
Posted on June 4, 2013 9:51AM by Cyron43
@Cyron43 I only have the folder

C:\Program Files\Rockstar Games\Grand Theft Auto IV\scripts

and

C:\Program Files\Rockstar Games\EFLC\scripts

I only got the folder

D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City\scripts

i also cant find the ScriptHookDotNet.dll

i downloaded from http://www.hazardx.com/details.php?file=83

and extract to D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City

SOrry i am stupid
Posted on June 4, 2013 10:11AM by lohyixun
Epic, gonna take a look into this later!
Posted on June 4, 2013 10:41AM by JoNnii
C:\Program Files\Rockstar Games\Grand Theft Auto IV\scripts

and

C:\Program Files\Rockstar Games\EFLC\scripts

are the correct places for the ScriptHookDotNet.asi and the PTS.net.dll

Maybe your Windows installation is not configured to show "known" file extensions so you will see these files as ScriptHookDotNet.asi and PTS.net.

However I don't know why there is another GTAIV/EFLC installation on your D: drive. For me it looks like you have installed the game two times. Why is that? You are wasting about 31GB of drive space! What of the both installations do you play? You should sort that out before I can help you any further.
Posted on June 4, 2013 12:15PM by Cyron43
P.S.: I made a mistake in the guide where I wrote ScriptHookDotNet.dll instead of ScriptHookDotNet.asi.

My bad, sorry. Corrected with this new upload.
Posted on June 4, 2013 12:30PM by Cyron43
i did it right i spent hours switching up files and messing with the damn scripts and this crap just gets frustating when i install a mod right and something is still wrong because of some other crap man but im not saying ur mods messed up its obviously right its working for other people, but something else is just conflicting with it, But i did read it extremely carefully i swear to god man, im just looking for help because i cant play my damn game now.
Posted on June 4, 2013 8:12PM by psychoshot321
i did everything correct i read and re read it i swear to god ok im not stupid, i just dont know what to take out to make my game work now.
Posted on June 4, 2013 8:17PM by psychoshot321
I type wrongly i mean i dont have

C:\Program Files\Rockstar Games\Grand Theft Auto IV\scripts

and

C:\Program Files\Rockstar Games\EFLC\scripts

but i have

D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City\scripts

Are they the same ?
Posted on June 4, 2013 11:30PM by lohyixun
I type wrongly i mean i dont have

C:\Program Files\Rockstar Games\Grand Theft Auto IV\scripts

and

C:\Program Files\Rockstar Games\EFLC\scripts

but i have

D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City\scripts

Are they the same ?
Posted on June 5, 2013 6:38AM by lohyixun
@lohyixun: that seems to be your installation folder, so yes.

Are your other mods installed there as well?

About the GTA IV folder in my zip file: Do NOT copy it into Documents/Rockstar Games!!!

Just copy it into the Documents folder. So if you look into the Documents folder after installing it, you have one that's called Rockstar Games (my mods have NOTHING to do with this!) and one that's called GTA IV (contains my mod settings).
Posted on June 5, 2013 7:44AM by Cyron43
i dont have any mod installed.

Ok i removed the the modsetting from Documents/Rockstar Games and paste it in my Documents. the GTA IV is a new folder right? cos i dont have any and GTA IV in my documents.

I did these I start the TBOGT and press atl +L nothing happened :(
Posted on June 5, 2013 8:41AM by lohyixun
You moved the ModSettings folder into the Documents folder? You are confusing me.

Just unpack the zip and drag the GTA IV folder into the Documents folder. It's as simple as that.

Once you have done that you should have the following path:

C:\Users\YourUserNameHere\Documents\GTA IV\ModSettings\PTS

Inside that PTS folder you should see three files.

One is named LocationRules, one PTSConfig and one PTSLocations.
Posted on June 5, 2013 10:32AM by Cyron43
Ok i have ScriptHook.dll , ScriptHookDotNet.asi, ScriptHookDotNet.readme in D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City.

for Developers, _PUT .NET SCRIPTS HERE, PTS.net.dll, ScriptHookDotNet.asi in D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City\scripts

ModSettings in D:\My Documents\GTA IV

inside ModSettings there is PTS and then LocationRules, one PTSConfig and one PTSLocations.

It still doesnt work.

Posted on June 5, 2013 10:27PM by lohyixun
Ok i have ScriptHook.dll , ScriptHookDotNet.asi, ScriptHookDotNet.readme in D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City.

for Developers, _PUT .NET SCRIPTS HERE, PTS.net.dll, ScriptHookDotNet.asi in D:\Program Files\Grand Theft Auto IV - Episodes From Liberty City\scripts

ModSettings in D:\My Documents\GTA IV

inside ModSettings there is PTS and then LocationRules, one PTSConfig and one PTSLocations.

It still doesnt work.

Posted on June 5, 2013 10:53PM by lohyixun
1. How doesn't it work? You press Alt+l and nothing happens? Please open the console window in the game and look for any error message regarding the PTS mod.

2. What is that with D:\My Documents? Is that also the path Windows claims it's Documents? Do a RIGHT mouse click on your My Documents folder and choose "Properties" from the context menu.

There should be a tab "Path". If not then it's NOT the correct documents folder! What Windows version do you have? From Windows Vista upwards open any folder, click that little triangle as shown in this screenshot

https://plus.google.com/u/0/108768790032142041705/posts

and then click "Libraries" in the pull down menu (the german word is "Bibliotheken"). Next double click on "Documents". Next look for a text in the upper left that says "2 places" or something similar. Click on that text and the next thing you should see is a list of those places. The top most is most likely the "My Documents" folder. Under that you can see a path. Now is that the same path you posted above? Anyway THIS is the path Windows answers back to my mod when it asks for the Documents path and therefore you must use this one.
Posted on June 6, 2013 7:52AM by Cyron43
Yes nothing happened when i press Atl + L and how do i open the console window

this is what i see after i press 2 location

https://picasaweb.google.com/101567060957646516163/June72013?authuser=0&authkey=Gv1sRgCJmGlMm5xPKZTQ&feat=directlink#5886421585128474546

Posted on June 6, 2013 12:30PM by lohyixun
Any idea why it says "unresponsive"? There's something terribly wrong.

You open the console window by pressing the key left to the 1 key (right over the tab key). On my german keybard it's ^ but I dunno whether it's the same with an english keyboard.
Posted on June 6, 2013 1:13PM by Cyron43
No idea , no mods seem to work on my gta too . i cant open my console too i press every single button
Posted on June 6, 2013 9:39PM by lohyixun


I repeat: no mods work with your GTA IV installation!

Well you should have told me right from the start. I don't want to be impolite or sound rude but I suggest you make a help request in the forum instead of further clogging the comments section of my mod. I got one final suggestion for you: Make sure your game is updated with the latest patch! I had the same problem with mods refusing to run. I thought my game was up to date because I purchased it about 6 months ago. After having those troubles I patched anyway and tadaa - having fun ever since.

Case closed
Posted on June 7, 2013 5:20AM by Cyron43
PTS 4.1.0.23001 now available

CHANGES

- Do you want the next job created nearby or is it more fun for you to ride all across Liberty City to pick up the next customer? It's up to you now! Just set the new TakeNearestLocationForNextJob tag in the PTSConfig.xml accordingly

- Location map now shows only the location blips in a 50 units perimeter surrounding your current location. This was necessary because having all blips displayed at once made the game unstable. On the bright side you can create even more locations now.

- All location blips now show their ID number. At last you can identify any location in the PTSLocations.xml and modify or delete it if you want.

- Guide updated. Some parts of the FAQ and the troubleshooting section have become obsolete and have been removed. Added a section for the Location map. Updated the config section to explain the new TakeNearestLocationForNextJob tag.
Posted on June 8, 2013 7:38AM by Cyron43
PTS 4.1.1.34674 now available

Fixed an error in the calculation of the nearest pickup spot for the next job. I'm sorry for this.
Posted on June 9, 2013 1:23PM by Cyron43
When i press atl L the tie icon shows up and at the top left corner it say error in PTS.core

When i go to the tie icon at the right side of the reception counter nothing happens
Posted on June 10, 2013 5:54AM by Cokex3
Hi Cokex3,

please open the console in game and give me more details about the error. What Exception has been thrown and where? Is it for example a FileNotFoundException? That's the only thing I could imagine what would make the mod crash right from the start. Did you read the installation guide carefully? The mod can't run if you didn't place the GTA IV folder in the right place.
Posted on June 10, 2013 9:08AM by Cyron43
Take a look at

http://s1363.photobucket.com/user/Cokex_3/media/null_zpsb2179eb5.jpg.html

and

http://s1363.photobucket.com/user/Cokex_3/media/null_zpsa0008a80.jpg.html

thanks
Posted on June 10, 2013 11:41AM by Cokex3
Thanks for the screenshots, Cokex3.

Well the first one doesn't show any errors. The second... I'm going to look into this right now.
Posted on June 10, 2013 12:23PM by Cyron43
PTS 4.1.2.34228 is available

Fixes (well sort of)

- Call for HQ vehicle blip removal is now done at AwaitingJob and CustomerPickup states. So there is no change for the player in any way. It was just refactorization, removing code smell.

@Cokex3: The method missing is not related to my mod but to the ScripthookDotNet you are using. It seems you have installed the wrong version. Unfortunately the important part of that error message is outside of the picture. Anyway download the latest verion of Hazardx's .net scripthook (See link in the description text on this site or in the guide.
Posted on June 10, 2013 1:27PM by Cyron43
I'm still having the script freeze entirely every few jobs, =(.
Posted on June 22, 2013 3:39AM by MarkC9
Sorry not entirely. The blip functions simple seize up.

So I can use the hotkeys to do different things (return to HQ, call for a new job, enable HQ less mode, etc etc).

However once I approach any blip for any of these things, nothing happens =(.
Posted on June 22, 2013 3:47AM by MarkC9
Hi Mark,

thanks for the report.

Do you mean the actual customer location and the delivery target?

Or are you talking about the blip map?

*Sigh* I thought everything's alright now and I can head over to my next mod.

Okay I'm going to look into this today.
Posted on June 22, 2013 7:20AM by Cyron43
Mark can you please post the error message that shows in the console window together with the call stack that's printed below. I don't need the whole call stack but just until the call to the first method in the PTS mod. For instance

... at GTA.GetObject

at PTS.CreateCustomer
Posted on June 22, 2013 8:06AM by Cyron43
PTS V4.1.4 available.

BUG FIXES

- mod still crashed sometimes due to unreliable object creation either in the scripthook or in the game.

- believe it or not but querying the .net scripthook for the weekday delivered the wrong day (i.e. wednesday when it was sunday in the game)! I have implemented some corrective code.
Posted on June 22, 2013 4:43PM by Cyron43
Okay, good news Cyron.

It appears the problem is with certain car mods and/or the snow mod. I tried in EFLC using a mostly vanilla game and it worked flawlessly.

I also tried using it online and yep, worked fine. -)
Posted on June 22, 2013 11:00PM by MarkC9
Thanks Mark, I was already about to despair. On the bright side by running the new tests yesterday I got aware of that weekday bug and some other nasty things.

Tsk, note to myself: Verify EVERYTHING the .net scripthook returns!
Posted on June 23, 2013 5:28AM by Cyron43
PTS 4.1.5 is available for download.

CHANGES

- Reference to the ScripthookDotNet made relative now. The absolute path potentially led to installation issues.
Posted on July 3, 2013 9:54AM by Cyron43
New update available.

- Added a hotkey quick reference at the end of the guide and edited some typos.

- No changes to the mod.
Posted on July 4, 2013 12:05PM by Cyron43
Expanded the installation section of the guide for dummies.
Posted on July 19, 2013 6:21AM by Cyron43
Good morning! Please tell me how to fix this?

Error during Tick in script 'PTS.Core':

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> GTA.NonExistingObjectException: Invalid call to an object that doesn't exist anymore!

at GTA.Ped.get_Model()

at PTS.JobElements.RandomCustomerModelIfModelIsUndefined()

at PTS.JobElements.CreateCustomer()

at PTS.JobElements.CustomerPickup()

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

at System.Delegate.DynamicInvokeImpl(Object[] args)

at PTS.StateBroker.RunJob(ServiceState state)

at PTS.Core.OnTick(Object sender, EventArgs e)

at GTA.Script.TryTick()

at GTA.Script.DoTick()

at GTA.ScriptThread.OnTick()
Posted on July 23, 2013 3:39AM by vk9
Update HazardX's ScriptHookDotNet.dll to the latest version. You can find the link in the description at the top of this page and in the guide.
Posted on July 30, 2013 2:16PM by Cyron43


@all the others: what vk9 posted here is what developers call the "call stack".

Remember this: CALL STACK

This is most helpful for me because I can immediately see what happened and where. Just posting "it's not working" is not useful for me in any way and I am not able to give you a good advice.

So again: in case any of my mods crashes, post the CALL STACK, please. :)
Posted on July 30, 2013 7:39PM by Cyron43
Where do I get the Havoc!.net.dll in Step 6 of the instructions? It is not in your download or the scripthook.

Thanks
Posted on August 1, 2013 12:01PM by Senatov
@Senatov: Oops that's a copy&paste mistake that happened when I wrote the general installation instructions. Forget about Havoc!.net.dll. It's supposed to be pts.net.dll.

I'm going to correct this error on the double.

Sorry for the inconvenience.
Posted on August 1, 2013 2:11PM by Cyron43
Corrected a stupid copy&paste error in the installation section of the guide. I'm sorry for this.
Posted on August 1, 2013 2:25PM by Cyron43
@Cyron43

Thanks for fixing it! I figured it was a typo after I spent an hour researching what the Havoc!.net.dll was, I figured out that you had another mod called Havoc!.

However, I now have it installed correctly, but when I press Alt+L, the message comes up telling me about the HQ like it should, but immediately after, the game freezes, but the sound still works. I have to CTL+ALT+DEL task manager to close the game.

Posted on August 1, 2013 5:37PM by Senatov
Senatov, do you have any custom vehicles installed? I seem to remember that other players had problems with some custom vehicles and PTS.
Posted on August 1, 2013 7:27PM by Cyron43
@Cyron43,

Yes, I have about 4 car mods installed. I just uninstalled them and tried it again, and now instead of a freeze, it says "Error in script PTS.core" or something like that.

Thanks for the help by the way.
Posted on August 1, 2013 7:43PM by Senatov
Hi Senatov,

most likely you run an outdated version of ScriptHookDotNet.dll. Please get the latest version from HazardX. You can find the download link either in the description at the top of this page and in the guide.

If that doesn't fix it please open the in-game console and copy&paste the call stack here. Look what vk9 posted above. That's the call stack. I don't need the whole list but just to the first occurrence of PTS.Whatever.
Posted on August 2, 2013 7:21AM by Cyron43
How do I copy and paste it? I am assuming that I press the ~ key and copy what is in that box while in the game, but how do I copy it? I cannot seem to highlight the text.

Posted on August 2, 2013 10:22AM by Senatov
Oops you are right, sorry.
Posted on August 2, 2013 12:50PM by Cyron43
A helpful member on the lcpdfr forums told me how to copy and paste it, you have to copy it from the ScriptHookDotNet text file in the GTA IV folder.

Here it is:

2013-08-02 15:19:50 - Error during Tick in script 'PTS.Core':

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Boolean GTA.Game.Exists(GTA.base.Object)'.

at PTS.JobElements.HQVehicleStillExistsWithHQMode()

at PTS.JobElements.PrepareForDuty()

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

at System.Delegate.DynamicInvokeImpl(Object[] args)

at PTS.StateBroker.RunJob(ServiceState state)

at PTS.Core.OnTick(Object sender, EventArgs e)

at GTA.Script.TryTick()

at GTA.Script.DoTick()

at GTA.ScriptThread.OnTick()

2013-08-02 15:19:50 - Error in Thread.Abort:

System.Threading.ThreadAbortException: Thread was being aborted.

at System.Threading.Thread.AbortInternal()

at System.Threading.Thread.Abort()

at GTA.NetThread.Abort()

Posted on August 2, 2013 2:22PM by Senatov
Thanks for the advice. I didn't know that. :)

So your error is what I expected. Get the latest version of the ScriptHookDotNet.dll from HazardX.
Posted on August 2, 2013 3:18PM by Cyron43
I do have the latest version, I downloaded it several times to make sure. The only thing I can think of is that I have LCPDFR and other mods installed that might use a different scripthook? Just to clarify, the file from HazardX is located within the download at scripts>for developers>bin right? I really hate to ask this, but can you or someone with a working version of the mod make a quick video on how to install it? I have installed ENB mods that were easier than this, no offense.

Thanks, and sorry for being a nuisance.
Posted on August 2, 2013 4:06PM by Senatov
@Senatov,

please copy the ScriptHookDotNet.dll into the Scripts folder and not in any of it's subfolders. That's also described in the guide.

And yes, LCPDFR installs an outdated version of the ScriptHookDotNet.dll. I found out when I installed LCPDFR and suddenly none of my mods worked anymore.
Posted on August 2, 2013 7:34PM by Cyron43
I just tried it, still no dice, same problem. Here are some screenshots of my installation. Is there something wrong with it? I really want to play your mod.

http://bit.ly/17YW9Gb

http://bit.ly/12N7BX8

http://bit.ly/1b25zT1
Posted on August 2, 2013 8:27PM by Senatov
About Screenshot 1: It shows the Documents library which consists of two locations. Make sure the GTA IV folder is in your private Documents folder and not in the public one.

The rest is okay.

Most modders recommend to use the dsound.dll to make the mods run. However, that doesn't work here. Not only with my mods but generally with all mods! I have to have xliveless (xlive.dll) in order to have them run. Maybe that also does the trick with your game.

NOTE: Once xliveless is installed you don't have access to multiplayer anymore.

IMPORTANT NOTE: Once you have xliveless installed the game looks up the savegames in a different location. You must copy the savegames from the old location to the new.

First make sure hidden files and folders are visible (refer the Windows help if you don't know how to do it).

Head over to

c:\users\YourAccountName\AppData\Local\Rockstar Games\GTA IV\savegames

You should see a folder named user_xxx (where xxx is some long number). Open that one and copy all files to the new location, which is

C:\Users\YourAccountName\Documents\Rockstar Games\GTA IV\savegames

You can get xliveless here:

http://www.gtavision.com/?section=downloads&site=download&id=2914
Posted on August 3, 2013 6:48AM by Cyron43
I already had xliveless installed because of my 100% game save mod, but I tried it using only xliveless and not dsound, and the same thing still happens. Here is the call stack from when I tried it this time:

I appreciate all the help you have given me by the way.

Note: The game froze on this occurrence.

2013-08-03 08:45:57 - Error during Tick in script 'PTS.Core':

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Boolean GTA.Game.Exists(GTA.base.Object)'.

at PTS.JobElements.HQVehicleStillExistsWithHQMode()

at PTS.JobElements.PrepareForDuty()

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

at System.Delegate.DynamicInvokeImpl(Object[] args)

at PTS.StateBroker.RunJob(ServiceState state)

at PTS.Core.OnTick(Object sender, EventArgs e)

at GTA.Script.TryTick()

at GTA.Script.DoTick()

at GTA.ScriptThread.OnTick()

2013-08-03 08:45:57 - Error in Thread.Abort:

System.Threading.ThreadAbortException: Thread was being aborted.

at System.Threading.Thread.AbortInternal()

at System.Threading.Thread.Abort()

at GTA.NetThread.Abort()

Posted on August 3, 2013 7:49AM by Senatov
That's the very same call stack as above. I explain what happened:

My mod calls a certain function of ScriptHookDotNet. Developers call those "Method". This excerpt from the call stack shows what Method is supposed to be called:

System.MissingMethodException: Method not found: 'Boolean GTA.Game.Exists(GTA.base.Object).

So the method named "Exists" (in the class "Game", in the namespace "GTA") does not exist. My mod cannot find it and therefore causes a crash. The only reason for this is a wrong version of the ScriptHookDotNet.dll.

Have you installed all files of HazardX's zip file correctly?

ScriptHook.dll and ScriptHookDotNet.asi need to be in the main installation folder (either program files\Rockstar Games\EFLC and either program files\Rockstar Games\Grand Theft Auto IV)

while the ScriptHookDotNet.dll needs to be in the Scripts folder. I strongly recommend to make files extensions visible (refer to the Windows help) or else you probably can't differenciate between ScriptHookDotNet.asi and ScriptHookDotNet.dll.
Posted on August 3, 2013 2:06PM by Cyron43
@Cyron43

Thanks! I finally got it working. What I did this time drag the ScriptHook.dll and ScriptHookDotNet.asi into the GTA IV installation folder, and overwrite the files that were in there. This is not mentioned in the instructions, but thanks for clarifying it in your comment, and thanks for all the help! I am going to go play the mod now.
Posted on August 3, 2013 5:09PM by Senatov
Phew I'm glad it's sorted out now. I was about to despair. :)
Posted on August 3, 2013 5:36PM by Cyron43
sometimes it causes an error. when the PTS.CORE stopped because of an error,

i typed reloadscripts in the console, when it reloaded i turned on the PTS and get to the limo office to start a duty. so duty started and i get in the car, car does not move at all.
Posted on August 17, 2013 2:18AM by Airbus
Hi Airbus,

that's a game error but the PTS mod provides a failover key. Have you tried that? Please read the guide, especially the FAQ section, the troubleshooting section and the keyboard quick reference.
Posted on August 18, 2013 9:15AM by Cyron43
PTS 4.1.7 is available for download.

BUG FIXES

- a rare spawning bug was fixed.

- switching to HQ-mode was messed up in case HQLessByDefault was set to true in the config.
Posted on August 18, 2013 9:59AM by Cyron43
Hmmmm no i want a driver :)
Posted on August 19, 2013 12:01PM by SuperNiko
@SuperNiko: No problem. :)

Go to

C:\Program Files (x86)\Rockstar Games\EFLC\scripts\for Developers\TestScriptCS\Scripts

and copy AnyTaxiScript.cs to the scripts folder. Set a destination way point as usual, place yourself beside any car (with or without driver in it) and press N. Voila, free taxi ride. :)

NOTE: You only have the path above if you have HazardX's ScriptHookDotNet installed. Also if you run a 32bit versio of Windows it's "program files" and not "program files (x86)".

In case you want to have "AnyTaxi" with Niko instead of Luis you copy the AnyTaxiScript.cs into C:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV\scripts of course.

Have fun
Posted on August 20, 2013 6:30AM by Cyron43
FYI: If anyone wants a taxi mod (someone drives YOU) go have a look at my Autodrive mod over here:

http://www.gta4-mods.com/script/autodrive-some-kind-of-extended-taxi-mod-f25867

Posted on January 29, 2014 1:32PM by Cyron43
Sorry, you must be registered and logged in to post a comment. Log in now!