Jump to content

System.NullReferenceException Crash


Go to solution Solved by ineseri,

Recommended Posts

Version 1.0a

 

This error made mention of "freval".  Is this the "freval" issue that was known and still unresolved?  In this particular crash, I had just completed a traffic stop; however, the vehicle did not drive off at the end.  He just sat there.  I drove around him and within seconds, crash...

Link to comment
Share on other sites

  • Solution

The freval error was fixed for some users by doing this: Open up your LCPDFR.ini, look under "Main", it should look something like this by default: 

[Main]
AdditionalCopCarModels= 
SuspectTransporterModels=POLICE;POLICE2;PSTOCKADE; 
VehicleTrunkWeapons=Shotgun_Baretta; 
AllTextMode=False 
AmbientScenariosMaximum=2 
AmbientScenariosMultiplier=250 
DepartmentName=Liberty City Police Department
DepartmentShortName=LCPD
FirstStart=True
UsingPoliceStationMod=False

Now, add to the bottom of that part

PreLoadAllModels=True
The "Main" part should now look like this:

[Main]
AdditionalCopCarModels= 
SuspectTransporterModels=POLICE;POLICE2;PSTOCKADE; 
VehicleTrunkWeapons=Shotgun_Baretta; 
AllTextMode=False 
AmbientScenariosMaximum=2 
AmbientScenariosMultiplier=250 
DepartmentName=Liberty City Police Department
DepartmentShortName=LCPD
FirstStart=True
UsingPoliceStationMod=False
PreLoadAllModels=True

Invenio, Investigatio, Imperium

Link to comment
Share on other sites

The freval error was fixed for some users by doing this: Open up your LCPDFR.ini, look under "Main", it should look something like this by default:

[Main]AdditionalCopCarModels= SuspectTransporterModels=POLICE;POLICE2;PSTOCKADE; VehicleTrunkWeapons=Shotgun_Baretta; AllTextMode=False AmbientScenariosMaximum=2 AmbientScenariosMultiplier=250 DepartmentName=Liberty City Police DepartmentDepartmentShortName=LCPDFirstStart=TrueUsingPoliceStationMod=False

Now, add to the bottom of that part

PreLoadAllModels=True
The "Main" part should now look like this:

[Main]AdditionalCopCarModels= SuspectTransporterModels=POLICE;POLICE2;PSTOCKADE; VehicleTrunkWeapons=Shotgun_Baretta; AllTextMode=False AmbientScenariosMaximum=2 AmbientScenariosMultiplier=250 DepartmentName=Liberty City Police DepartmentDepartmentShortName=LCPDFirstStart=TrueUsingPoliceStationMod=FalsePreLoadAllModels=True

This isn't viable for me. After 5-10 minutes, I suffer severe texture loss/ popping... :(

Link to comment
Share on other sites

 

I see. Create a file called commandline.txt in your GTA IV directory and add the following lines

-novblank -norestrictions -percentvidmem 100 -novsync -frameLimit 0 -nomemrestrict

 

I added the commandline.txt file with the above line of data...

 

The freval error was fixed for some users by doing this: Open up your LCPDFR.ini, look under "Main", it should look something like this by default: 

[Main]
AdditionalCopCarModels= 
SuspectTransporterModels=POLICE;POLICE2;PSTOCKADE; 
VehicleTrunkWeapons=Shotgun_Baretta; 
AllTextMode=False 
AmbientScenariosMaximum=2 
AmbientScenariosMultiplier=250 
DepartmentName=Liberty City Police Department
DepartmentShortName=LCPD
FirstStart=True
UsingPoliceStationMod=False

Now, add to the bottom of that part

PreLoadAllModels=True
The "Main" part should now look like this:

[Main]
AdditionalCopCarModels= 
SuspectTransporterModels=POLICE;POLICE2;PSTOCKADE; 
VehicleTrunkWeapons=Shotgun_Baretta; 
AllTextMode=False 
AmbientScenariosMaximum=2 
AmbientScenariosMultiplier=250 
DepartmentName=Liberty City Police Department
DepartmentShortName=LCPD
FirstStart=True
UsingPoliceStationMod=False
PreLoadAllModels=True

 

 

I changed PreLoadAllModels to True w/ the commandline.txt file present, and I got the following crash within 5 minutes:

 

LCPDFR.log

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

[iNFO - 06:45:00 PM] [Log] Started

