IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

The Mod Showroom is only for posting previews/downloads of completed or near finished mods.
All help topics should be posted in the Editing Discussion forums. Help topics and mod requests posted here will be locked or binned. Thank you.
GTAGarage.com : Free mod hosting, attach your files and screenshots to your topics
GTAModding.com : A wiki for everything related to GTA modding, including documentation and tutorials

Pages: (9) [1] 2 3 ... Last »  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 Arrest Warrant

 notoriety mod with cop alert meters
 
AngryAmoeba  
Posted: Friday, Jul 8 2011, 09:19
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



user posted image user posted image

WHAT IT DOES: This script adds a notoriety system very similar to Assassin's Creed.

Gaining Notoriety
- If the cops see your face during a chase, there's a % chance they'll identify you for the crime.
- If you escape after being identified, the crime is added to your arrest warrant.
- Your warrant is given a notoriety rating based on how serious your crimes were (1 star, 2 stars, etc.)
- Press 0 on the numpad to show your current notoriety rating.

Alerting Police
- Your notoriety, behavior, and traffic crimes will alert police (see "Tips" below for more details).
- Alert levels are shown as indicators over their heads.*
- A green indicator means the cop is watching you. Yellow and red mean he's suspicious, and he'll investigate.*

Starting Pursuits
- If an investigating cop gets close, he'll stop you and ask for ID. Niko is an illegal immigrant, so you'll get 1 star.
- With high notoriety (3+ stars) if a nearby cop becomes fully alerted, he'll recognize you.
- If a fully alerted cop sees you bump someone or commit a serious traffic crime, he'll give you 1 star.*
- If you hold a gun/explosive near a cop, there's a % chance he'll spot your weapon and give you 1 star.*
- If you get arrested (or die during a chase), your arrest warrant will be cleared.

High Alert*
- Cops will be alerted more easily for a while after you escape a chase, if you were identified.
- If a cop becomes fully alerted during this time, the previous chase will resume.
- High Alert lasts 1 minute for every star on your warrant.

Wanted Vehicles
- Your vehicle can have its own wanted level, if it's identified during a chase.
- Outside of chases, only investigating cops will ID your wanted vehicle.
- If your vehicle's wanted level is 3+ stars, it will alert cops on sight.
- Stolen vehicles are often reported.*
- Go to a Pay 'n' Spray to clear the vehicle's wanted level.

Paying Bribes*
- Press 5 on the numpad to arrange a bribe meeting.
- At the meeting:
. . . . Press 4 and 6 to cycle through crime levels (1 star, 2 stars, etc.).
. . . . Press 8 and 2 to add and remove crimes from the bribe.
. . . . Press 5 to pay the bribe.
. . . . Press Delete to reset the current bribe.
. . . . The notoriety value and bribe cost are displayed for each crime level.

* Can be disabled in the INI.

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

HOW TO INSTALL:
This is a script for HazardX's .NET scripthook. Just extract the files into the 'scripts' folder of the .NET scripthook.

Note:
- Make sure you have the latest scripthook version, v1.7.1.7.
- See below for known bugs, so you know what to expect.

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


v1.1 is available for testing!


v1.0.5 - last updated October 8, 2012

ADF.LY DOWNLOAD
If you'd like to support me and my mods,
please take 5 seconds and use this download link!

NORMAL DOWNLOAD
If you're in a hurry, use this one.


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

TIPS

General
- Many settings can be tweaked in the INI.
- Hold PageDown and press 5 on the numpad to disable/enable the mod. This won't clear your warrant or your wanted vehicles.

Being Spotted
- The chance of your face being identified depends on:
. . . . your wanted level
. . . . whether you're in a vehicle, and the vehicle's speed
. . . . whether the cop is downed (but not dead)
. . . . how long the cop has continuously seen your face
- The chance of your vehicle being identified depends on:
. . . . your wanted level
. . . . your vehicle's speed and wanted level
. . . . whether High Alert is active
. . . . how long the cop has seen your vehicle
- The chance of your gun being spotted depends on:
. . . . whether you're in a vehicle
. . . . whether the cop is currently interrogating you
. . . . the cop's alert level
. . . . the size of the weapon
- All the above chances also depend on:
. . . . your distance and notoriety
. . . . whether it's nighttime and/or raining
. . . . whether the cop is in a vehicle, and his vehicle's speed

