1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

The Godfather

Discussion in 'Gamemodes' started by Jingles, Feb 12, 2017.

  1. Jingles

    Jingles Member

    Messages:
    27
    Likes Received:
    71
    Joined:
    Dec 26, 2016
    [​IMG]

    So here we are! 24 days later. It took a little longer than I planned, but as promised, here is the resource I started coding three weeks ago.

    My hopes are this resource will serve as a nice template for starting communities. This is a gamemode in the RPG category. The project is licensed under the GNU GENERAL PUBLIC LICENSE v3. Please read the license carefully to understand what obligations you have when forking / developing on this project. After all, sharing = caring :=)

    Tutorial:
    I didn't feel like typing, so with voice commentary:


    Documentation:
    https://fivescape.com/godfather

    Introduction

    So The Godfather script's name comes from an early SA-MP gamemode. I thought it was a nice idea to bring the nostalgia back in GTA:V and decided to rework the original idea into a new gamemode for GTA:Network. This resource will require some knowledge of how to run a NET Core web application (either Windows or Linux). Right now, the Web Server is required to run and to be configured correctly. Else you will just see a blank screen upon logging in.

    So what's next?
    Well! I am looking forward to your contributions to the script. I myself will be focusing mainly on my new, closed-source project. I'll open-source that one someday, but for the next few months I'll be using it for an upcoming "true" MMORPG server: FiveScape. And yes, it's based on the good ol' Rune. Feel free to send me a PM if you're interested in joining me on that adventure. More info can be found at: https://fivescape.com

    Enjoy the release!


    Prerequisites
    Game Server
    • GTA:Network server​
    • .NET Framework 4.5.2​
    • EntityFramework​
    Web Server
    • .NET Core 1.1​
    • Net Core Authentication/Identity​
    • EntityFramework.Core​
    • Visual Studio 2017 RC​
    Features
    "Dynamic" means it can be altered within the game by Game Admins (so without touching code.)

    Changelog
    [v1.7]
    • Added WebRTC voice chat.​
    [v1.6]
    • Added CreateGroup / CreateProperty / AddProduct interfaces​
    • Added Character Menu interface.​
    • Removed BCrypt hashing.​
    • Implemented date/time tokens for web-gameserver communication.​
    • Added latest SQL data structure.​

    [v1.5]
    • Documentation online at: Link
    • Added temporary account models for both WebCP and Server until NET.CORE is available.​
    • Updated HTTPController and listening service.​
    • All browsing is done remotely - all web client files are deleted.​
    • User authentication is done on the Web server.​
    • Rewrote HTTPController to receive JSON data.​
    • Game server's listening service runs on port 3001.​
    • Added Materialize to WebCP.​
    • Game server/web server communication is done with session tokens.​
    • Integrated Account Login/Registration.​
    • Integrated Character Login/Registeration.​
    • Updated web/game design.​


    [v1.4]
    • Code refactored.​
    • Server now runs well on compiled version.​
    • Added HTTPController for Web Server implementation and server-controlled browsing.​
    • Added SessionIDs.​
    • Added settings for web- and listening server.​
    • Added documentation to WebCP (soon viewable!).​
    [v1.3]
    • Further implemented Entity Frameworks. Many structures were reworked: referencing is now done primarily through keys/indexes to ensure expandibility.​
    • WebCP has been converted into an ASP.Net Core website.​
    • Added storage for characters, vehicles, properties and groups.​
    • Updated godfather-template.sql​
    [v1.2]
    • Implemented Entity Frameworks (huge thanks to @Eraknelo for providing ideas).​
    • Restructured all systems to Models and Controllers.​
    • Updated godfather-template.sql​

    [v1.1]​
    • Added many in-world properties for groups (Police Departments, Hospitals, Prison, Stores, Gas Stations).​
    • Added car trunk/hood functionality with shortcuts (K, I).​
    • Reworked entire group system to support multiple groups per character.​
    • Added StorageManager (storage template for characters, properties and vehicles).​
    • Added Fisherman job.​
    • Added business products.​

    [v1.0]​
    • One account system: Multiple characters can be created.​
    • Dynamic Group System​
    • Dynamic Job System​
    • Dynamic Property System​
    • Dynamic Vehicle System​
    • Web Control Panel​

    Characters

    You can create multiple characters within one account. All character data is stored on a character-level, not on the account.
    • A character can hold administrator privileges.​
    • A character can join a group (see below what groups are).​
    • Characters can become better at jobs.​
    • Characters can own properties.​
    • Characters can own vehicles.​


    Login Menu
    The login template comes from the AdminLTE template to match the Web Control Panel.
    [​IMG]



    Character Selection

    [​IMG]


    Groups

    A character can join or be invited to a group. Groups can be anything ranging from a faction, gang, business, organization, anything! Groups can also have an "Extra Type". For example, a food store business has the "business" type, and the "food store" extra type. Group types and extra types can be dynamically allocated. The pre-defined group types are:
    1. Law Enforcement Agency​
    2. Military​
    3. Medical Department​
    4. Correctional Facility​
    5. Hitman Agency​
    6. Taxi Cab Company​
    7. News Network​
    8. Criminal Organization​
    9. Business​
    • Vehicles can be assigned to a group.​
    • Properties can be assigned to a group.​


    Properties
    Properties can be owned by a character or a group. There are three property types:​
    1. House​
    2. Door​
    3. Building​
    Houses and buildings can hold items, like weapons, ammo, drugs and other rare goods. A group's assets are calculated by how much is available in their properties. For example: If a player owns one group (e.g. "WallyMart", type business, extra type Food Market), they can own multiple properties (buildings) that all have different levels of stock. The challenge for "Wally" is to take care of his properties' sales and stock, so business' revenue is guaranteed.

    [​IMG]

    [​IMG]

    Vehicles

    Vehicles can be owned by a character or a group. Each vehicle has a trunk storage, in which items, weapons, ammo, drugs and other rare goods can be stored.

    Web Control Panel

    The web control panel is made with the open source AdminLTE theme. Nothing new :=)
    The web interface allows you to:​
    • Display your account's statistics​
    • View your characters​
    • Manage accounts / characters.​
    • Manage groups​
    • Manage properties​

    [​IMG]

    [​IMG]
     
    Last edited: Feb 14, 2017
  2. JasonM

    JasonM Member

    Messages:
    6
    Likes Received:
    0
    Joined:
    Feb 12, 2017
    Thank you, you magnificent man! <3
     
  3. BigJay

    BigJay Well-Known Member Donator Support

    Messages:
    131
    Likes Received:
    29
    Joined:
    Jan 23, 2017
    Very nice! Good RPG base for people to build upon.
     
  4. Nero

    Nero Member

    Messages:
    5
    Likes Received:
    0
    Joined:
    Oct 16, 2016
    Thanks for the release.
    But i have a problem. When I connect to the server, i do not get any login or register menu. I get briefly a white screen and then unfortunately nothing happens. Thanks in advance.
     
  5. Jingles

    Jingles Member

    Messages:
    27
    Likes Received:
    71
    Joined:
    Dec 26, 2016
    You need to start the webserver as well (the Web.dll). It runs on NET Core. So you'll need to know a little about it to get it up and running.
     
  6. Jorge Santamaria

    Jorge Santamaria Member

    Messages:
    38
    Likes Received:
    7
    Joined:
    Dec 8, 2016
    Thanks for the job !!!!!
     
    JorgeInfografia likes this.
  7. « Joseph »

    « Joseph » Member

    Messages:
    18
    Likes Received:
    1
    Joined:
    Feb 10, 2017
  8. Freeze

    Freeze Member

    Messages:
    29
    Likes Received:
    5
    Joined:
    Oct 23, 2016
    Amazing!! Good Job
     
  9. Wxvey

    Wxvey Member

    Messages:
    5
    Likes Received:
    1
    Joined:
    Dec 23, 2016
    Would like to run this under a local-host to mess around with, anyone who sees this, able to hit me up and give me a hand? I am having a little trouble.
     
    isee likes this.
  10. Jingles

    Jingles Member

    Messages:
    27
    Likes Received:
    71
    Joined:
    Dec 26, 2016
    I'll write a tutorial tomorrow. It's not one of the easiest resources to get up and running.
     
  11. Brock

    Brock Member

    Messages:
    7
    Likes Received:
    1
    Joined:
    Jan 30, 2017
    Thanks for your release. Hopefully I'll understand it some day lol, this might be the most complicated folder I've seen my whole life aha.
     
  12. Goncho28

    Goncho28 Member Donator

    Messages:
    44
    Likes Received:
    12
    Joined:
    Dec 27, 2016
  13. andreasb

    andreasb Well-Known Member

    Messages:
    128
    Likes Received:
    61
    Joined:
    Aug 4, 2016
    Superb, @Jingles ! And I'm looking forward to FiveScape!
     
  14. -Andreas

    -Andreas Well-Known Member

    Messages:
    172
    Likes Received:
    25
    Joined:
    Sep 29, 2016
    Very nice Jingles!
     
  15. Quiet

    Quiet Member

    Messages:
    7
    Likes Received:
    4
    Joined:
    Dec 29, 2016
    That'd be great!
     
    Wxvey likes this.
  16. JorgeInfografia

    JorgeInfografia Member

    Messages:
    20
    Likes Received:
    9
    Joined:
    Feb 6, 2017
    Very good job, congratulations !!
     
    Jorge Santamaria likes this.
  17. JayronTaylor

    JayronTaylor Active Member

    Messages:
    65
    Likes Received:
    13
    Joined:
    Dec 26, 2016
  18. isee

    isee Member

    Messages:
    12
    Likes Received:
    5
    Joined:
    Dec 12, 2016
    Thanks for this release!!
    The tutorial would be great!
     
    Wxvey likes this.
  19. Crazed

    Crazed Member

    Messages:
    8
    Likes Received:
    1
    Joined:
    Feb 14, 2017
    Thanks for the Release! :=)
    I've to wait for the Tutorial.
    Just wanna testing a bit
     
    Wxvey likes this.
  20. DurtyFree

    DurtyFree New Member

    Messages:
    0
    Likes Received:
    0
    Joined:
    Oct 30, 2016
    Like I already said, amazing work.
     
    Kevin-kings132 likes this.

Share This Page