[iNFO - 06:45:00 PM] [Main] Main: Initializing...

[iNFO - 06:45:00 PM] [Main] Main: LCPDFR Engine © 2011-2013 LMS

[iNFO - 06:45:00 PM] [Main] Main: DO NOT USE THIS WITHOUT PERMISSION. YOU MAY NOT SHARE, MODIFY OR DECOMPILE THIS FILE.

[iNFO - 06:45:00 PM] [PluginManager] Initialize: Loading custom plugins

[WARNING - 06:45:00 PM] [settings] ReadSettings: Invalid entry

[iNFO - 06:45:00 PM] [settings] ReadSettings: Suspect transporter POLICE

[iNFO - 06:45:00 PM] [settings] ReadSettings: Suspect transporter POLICE2

[WARNING - 06:45:00 PM] [settings] ReadSettings: Invalid entry

[WARNING - 06:45:00 PM] [settingsFile] GetValue: Value not found: PreloadAllModels (Main)

[WARNING - 06:45:00 PM] [settingsFile] GetValue: Value not found: ClientPort (Networking)

[iNFO - 06:45:00 PM] [Main] Main: Initializing done

[iNFO - 06:45:03 PM] [stats] CollectSystemInformation: Server stats updated

[iNFO - 06:45:03 PM] [serverCommunication] InitializeConnection: Internet connection available

[ERROR - 06:45:03 PM] [serverCommunication] GetPublicIP: Error when using local internet gateway as UPnP device: Invalid access to memory location

[iNFO - 06:45:08 PM] [serverCommunication] InitializeConnection: Public IP Address is: 98.229.204.123

[iNFO - 06:45:08 PM] [serverCommunication] InitializeConnection: Connected to the LCPDFR server

[iNFO - 06:45:08 PM] [NetworkManager] NetworkManager: In network session: False Is host: False

[iNFO - 06:45:08 PM] [Authentication] Authentication: Server available, using online authentication

[iNFO - 06:45:10 PM] [Authentication] PerformOnlineAuthentication: Lease renewed

[iNFO - 06:45:10 PM] [Authentication] Authentication: Authentication successful

[iNFO - 06:45:10 PM] [Authentication] Authentication: Logged in as "patrickdunn02"

[iNFO - 06:45:34 PM] [updateCheck] DoUpdateCheck: Checking for updates

[iNFO - 06:45:35 PM] [updateCheck] DoUpdateCheck: No updates available

[WARNING - 06:49:15 PM] [AudioDatabase] GetAudioFileForAction: No file found for: WAPPINGER_AVE

[WARNING - 06:49:50 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:50 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:50 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:50 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:50 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:50 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:51 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:51 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:51 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:51 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:51 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:51 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:51 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[WARNING - 06:49:51 PM] [TaskBeingBusted] Process: HasVehicle is true but vehicle doesn't exist

[ERROR - 06:49:51 PM] [Main] CRITICAL ERROR DURING MAINLOOP! REPORT THIS ISSUE AT LCPDFR.COM BY INCLUDING THIS LOGFILE.

[ERROR - 06:49:51 PM] [] GTA.NonExistingObjectException: Invalid call to an object that doesn't exist anymore!

at GTA.Vehicle.get_Position()

at freval_284.eval_fr24()

at freval_101.eval_1.eval_fr0(Object[] A_0)

at LCPD_First_Response.Engine.Timers.DelayedCaller.fr0()

at LCPD_First_Response.Engine.Main.fr2()

 

In the above log, it states, "[WARNING - 06:45:00 PM] [settingsFile] GetValue: Value not found: PreloadAllModels (Main)" and "[WARNING - 06:45:00 PM] [settings] ReadSettings: Invalid entry"  Those can't be good...

 

SCRIPTHOOKDOTNET.log

2014-01-26 18:34:27 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.7.0 with C++ Hook version 0.5.1)

2014-01-26 18:44:59 - Direct3D device created!

2014-01-26 18:44:59 - SEARCHING FOR SCRIPTS...

2014-01-26 18:44:59 - Loading scripts in Assembly 'scriptsIVDashCamV2.net.dll' ...

2014-01-26 18:44:59 - ...found script 'IVDashCamV2.Core'!

2014-01-26 18:44:59 - ...found script 'IVDashCamV2.Extra'!

2014-01-26 18:44:59 - Loading scripts in Assembly 'scriptsLCPDFR Loader.net.dll' ...

