Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

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

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    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. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. 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. Red Dead Redemption 2

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

    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
    1. Announcements

    2. Support

    3. Suggestions

[WIP|IV] Multiplayer IV alpha 2 in C#/Scripthook Open Source


aeroflyluby
 Share

Recommended Posts

Hello GTA IV players!

 

UPDATE 2 - Alpha 2 release is here! Links below.

 

I personally hate the cut down multiplayer support in GTA IV so, as I'm professional programmer, I decided to build up my own standalone solution for multiplayer gaming.

 

Youtube gameplay!

 

For last 2 weeks I was working on it.

Here is fully standalone server based multiplayer for GTA IV.

Server compiles and works great on Windows and Linux (mono)

 

Video, source and binaries from alpha 2 and 1can be found here

http://achlubek.github.io/gta-iv-multiplayer

Source code is there too!

 

Read readme file before using!

 

Scripts (like gamemodes in samp) are written in c#.

 

Contributions, testing and feedback greatly welcomed!

 

CHANGELOG:

 

alpha 2 :

- NPC basic support

- Scripting implements a lot of sync features like position velocity and others.

- Many, many new scripting functions

- New nick draws for player nicks and health!

- Scripthook modded for speed and features - backward compatible

- Health sync

- Shooting sync

- Killing sync

- Re/Spawning

- Passenger support

- A lot of misc improvements

 

alpha 1 : Initial release.

 

---

Edited by aeroflyluby
  • Like 4
Link to comment
Share on other sites

Really impressive work, always wanted to create different gamemodes scripts like IV:MP in c#. :beerhat: You could upload this to "gta4-mods.com" or "lcpdfr.com" if you wanted more feedback. Alot more active GTAIV members at those sites.

 

Edit:

Would my newly compiled MIVSDK.dll be client, server or both? I'm trying to add this code to 'PedStreamer.cs', so steaming ped won't run away when scared.

ped.gameReference.BlockPermanentEvents = true;ped.gameReference.Task.AlwaysKeepTask = true;ped.gameReference.CowerInsteadOfFleeing = true;
Edited by hardsty1e
Link to comment
Share on other sites

 

Really impressive work, always wanted to create different gamemodes scripts like IV:MP in c#. :beerhat: You could upload this to "gta4-mods.com" or "lcpdfr.com" if you wanted more feedback. Alot more active GTAIV members at those sites.

 

Edit:

Would my newly compiled MIVSDK.dll be client, server or both? I'm trying to add this code to 'PedStreamer.cs', so steaming ped won't run away when scared.

ped.gameReference.BlockPermanentEvents = true;ped.gameReference.Task.AlwaysKeepTask = true;ped.gameReference.CowerInsteadOfFleeing = true;

MIVSDK should be shared both by server and client. PedStreamer is in Client, not MIVSDK, but I recommend looking at master branch at github where a lot of similar issues got fixed already.

I made 4 screens of current development. 2 of teleporting mode and 2 of NPC system which is server driven. NPCs also got textviews so you will need my modified version of scripthook to be able to use it. I added, among others, world to screen projecting :)

Take a look at

http://imgur.com/a/nbFGb#0

 

 

Edit:

Updated source code for you

Here is scripthook src with mods (requires directx sdk to compile) https://github.com/achlubek/scripthook-net-fork

and here is multiplayer iv source updated https://github.com/achlubek/gta-iv-multiplayer

I will record some videos and post binaries for alpha 2 today or tomorrow

Edited by aeroflyluby
Link to comment
Share on other sites

Alpha 2 released!

Take a look at first post for links and details.

Edited by aeroflyluby
Link to comment
Share on other sites

Take a while and look at upcoming beta 1 release gameplay!

With full shooting synchronization, vehicle damage, player damage and client side code execution! More features to be announced!
Release soon, after several bugfixes and preparations. I suppose I will release beta 1 tomorrow.

If you are interested in playing in that release now, contact me and attempt to build from source.

Link to comment
Share on other sites

>client-side code execution

so basically a way to remotely take control of people's computers, cool

SsZgxdL.png

Inactive in GTA/R* title modification indefinitely pursuant to a court order obtained by TTWO. Good job acting against modding!

Link to comment
Share on other sites

>client-side code execution

so basically a way to remotely take control of people's computers, cool

Well, I think about security. I know it would be the easiest to allow just c# but then we really have security hole.

I used javascript Jint interpreter where it's engine has only access to Client and JSAPI object instances.

There is no possilibity to take over control, don't worry.

Client side scripts are for smooth graphics, especially interpolating animations.

 

I see that you are developing multiplayer solutions too. I don't want to be a rival. Also I've seen you use rockstar mp to get sync done, where I have wrote it from totally scratch.

Edited by aeroflyluby
Link to comment
Share on other sites

This looks awesome, aeroflyluby. Great work.

 

Keep us updated on that beta.

Yes I will. I've got new job so I have much less time, but I wrote some improvements yesterday so I'm recharging my energy :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 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.