Alerting Police
- How fast cops are alerted depends on:
. . . . your speed, distance, and notoriety
. . . . whether you're facing each other
. . . . whether you're in a vehicle, and the vehicle's speed, damage, and wanted level
. . . . whether you're breaking traffic laws
. . . . whether you're near a dead or dying person
. . . . whether you're holding a weapon
. . . . whether you're walking into people, climbing, or jumping
. . . . whether you've been too close to the cop for too long
. . . . whether High Alert is active
. . . . whether the cop has seen, investigated, interrogated, and/or identified you before
. . . . how long the cop has investigated you
- They are alerted much faster if your notoriety is rated 3 stars or more.
- Alert meters will slowly drain, but only if the cop isn't investigating and can't see you.
- Alert indicators only show on the map for cops who are in your character's line of sight (360º).
- Alert indicators will flash:
. . . . White flash = alert level is higher than it's been before (bigger increase = more flashes)
. . . . Gray flash = draining
. . . . Blue flashes = fully alerted

Investigations
- If you break a cop's line of sight while he's investigating, he'll run to your last known position, try to guess where you went, and then give up if he can't find you.
- If you're far away, the cop will jog for a while to close the distance.
- If a cop sees you run while he's investigating, he'll be alerted very fast. (Using my Weapon Weight mod, you can "hurry" to walk faster.)
- Cops in cars...
. . . . will try to follow you while investigating, if you're in a vehicle.
. . . . won't investigate until their indicators turn red, if you're on foot.

Secondary Vision
- As a workaround for cops who can't see far, cops in cars and/or investigating have "secondary vision".
- Secondary vision is 360º and its range depends on the cop's alert level.
- There's a chance, based on his alert level, that he'll see you in this field of view.

Escalating Notoriety
- A new crime is added to your warrant every time you escape after being identified (not including chases resumed during High Alert).
- Eventually, the notoriety from these crimes can add up, increasing your notoriety rating.
- Even 1-star crimes can add up to a 2-star notoriety rating, if you have a lot of them on your warrant.
- Notoriety escalates slowly at first (thirty 1-star crimes = one 2-star crime), but it gets much faster at higher levels (five 2-star crimes = one 3-star crime).


Recommended Related Mods
- Less Cops in Liberty City by lilmcnessy — Fewer police will spawn.
- Halt Traffic Behind by HazardX, modified by me — Makes NPCs stop behind your car instead of trying to drive around.
- Weapon Weight by me — Includes a "hurry" feature to walk/run/swim faster. Useful when evading police.
- Prison Break by HippieCommunist — Go to prison when arrested. Post bail or try to escape.
- Farnsworth's Business Mod by Prof_Farnsworth — Buy businesses and earn money for bribes.

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

KNOWN BUGS (and workarounds for some)

Important Bugs
- Your arrest warrant is only saved when you use a bed to save the game, not when the game autosaves.
- Your arrest warrant is persistent across different savegames. Workaround: manually create a different ArrestWarrant.dat file for each save.
- When patrolling cops see an NPC criminal, they either ignore or shoot at him. Workaround: disable PreventCopDeletion in the INI, or temporarily toggle the mod off until the NPC criminal gets chased away.

Unfixable GTA IV Bugs
- Most cops can't see very far.
- The game AI can see through many things it shouldn't, like low walls, dumpsters, vehicles, vegetation, and people.
- The game AI can't follow you through certain areas. Currently known to affect several alleys, one door, and one subway station staircase.
- Sometimes, the game gives you 1 star for stealing a vehicle when you only tried to open a locked car door.
- Sometimes, the game thinks you committed a traffic crime when you didn't (e.g. it thinks a street is one-way when it's not).
- The game fades the indicators over cops when you're close to them.