2014-01-26 18:44:59 - ...found script 'LCPDFR_Loader.Loader'!

2014-01-26 18:44:59 - ...found script 'LCPDFR_Loader.PublicScript'!

2014-01-26 18:44:59 - Loading scripts in Assembly 'scriptsLessOvertake.net.dll' ...

2014-01-26 18:44:59 - ...found script 'trafficruleCS.lessovertake'!

2014-01-26 18:44:59 - Loading scripts in Assembly 'scriptsTrafficFlow.net.dll' ...

2014-01-26 18:44:59 - ...found script 'TrafficFlow.Taxi'!

2014-01-26 18:44:59 - DONE! 6 valid scripts found!

2014-01-26 18:44:59 - STARTING SCRIPTS...

2014-01-26 18:44:59 - INFO: Phone number checks are not available!

2014-01-26 18:44:59 - ...successfully started script 'TrafficFlow.Taxi'!

2014-01-26 18:44:59 - ...successfully started script 'trafficruleCS.lessovertake'!

2014-01-26 18:44:59 - ...successfully started script 'LCPDFR_Loader.PublicScript'!

2014-01-26 18:44:59 - ...successfully started script 'LCPDFR_Loader.Loader'!

2014-01-26 18:45:00 - ...successfully started script 'IVDashCamV2.Extra'!

2014-01-26 18:45:00 - ...successfully started script 'IVDashCamV2.Core'!

2014-01-26 18:49:51 - Unhandled Exception: GTA.NonExistingObjectException: Invalid call to an object that doesn't exist anymore!

at GTA.Vehicle.get_Position()

at freval_284.eval_fr24()

at freval_101.eval_1.eval_fr0(Object[] A_0)

at LCPD_First_Response.Engine.Timers.DelayedCaller.fr0()

at LCPD_First_Response.Engine.Main.fr2()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

2014-01-26 18:49:51 - CRASH!

2014-01-26 18:49:51 - Unhandled Exception: System.Runtime.Serialization.SerializationException: Type 'GTA.NonExistingObjectException' in Assembly 'ScriptHookDotNet, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.

at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)

at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)

at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)

at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)

at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeObject(Object obj, MemoryStream stm)

at System.AppDomain.Serialize(Object o)

at System.AppDomain.MarshalObject(Object o)

2014-01-26 18:49:51 - CRASH!

 

LCPDFR.ini

// G17 Media

// LCPD First Response

// GTAIV

// ---------------------------------------------------

// LCPDFR CONFIGURATION SETTINGS

// - V1.0 (December 2013)

// - Made by The G17 Media Team

// - © Copyright 2009-2013, G17 Media

// ---------------------------------------------------

// ---------------------------------------------------

// YOU CAN FIND A LARGE GUIDE ON HOW TO USE THIS FILE

// IN THE LCPDFR USER DOCUMENTATION. IT CONTAINS

// A LIST OF SETTINGS, THEIR DEFAULT VALUES, AND A

// DESCRIPTION OF WHAT EACH SETTING DOES, PLUS OTHER

// IMPORTANT INFORMATION REGARDING THIS CONFIG FILE.

// ---------------------------------------------------

[Main]

AdditionalCopCarModels=

SuspectTransporterModels=POLICE;POLICE2;

VehicleTrunkWeapons=Melee_BaseballBat;Misc_Unused0;Handgun_DesertEagle;Shotgun_Baretta;Rifle_M4

AllTextMode=True

AmbientScenariosMaximum=2

AmbientScenariosMultiplier=250

DepartmentName=New Hampshire State Police

DepartmentShortName=NHSP

FirstStart=False

UsingPoliceStationMod=False

PreLoadAllModels=True

[Callouts]

MaximumSecondsBeforeNewCallout=300

MinimumSecondsBeforeNewCallout=60

Enabled=True

Multiplier=250

[Pursuits]

AllowRoadblocks=True

ForceAnnihilatorHelicopter=False

MaximumCopCarsInPursuit=2

MaximumCopsInPursuit=5

[Hardcore]

Enabled=False

[Networking]

APIKey=167e2de4-e95a-4764-a8a1-77bd44fab766

ServicesEnabled=True

[Taser]

ShowHolsteredTaserOnPlayer=True

[Keybindings]

AcceptCallout=Y

AcceptCalloutModifierKey=None

AcceptPartner=E

AcceptPartnerModifierKey=None

AimMarker=LMenu

AimMarkerModifierKey=None

