Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Summer Special
      2. The Diamond Casino Heist
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

HazardX

[BETA] GTAIV .Net ScriptHook

Recommended Posts

L0uNGeR

Does anyone know how to set the wanted level on 5 or 6?

It always goes to 4 as a maximum when I set it, but when I have level 6 and I read the value it's also 6.

 

            // Every buttonpress lowers the wanted level by 1. When it's 0, it will be set to 6           if (Player.WantedLevel > 0)           {               Player.WantedLevel--;           }           else           {               Player.WantedLevel = 6;           }           Game.DisplayText("Wanted Level: " + Player.WantedLevel);

 

 

I've tried using the native APPLY_WANTED_LEVEL_CHANGE_NOW but that didn't do anything.

 

Thanks in advance happy.gif

Share this post


Link to post
Share on other sites
Prof_Farnsworth
The CurrentRoom property seems to always cause an access violation.

 

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

 

Edit: Nevermind. Turns out, the Ped was spawned so far away, that when I accessed the property, the Ped was deleted because isRequiredForMission was false (Which was tricking me, as Exists returned true).

 

 

I find this error occurs more when using native function calls, though I am not sure why. It also only seems to cause problems with scripts occasionally.

Share this post


Link to post
Share on other sites
Saerek

Description:

Stopped working

 

Problem signature:

Problem Event Name: APPCRASH

Application Name: EFLC.exe

Application Version: 1.1.2.0

Application Timestamp: 4bda136c

Fault Module Name: KERNELBASE.dll

Fault Module Version: 6.1.7600.16385

Fault Module Timestamp: 4a5bdbdf

Exception Code: e0434f4d

Exception Offset: 0000b727

OS Version: 6.1.7600.2.0.0.768.3

Locale ID: 1033

 

This is what I get when I try loading up EFLC, however it pops up before the game pops up. I get to the menu, choose which game, it tries loading and it fails, due to scripthook i think. I have both .net 4.0 and the other distribution from microsoft using the links from first post. (using latest scripthook dot net)

Share this post


Link to post
Share on other sites
ikt
Does anyone know how to set the wanted level on 5 or 6?

It always goes to 4 as a maximum when I set it, but when I have level 6 and I read the value it's also 6.

 

            // Every buttonpress lowers the wanted level by 1. When it's 0, it will be set to 6           if (Player.WantedLevel > 0)           {               Player.WantedLevel--;           }           else           {               Player.WantedLevel = 6;           }           Game.DisplayText("Wanted Level: " + Player.WantedLevel);

 

 

I've tried using the native APPLY_WANTED_LEVEL_CHANGE_NOW but that didn't do anything.

 

Thanks in advance happy.gif

If you haven't unlocked some islands yet, the maximum wanted level will stay on 4. Try using a savegame with the complete storyline finished, that should work like normally.

Share this post


Link to post
Share on other sites
L0uNGeR
Does anyone know how to set the wanted level on 5 or 6?

It always goes to 4 as a maximum when I set it, but when I have level 6 and I read the value it's also 6.

 

            // Every buttonpress lowers the wanted level by 1. When it's 0, it will be set to 6           if (Player.WantedLevel > 0)           {               Player.WantedLevel--;           }           else           {               Player.WantedLevel = 6;           }           Game.DisplayText("Wanted Level: " + Player.WantedLevel);

 

 

I've tried using the native APPLY_WANTED_LEVEL_CHANGE_NOW but that didn't do anything.

 

Thanks in advance happy.gif

If you haven't unlocked some islands yet, the maximum wanted level will stay on 4. Try using a savegame with the complete storyline finished, that should work like normally.

Hmm, that's odd...

Because I don't have all islands unlocked, but I can get 6 stars (not by script) if I do my best.

Share this post


Link to post
Share on other sites
Donny78

C#:

 

Game.SetIntegerStatistic(IntegerStatistic.ISLANDS_UNLOCKED, 4);

 

 

Can't remember the C++, don't use it anymore but the native is:

 

SET_INT_STAT

 

 

363  Islands unlocked

 

 

So something like:

 

 

SetIntegerStat(363, 4);

 

 

Either way will sort out the stars issue if it is caused by what Ikt posted.

Share this post


Link to post
Share on other sites
Symbiote

So, I'm trying to get keys from an INI file, and it just isn't working.

 

 

