Jump to content

[REL] GTW-RPG v3.0-beta2 + AI


Mr_Moose

Recommended Posts

Introduction

GTW-RPG is the most advanced open source RPG/CnR/Turfs/Jobs/Basic role play game mode started in early 2012, the main goal has been to write something unique, but still not too confusing for players used to other game modes, defining themselves as "RPG". The strict coding guidelines ensure that the code is easy to read and understandable even for people with poor knowledge in Lua scripting. It's also one of the most optimized game modes with this amount of features available, as it was initially developed to work on 20 years old hardware.

The project is licensed under the BSD-2-clause license so you are free to download, modify and/or redistribute the full project (or parts of it) as long the original authors names written at the top of each file is left untouched, these are found at the top of each file. Like most open source projects it's available at Github which also makes it easy for anyone who would like to contribute to the project. Back in the past I used to post a new topic for each resource within this game mode, today there are so many resources that it's better to gather them all in this topic including updates, suggestions, bug reports and other news.

Download

To download and contribute use:

git clone https://github.com/404rq/GTW-RPG.git

Or visit the project home page to get all the files in a zip archive

github.com/404rq/GTW-RPG

Useful links:

Community support, feedback/suggestions/contributions and bug tracking. 

discuss.404rq.com/t/suggestions

discuss.404rq.com/t/issues

Screenshots

A collection of 100+ pictures summarizing the game mode can be found at our image hosting site WussIMG

wuss.pw/am/F

Features

The goal is to setup a wiki on Github for full documentation, that means below information is just a quick summary of some of the more important resources included and what they do. Check out Github for more details.

  • GTWaccounts: Graphical login and registration system.
  • GTWanimations: A GUI to choose between all available GTASA animations including some bind able commands.
  • GTWchat: Chat system which adds new chats, supports longer messages and displays chat bubbles
  • GTWcivilians: A system to maintain civilian jobs, GUI to choose skins, tools and display information about the job as well as adding markers where the players can apply for the job.
  • GTWcore: Includes all the core features, saves and load account data such as position, team, weapons, stats, health and much more from internal, SQLite or MySQL databases. It also provides core features such as dealing with lagging players, allow players to go afk in a different dimension adding AFK tags to their names, some location coordinate features, account management and global stats.
  • GTWfastfood: Allow your players to buy fast food in one of the 35 restaurants around San Andreas, including some drive thru's and possibility for players to sell fast food from Mr.Whoopee and the hot dog van
  • GTWgates: Adds gates for bases restricted to team, group or occupation. Gates can always be opened by staff.
  • GTWstaff: A resource to pass ACL groups as a table to clients so that other resources can verify ACL rights in a safe way and find out if a player really is staff or not.
  • GTWhelp, GTWupdates: GUI for in game manual and update news downloaded live from https://www.404rq.com
  • GTWjail, GTWjailmap: Jail system with exported functions, law enforcers and staff can jail players for a certain amount of time, the time is displayed on the client screen and saves if the jailed player tries the classical trick of reconnecting.
  • GTWpolice, GTWwanted: Allow players in the team Government to arrest players with wanted level, wanted level system that allows more then 6 stars (infinity) and adds a level of violence to inform the law enforcers if they can perform a kill arrest or if they have to use their tazer and stick to arrest.
  • GTWphone: Listen to local radio stations, send SMS to other players, (up to 1024 chars instead of just 128 as the chat is limited to). Or call for services
  • GTWtopbar: Used by almost all resources, displays DX messages at the top of a player's screen and fade them out after a while.
  • GTWtrain: Spawns trains controlled by bots on the server, a perfect way for criminals to escape the law, block the way in a police chase, or to travel to another town quickly.
  • GTWvehicles, GTWvehicleshops: Adds over 200 markers where rental vehicles are available at fair prices used to work or to just cruise around. Vehicle shops where all kinds of vehicles can be bought, (including trains) as well as smart GUI's to manage everything (lock, engine, fuel level, damage control, door control, search filet and much more).
  • GTWtraindriver, GTWbusdriver, GTWtrucker, GTWfarmer, GTWfisher, GTWironminer, GTWmechanic, GTWtramdriver: Some of the civilian jobs available, GTWcivilians and GTWvehicles provide these jobs with application GUI and job vehicles. These are the missions within the jobs.
  • GTWhospitals: Respawn at nearest hospital when you die, without loosing your weapons or other important stuff
  • GTWsmoke, GTWrob, GTWweather, GTWplayerblips, GTWsafeareas, GTWtrainhorn, GTWturnindicators: Some of the best misc features. Check them out on Github for more details.

For more details, check it out on Github, feedback, suggestions and related comments are welcome in this thread.

Demo server

A demo server where you can test GTW-RPG live can be found in our community at the following address: mtasa://par-fr.404rq.com:22004

Edited by Mr_Moose
New screenshots
  • Like 1
Link to comment

This is definitely one of the best open source RPG game modes I've ever seen, it has literally everything I'll expect to find in a proper RPG game mode and some other cool features as well. A big plus for the nice looking code and open source concept, I'm not an expert in Lua myself, but had no problem at all to quickly understand how everything works.

The optimization is great, with minimal usage of system resources per player. The only disadvantage as I see it is the installation process which is kind of complex for newbies, especially as it has to be setup manually. hopefully that'll be fixed in future versions. The installation guide is easy to follow tho. Keep it up.

Link to comment
  • 5 weeks later...

News for this week are that SSL support has been added on our websites for improved integrity and increased security, more details are found here: https://forum.404rq.com/index.php?topic=1936.0

Updates this week

  • Increased turfs alpha to improve their visibility
  • Added the command /protecttrain [1/0] for server administrators to enable/disable train derailments for trains of any size
  • Fixed an issue with rental vehicles cleanup system
  • Fixed incorrectly rounded amount of turf money earned in information message
  • Fixed an incorrect file path in GTWtrainhorn making the horn fail on the brown streak engine
  • Disabled derailment completely for train bots
  • Hide player blips in jail for guards, prisoners will still see the guards but the guards has the advantage of using weapons so this should hopefully make everything more balanced.
  • Added /claimturf for server administrators to quickly claim the current turf area
  • Corrected the warning message displayed to drivers of a locked vehicle when another player tries to enter
  • Added the prison restaurant to the restricted area of the prison to prevent swapping weapons inside and most important, to prevent armored robberies committed by prisoners.
  • Removed the vehicle check on gate close to allow gates to close even when a player is passing it in a vehicle (bug)

Link to comment
  • 4 weeks later...

Core system has been added (GTWcore), the system that manage all account data, some spawn related features, afk and location commands, staff advantages, playtime, freeze players with high ping and much more. It's closely integrated with GTWaccounts which have lead to many issues and has probably also been the strongest argument against this game mode. In any case it's now partially rewritten, patched and added to Github.

I would like to thank all the contributors and beta testers for all the help with improvements, optimizations and patching, this means v3.0 is very close to a official release. As mentioned earlier v3.0 means a fully working complete game mode that runs standalone with all features a typical RPG server needs. If everything goes as planned the v3.0 release will occur a few days before Christmas.

Link to comment
  • 1 month later...

You're welcome. As mentioned earlier the main focus of December 2015 has been on core improvements and optimization, now in January 2016 the main focus will be the GUI's and documentation to improve the overall user experience and simplify the gameplay for new players. Due to that the release before Christmas 2015 was beta2 rather than the final 3.0 release, we wanna make sure the GUI's and user experience is perfect in the final release. v3.0-beta2 can be downloaded here. Enjoy.

Link to comment
  • 4 weeks later...

Introducing the new 2D view (/2d to toggle) and the ability to zoom in and out in the view using +/- keys.

1dIMgzdl.jpg

In other news the help system has received some major updates as well and a introduction system will soon be published, all to help new players getting started and learn how to play in this game mode using pictures and very basic text information to provide enough information without making people bored from reading. Some misc features regarding registration, skins, hud components, radio stations in phone and much more has been updated as well.

What's next?

Some feature highlights to v3.0-beta3:

  • Major GUI updates using DX components
  • Implementation of perfect trailer synchronization and other vehicle related features
  • Updates to vehicle system to make driving even more realistic, things like manual gearbox, damage vs engine power etc is already under construction
  • Heavily improved help/support features for new players informing about how everything works in a simple way.

Enjoy the game, and don't forget to follow us in social media for the latest news: https://www.404rq.com/

Link to comment

A lot of people have been asking for the AI features seen in the original server which wasn't found in the Github project, until now. There's a new folder in the root directory simply named "traffic" which contains the bot system with peds and cars on the road by CrystalMV, and slothbot by slothman. Thanks to these two great resources a lot of new features is now available in the GTW-RPG project, simply named "the AI features".

Features:

  • Criminals can now kill bots to steal their money and they'll get wanted for it
  • Criminals can hijack cars from bots and get wanted, the driver will also try to attack and kill you as a revenge (thanks to slothbot)
  • Bots help's wanted players to hide since they can sneak into the back of a van or simply act like a bot and the cops won't see the difference until they get really close.
  • Bots can create traffic jams or do unexpected things which makes police chases more interesting since either the cops or the criminals can crash at any time due to unexpected situations.

Modifications:

Some modifications to the original resources has been made, including calls to GTW resources, adjustments in traffic density and a function to make sure that bots won't spawn to close to a player or inside a player (which could happen to a player with high latency).

Link to comment

HI Mr_Moose

Thanks for sthe gamemod.

I enjoy testing gamemods to learn lua.

Your gamemod is very nice and works good.

There is only one thing that doesn't work as it should be; the F5 button to open the job window (and also the F7 ones).

I can't find where this function is.

I'm testing with latest mtasa linux server 32bit 1.5.2 could you point me in the right direction to check this?

Thanks in advance for your time.

Link to comment

The F5 button opens a panel that allows you to end your current job, become a criminal and see your current job progress, it's currently in it's own resource and hasn't been included yet since it's not compatible with the rest of the game mode in it's current shape, although the plan is to rewrite it and place it in GTWcivilians, until then you have to rely on commands like: /criminal or /endwork and the stat's GUI bound to F3 to access the same types of features. The F7 key on the other hand is simply a dogmod which you'll find in the community here, and for that simple reason it's not included in the project by default since there's no specific modifications to make it work with the rest of the game mode.

Link to comment

I'm trying your server, But i get some errors:

  
= Multi Theft Auto: San Andreas v1.5.2 
================================================================== 
= Server name      : Default MTA Server 
= Server IP address: auto 
= Server port      : 22003 
=  
= Log file         : ..rver/server/mods/deathmatch/logs/server.log 
= Maximum players  : 32 
= HTTP port        : 22005 
= Voice Chat       : Disabled 
= Bandwidth saving : Medium 
================================================================== 
[2016-02-07 14:20:08] ERROR: Not processing resource 'admin' as it has duplicates on different paths: 
                  Path #1: "resources\[admin]\admin" 
                  Path #2: "resources\[default]\admin" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'ajax' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\ajax" 
                  Path #2: "resources\[web]\ajax" 
[2016-02-07 14:20:08] ERROR: Problem with resource: assault; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Problem with resource: briefcaserace; Failed to link to killmessages 
[2016-02-07 14:20:08] ERROR: Problem with resource: cdm; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Problem with resource: cdm-ls; Failed to link to headshot 
[2016-02-07 14:20:08] ERROR: Problem with resource: ctf; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Problem with resource: ctf-bombsite; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Problem with resource: ctf-canals; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Problem with resource: ctf-hydrastrike; Failed to link to headshot 
[2016-02-07 14:20:08] ERROR: Problem with resource: ctf-tbd; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Problem with resource: ctv; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Problem with resource: deathmatch; Failed to link to killmessages 
[2016-02-07 14:20:08] ERROR: Problem with resource: dm-port69; Failed to link to realdriveby 
[2016-02-07 14:20:08] ERROR: Not processing resource 'elementbrowser' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\elementbrowser" 
                  Path #2: "resources\[web]\elementbrowser" 
[2016-02-07 14:20:08] ERROR: Problem with resource: fallout; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Not processing resource 'fastrope' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\fastrope" 
                  Path #2: "resources\[gameplay]\fastrope" 
[2016-02-07 14:20:08] ERROR: Problem with resource: hay; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Not processing resource 'headshot' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\headshot" 
                  Path #2: "resources\[gameplay]\headshot" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'interiors' as it has duplicates on different paths: 
                  Path #1: "resources\interiors" 
                  Path #2: "resources\[gameplay]\interiors" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'killmessages' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\killmessages" 
                  Path #2: "resources\[gameplay]\killmessages" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'parachute' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\parachute" 
                  Path #2: "resources\[gameplay]\parachute" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'performancebrowser' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\performancebrowser" 
                  Path #2: "resources\[web]\performancebrowser" 
[2016-02-07 14:20:08] ERROR: Problem with resource: race; Failed to link to killmessages 
[2016-02-07 14:20:08] ERROR: Not processing resource 'realdriveby' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\realdriveby" 
                  Path #2: "resources\[gameplay]\realdriveby" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'reload' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\reload" 
                  Path #2: "resources\[gameplay]\reload" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'resourcebrowser' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\resourcebrowser" 
                  Path #2: "resources\[web]\resourcebrowser" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'resourcemanager' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\resourcemanager" 
                  Path #2: "resources\[web]\resourcemanager" 
[2016-02-07 14:20:08] ERROR: Problem with resource: runcode; Failed to link to ajax 
[2016-02-07 14:20:08] ERROR: Not processing resource 'scoreboard' as it has duplicates on different paths: 
                  Path #1: "resources\scoreboard" 
                  Path #2: "resources\[gameplay]\scoreboard" 
[2016-02-07 14:20:08] ERROR: Problem with resource: scores; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Problem with resource: stealth; Failed to link to scoreboard 
[2016-02-07 14:20:08] ERROR: Problem with resource: tdm; Failed to link to killmessages 
[2016-02-07 14:20:08] ERROR: Problem with resource: tdma; Failed to link to killmessages 
[2016-02-07 14:20:08] ERROR: Not processing resource 'webadmin' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\webadmin" 
                  Path #2: "resources\[web]\webadmin" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'webmap' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\webmap" 
                  Path #2: "resources\[web]\webmap" 
[2016-02-07 14:20:08] ERROR: Not processing resource 'webstats' as it has duplicates on different paths: 
                  Path #1: "resources\[default]\webstats" 
                  Path #2: "resources\[web]\webstats" 
[2016-02-07 14:20:08] Resources: 221 loaded, 20 failed 
[2016-02-07 14:20:08] Starting resources.... 
[2016-02-07 14:20:08] ERROR: GTWgui\s_refresh.lua:26: bad argument #1 to 'pairs' (table expected, got nil) 
[2016-02-07 14:20:08] ERROR: Couldn't find resource admin. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource fastrope. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource headshot. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource killmessages. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource parachute. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource performancebrowser. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource reload. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource resourcebrowser. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource resourcemanager. Check it exists. 
[2016-02-07 14:20:08] Server minclientversion is now 1.5.1-9.07677.0.000 
[2016-02-07 14:20:08] ERROR: Couldn't find resource webadmin. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource interiors. Check it exists. 
[2016-02-07 14:20:08] ERROR: modshop GUI/client.luac is invalid. Please re-compile at [url=https://luac.multitheftauto.com/]https://luac.multitheftauto.com/[/url] 
[2016-02-07 14:20:08] ERROR: Couldn't find resource realdriveby. Check it exists. 
[2016-02-07 14:20:08] ERROR: Couldn't find resource scoreboard. Check it exists. 
[2016-02-07 14:20:09] ERROR: GTWcivilians\civ_s.lua:76: exports: Call to non-running server resource (scoreboard) [string "?"] 
[2016-02-07 14:20:09] ERROR: GTWcivilians\civ_s.lua:77: exports: Call to non-running server resource (scoreboard) [string "?"] 
[2016-02-07 14:20:09] ERROR: GTWcivilians\civ_s.lua:78: exports: Call to non-running server resource (scoreboard) [string "?"] 
[2016-02-07 14:20:09] ERROR: GTWcivilians\civ_s.lua:79: exports: Call to non-running server resource (scoreboard) [string "?"] 
[2016-02-07 14:20:09] ERROR: GTWcivilians\civ_s.lua:80: exports: Call to non-running server resource (scoreboard) [string "?"] 
[2016-02-07 14:20:09] ERROR: Couldn't find resource GTWbluehellpatch. Check it exists. 
[2016-02-07 14:20:09] ERROR: Couldn't find resource GTWcoremap. Check it exists. 
[2016-02-07 14:20:09] ERROR: Couldn't find resource GTWjailmap. Check it exists. 
[2016-02-07 14:20:09] ERROR: Couldn't find resource GTWsapdbase. Check it exists. 
[2016-02-07 14:20:09] ERROR: Couldn't find resource GTWswatbase. Check it exists. 
[2016-02-07 14:20:09] Querying MTA master server... success! (Auto detected IP:81.202.242.102) 
[2016-02-07 14:20:09] Server started and is ready to accept connections! 
[2016-02-07 14:20:09] To stop the server, type 'shutdown' or press Ctrl-C 
[2016-02-07 14:20:09] Type 'help' for a list of commands. 
  

I do all the things inside install.md and also, with that errors I cant use:

  • Police
  • Staff panel (I don't know if it exists)
  • Some civ works.

Link to comment

Download the latest version, (r-496 master branch) and read the install.md file very carefully. Especially this part:

Uncomment or overwrite current resources in "mtaserver.conf" if you install this on a new server, also temporary move files away from "mods/deathmatch/resources/" to prevent duplicates.

As you can see on those errors there are many duplicates causing some resources not to load, resources that GTWpolice depends on and thus that won't load properly either. All civilian jobs are not yet included, they are based on the same core however and will be added soon. Markers and the ability to take the job works however. If you intend to just play as it is then I recommend you to join our server.

Link to comment
Download the latest version, (r-496 master branch) and read the install.md file very carefully. Especially this part:
Uncomment or overwrite current resources in "mtaserver.conf" if you install this on a new server, also temporary move files away from "mods/deathmatch/resources/" to prevent duplicates.

As you can see on those errors there are many duplicates causing some resources not to load, resources that GTWpolice depends on and thus that won't load properly either. All civilian jobs are not yet included, they are based on the same core however and will be added soon. Markers and the ability to take the job works however. If you intend to just play as it is then I recommend you to join our server.

Now all works fine, the server only don't recognise that resources, my last question:

1. How to open staff panel and what about commands?

2. Whta your server name.

Thanks and have a nice day! :D

Link to comment

Default key should be P but I may have changed it to F7 to avoid conflicts, it's the default admin resource with a few modifications and bug fixes so if none of those keys works just check settings.xml or whatever file containing the settings in there.

The server name is Grand Theft Walrus and you'll find all information you need on this page: www.404rq.com/servers, you could also use this direct link:

mtasa://lon.404rq.com:22005 it will always run a higher version of GTW-RPG than the files on Github or anywhere else for that matter, it's like seeing a little bit into the future ;)

Link to comment
  • 2 weeks later...

A milestone has been added for v3.0, the final release. If you have any suggestion or issue you would like to report, maybe something you've seen on our server that you would like to see in GTW-RPG as well then post it as an "issue" on Github (use the link below). By doing so we can all easily see the development progress live. Keep testing the game mode and keep donate so that we can continue to make it even better, thanks for your interest.

https://github.com/404rq/GTW-RPG/milestones

Link to comment
- 'f7' admin panel does not pop up, 'p' admin panel does.

- Wanting to increase the npc density.

Well the admin panel is and has always been the same, although the key has changed between some versions. Currently it's 'p' but you can change it somewhere in the files. To change the traffic density you'll have to edit "npchlc_traffic_denctrl", that's where the initial density is set during the loading phase.

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...