Arrest=E

ArrestModifierKey=None

ArrestCallTransporter=N

ArrestCallTransporterModifierKey=None

ArrestDriveToPD=Y

ArrestDriveToPDModifierKey=None

BlockArea=M

BlockAreaModifierKey=None

ConfirmCopModel=Return

ConfirmCopModelModifierKey=None

ConfirmCopCarModel=Return

ConfirmCopCarModelModifierKey=None

Dialog1=F9

Dialog1ModifierKey=None

Dialog2=F10

Dialog2ModifierKey=None

Dialog3=F11

Dialog3ModifierKey=None

Dialog4=F12

Dialog4ModifierKey=None

DenyCallout=N

DenyCalloutModifierKey=None

GrabSuspect=E

GrabSuspectModifierKey=None

HolsterTaser=T

HolsterTaserModifierKey=None

WalkFaster=LMenu

WalkFasterModifierKey=None

IssueParkingTicket=E

IssueParkingTicketModifierKey=None

JoinPursuit=E

JoinPursuitModifierKey=None

NextCopModel=Right

NextCopModelModifierKey=None

NextCopModelTexture=Up

NextCopModelTextureModifierKey=None

NextCopCarModel=Right

NextCopCarModelModifierKey=None

OpenTrunk=E

OpenTrunkModifierKey=None

PartnerArrest=G

PartnerArrestModifierKey=None

PartnerRegroup=R

PartnerRegroupModifierKey=None

PoliceComputer=E

PoliceComputerModifierKey=None

PreviousCopModel=Left

PreviousCopModelModifierKey=None

PreviousCopModelComponent=Back

PreviousCopModelComponentModifierKey=None

PreviousCopModelTexture=Down

PreviousCopModelTextureModifierKey=None

PreviousCopCarModel=Left

PreviousCopCarModelModifierKey=None

PulloverLicenseYes=F9

PulloverLicenseYesModifierKey=None

PulloverLicenseNo=F10

PulloverLicenseNoModifierKey=None

PulloverStart=ShiftKey

CallInPursuitModifierKey=Menu

CallInPursuit=E

ViewIntroductionModifierKey=None

ViewIntroduction=E

UpdateCalloutStateModifierKey=Menu

UpdateCalloutState=E

TutorialStartPoliceDepartmentModifierKey=None

TutorialStartPoliceDepartment=E

TutorialStartModifierKey=None

TutorialStart=Y

ToggleSirenModeModifierKey=None

ToggleSirenMode=Divide

ToggleHatModifierKey=Menu

ToggleHat=U

ToggleBusyModifierKey=None

ToggleBusy=F7

StartChaseOnPedModifierKey=None

StartChaseOnPed=LControlKey

StartModifierKey=Menu

PulloverStartModifierKey=None

RandomizeCopModel=Down

RandomizeCopModelModifierKey=None

RecruitPartner=G

RecruitPartnerModifierKey=None

RequestBackup=B

RequestBackupModifierKey=Menu

RequestAmbulance=M

RequestAmbulanceModifierKey=Menu

RequestFirefighter=F

RequestFirefighterModifierKey=Menu

RequestHelicopterBackup=H

RequestHelicopterBackupModifierKey=Menu

RequestNooseBackup=N

RequestNooseBackupModifierKey=Menu

ShowPursuitTacticsMenu=F8

ShowPursuitTacticsMenuModifierKey=None

ShowQuickActionMenu=Capital

ShowQuickActionMenuModifierKey=None

Start=P

[KeybindingsController]

AcceptCallout=A

AcceptCalloutModifierKey=LeftShoulder

AcceptPartner=LeftShoulder

AcceptPartnerModifierKey=None

AimMarker=None

AimMarkerModifierKey=None

Arrest=LeftShoulder

ArrestModifierKey=None

ArrestCallTransporter=X

ArrestCallTransporterModifierKey=None

ArrestDriveToPD=B

ArrestDriveToPDModifierKey=None

BlockArea=None

BlockAreaModifierKey=None

ConfirmCopModel=A

ConfirmCopModelModifierKey=None

ConfirmCopCarModel=A

ConfirmCopCarModelModifierKey=None

Dialog1=DPadLeft

Dialog1ModifierKey=None

Dialog2=DPadRight

Dialog2ModifierKey=None

Dialog3=DPadDown

Dialog3ModifierKey=None

Dialog4=DPadUp

Dialog4ModifierKey=None