Vehicle Bugs
- If you commit traffic crimes while moving very slowly, the police won't notice.
- Cops are really bad at tailing you in cars, often crashing or making pointless wrong turns.
- Stolen vehicles don't get reported if they're empty and unlocked when you get in (this is a workaround to prevent your saved cars from being reported).

Minor Bugs
- At the start of an interrogation, alert indicators stop flashing for a moment.
- During an interrogation, sometimes cops don't face you.
- Calling Kiki Jenkins or Francis McReary to remove your wanted level doesn't prevent the crime from being added to your warrant. Workaround: toggle this mod off (PageDown + 5) before using the cheat.
- Any cheats for removing your wanted level (including the Kiki/Francis ones) don't reset cop alert levels. Workaround: same as previous.

Incompatibility with Other Mods
- Switching the player model with a trainer causes an error. Workaround: same as previous.
- This mod conflicts with Wanted, Wanted Vehicle, Weapon Arrest, and Drive Felony by BR_Goianiense.
- Ticket by HippieCommunist: Sometimes, cops will ticket you twice (or more) in a row.




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




CHANGE LOG
v1.0.5 — October 8, 2012
- Cops turn their heads to look at you when their alert indicators are green.
- Fixed bug where you were always instantly IDed when chases first started.
- Minor tweak: Decreased default VehicleID_MinSecs INI setting from 7 to 6.

v1.0.4 — October 6, 2012
- Police get alerted when you're driving an emergency vehicle nearby.
. . . . Added "Driving_EmergencyVehicle" INI setting to tweak this.
- You're instantly IDed for new stars in a chase if you were already IDed (reverted from v0.9.9).
. . . . Added "NewStarsInstantID" INI setting — if set to "false", you must be IDed by a new cop or seen by a cop who already IDed you.
- Minor code cleanup.

v1.0.3 — August 2, 2012
- Bribe contact is armed with a Desert Eagle.
- Fixed bugs where...
. . . . OverallAlertModifier INI setting constantly alerted all cops.
. . . . keypresses wouldn't work while holding Shift/Ctrl/Alt.
. . . . invalid weapons, like the parachute in EFLC, caused script crashes.
. . . . disabling all traffic crimes except speeding disabled speeding too.
. . . . speech audio wouldn't work while receiving a ticket (with HippieCommunist's Ticket.cs mod).
- Decreased script file size by 9% (was using the wrong compile mode before).
- Renamed LastBribeKey INI setting to PrevBribeKey.
- Very minor tweaks, optimization, and cleanup.

v1.0.2 — March 25, 2012
- Increased default bribe costs for 4+ stars.
- Fixed bug where increased alert modifiers in the INI could make cops get alerted too fast or too slow.
- Minor tweaks to the INI file, minor code cleanup.

v1.0.1 — January 12, 2012
- Added "mission complete" music when arrest warrant crimes are added/removed (can be disabled in the INI under MESSAGES).
- Increased how much cops are alerted by running, especially during High Alert.
- After bribing, any remaining High Alert time will decrease based on your remaining notoriety, instead of clearing completely.
- Cops mention reckless driving when interrogating near your car (you no longer have to be sitting in the car).
- Changed default value of "IDStatus_NumberOfCops" to false (under MESSAGES).
- Cleaned up keypress handling.
- Fixed bug where cops would steal your car.
- Fixed bug where interrogations would get stuck, breaking other parts of the mod.
- Fixed bug where cops in cars wouldn't reliably inherit the highest alert level among them.