SettingsFile ini = SettingsFile.Open(Game.InstallFolder + "\\scripts\\WeaponWeight.ini");ini.Load();removeWeaponKey = ini.GetValueKey("RemoveWeaponKey", "KEYS", Keys.Y);

 

 

I also tried Settings.GetValueKey. And in the INI file, I tried the key name as well as the key-code. No matter what, it always uses the default value, Keys.Y. GetValueFloat and GetValueBool both work, though.

 

I searched this thread and found some others who had this problem too, but I couldn't find a solution. confused.gif

Share this post


Link to post
Share on other sites
MulleDK19
So, I'm trying to get keys from an INI file, and it just isn't working.

 

 

SettingsFile ini = SettingsFile.Open(Game.InstallFolder + "\\scripts\\WeaponWeight.ini");ini.Load();removeWeaponKey = ini.GetValueKey("RemoveWeaponKey", "KEYS", Keys.Y);

 

 

I also tried Settings.GetValueKey. And in the INI file, I tried the key name as well as the key-code. No matter what, it always uses the default value, Keys.Y. GetValueFloat and GetValueBool both work, though.

 

I searched this thread and found some others who had this problem too, but I couldn't find a solution. confused.gif

First of all... Use Path.Combine if you want to use an absolute path.

 

Other than that, try using a relative path:

 

SettingsFile.Open("WeaponWeight.ini");

 

Share this post


Link to post
Share on other sites
Symbiote

The relative path is what I tried first, but it looks in the install folder instead of the scripthook folder.

 

The problem isn't finding the file, since getting floats and bools works fine. It's just a problem with getting keys.

 

P.S. Can you explain why Path.Combine is preferred? It takes an array of strings, which seems less straightforward to me...

Share this post


Link to post
Share on other sites
MulleDK19

 

The relative path is what I tried first, but it looks in the install folder instead of the scripthook folder.

 

The problem isn't finding the file, since getting floats and bools works fine. It's just a problem with getting keys.

 

P.S. Can you explain why Path.Combine is preferred? It takes an array of strings, which seems less straightforward to me...

It's good practice... Because, it uses the operating systems path seperator, rather than hardcoded to \\, and it makes it right.

 

Eg, if Game.InstallFolder would return "C:\\Games\\GTAIV\\", and you do + "\\scripts", then you get "C:\\Games\GTAIV\\\\Scripts", which could cause trouble.

 

Path.Combine takes all that into account.

 

also, you could still use a relative path: SettingsFile.Open(Path.Combine("scripts","WeaponWeight.ini"));

 

 

 

 

Also, are you sure your keys are stored correctly in the INI? Have you tried writing a key, then reading that?

Share this post


Link to post
Share on other sites
L0uNGeR

 

C#:

 

Game.SetIntegerStatistic(IntegerStatistic.ISLANDS_UNLOCKED, 4);

 

Thanks for your reply, I'll try to fix it up with this...

 

Another request/question:

 

Could anyone show a working example on how to use MetaData?

Like this:

 

p.Metadata.StuffWasDone = true;if (p.Metadata.StuffWasDone)   Game.DisplayText("Stuff was done!");

 

This works fine when I compile my script into a DLL.

But when I use a plain script, it keeps whining about Microsoft.CSharp.RuntimeBinder.Binder, which I cannot seem to find/include/use.

I must be missing something in my Visual C#....

Share this post


Link to post
Share on other sites
Symbiote

@MulleDK19

 

Thanks for the tip! I see what you mean.

 

About the keys... It turns out the problem was invalid comments. I was imitating the INI of an ASI mod, but I guess the syntax isn't the same.

 

Well, if it had worked in the beginning, I wouldn't have learned about Path.Combine, so... that's a win. tounge.gif

Share this post


Link to post
Share on other sites
MulleDK19

 

@MulleDK19

 

Thanks for the tip! I see what you mean.

 

About the keys... It turns out the problem was invalid comments. I was imitating the INI of an ASI mod, but I guess the syntax isn't the same.

 

Well, if it had worked in the beginning, I wouldn't have learned about Path.Combine, so... that's a win. tounge.gif

Glad it worked out for you smile.gif

 

 

 

Ya, you might want to check out the other methods in the System.IO.Path class.

 

Eg. Path.GetFullPath can be used to turn a relative path into an absolute path.

eg.

 

if you have a path, and you want the parent folder, you could do:

 