DenyCallout=B

DenyCalloutModifierKey=LeftShoulder

GrabSuspect=LeftShoulder

GrabSuspectModifierKey=None

HolsterTaser=RightThumb

HolsterTaserModifierKey=None

WalkFaster=None

WalkFasterModifierKey=None

IssueParkingTicket=LeftShoulder

IssueParkingTicketModifierKey=None

JoinPursuit=None

JoinPursuitModifierKey=None

NextCopModel=DPadRight

NextCopModelModifierKey=None

NextCopModelTexture=DPadUp

NextCopModelTextureModifierKey=None

NextCopCarModel=DPadRight

NextCopCarModelModifierKey=None

OpenTrunk=LeftShoulder

OpenTrunkModifierKey=None

PartnerArrest=None

PartnerArrestModifierKey=None

PartnerRegroup=None

PartnerRegroupModifierKey=None

PoliceComputer=LeftShoulder

PoliceComputerModifierKey=None

PreviousCopModel=DPadLeft

PreviousCopModelModifierKey=None

PreviousCopModelComponent=LeftThumb

PreviousCopModelComponentModifierKey=None

PreviousCopModelTexture=DPadDown

PreviousCopModelTextureModifierKey=None

PreviousCopCarModel=DPadLeft

PreviousCopCarModelModifierKey=None

PulloverLicenseYes=DPadLeft

PulloverLicenseYesModifierKey=None

PulloverLicenseNo=DPadRight

PulloverLicenseNoModifierKey=None

PulloverStart=X

CallInPursuitModifierKey=DPadDown

CallInPursuit=X

ViewIntroductionModifierKey=None

ViewIntroduction=LeftShoulder

UpdateCalloutStateModifierKey=None

UpdateCalloutState=None

TutorialStartPoliceDepartmentModifierKey=None

TutorialStartPoliceDepartment=X

TutorialStartModifierKey=None

TutorialStart=X

ToggleSirenModeModifierKey=None

ToggleSirenMode=None

ToggleHatModifierKey=None

ToggleHat=None

ToggleBusyModifierKey=None

ToggleBusy=DPadDown

StartChaseOnPedModifierKey=None

StartChaseOnPed=None

Start=None

StartModifierKey=None

PulloverStartModifierKey=None

RandomizeCopModel=DPadDown

RandomizeCopModelModifierKey=None

RecruitPartner=X

RecruitPartnerModifierKey=None

RequestBackup=DPadDown

RequestBackupModifierKey=A

RequestAmbulance=None

RequestAmbulanceModifierKey=None

RequestFirefighter=None

RequestFirefighterModifierKey=None

RequestHelicopterBackup=None

RequestHelicopterBackupModifierKey=None

RequestNooseBackup=B

RequestNooseBackupModifierKey=DPadDown

ShowPursuitTacticsMenu=None

ShowPursuitTacticsMenuModifierKey=None

ShowQuickActionMenu=LeftThumb

ShowQuickActionMenuModifierKey=None

Edited by patrickdunn02
Link to comment
Share on other sites

The freval error was fixed for some users by doing this: Open up your LCPDFR.ini, look under "Main", it should look something like this by default: 

[Main]
AdditionalCopCarModels= 
SuspectTransporterModels=POLICE;POLICE2;PSTOCKADE; 
VehicleTrunkWeapons=Shotgun_Baretta; 
AllTextMode=False 
AmbientScenariosMaximum=2 
AmbientScenariosMultiplier=250 
DepartmentName=Liberty City Police Department
DepartmentShortName=LCPD
FirstStart=True
UsingPoliceStationMod=False

Now, add to the bottom of that part

PreLoadAllModels=True
The "Main" part should now look like this:

[Main]
AdditionalCopCarModels= 
SuspectTransporterModels=POLICE;POLICE2;PSTOCKADE; 
VehicleTrunkWeapons=Shotgun_Baretta; 
AllTextMode=False 
AmbientScenariosMaximum=2 
AmbientScenariosMultiplier=250 
DepartmentName=Liberty City Police Department
DepartmentShortName=LCPD
FirstStart=True
UsingPoliceStationMod=False
PreLoadAllModels=True

  

HEy pat where the hell is the option to change   the   Preload all models to TRUE?    My ini file does not contain that option unless im blind!   is it the one that says  ALLTEXTMODE???

Please see Ineseri's quoted message above...

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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



×
×
  • Create New...