v1.0 — December 31, 2011
- Police can identify vehicles.
- Stolen vehicles have a chance of being reported.
- Cops are alerted when you break certain traffic laws.
- New INI settings, including how much each traffic crime alerts cops.
- You have to meet an NPC to pay bribes.
- Cops are less likely to spot your face/vehicle/weapon at night and/or in rain.
- Disabled the police radio that you hear during chases (can be re-enabled in the INI).
- When a fully alerted cop sees you bump into someone, he'll give you 1 star.
- Within a cop car, all cops inherit the highest alert level among them.
- Alert indicators for cop car passengers are hidden, instead of overlapping the driver's.
- Alert indicators on the map show alert levels in their labels.
- New types of flashes for alert indicators.
- More cop speech:
. . . . comment when you walk into people or you're too close for too long.
. . . . comment when they see you crash your car into another car.
. . . . comment when they've seen reckless driving and pull you out of a car for an interrogation.
. . . . comment when they give up an investigation on foot.
. . . . yell when they're nearby and their indicators are red. (The cop won't flag you for evading police unless he has yelled at you.)
- Workaround for nearsighted cops: Cops in cars and/or investigating have "secondary vision"
. . . . Secondary vision is 360º and its range depends on the cop's alert level.
. . . . There's a chance based on his alert level that he'll see you in this field of view.
- Investigating cops in cars...
. . . . will follow you if you're in a moving car.
. . . . no longer abandon their cars if your car is far away or moving at moderate speed.
- Investigating cops are alerted when you drive away from them (unless driving quite slowly).
- When you break an investigating cop's line of sight, he'll guess which direction you went.
- Improved cop awareness of jumping, running, walking into people, and being near dead people.
- Significantly increased default tracking range setting; made a separate setting for cops in cars.
- Whether guns are "large", "medium" or "small" depends on their dimensions, instead of weapon type.
- Added readme file.
- Lots of fixes and tweaks.

v0.9.9 hotfix — October 8, 2011
- Fixed bug where interrogations wouldn't progress properly.
- Fixed bug where cops would be deleted more often than normal during chases.
- Minor optimization and cleanup.