string currentPath = "C:\\hello\\";string parentFolder = Path.GetFullPath(Path.Combine(currentPath, ".."));//parentFolder is now "C:\\"

 

 

That's just an example. For parent folders you could also use:

 

Path.GetDirectoryName(currentPath);

 

As it returns the directory the file is in. But of course it's not able to tell directories from files without extensions, so it can be used to get parent folders too.

 

 

 

 

 

 

HazardX:

Please use ½ (220) for console if keyboard is danish (da).

Edited by MulleDK19

Share this post


Link to post
Share on other sites
TheJasonGallant

I have a good question, how do I change teams in-game? I already saw someone do that and I want to know how he did... He told me that he used the .net scripthook.

Share this post


Link to post
Share on other sites
L0uNGeR

 

I have a good question, how do I change teams in-game? I already saw someone do that and I want to know how he did... He told me that he used the .net scripthook.

Have a look at the GTA.Multiplayer.Team class and the GTA.RelationshipGroup type.

 

 

I got some more questions:

 

Questions moved to this topic.

 

 

Edited by L0uNGeR

Share this post


Link to post
Share on other sites
TheJasonGallant

 

I have a good question, how do I change teams in-game? I already saw someone do that and I want to know how he did... He told me that he used the .net scripthook.

Have a look at the GTA.Multiplayer.Team class and the GTA.RelationshipGroup type.

Well I'm not an expert... I don't know what you're talking about, where do I look for that? I tried type it in the console but I do not think it is that because it didn't do anything.

Edited by TheJasonGallant

Share this post


Link to post
Share on other sites
L0uNGeR
I have a good question, how do I change teams in-game? I already saw someone do that and I want to know how he did... He told me that he used the .net scripthook.

Have a look at the GTA.Multiplayer.Team class and the GTA.RelationshipGroup type.

Well I'm not an expert... I don't know what you're talking about, where do I look for that? I tried type it in the console but I do not think it is that because it didn't do anything.

No, GTA.RelationshipGroup is a type in scripting.

You have to use Team and RelationshipGroup in a .Net Script...

We don't even know if you want this for singleplayer or multiplayer, please explain what you are trying to accomplish.

Share this post


Link to post
Share on other sites
TheJasonGallant
I have a good question, how do I change teams in-game? I already saw someone do that and I want to know how he did... He told me that he used the .net scripthook.

Have a look at the GTA.Multiplayer.Team class and the GTA.RelationshipGroup type.

Well I'm not an expert... I don't know what you're talking about, where do I look for that? I tried type it in the console but I do not think it is that because it didn't do anything.

No, GTA.RelationshipGroup is a type in scripting.

You have to use Team and RelationshipGroup in a .Net Script...

We don't even know if you want this for singleplayer or multiplayer, please explain what you are trying to accomplish.

I want this for multiplayer... But I don't know anything in scripting...

Share this post


Link to post
Share on other sites
TheJasonGallant

 

I have a good question, how do I change teams in-game? I already saw someone do that and I want to know how he did... He told me that he used the .net scripthook.

Have a look at the GTA.Multiplayer.Team class and the GTA.RelationshipGroup type.

Well I'm not an expert... I don't know what you're talking about, where do I look for that? I tried type it in the console but I do not think it is that because it didn't do anything.

No, GTA.RelationshipGroup is a type in scripting.

You have to use Team and RelationshipGroup in a .Net Script...

We don't even know if you want this for singleplayer or multiplayer, please explain what you are trying to accomplish.

I want this for multiplayer... But I don't know anything in scripting...

Wait, somebody wanted me to do that: Static void SetPlayerTeam(Player player, u32 team) {Native invoke::Invoke<NATIVE_SET_PLAYER_TEAM, Scriptvoid>(player,team); }

 

Just eplain me what is that code, and tell me what to do plz.

 

But I quote myselt.... This wasn't expected...

Share this post


Link to post
Share on other sites
MulleDK19
I have a good question, how do I change teams in-game? I already saw someone do that and I want to know how he did... He told me that he used the .net scripthook.

Have a look at the GTA.Multiplayer.Team class and the GTA.RelationshipGroup type.

Well I'm not an expert... I don't know what you're talking about, where do I look for that? I tried type it in the console but I do not think it is that because it didn't do anything.

No, GTA.RelationshipGroup is a type in scripting.

