Giter Club home page Giter Club logo

iv-sdk-dotnet's Introduction

IV-SDK .NET is a .NET Wrapper created by ItsClonkAndre for the original IV-SDK made by Zolika1351.
It allows you to run and create scripts for GTA IV in any .NET language out there.

Limitations

Not everything from IV-SDK was ported over to IV-SDK .NET yet. More things will be ported/added from time to time. You can make this process quicker when you fork this project, and create a Pull Request with the added things.

Documentation

Not created yet. Check out the TestScript to see how you could create a script.

The process is pretty easy tho: Create a new C# Class Library (choose whatever .NET language you would like to develop a script for), add a reference to IVSDKDotNetWrapper.dll and derive your main class from "IVSDKDotNetWrapper.Script". If you want to compile the script you have to add .ivsdk to your Assembly name in the Project Properties so it will be compiled as "YourScript.ivsdk.dll".

If you need help with IV-SDK .NET, ask in the #modding-help forum inside our discord server!

Very useful pages for looking up native functions

Requirements

  • IV-SDK .NET requires GTA IV 1080 or 1070 like IV-SDK does. Other versions are not supported.
  • ASI loader.
  • .NET Framework 4.7.2 (Should be installed on windows 10 version 1803 and up by default)
  • Visual C++ 2005 Redistributable x86 which should already be installed on your PC if you've downgraded your game with the GTA IV Downgrader.
  • DirectX June 2010 SDK which should also already be installed on your PC if you've downgraded your game with the GTA IV Downgrader.

How to Contribute

Do you have an idea on how to improve IV-SDK .NET? Or did you happen to run into a bug? Please share your idea or the bug you found in the issues page. Or even better: feel free to fork and contribute to this project with a Pull Request.

iv-sdk-dotnet's People

Contributors

clonkandre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iv-sdk-dotnet's Issues

Complete Edition support

I'm sure other people would care to see this get an update to support CE, FusionFix makes it so much better and mods like IV Released Liberty Tweaks would be nice on CE, if SDK Dot Net supported CE.

Game Freezes When Launched Through Steam [With a config solution]

Description:

Launching GTA IV through Steam results in a game freeze, while direct launching using PlayGTAIV.exe proceeds without issue. The preference for Steam launch is to utilize the achievement functionality, particularly utilizing Zolika's steam achievements mod, which purportedly operates exclusively when the game is initiated via Steam.

Should there be an alternative to retain achievement functionality without a Steam launch, any guidance would be highly valued! (Without cheating ๐Ÿ˜‰)

Dependencies installed on my machine:

  • .NET Framework 4.8.1

Attempted Resolutions:

  1. Version Update:
    • Upgraded from ZolikaPatch v6.9.8.2 to ZolikaPatch v7.35
    • Outcome: No change
  2. Configuration Adjustment:
    • Modified IVSDKDotNet/config.ini "PauseExecutionWhenNotInFocus" to "False"
    • Outcome: Marginally prolonged time prior to freezing, with enough time to click on the "GTA IV Play" button
  3. Reinstallation:
    • Reinstalled using Downgrader v1.7
    • Outcome: No change
  4. Windowed Borderless Mode Activation:
    • ZolikaPatch.ini: "BorderlessWindowed=1"
    • commandline.txt: "-windowed"
    • Outcome: Successful; recognized as a potential solution.

Steps to Avoid the Issue:

  • Employing the following steps to run the game in windowed mode appears to mitigate the freezing:
    • Insert "-windowed" in commandline.txt
    • Define "BorderlessWindowed=1" in ZolikaPatch.ini
    • Applicable for both ZolikaPatch v6.9.8.2 and ZolikaPatch v7.35

Steps to Reproduce the Issue:

  1. Install a new instance of GTA IV Complete Edition
  2. Utilize Downgrader for downgrade:
    • Adopt default or advised settings
    • Options: 1.0.8.0, excluding GFWL, with Radio Sneed, Old Vladivostok, xliveless + ZolikaPatch v6.9.8.2, and Recommended Commandline (without optional -windowed)
  3. Install IVSDKDotNet 0.9.2
  4. Initiate the game through Steam:
    • On initial launch, potential game freeze at the game selection screen; freeze timing may differ, occasionally allowing for the initiation of a new game or proceeding to the first cinematic's loading.
  5. Direct launching using PlayGTAIV.exe functions correctly.

Error while launching the game

So I recently installed the mod to make some scripts but everytime I try to run the game I get this error : Unable to load IVSDKDotNet.asi : Error 126. Do you know what causes it ?

Stuttering

After running the game for a few minutes with the mod enabled, my game starts rapidly stuttering. opening the console with f4 fixes it temporarily, but after a few minutes it starts stuttering again.

running version 1.0.8.0

update about the function CREATE_CHECKPOINT

I did some research about this native function and i got in to those conclusions:

CREATE_CHECKPOINT(int type (https://gtamods.com/wiki/Checkpoints_(GTA_IV))
                                    , float x, float y, float z, 
                                      float point_x, 
                                      float point_y, 
                                      float point_z, 
                                      float size);

point_x, point_y, point_z - are the coordinate where you want the arrow, if you use the arrows type to point to.
size - is the size of the check point. probably the radius.

Text with coloured word like in missions

Ok, i promise this is the last one, really, so i've made the mod that I wanted to make, but the only problem is that i'm looking for a way to display a text just like in the missions (screenshot below). Thank you in advance.
image

Issue while creating peds

Hello there, i wanted to create a car with specific ped inside the car. I tried create_char_inside_car native and even _task_warp_char_into_car_as_driver but both makes the game crash. So can you guide any way to do this? Or can you upload an example related to car spawning and warping peds inside it?

Get nearest road

Hey, I know I made a post not too long ago and I truly apologize for the time I take from you but I'm trying to spawn a car a bit far away from the player so I tried the GET_NEAREST_ROAD() native but I can figure out what the other overloads are for. can you help me ?
image

The taxi (and probably other models) can't be spawned

Hey it's me again, so this is a bit more urgent than my previous posts, it seems like C# automatically registers integer numbers over a certain number as unsigned ints so it's the case with the taxi model that can't spawn and automatically makes the game crash no matter how hard I try to convert its hash to an int. I don't have this problem with other models. Thank you in advance.

The taxi spawning

Hello, my friend showed me this library and I think that this is really awesome, but i saw an issue that he made about spawning the taxi so i tested the solutions that you made but it seems like they don't work either. Could you test them and maybe share a line that i could try ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.