Quantcast

Jump to content

» «
Photo

Community Script Hook V .NET

V Released
1,194 replies to this topic
oliverrogerr
  • oliverrogerr

    Player Hater

  • Members
  • Joined: 24 Jun 2015
  • Brazil

#1171

Posted 07 October 2016 - 03:18 AM

So much thanks! I've managed to compile a new ScriptHookDotNet.asi with your fork and steering angle/scale seem to be working again. vehicle.Acceleration included.

 so plis make a download for us all \o/


ikt
  • ikt

    _

  • Members
  • Joined: 02 Oct 2006
  • None

#1172

Posted 07 October 2016 - 07:16 AM

 

So much thanks! I've managed to compile a new ScriptHookDotNet.asi with your fork and steering angle/scale seem to be working again. vehicle.Acceleration included.

 so plis make a download for us all \o/

 

Just wait until the shvdn guys solve this, as my fork is of a significantly older version (I did not have the energy to bother with why it didn't want to switch to another branch locally and didn't bother updating it from upstream), but changes to the Vehicle.cpp itself should be fine.

 

Kinda f*cked it up there but w/e


_MK_
  • _MK_

    JRod

  • Members
  • Joined: 16 Jan 2014
  • None
  • Best Vehicle [Snap] 2016
    Best Scenery [Snap] 2015
    Best Filtered [Snap] 2015

#1173

Posted 07 October 2016 - 12:15 PM

My game with the latest version is crashing with "ScriptHookVDotNet" ?


ikt
  • ikt

    _

  • Members
  • Joined: 02 Oct 2006
  • None

#1174

Posted 07 October 2016 - 10:08 PM Edited by ikt, 09 October 2016 - 12:26 PM.

If anybody wants the updated ScriptHookVDotNet for their vehicle scripts:
dev_v2 branch build
dev_v3 branch build

Click "artifacts" for the zip with the updated things. I don't think dev_v3 has been tested properly enough yet, but dev_v2 should be stable enough. I removed my old fork.

@anybody else
Is this how you're supposed to do pull requests?


Void since these are merged now!
https://github.com/c...HookVDotNet.zip

machine4578
  • machine4578

    Punk-ass Bitch

  • Members
  • Joined: 29 May 2015
  • United-States

#1175

Posted 17 October 2016 - 02:59 AM Edited by machine4578, 17 October 2016 - 03:00 AM.

@crosire 
are the 7 new Biker DLC weapons added to the WeaponHashes.hpp? if not can you add them please?

 

thanks alot!


Eddlm
  • Eddlm

    Newie

  • Members
  • Joined: 24 Aug 2015
  • Spain

#1176

Posted 15 December 2016 - 11:46 PM

Looks like the steering stuff is broken again.


flynhigh09
  • flynhigh09

    Player Hater

  • Members
  • Joined: 22 Sep 2013

#1177

Posted 05 January 2017 - 01:05 AM

Looks like UI.DrawTexure() isnt working neither. Ive tried many ways?

flynhigh09
  • flynhigh09

    Player Hater

  • Members
  • Joined: 22 Sep 2013

#1178

Posted 05 January 2017 - 11:45 PM Edited by flynhigh09, 05 January 2017 - 11:47 PM.

Bump.... @crosire Is shvd dead.. Didnt see it in the source its under UI but thete isnt one now im lost

flynhigh09
  • flynhigh09

    Player Hater

  • Members
  • Joined: 22 Sep 2013

#1179

Posted 07 January 2017 - 11:32 AM

Guess so lmao

Kiryu
  • Kiryu

    Still waiting on the ground team.

  • Members
  • Joined: 14 May 2016
  • United-Kingdom

#1180

Posted 19 January 2017 - 11:33 PM

Yeah... This isn't working. Installed correctly, but none of my two scripts (NIBMods and Quantum Break) are working. Pressing INS just leads to 'error saving log file', and nothing happens. 


_MK_
  • _MK_

    JRod

  • Members
  • Joined: 16 Jan 2014
  • None
  • Best Vehicle [Snap] 2016
    Best Scenery [Snap] 2015
    Best Filtered [Snap] 2015

#1181

Posted 22 January 2017 - 06:49 PM Edited by _MK_, 22 January 2017 - 07:14 PM.

Why is it crashing ?

 

cLRhUbz.png

 

Spoiler

 

EDIT: it just crashed after going in airbrake under the map.


_MK_
  • _MK_

    JRod

  • Members
  • Joined: 16 Jan 2014
  • None
  • Best Vehicle [Snap] 2016
    Best Scenery [Snap] 2015
    Best Filtered [Snap] 2015

#1182

Posted 23 January 2017 - 06:52 AM Edited by _MK_, 23 January 2017 - 06:52 AM.

Found the problem,this is causing the crash Grab Anything.

Removed it and the game no longer crashes.


Rbn 3d
  • Rbn 3d

    Rbn_3D

  • Members
  • Joined: 13 Jan 2008
  • None

#1183

Posted 01 February 2017 - 09:16 AM

Hi! I'm trying to determine how to check is a control is pressed, so I found this: Game.IsControlPressed(int index, GTA.Control control).
So, what index parameter should be?
The 2nd one is obvious, but no idea about first one


SilverRST
  • SilverRST

    Boss

  • Members
  • Joined: 25 Mar 2013
  • None

#1184

Posted 02 February 2017 - 05:56 PM

Hi, I get the error "A new guard page for the stack cannot be created" Not sure what that means but it's too often.


John Berden
  • John Berden

    Player Hater

  • Members
  • Joined: 06 Aug 2016
  • Ukraine

#1185

Posted 09 February 2017 - 02:43 AM

Hello.
Sorry my English.
My script is not running.
In the script by pressing G, should an explosion occur. But nothing happens.
Help me please!
This script code:
using System;
using System.Windows.Forms;
using GTA;
using GTA.Math;

namespace ExplosionScript
{
    public class Thread : Script
    {
        public Thread()
        {
            Vector3 MyVec;
            MyVec = Game.Player.Character.Position;
            while(true)
            {
                if (Game.IsKeyPressed(Keys.G))
                {
Wait(5000);
                    World.AddExplosion(MyVec, ExplosionType.Grenade, 750.0F, 10.0F, true, false);
            }
                Wait(0);
            }
        }
    }
}
Thank you in advance!


_MK_
  • _MK_

    JRod

  • Members
  • Joined: 16 Jan 2014
  • None
  • Best Vehicle [Snap] 2016
    Best Scenery [Snap] 2015
    Best Filtered [Snap] 2015

#1186

Posted 17 February 2017 - 12:27 PM Edited by _MK_, 17 February 2017 - 12:28 PM.

Ok and now Lasso script is crashing the game since the latest version of DOTNET is broken.

 

Is anyone working on it ? 

 

Spoiler

Rohurd
  • Rohurd

    Player Hater

  • Members
  • Joined: 14 Apr 2017
  • Austria

#1187

Posted 14 April 2017 - 06:04 PM

One quick question as a developer: Is it possible to capture mouse clicks with Script Hook Dot Net? I wanted to do some stuff specifically when the left mouse button was clicked...


MoMadenU
  • MoMadenU

    GooD-NTS so sorry bro

  • Members
  • Joined: 19 Jun 2015
  • United-States

#1188

Posted 02 May 2017 - 05:29 PM

One quick question as a developer: Is it possible to capture mouse clicks with Script Hook Dot Net? I wanted to do some stuff specifically when the left mouse button was clicked...

I get them like this

public static bool IsLeftMouseClicked()
{
    return Game.IsControlPressed(0, Control.Attack);        
}

public static bool IsRightMouseClicked()
{
    return Game.IsControlPressed(0, Control.CursorCancel);
}

MoMadenU
  • MoMadenU

    GooD-NTS so sorry bro

  • Members
  • Joined: 19 Jun 2015
  • United-States

#1189

Posted 02 May 2017 - 05:37 PM

Ok and now Lasso script is crashing the game since the latest version of DOTNET is broken.

 

Is anyone working on it ? 

 

Spoiler

Rohurd, Are you referring to .net 4.7 as latest?  


Rohurd
  • Rohurd

    Player Hater

  • Members
  • Joined: 14 Apr 2017
  • Austria

#1190

Posted 04 May 2017 - 10:12 AM

No, still using .Net 4.5.2, but your suggestion is working, thanks a lot!

Also, I wasn't the one, whose lasso script was crashing...


Mattheoneleft
  • Mattheoneleft

    Player Hater

  • New Members
  • Joined: 22 Jun 2017
  • United-States

#1191

Posted 22 June 2017 - 11:37 PM

I got a problem....

failed to instantiate script 'scriptcore.scriptthread' because no public default constructor was found.


Reazer
  • Reazer

    Player Hater

  • Members
  • Joined: 23 Jun 2017
  • Germany

#1192

Posted 23 June 2017 - 11:52 PM

How can I remove the Players current Vehicle if he presses a Key?

        while (!Game.Player.Character.IsInVehicle())
        {
            Wait(25);
        }
        Game.Player.Character.CurrentVehicle.Delete();

And how can I remove and add a Blip?

        while(!Game.Player.Character.IsInVehicle(bmx1))
        {
            Wait(25);
        }
        bmx1.CurrentBlip.Remove();
        World.CreateBlip(house);

raburs
  • raburs

    Imperialist

  • Facade Corporation
  • Joined: 05 Mar 2014
  • United-Nations
  • Contribution Award [Snapmatic Competition]

#1193

Posted 24 June 2017 - 08:18 AM

Probably, the majority of .Net scripts will not work. We just have to wait.


Reazer
  • Reazer

    Player Hater

  • Members
  • Joined: 23 Jun 2017
  • Germany

#1194

Posted 24 June 2017 - 07:43 PM

Probably, the majority of .Net scripts will not work. We just have to wait.


Could you please tell me if ScriptHookV.Net got an Update?

LeeC2202
  • LeeC2202

    Snitch

  • Members
  • Joined: 24 Oct 2015
  • United-Kingdom

#1195

Posted 24 June 2017 - 11:51 PM

It seems some memory based vehicle functionality is currently broken. Vehicle.CurrentRPM and Vehicle.GetCurrentGear definitely are, because I had to implement them myself. I think Vehicle.IsInBurnout() was also failing, can't remember to be exact. It's probably down to the offsets changing for the data.

 

The rest of my scripts seem to still work fine with the latest game version and latest ScriptHookV but I do use a lot of Native calls instead of SHVDN calls, which probably helps. :\

  • nm710 likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users