You have to use Team and RelationshipGroup in a .Net Script...

We don't even know if you want this for singleplayer or multiplayer, please explain what you are trying to accomplish.

I want this for multiplayer... But I don't know anything in scripting...

Wait, somebody wanted me to do that: Static void SetPlayerTeam(Player player, u32 team) {Native invoke::Invoke<NATIVE_SET_PLAYER_TEAM, Scriptvoid>(player,team); }

 

Just eplain me what is that code, and tell me what to do plz.

 

But I quote myselt.... This wasn't expected...

It sets a player to a specific team.

 

My graphics card is fried, so I have no way to test it out, but I just wrote this small script, that might help you.

 

Note, that you must be the host to use this:

 

 

Find the scripts folder (It's in the same folder as the .exe files). If it doesn't exist, create it.

 

If you copied all the files and folders from the .NET ScriptHook archive, it should already be there.

 

Create a text file inside it, and rename it to SetTeamScript.cs, then open it, and paste this:

 

using System;using GTA;public class SetTeamScript : Script{   public SetTeamScript()   {       Interval = 250;       BindConsoleCommand("SetTeam", Command_SetTeam);   }   internal void Command_SetTeam(ParameterCollection parameters)   {       if (!Game.isMultiplayer)       {           Game.Console.Print("Command only available in multiplayer!");           return;       }       if (!GTA.Multiplayer.Host.isHost)       {           Game.Console.Print("You must be the host of the server to use this command!");           return;       }       string name = null;       int team = -1;       try       {           name = parameters[0].ToString();           if (name == null || name == "")               throw new Exception();           team = Convert.ToInt32(parameters[1]);           if (team < 0)               throw new Exception();       }       catch (Exception ex)       {           Game.Console.Print("Invalid team specified.");           return;       }       GTA.Player thePlayer = null;       foreach (GTA.Player player in Game.PlayerList)       {           if (player.Name.ToLower().IndexOf(name) > -1)           {               thePlayer = player;               break;           }       }       if (thePlayer == null)       {           Game.Console.Print("Player not found!");           return;       }       thePlayer.Team = new GTA.Multiplayer.Team(team);       Game.Console.Print(thePlayer.Name + " is now on team " + team.ToString());   }}

 

 

 

Save it, then launch the game.

 

 

 

Though, like I said, I haven't tested this, so it may not work correctly, or not even at all.

 

After hosting a multiplayer session, open the console and type:

 

 

SetTeam "name" 0

 

 

Replace name with a player's full name, or partial name. (Eg. if a player is called "Mickey Mouse", you can just type "mouse" or "mickey" or "ey mou", etc.).

 

Replace the 0 with the team index.

Share this post


Link to post
Share on other sites
nonesprada

NEED HELP ! i was open a game and i using this enbseries (http://www.gtainside.com/en/download.php?do=comments&cat=386&start=0&id=33181&orderBy=voting#77946) and then i was going into game menu and i wait for the game to load my savegame but windows is say application is crash APPCRASH or something . can somebody help me.

 

(i use patch 1.0.4 )

 

Share this post


Link to post
Share on other sites
L0uNGeR
Question moved to this topic. Edited by L0uNGeR

Share this post


Link to post
Share on other sites
GingerHairHater

I Need Help.

My Script Hook Make My Map Disappear. Can Anyone Help?

 

heres The Log

 

2011-05-15 15:55:55 - STARTING SCRIPTS...

2011-05-15 15:55:55 - ...successfully started script 'GrabScript.GrabScript'!

2011-05-15 15:55:55 - ...successfully started script 'GrabScript.EveryoneGrabMeScript'!

2011-05-15 15:55:59 - Error in constructor of script 'TestScriptCS.Smoking':

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

at GTA.ScriptThread.LoadScriptNow()

2011-05-15 15:56:07 - Direct3D device lost!

2011-05-15 15:56:07 - SCRIPTS TERMINATED!

 

Where It Says 'Direct3D Device Lost!' i Think Is The Problem

 

Someone PLZ HELP!!! its been pissing me off ever since i got it

Share this post


Link to post
Share on other sites
RomerJon17

I have a big problem with the Scriptdotnet

 

It always crashes when loading the game...

 

Here are the codes:

 

 

2011-05-15 17:50:53 - CRASH!2011-05-15 17:50:53 - Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.                     File name: 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'                        at 0.LCPDFR-Obfuscated-6.1()                        at 0.LCPDFR-Obfuscated-6.0(Object A_0)                        at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)                        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)                        at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()                        at System.Threading.ThreadPoolWorkQueue.Dispatch()                        at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()                                          WRN: Assembly binding logging is turned OFF.                     To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.                     Note: There is some performance penalty associated with assembly bind failure logging.                     To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].                     2011-05-15 17:50:53 - CRASH!

 

 

Share this post


Link to post
Share on other sites
notspectre
I have a big problem with the Scriptdotnet

 

It always crashes when loading the game...

 

Here are the codes:

 

 

2011-05-15 17:50:53 - CRASH!2011-05-15 17:50:53 - Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.                     File name: 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'                        at 0.LCPDFR-Obfuscated-6.1()                        at 0.LCPDFR-Obfuscated-6.0(Object A_0)                        at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)                        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)                        at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()                        at System.Threading.ThreadPoolWorkQueue.Dispatch()                        at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()                                          WRN: Assembly binding logging is turned OFF.                     To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.                     Note: There is some performance penalty associated with assembly bind failure logging.                     To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].                     2011-05-15 17:50:53 - CRASH!

 

You should really read the instructions for lcpdfr and install the full version of the .NET Framework 4, found here:

http://www.microsoft.com/downloads/en/deta...9f-b21f31ab88b7

Share this post


Link to post
Share on other sites
RomerJon17
I have a big problem with the Scriptdotnet

 

It always crashes when loading the game...

 

Here are the codes:

 

 

2011-05-15 17:50:53 - CRASH!2011-05-15 17:50:53 - Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.                     File name: 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'                        at 0.LCPDFR-Obfuscated-6.1()                        at 0.LCPDFR-Obfuscated-6.0(Object A_0)                        at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)                        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)                        at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()                        at System.Threading.ThreadPoolWorkQueue.Dispatch()                        at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()                                          WRN: Assembly binding logging is turned OFF.                     To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.                     Note: There is some performance penalty associated with assembly bind failure logging.                     To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].                     2011-05-15 17:50:53 - CRASH!

 

You should really read the instructions for lcpdfr and install the full version of the .NET Framework 4, found here:

http://www.microsoft.com/downloads/en/deta...9f-b21f31ab88b7

I red all the instructions...

BUt I think that C++ was causing the problem...

Thanks smile.gif

Share this post


Link to post
Share on other sites
notspectre

You realise that C++ has nothing to do with System.Web, right? It's caused by you only having the client profile version of the .NET Framework 4, and not the full version.

Share this post


Link to post
Share on other sites
RomerJon17

Still causing the crash tounge.gif

I installed everything what you said tounge.gif But here all the codes u understand...

Sorry about that mate...

 

2011-05-15 17:49:50 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.7.0 with C++ Hook version 0.5.1)2011-05-15 17:50:47 - Direct3D device created!2011-05-15 17:50:49 - SEARCHING FOR SCRIPTS...2011-05-15 17:50:49 - Loading scripts in Assembly 'scripts\FirePatrol.net.dll' ...2011-05-15 17:50:49 -  ...found script 'emergencyscript.emergency'!2011-05-15 17:50:49 - Loading scripts in Assembly 'scripts\FirstResponse.net.dll' ...2011-05-15 17:50:49 -  ...found script '0.LCPDFR-Obfuscated-13'!2011-05-15 17:50:49 -  ...found script '0.LCPDFR-Obfuscated-5'!2011-05-15 17:50:49 -  ...found script '0.LCPDFR-Obfuscated-16'!2011-05-15 17:50:49 -  ...found script '0.LCPDFR-Obfuscated-1'!2011-05-15 17:50:49 -  ...found script '0.3.LCPDFR-Obfuscated-0'!2011-05-15 17:50:49 -  ...found script '0.3.LCPDFR-Obfuscated-1'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-8'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-14'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-9'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-11'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-10'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-13'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-2'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-4'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-15'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-3'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-12'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-6'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-5'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-0'!2011-05-15 17:50:49 -  ...found script '0.1.LCPDFR-Obfuscated-7'!2011-05-15 17:50:49 -  ...found script '1.0.LCPDFR-Obfuscated-0'!2011-05-15 17:50:49 -  ...found script '0.2.LCPDFR-Obfuscated-1'!2011-05-15 17:50:49 -  ...found script '0.2.LCPDFR-Obfuscated-0'!2011-05-15 17:50:49 - Loading scripts in Assembly 'scripts\gkFuelMod.net.dll' ...2011-05-15 17:50:49 -  ...found script 'gkFuelMod.fuelMod'!2011-05-15 17:50:49 - Loading scripts in Assembly 'scripts\LessOvertake.net.dll' ...2011-05-15 17:50:49 -  ...found script 'trafficruleCS.lessovertake'!2011-05-15 17:50:49 - DONE! 27 valid scripts found!2011-05-15 17:50:49 - STARTING SCRIPTS...2011-05-15 17:50:49 - INFO: Phone number checks are not available!2011-05-15 17:50:50 -  ...successfully started script 'trafficruleCS.lessovertake'!2011-05-15 17:50:50 -  ...successfully started script 'gkFuelMod.fuelMod'!2011-05-15 17:50:53 -  ...successfully started script '0.2.LCPDFR-Obfuscated-0'!2011-05-15 17:50:53 -  ...successfully started script '0.2.LCPDFR-Obfuscated-1'!2011-05-15 17:50:53 -  ...successfully started script '1.0.LCPDFR-Obfuscated-0'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-7'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-0'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-5'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-6'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-12'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-3'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-15'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-4'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-2'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-13'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-10'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-11'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-9'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-14'!2011-05-15 17:50:53 -  ...successfully started script '0.1.LCPDFR-Obfuscated-8'!2011-05-15 17:50:53 -  ...successfully started script '0.3.LCPDFR-Obfuscated-1'!2011-05-15 17:50:53 -  ...successfully started script '0.3.LCPDFR-Obfuscated-0'!2011-05-15 17:50:53 -  ...successfully started script '0.LCPDFR-Obfuscated-1'!2011-05-15 17:50:53 -  ...successfully started script '0.LCPDFR-Obfuscated-16'!2011-05-15 17:50:53 -  ...successfully started script '0.LCPDFR-Obfuscated-5'!2011-05-15 17:50:53 -  ...successfully started script '0.LCPDFR-Obfuscated-13'!2011-05-15 17:50:53 -  ...successfully started script 'emergencyscript.emergency'!2011-05-15 17:50:53 - Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.                     File name: 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'                        at 0.LCPDFR-Obfuscated-6.1()                        at 0.LCPDFR-Obfuscated-6.0(Object A_0)                        at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)                        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)                        at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()                        at System.Threading.ThreadPoolWorkQueue.Dispatch()                        at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()                                          WRN: Assembly binding logging is turned OFF.                     To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.                     Note: There is some performance penalty associated with assembly bind failure logging.                     To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].                     2011-05-15 17:50:53 - CRASH!2011-05-15 17:50:53 - Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.                     File name: 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'                        at 0.LCPDFR-Obfuscated-6.1()                        at 0.LCPDFR-Obfuscated-6.0(Object A_0)                        at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)                        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)                        at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()                        at System.Threading.ThreadPoolWorkQueue.Dispatch()                        at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()                                          WRN: Assembly binding logging is turned OFF.                     To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.                     Note: There is some performance penalty associated with assembly bind failure logging.                     To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].                     2011-05-15 17:50:53 - CRASH!

 

Share this post


Link to post
Share on other sites
ikt

The rotation values in GTA IV, what are they in? Degrees? Radians? Percents?

Also, in the world, what's are the axes?

 

North/South = x

West/East = z

Up/Down = y

 

according to addforcetoplayer, but the ingame location thing displays something else.

 

HNNNNG.

Share this post


Link to post
Share on other sites
untrackable

There is my code

 

...  public void Flee()  {      targetedDriver.Task.DriveTo(vector, 70F, false);  }...

 

When I use this method then targeted car is fleeing, but when I turn my sirens on it stops. I want to make he not react to sirens and just fleeing all time.

 

I tried this way

 

  Start_Flee()  {      this.Tick += new EventHandler(Flee_Tick);  }  public void Flee_Tick(object Sender, EventArgs e)  {      targetedDriver.Task.DriveTo(vector, 70F, false);  }

 

This way working but when car is further away from me about 30~40 units I've got exception "GTA.NonExistingObjectException: Invalid call to an object that doesn't exist anymore!".

 

The question is: how make car to just fleeing and didn't react to anything?

Share this post


Link to post
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.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.