v0.9.9 — October 7, 2011
- Every consecutive second cop can see face at close range, +3% chance to ID; resets once cop can't see face anymore. (Imitates "getting a good look" at the player.)
- If you were IDed and you escape a chase, cops will be alerted easily, and the chase will resume if they become fully alerted. Lasts 1 minute for every star on your warrant.
- Cops now notice when you run near them even if they can't see you.
- When you've been IDed and earn additional stars in a chase, you're no longer immediately IDed for the new stars. Now you must be IDed by a new cop or seen by a cop who already IDed you.
- Cops who are down but not dead can now ID you.
- Cops who have died are no longer counted as having IDed you.
- Added "IdentifyChanceModifier" INI setting — changes how likely cops are to identify you.
- Added several INI options for tweaking messages.
- Replaced "ShowNotifications" option with separate options for "identified" and "crime added" messages.
- Decreased max bribe cost to $999,999,999 (because that's the max that you can carry).
- Increased default bribe costs for 3+ stars.
- Increased default MaxTrackedCops from 20 to 25.
- Improved cop tracking (several fixes and tweaks).
- Improved cop tailing during investigation (more fixes and tweaks).
- Improved compatibility with Ticket mod by HippieCommunist.
- Fixed occasional "NullReferenceException" and "NonExistingObjectException" script crashes.
- Fixed major bug in calculation of cops' chance to ID.
- Lots of minor fixes and tweaks, and a few optimizations.

v0.9.8 — September 6, 2011
- Renamed the mod from "Criminal Record" to the more accurate name "Arrest Warrant".
- Alert indicators now flash every time a cop's peak alert level gets higher.
- Cops are now alerted when they see you climb, and sometimes when you jump.
- Cops will start getting alerted if you're close to them for a long time.
- If a cop can see you and has been fully alerted for several seconds, you'll get 1 star.
- Added "MaxTrackedCops" INI setting to avoid a noticeable performance impact.
- Added "ShowNotifications" INI setting to disable "crime added to warrant" messages.
- Workaround "fix" for some cops starting to chase an NPC and then immediately stopping.
- Various tweaks, fixes and cleanup.

v0.9.7 — August 28, 2011
- Cops are now alerted when you bump into people. More so for bumping cops, especially for the cop being bumped.
- Cops are also alerted when you're near a dead or dying person.
- Cops are also alerted when you stand face-to-face very close.
- Fixed several bugs affecting investigating cops.
- If your notoriety is high and a cop has investigated you for 90 seconds (not counting when he can't see you), he'll start getting alerted faster.
- Decreased the range in which cops can recognize you when fully alerted, especially with lower notoriety.
- Now investigating cops always move faster while walking, and they jog when they lose you. Removed MoveFasterWhileInvestigating INI setting.
- Added AlertModifier INI setting, to increase/decrease how much cops are alerted per second.
- Cop indicators are now labeled "Cop" on the map, instead of "Enemy".
- Minor tweaks, fixes and cleanup.

v0.9.6 hotfix — July 26, 2011
- Fixed bug where cop deletion would be prevented after an interrogation, even if PreventCopDeletion was set to false.
- Fixed bug with older GTA4 patches where cops would shoot at the player with only 1 star, or even when not wanted.
- Fixed bug where escaping after being identified would immediately make the player wanted again.
- Minor fixes and tweaks.

v0.9.6 — July 25, 2011
- Partially fixed major bug where cops could be deleted by the game when off-screen. Cops in cars/standing around can still be deleted.
- Fixed major bug where cops would repeatedly identify the player, quickly giving massive notoriety.
- Increased how much fast movement alerts cops, and how fast cops regain their peak alert level.
- Increased default cop tracking range by 33%.
- Made a separate INI setting for whether weapons alert cops (formerly included in "WeaponsAreIllegal").
- Minor fixes and tweaks.

v0.9.5 — July 22, 2011
- Added INI file for keys, bribe costs, and other settings.
- Now only the knife and bat will alert cops faster.
- For guns, grenades, and molotovs, now there's a chance the cops will notice the weapon (like how they identify your face) and give you 1 star.
- Fixed bug where cop alert levels wouldn't drain after giving up an investigation.
- Compiled script and changed save file to CriminalRecord.dat.
- Minor tweaks and cleanup.

v0.9.4 — July 19, 2011
- Offenses are now added to your record as soon as you're identified, and the Notoriety value is shown.
- Fixed bug where earning more stars after initially being identified wouldn't increase notoriety.
- Significantly increased bribe costs for 2+ stars, and increased notoriety value of 3-star offenses.
- Cops are alerted much faster when they see you holding a weapon, especially a large weapon.
- Tweaked how fast cops regain their peak alert level after losing you and then seeing you again.
- If you escape after being identified, the cops who identified you are alerted faster if they see you again.
- Improved compatibility with Prison Break by HippieCommunist: Fixed bugs where 4-star offenses were wrongly added to criminal record while wearing prison uniform, and where instantly earning 4+ stars in any situation would be considered a prison escape.
- Improved compatibility with Ticket by HippieCommunist: Fixed bugs where cops would follow you everywhere after a ticket, and where waiting until an interrogation ended would give you ticket after ticket, potentially for eternity.
- Minor fixes and tweaks.

v0.9.3 — July 12, 2011
- Cops are now tracked and can be alerted even if you have 0 notoriety.
- When an investigating cop loses sight of you, if he still can't see you after 2 seconds, he'll run straight to where you are at that moment, to imitate "guessing" which direction you went after he lost you.
- Decreased chance of being identified by police when farther away.
- Increased range in which cops are tracked.
- Fixed bug where getting into a car and driving away wouldn't fail an interrogation.
- Other minor fixes, tweaks, and cleanup.
- Changed version numbering scheme.

v0.9c — July 10, 2011
- Added little "interrogations" to the end of investigations.
- With a wanted rating of 2 or less, fully alerting cops no longer gives you a wanted level. Instead, they'll just follow until they lose you or you're close enough to interrogate.
- If the police identify you while your wanted level is 1 star and you have a notoriety rating of 2 stars, you will no longer be given 2 stars (because realistically cops wouldn't know your face well enough with that amount of notoriety).
- Cops walk faster while investigating, and fat cops run faster as well.
- If a cop has investigated and lost you, they will quickly regain their previous alert level the next time they see you. (And if they've interrogated you before, the next interrogation will be much shorter.)
- Tweaked how far cops can see and how fast certain situations alert them.
- Alert indicators now show on the map if the cop is in your character's line of sight (360º).
- Fixed bug where not all cops were affected by the script in crowded areas.
- Workaround for bug where the alert meter filled way too fast due to the player velocity being inaccurate. Side effect: Moving fast while not in a vehicle will negate the effect of velocity on alert level.
- Added compatibility for HippieCommunist's Prison Break mod: now when you break out of prison, you'll immediately be identified and notorious. (Note: only works if you set "AlarmWanted" in Prison.ini to at least 4.)
- Improved compatibility for HippieCommunist's Ticket mod: when you pay a ticket, all suspicious cops will have their alert levels reduced to just under the suspicion threshold.
- Minor fixes, optimization, and cleanup.

v0.9b — July 8, 2011
- Fixed bug where breaking an investigating cop's line of sight would make him always go to your last known position, even if he sees you again before he gets there.
- Fixed another bug where an investigating cop would go to a position far away from where he last saw you.
- Added compatibility for HippieCommunist's Ticket script. Offenses aren't added to your record if you pay the fine. If you only have a 1-star notoriety rating, it will be cleared after paying. (NOTE: Only works if your Ticket file name is "ticket.cs".)
- Minor fixes and optimization


If you read all of that, I offer you THIS: cookie.gif

This post has been edited by AngryAmoeba on Sunday, Feb 24 2013, 12:24

O This mod is hosted at GTAGarage.com

Screenshots:
GTAGarage screenshot GTAGarage screenshot GTAGarage screenshot GTAGarage screenshot GTAGarage screenshot GTAGarage screenshot

Downloads:
Download Arrest Warrant v1.0.5 - 0.035MB, uploaded on Oct 10 2012, downloaded 615 times

Click here to view the mod at GTAGarage

PM
  Top
 

 
AngryAmoeba  
Posted: Monday, Jul 11 2011, 03:01
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



Significant update in first post... See above for changes in v0.9c.

Unfortunately cops being deleted while off-screen is still a major issue. To programmers, a little more info: I tried setting cops as mission characters, but this cleared their tasks and made them stop acting like cops, e.g. responding to ambient crimes. I couldn't find a fix for this, and I couldn't find any other way to mark peds as needed. Still hoping to find a solution.
PM
  Top
 

 
WhiteGoblin  
Posted: Monday, Jul 11 2011, 07:21
Quote Post


I am one with the net
Group Icon
Group: Members
Joined: Apr 24, 2011

XXXXX



Very cool fine sir, very cool. I'm pretty much out of time to game anymore, at least for now. Just maintaining the realism collection is more then my free time at the moment but I have to say I'm very interested in where this goes. Really appreciated your work, it's been nice to see them grow in complexity as you've continued sharing with us. Thank you for everything, I'll be keeping an eye while wishing the best for your continued projects! icon14.gif
PM
  Top
 

 
sammclean23  
Posted: Wednesday, Jul 13 2011, 10:42
Quote Post


Hustler
Group Icon
Group: Members
Joined: Jul 21, 2007

uk.gif

XXXXX



Always wanted something like this when playing GTA 4...shame I havent had it installed for a while now sad.gif

Good luck with it though...sounds great so far!
PMMSN
  Top
 

 
freestyla85  
Posted: Saturday, Jul 16 2011, 07:45
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Mar 24, 2010

XXXXX



thats ambitious but amazing idea!
PM
  Top
 

 
lolleroz  
Posted: Sunday, Jul 17 2011, 19:48
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



this mod just proves that you don't have to be zomg god of scripting to make f*cking awesome mod...idea is half of success, so why most of people spend time making dumb firing rockets out of ur ass mods? :S
PM
  Top
 

 
ikt  
Posted: Sunday, Jul 17 2011, 20:18
Quote Post


 
Group Icon
Group: Members
Joined: Oct 2, 2006

XXXXX



QUOTE (AngryAmoeba @ Monday, Jul 11 2011, 05:01)
Significant update in first post... See above for changes in v0.9c.

Unfortunately cops being deleted while off-screen is still a major issue. To programmers, a little more info: I tried setting cops as mission characters, but this cleared their tasks and made them stop acting like cops, e.g. responding to ambient crimes. I couldn't find a fix for this, and I couldn't find any other way to mark peds as needed. Still hoping to find a solution.

When you spawn them, shouldn't they have a 'thing' that tells the script how to deal with them? Doesn't need to be a mission ped.
In ScriptHook it uses the native NATIVE_CREATE_CHAR

static void CreateChar(u32 type, eModel model, f32 x, f32 y, f32 z, Ped *pPed, b8 unknownTrue) { NativeInvoke::Invoke<NATIVE_CREATE_CHAR, ScriptVoid>(type, model, x, y, z, pPed, unknownTrue); }

The bold ones, doesn't DotNet return them?
PM
  Top
 

 
AngryAmoeba  
Posted: Sunday, Jul 17 2011, 23:02
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



QUOTE (ikt @ Sunday, Jul 17 2011, 14:18)
QUOTE (AngryAmoeba @ Monday, Jul 11 2011, 05:01)
Significant update in first post... See above for changes in v0.9c.

Unfortunately cops being deleted while off-screen is still a major issue. To programmers, a little more info: I tried setting cops as mission characters, but this cleared their tasks and made them stop acting like cops, e.g. responding to ambient crimes. I couldn't find a fix for this, and I couldn't find any other way to mark peds as needed. Still hoping to find a solution.

When you spawn them, shouldn't they have a 'thing' that tells the script how to deal with them? Doesn't need to be a mission ped.
In ScriptHook it uses the native NATIVE_CREATE_CHAR

static void CreateChar(u32 type, eModel model, f32 x, f32 y, f32 z, Ped *pPed, b8 unknownTrue) { NativeInvoke::Invoke<NATIVE_CREATE_CHAR, ScriptVoid>(type, model, x, y, z, pPed, unknownTrue); }

The bold ones, doesn't DotNet return them?

I don't create any peds, I just keep track of the cops that are created by the game. smile.gif

------

Side note: in the next version (0.9.4), I've fixed all known compatibility issues with HippieCommunist's Prison Break and Ticket mods. They tie into this mod really well. I'd like to release the update right now, but I broke my GTA4 install a couple days ago and haven't had time to fix it! I don't want to release it until I can test and make sure it isn't broken.

This post has been edited by AngryAmoeba on Sunday, Jul 17 2011, 23:07
PM
  Top
 

 
lolleroz  
Posted: Tuesday, Jul 19 2011, 11:03
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



I just realised the mod doesn't work for me, lol. I have about 40 scripts running, along with all of your mods, and this one just doesn't want to load, the bastard. I tried to remove all the scripts except for yours, and the only thing what happened was the script not being readed by scripthook again - I typed reloadscripts and it didn't say your script was loaded. Num 0 doesn't do anything
PM
  Top
 

 
AngryAmoeba  
Posted: Tuesday, Jul 19 2011, 19:04
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



Can you post your ScriptHookDotNet.log with all scripts removed except this one?
PM
  Top
 

 
lolleroz  
Posted: Tuesday, Jul 19 2011, 19:23
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX




2011-07-19 9:19:17 p.m. - Initializing ScriptHookDotNet v1.7.1.4 BETA (GTA IV version 1.0.7.0)
2011-07-19 9:20:52 p.m. - Direct3D device created!

2011-07-19 9:20:56 p.m. - SEARCHING FOR SCRIPTS ...
2011-07-19 9:20:56 p.m. - Loading Dynamic scriptfile 'scripts \ CriminalRecord.cs' ...
2011-07-19 9:21:00 p.m. - 6 Errors in script 'D: \ Games \ IV \ Grand Theft Auto IV \ scripts \ CriminalRecord.cs':
In Line 524: The variable 'ex' is declared but not used.
In Line 525: The variable 'ex' is declared but not used.
In Line 526: The variable 'ex' is declared but not used.
In Line 620: The variable 'ex' is declared but not used.
In Line 621: The variable 'ex' is declared but not used.
In Line 429: Can not find the type name or namespace 'NonExistingObjectException "(if there is no shortage of the" using "or appeal to the set?).

2011-07-19 9:21:00 p.m. - DONE! DotNet No script found!
2011-07-19 9:21:01 p.m. - Error During GetPhoneNumber (Phone checks will be disabled):
System.Exception: Accessing Globals failed! Invalid Memory Address!
at unmanaged.MemoryAccess.GetGlobalAddress (Int32 index)
at unmanaged.MemoryAccess.GetPhoneNumber ()
at GTA.NetHook.CheckPhone ()

This post has been edited by lolleroz on Tuesday, Jul 19 2011, 19:47
PM
  Top
 

 
AngryAmoeba  
Posted: Tuesday, Jul 19 2011, 20:02
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



A newer .NET scripthook is needed. I think v1.7.1.5 should be okay, but I'd recommend the latest version, v1.7.1.7.

This post has been edited by AngryAmoeba on Tuesday, Jul 19 2011, 20:09
PM
  Top
 

 
lolleroz  
Posted: Tuesday, Jul 19 2011, 20:07
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



I'll just go and download the newest version, note that I suck at searching so if you're reading this, if you have a link under your hand that would be appreciated. tounge.gif
PM
  Top
 

 
AngryAmoeba  
Posted: Tuesday, Jul 19 2011, 20:10
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



There's a link to the scripthook thread in the first post, under "how to install".

But I'll put it here too, for your convenience. tounge.gif

http://www.gtaforums.com/index.php?showtopic=392325
PM
  Top
 

 
lolleroz  
Posted: Tuesday, Jul 19 2011, 20:20
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



That's odd, cause I already had the same packages installed e_e
I'll reinstall and tell you if it works, thanks
PM
  Top
 

 
AngryAmoeba  
Posted: Wednesday, Jul 20 2011, 02:49
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



New version in first post...

Changes in v0.9.4
- Offenses are now added to your record as soon as you're identified, and the Notoriety value is shown.
- Fixed bug where earning more stars after initially being identified wouldn't increase notoriety.
- Significantly increased bribe costs for 2+ stars, and increased notoriety value of 3-star offenses.
- Cops are alerted much faster when they see you holding a weapon, especially a large weapon.
- Tweaked how fast cops regain their peak alert level after losing you and then seeing you again.
- If you escape after being identified, the cops who identified you are alerted faster if they see you again.
- Improved compatibility with Prison Break by HippieCommunist: Fixed bugs where 4-star offenses were wrongly added to criminal record while wearing prison uniform, and where instantly earning 4+ stars in any situation would be considered a prison escape.
- Improved compatibility with Ticket by HippieCommunist: Fixed bugs where cops would follow you everywhere after a ticket, and where waiting until an interrogation ended would give you ticket after ticket, potentially for eternity.
- Minor fixes and tweaks.
PM
  Top
 

 
OnePiece  
Posted: Wednesday, Jul 20 2011, 03:32
Quote Post


Turdler Durpden
Group Icon
Group: $outh $ide Hoodz
Joined: Jun 21, 2005

au.gif

Member Award




Awesome mod icon14.gif once you gets the few bugs left it will be great. I never liked IVs original wanted level system.
PMMSN
  Top
 

 
lolleroz  
Posted: Wednesday, Jul 20 2011, 09:13
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



f*ck my life, I have :
http://www.microsoft.com/download/en/detai...ang=en&id=17718
http://www.microsoft.com/download/en/detai...lang=en&id=5555
and it still doesn't work (same error as b4), seriously :<
PM
  Top
 

 
AngryAmoeba  
Posted: Wednesday, Jul 20 2011, 18:01
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



@OnePiece: Thanks! biggrin.gif

@lolleroz: So your scripthook log still says you're using v1.7.1.4? Or does it say 1.7.1.7 now, but still gives the error about "NonExistingObjectException"?
PM
  Top
 

 
lolleroz  
Posted: Wednesday, Jul 20 2011, 19:20
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



I don't understand, it still says I'm using 1.7.1.4 instead of 1.7.1.7, but I installed everything that was needed to, I'll re-download scripthook and see if it works. The error is the same.
Sorry for my dumbness, everytime i extracted new scripthook into my game folder, it created a new one thus it never replaced the files...*facepalm*
it works like a charm, ill give some feedback later

This post has been edited by lolleroz on Wednesday, Jul 20 2011, 21:31
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Pages: (9) [1] 2 3 ... Last »

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG