Forum Jump :

Author Message

Tonic  



Posts: 69
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#1 Posted at 2013-11-06 15:37        
     
Altis Life RPG
Version: 3.1.4.8
By Tonic

Description / Development Story:
What is Atlis Life? Many of you may be familiar with older life missions from ARMA 2. This comes with some of the basics expected to be in a life mission but built from the ground up from scratch. It features a MySQL back-end saving system for players and vehicles along with some mini-admin functionality (Nothing that allows spawning but to monitor players). This has been in development since the ALPHA and I think it is time that I start letting others host the mission. This originally started as Stratis Life, I got interested in building this when a group of people decided to make one from scratch and I commend them for that but at that time it didn't seem like well... They were ready to build such a system and I thought I could make it better and more robust and so I did. Over the time I lost interest in it and let people from the community in which I coded the mission for start to work on it. For a few they added in some neat new stuff that people really liked but once it came near Altis release / A3 Release I decided to rebuild the system once again to make it better, more modular and all around more stable and I did (somewhat). Sadly there are still parts of the old system I built in the system such as vehicle shops, etc. They are meant to receive a massive overhaul when I find the interest to do them. After a long 6-7 months I have decided to just release the mission so that others may be able to host it for their community and here we are.

Screen Shots:
Full-screen screen shots can be found at http://www.iamtonic.co/life/

Key Feature(s):
* MySQL Back-end player saving and vehicle saving.
* A basis mission template / framework to expand upon
* Economy System / Banking
* Civilian legal and illegal Jobs
* Day & Night Cycle (As always in my missions).
* Other stuff that I wasn't prepared to write.

Installation:
This comes pretty much as a standard mission except it comes with an addon called @life_server, this file is required to be ran only on the server for it to function. Later on in the future the need for this will be removed as I only used it to keep server-side files away from the public and will be merged into the mission at a later time.

extDB
extDB is required for the mission to work and without it the mission will NOT WORK and will lock up the server. A database schema is provided in the download called arma3life.sql
You will need basic DBA knowledge to setup the server and manage the SQL side. I will not explain how to do this however I will say a few things about the setup.

1. This was only tested with MySQL Server 5.5 (Strict mode must be disabled).
2. The database / schema MUST BE CALLED arma3life
3. Only basic user permissions are needed (SELECT,INSERT,UPDATE,EXECUTE,TRIGGER,EVENT). Anything more and you are at risk of being exploited.

LIMITED help / support will be given with setting up the MySQL side, if you are not willing to put time into reading about MySQL and managing it then stop reading. This mission is NOT a grab and play mission it requires time to setup and good configuration.
The MySQL end supports three player specific things, Cop whitelisting / levels, Admins and donators (for those that want to give back to their members that donate to support their server). The donator thing was never a focus of mine but was wanted by the community I coded it for as a thank you to its members. The Admins part is meant for Admin specific features such as Cellphone reports, global messaging and ability to use a mini-admin menu which allows you to see basic stuff about a user (Money, current gear). The mini-admin panel is not designed for spawning in things.

Configuration / Accepted:
Configuration of NPC placement / etc is allowed via the Map Editor, things that are branded as Seal Team Sloth may be changed (except anything related to crediting,etc). Most of that can be found in Briefing.sqf
Additional configuration can be found in the core/configuration.sqf file or core/config. Item pricing is in \life_server\vars.sqf (That's server-side). Some other configuration variables / files may be scattered but 98% of it is available in the config folder. I never finished standardizing the configuration process because it was never meant to be released.

Notes / Thoughts:
I really wasn't prepared to release this in a neatly made format nor with proper documentation as it was rather unexpected of me to release it. There are a lot of parts of the system that are still buggy and other parts needing to be rewrote (carried from the old system I made for Stratis as a test-bed) but all around the mission functions and has popularity. This release isn't something I expected so soon so therefor I apologize for the bad presentation of it and documentation but I am honestly tired of people asking for it, trying to steal it and buy it off of me and I think this project / mission is one of the reasons why I am losing interest in ARMA and need something new to shift focus towards. Releasing this gives me some sort of relief. Continuous development will be held on Seal Team Sloth (STS) Life Server, when changes meet release standards new versions will be released. Don't go trying to snatch early builds / changes from it, you will be frowned upon.


The reason for the strict agreement is quite simple really. I do not want another Wasteland, I built this from the ground up and I made it the way I wanted it to work. I don't want to see a bazillion spawns from this being distributed everywhere and credits being removed leading to confusion on where this came from and who made it. I want it to be a standardized mission that most servers run that agree to the terms. I accept that people want to modify things and really around pricing and I will allow that but I don't allow distribution and branding name being changed throwing off confusion. I would also like to refer people to: AMAR (Addon Makers For Author’s Rights)

Usage / Terms of agreement
* The branding of the mission is to stay ‘Altis Life RPG’. This means you cannot modify it to say something else. i.e Atlis Life by YOURCOMMUNITYNAME/TAG. Everything about the naming / branding is to be left untouched.
* Naturally all credit is to remain intact on all files. Author cannot be modified via Description.ext but can be extended in briefing.sqf
* All of my code is not to be used outside of the mission in another ‘Life’ like mission. It is to stay the Altis Life RPG Framework / my framework or you don’t use it and direct branding.
* Some of my code can be used outside of the mission / framework but permission is to be asked first, if no response is received then it is a automatic NO.
* Core configuration is allowed to be modified (i.e Prices and expansion of items / features).
* Features added by you to the mission are to stay to your modification in your server, distribution is not allowed without my permission, if you would like your feature to be added to the Altis Life RPG main distribution (by me) you can submit your changes and will be fully credited.
* This is not be used commercially and is to remain freeware, this includes requiring donations / payment to be able to ‘play’ in your server with this mission. Playability of it is to remain free and open.

The terms are subjected to be changed over time.

Disclaimer:
The vast majority of the code / framework has been written by me. Any additional code / content used is fully credited and owned by it’s author as well as linked to the authors content (Forums,Media,etc). The additional content used within the framework either has the expressed permission of the content creators permission or was automatically used under the GPU (General Purpose License) from public posting with no usage / TOA / Disclaimer, however they still own the rights to their content. If in any case that content is being used within this mission / framework that the content creator doesn’t wish for it to be used due to my strict TOA / Agreement all you need to do is ask for it to be removed and it will be honored.

Change Log:

Requirements:
extDB

Included:
@life_server (Packed and non-packed) *SERVER ONLY*
Mission File (Unpacked)
arma3life.sqf (MySQL Database / Structure)

Credits & Thanks:
Myself - for the majority of the code
Seal Team Sloth (STS) - for hosting it and putting up with me and its members for feedback
Jaydon & Alan from STS - Various things such as the Escorting system & Cellphone
Kronzky - His String Function Library
mindstorm and Adanteh - Working cop lights on offroads
firefly2442 - For Arma2MySQL (Initial version - Version 3.1.3.)
Torndeco - extDB and support
TheAussieButcher from Day0 community for EMS Uniform texture.
Joe90384 code submission for reading turtle pricing from config.
Angrygargamel code submission for small text fixes.
Anyone else that I forgot is credited in whatever file they are responsible for
Itsyuka - My slave for the last 4 months doing changes left and right.
Everyone who has contributed to code changes, bug reports and pull requests on github.



This post was edited by Big (2014-10-14 06:29, ago)


Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2013-11-14 03:03        
     
Tonic,

Basically whats happening is when I join the server it trys to connect to my mysql server and says it's reached 3 attempts and failed. I have both the arma2net log files, and the rpt.

I was having some issues getting the Mysql side to work, would it be better to contact you or firefly about the mysql plugin issue?


Fuzz

This post was edited by SCE_TheFuzz (2013-11-14 04:11, ago)


Advertisement


Author Message

Tonic  



Posts: 69
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#3 Posted at 2013-11-15 02:19        
     
That's SQL related. The 3 attempts failed message means it couldn't create or query your information from the database, since it hit three failed attempts that automatically means that the connection between the database is not working.

So yes that is something you will need to talk to firefly about. You are also best to first test that arma2net is setup properly along with arma2mysql by using arma2net's console application which basically allows you to simulate utilizing Arma2net within ARMA via a console.


Author Message


Posts: 1
Rank:


Level: Member

Country: ar
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2013-11-15 18:28        
     
excuse my English ... I'm using google translator

I write because not able to solve a problem eh when you run a server with altis arma3 life rpg

set following the little information there is to it ... so

Arma2Net / Arma2MySQL

With the following result ... when I boot the server ... mission entrance

I make it to the hall of the mission ... choose the slot player, I give the following summary ok step where the map appears and players entering the server ...

but at the moment I see a black screen with the following legend.



I add some additional information to see if there is any specific error

server console



folder logs - logs data

Info: 10:02:55 - Logging started in directory: C:\Program Files (x86)\Steam\SteamApps\common\Arma 3\logs\
Info: 10:02:55 - Arma2NETMySQL Plugin Started.
Info: 10:02:55 - Version number: 0.1.0.0
Info: 10:02:55 - Loading databases...
Info: 10:02:55 - Databases.txt file loading in from: C:\Program Files (x86)\Steam\SteamApps\common\Arma 3\Databases.txt
Info: 10:02:55 - Type: mysql Database: arma3life IPAddress: 127.0.0.1 Port: 3306 Username: root Password: NotShownForSecurityReasons
Info: 10:04:32 - Logging started in directory: C:\Program Files (x86)\Steam\SteamApps\common\Arma 3\logs\
Info: 10:04:32 - Arma2NETMySQL Plugin Started.
Info: 10:04:32 - Version number: 0.1.0.0
Info: 10:04:32 - Loading databases...
Info: 10:04:32 - Databases.txt file loading in from: C:\Program Files (x86)\Steam\SteamApps\common\Arma 3\Databases.txt
Info: 10:04:32 - Type: mysql Database: arma3life IPAddress: 127.0.0.1 Port: 3306 Username: root Password: NotShownForSecurityReasons

Configuration file Databases.txt
# This is a comment
# Any line starting with a "#" is considered a comment
# Make sure each of your database connections doesn't have a "#" in front!
# Put each database connection you want on a separate line
# The databasename MUST be unique!
# For an example, see the following
#databasetype,databasename,ipaddress,port,username,password
#
#mysql,arma,127.0.0.1,3306,armausername,secret
#sqlite,weaponslite

mysql,arma3life,127.0.0.1,3306,root,xxxxxx

#sqlite,weapons
-------------------------------------------

wrote everything as this ...

if there is any error please help me solve it?!


Author Message

Tonic  



Posts: 69
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#5 Posted at 2014-01-24 12:00        
     
UPDATE: v3.1.0

Notes:
This update isn't something I was prepared to release nor do I have the exact full changelog for this version. Most of this work was done a month or two ago and I have forgotten what issues were in this build so be sure to report them.

Punishment for various crimes:
- If you are wanted and are killed by cop you will lose the following licenses: Rebel, Driver, Firearms, All Illegal licenses. This will create a money sink and add punishment for doing suicide by cop, however it may create problems for cops straight up killing you but it will encourage you just to surrender as it will be cheaper.
- Upon being arrested you will lose the following licenses: Rebel, Driver, Firearms.
- Running a player over you will lose all motor vehicle licenses (Driver, Boat, Truck).
- Killing a player while owning a firearms licenses will make you lose that license.

Bug #3: Vehicle respawn position at AIR HQ !
Bug #4: Head Gear Always change "Hats" !!
Bug #6: Unable to lock/unlock Mohawk from pilot seat
Bug #7: Toolkits all used up when repairing
Bug #9: Civilians can Enter/Exit vechiles in restraints
Bug #18: Unable to purchase Iron Processing license
Bug #22: Unable to Repair Vehicle - Mohawk
Bug #23: Unable to repair vehicle after being spike stripped
Bug #24: "Vehicle not persistent" at garage
Bug #26: Pyrgos cop vehicle shop not invincible
Bug #29: Garage still charges fee if spawn point is blocked
Bug #31: addAction for Rebel Training shows incorrect price
Bug #32: Using various outlets from vehicles
Bug #33: Cannot lock MOHAWK from inside !
Bug #38: Rebel Hummingbird - maybe a bug???
Feature #17: Repair action no longer refills fuel
Feature #35: Readd turtle poaching
Feature #44: Impound timer
Feature #46: Cops can 'question' Drug dealers
Feature #50: Keybind for restraining
Task #8: Finalise and format rules for inclusion in mission
Task #10: Key chain functionality becomes broken on disconnect.
Task #19: Distribute donator shop items into tiers
Task #34: Move all license vendors to dynamic display price changes in licenses.
Task #40: Ticket >= bounty removes wanted
Task #41: Coplevel 3+ can pardon
Task #43: Rewrite Wanted System
Task #45: Licenses scroll in player menu
Task #51: Check that arresting removes appropriate licenses
Changed: Prices for helicopters have went up.
Changed: Moved rebel outposts farther away from spawn points
Changed: Removed the drug dealer at NW part of map and moved NE dealer to the swamp
Added: Civilians can now knock out people by pressing Left Shift + G (You must have a weapon). This allows you to rob them of cash (for now).
Fixed: HMG Hunters had thermal vision.
Changed: For the time being the car shop gui has been made wider.
Changed: Prices for HMG Hunter & Armed Offroad both set to $750,000
Added: New wanted states
Fixed: Loss of input from being restrained.
Fixed: Excessive restrainment has been fixed and adjusted to check after 5 minutes of being restrained if a cop is near by.
Fixed: Gun stores showing 'truck license' as the text.
Fixed: Random hats (again)
Fixed: DP-12 NPC was in the ground.
Fixed: Fish market guy in Kavala was a midget.
Fixed: When paying a ticket you become unwanted
Fixed: When paying bail you were still wanted.
Fixed: Boat shop at Neochori & North part had no vehicles.
Fixed: Free banking insurance.
Fixed: When using Shift + R or Shift + G you would throw a grenade/chemlight or reload (Life action key related)
Changed: When tazed your heath goes back up, it is a side effect of stopping death by tazer.
Changed: When restrained you can't be killed.
Changed: When restrained you can't abort or respawn.
Changed: If arrested while wanted timer is 15 minutes and 10 minutes before you can pay bail, if not wanted then it is 10 minutes & 5 minutes before you can pay bail.
Added: Punishments for various crimes, more detail below.
Changed: Updated GUI Resources for new patch.

Download Mirror:
Altis Life RPG v3.1.0

This post was edited by Tonic (2014-01-24 12:06, ago)


Author Message

asdsa  



Posts: 175
Rank:


Level: Member

Country: 00
Location:
Occupation:
Age:
In-game name:

 
#6 Posted at 2014-02-08 18:40        
     
-removed

This post was edited by Flaming Spaz (2014-02-23 18:53, ago)


Author Message

Tonic  



Posts: 69
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#7 Posted at 2014-02-11 03:19        
     
UPDATE: 3.1.1

Notes:
Editing Note: DO NOT change the change log block in the briefing.sqf, there is a custom block for your community / own edits.
Server-Side: A lot of people can't host a server because they can't have a database schema called arma3life so now you can easily adjust the database schema name in the life_server\init.sqf file at the top.
Database Change: look at the .sql file & run the query for creating the procedure (deleteDeadVehicles) for self-vehicle cleanup.
Chop Shop: The chop shop prices are the sell back prices for the garage so when changing the sell prices remember these are tied to the selling in the garage.

Change Log:
Added: Chop shop system so you can sell vehicles to it (owned or stolen).
Added: Progress bars to various actions (Repair, healing, Impounding).
Added: Players can no longer remove illegal items when cops are within 100m (prevents disposing of evidence).
Added: SQL side cleanup of 'dead' vehicles on each mission-start. This is to clear up a mass amount of vehicles in the DB.
Changed: You can no longer remove items when inside a vehicle.
Changed: Spawn Selection Menu changed to a list box, easier to add spawn points and supports purdy icons.
Changed: life_donator,life_copLevel,life_adminlevel moved to a constant variable (compileFinal) to stop exploits.
Changed: Other various variables moved to a constant variable (compileFinal).
Changed: Optimized function life_fnc_nearUnits
Changed: Moved a lot of functions from server to client (reducing initial bandwidth).
Changed: Moved a lot of variables / arrays from server to client (reducing initial bandwidth).
Changed: Updated clothing stores with various new backpacks and glasses.
Changed: Cop siren lights expanded to hunter & suv.
Fixed: Sometimes killing yourself would revoke your drivers license or firearms license.
Fixed: Sometimes upon death and doing an action would send you to negative cash.
Fixed: Exploitation of the impound vehicle action.
Fixed: Expoitation of the search vehicle action.
Fixed: Exploitation of the search player action.
Fixed: Cop vehicles pulled from the garage couldn't use siren lights.
Fixed: DMV guy realized that he was half-way in a wall.
Fixed: Oil trader has been told that he is not Chris Angel and is no longer floating.
Removed: Various old functions carried over since Stratis life on A3 Alpha/Beta (Pre-system rewrite).
Removed: Being killed by police no longer revokes your rebel license and whatever licenses with it (still there just uncomment it if you liked it).
Removed: Gcam button removed as it was never implemented.

This post was edited by Big (2014-02-11 07:12, ago)


Author Message


Posts: 1
Rank:


Level: Member

Country: be
Location:
Occupation:
Age: 29
In-game name:

 
#8 Posted at 2014-02-11 06:25        
     
Great Job Guys!

I really love your Job :-D

Have you any tips to make a update from our old server (3.1.0) to go in 3.1.1

Because i translate a lot of think for my own server

But i really want to have all your new Update :D

Have you any Idea?

One more time, Thanks for you Job!

This post was edited by Nark0t1k (2014-02-11 07:33, ago)


Author Message

asdsa  



Posts: 175
Rank:


Level: Member

Country: 00
Location:
Occupation:
Age:
In-game name:

 
#9 Posted at 2014-02-11 21:52        
     
-removed

This post was edited by Flaming Spaz (2014-02-23 18:53, ago)


Author Message

asdsa  



Posts: 175
Rank:


Level: Member

Country: 00
Location:
Occupation:
Age:
In-game name:

 
#10 Posted at 2014-02-16 10:53        
     
-removed

This post was edited by Flaming Spaz (2014-02-23 18:53, ago)


Author Message


Posts: 1
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#11 Posted at 2014-02-23 03:52        
     
HI

Im looking for some help setting up my altis life server, currently i am getting an error.
Warning Message: Script life_server\init.sqf not found.
i have the @life server in the main directory of my server, im not sure why im getting this error.


Author Message


Posts: 3
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#12 Posted at 2014-02-23 23:09        
     
I can't seem to connect to my database. I have set everything up. @Arma2NET and @life_server, I can get it to run, but it doesn't run properly. It does not save, I'm not even sure if it's even connecting. How could I tell...

I can login to database with user/pass that I specify, so what gives? Do I have to have a special call to save info?...


Author Message

Tonic  



Posts: 69
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#13 Posted at 2014-03-03 10:42        
     
UPDATE: 3.1.2

Notes:
Interaction Key: The Interaction key replaces a lot of player-based addActions and also introduces Interaction menu for vehicles & players. This is a huge performance gain over the old addAction based methods. The key by default is binded to Left Control, to change this to a different button Goto Configure->Controls->Custom and bind Use Action 10 to change it. Currently it only supports single keys such as H or 1.
Localization: The system was localized by only 5-12% and did not finish it. Will finish it in 3.1.3 just felt this updated was needed more to be pushed.

If you were a host having issues with new players joining & getting stuck with a black screen then run the following SQL queries, these only need to be ran once AFTER applying the new patch:
UPDATE `players` SET `cop_licenses` = '"[]"' WHERE `cop_licenses` IS NULL
UPDATE `players` SET `civ_licenses` = '"[]"' WHERE `civ_licenses` IS NULL
UPDATE `players` SET `civ_gear` = '"[]"' WHERE `civ_gear` IS NULL
UPDATE `players` SET `cop_gear` = '"[]"' WHERE `cop_gear` IS NULL

Change Log:
Added: Ability to cancel various actions by moving (S,W,A,D).
Added: Progress bar to the lockpicking action.
Added: Interaction Key replacing addActions (Huge performance gain, read notes about it).
Added: Lockpicks can now be used to uncuff other players.
Added: Cops can now search civilians for licenses only thus getting rid of illegal searches for drugs.
Added: Siren lights are now activated by Left shift + L (Also a surprise for it..).
Changed: Cop NPC vendors changed to range master NPC.
Changed: Quadbike no longer requires a driver license to operate/buy.
Changed: This was included in 3.1.1 but not announced, players in jail no longer show on wanted list.
Changed: fn_handleDamage was changed for proper condition checking and prioritization (Should no longer die from tazers).
Changed: Optimized cop markers.
Changed: Optimized view distance checking system.
Changed: Optimized misc functions.
Changed: Cleanup of multiple-server side cleanup functions.
Changed: Vehicle cleanup was bumped to 60-minute cycles.
Changed: Removed server-side dead vehicle & body cleanup. Now uses A3 internal cleanup system.
Fixed: At the chop shop you were able to sell cars near by with people in them.
Fixed: Donator shop didn't work due to previous patch changes.
Fixed: People could lock/unlock a vehicle when inside it without having the keys.
Fixed: Players could buy regular vehicles without owning the proper license.
Fixed: Some hosts couldn't handle NULL exceptions thus breaking the initialization for the login (read notes).
Fixed: Missing marker for rebel vehicle spawning.
Fixed: When trying to sell medkits (when full) you got an error saying you were full :\
Fixed: Erorr: No Unit should no longer be saved in the database as the players name.
Fixed: SQL Saving would become broken with charaters such as '/\`:|;," in the players name.
Fixed: As a cop when picking up illegal items it said $any (even though you did receive the money).
Fixed: Vehicle cleanup didn't put the permanent vehicle back into the garage.

Download:
Altis Life RPG v3.1.2

This post was edited by Tonic (2014-03-03 10:58, ago)


Author Message


Posts: 1
Rank:


Level: Member

Country: nl
Location:
Occupation:
Age:
In-game name:

 
#14 Posted at 2014-03-04 10:24        
     
Hey tonic i am a big fan of your work but i am not that smart with programming and arma 3 but i really want to host this server and i have only 1 problem and that is with the map how can i run it?? if i put it into the MPmission folder i cant find it with TADST can you help me out.
I am new with stuff like this and i really want to try to make stratis life you are awesome.


Author Message


Posts: 3
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#15 Posted at 2014-03-07 15:28        
     
I seted up the server on a private root, now we have a problem with the "contacting server for player informations"
I put a database inside the Arma3 directorry:
# This is a comment
# Any line starting with a "#" is considered a comment
# Make sure each of your database connections doesn't have a "#" in front!
# Put each database connection you want on a separate line
# The databasename MUST be unique!
# For an example, see the following
#databasetype,databasename,ipaddress,port,username,password
#
#mysql,arma,127.0.0.1,3306,armausername,secret
#sqlite,weaponslite

mysql,arma3life,127.0.0.1,3306,root,XXXXXX

#sqlite,weapons


And i run the server with the tadst tool. So how can i fix the problem?
Btw what i should do with the oth@.... folder actually i just put it in the arma directory


would be nice if you could help me

TS: 78.47.80.125:5001






Tags: Altis, Game, Life, Rpg