Jump to content

Search the Community

Showing results for tags 'tutorial'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Altis Life RPG
    • Headquarters
    • Introductions
    • RULES
  • Altis Life RPG Community
    • General Discussion
    • Helper Recruitment
    • Altis Life Server Advertising
    • Discord (join us for discuss)
  • Tools and Administration
    • Altis Life RPG (official Framework)
    • Altis Life Wiki
    • Server Setup and Configuration
    • Database
    • Security
    • Maintenance
  • Altis Life Customization
    • Server & Scripting Help Desk
    • Releases & Download
    • Misc & Tools
  • Kool Kids Klub's Oof
  • Kool Kids Klub's Secret Spot

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


CPU


Memory


Hard Drive


Graphic Card


PSU


Case


Monitor


Description - Other Accessories

Found 6 results

  1. Author: Me (I mean, it really wasn't that hard.) Difficulty: Really Easy What does it do? It enables / disables environmental ambient sound by pressing Shift + 0. (People claim that it gives you better FPS.) In my case, it gives me an extra 2 - 6 FPS depending on how much ambient sound there is. https://community.bistudio.com/wiki/enableEnvironment I've made it so that it only disables / enables ambient sound. Here it is: Step 1: Go to core\configuration.sqf - Add 'life_environment = 0;' Do it like this: Step 2: Go to core\functions\fn_keyHandler.sqf - Copy and Paste after Case 24 (FadeSound) It should look like this without the weird indentation. And that should be it. Comment if you have any issues, I mean, you really shouldn't though.
  2. This is a tutorial on how to fix the placement of Spikestrips. If you place them on a bridge they will go beneath the bridge. This because it sets it at a height of 0. To fix this open the file: core\items\fn_spikeStrip.sqf Find the code _spikeStrip setPos [(getPos _spikeStrip select 0),(getPos _spikeStrip select 1),0]; Then replace it with: _pos = getPosWorld _spikeStrip; _ins = lineIntersectsSurfaces [_pos , _pos vectorAdd [0,0,-50] ,_spikeStrip,objNull,true,1,"GEOM","NONE"]; if ((count _ins) isEqualTo 0) then { _spikeStrip setPos [(getPos _spikeStrip select 0),(getPos _spikeStrip select 1),0]; } else { _spikeStrip setPosASL (_ins select 0 select 0); _spikeStrip setVectorUp (_ins select 0 select 1); // This can cause some problems so if you wish to remove it you can. }; Then when you place the spike strip it should be placed at the correct height.
  3. Hello! Since i've grabbed so much from here i thought "Why not give something back?" and so i did with Malden gas station positions, but some people said i could write it into a tutorial, so here i am. I did this on 5.0 but it should virtually be the same. (This is also why the file structure is as it is) First off: This is time consuming, i will spare you from getting gas stations manually but most things you'll have to do yourself since it depends on how you customize the map. Please be aware that in this tutorial i will assume you've ported all map objects from Altis/Tanoa over to Malden. So i won't go in to explaining that. Please remember that everytime these coords show up in the tutorial: [5160,7071,0.75] You will need to change them to your own. We will modify these files in our progress in the map porting: 1. Let's start off with life_server, so unPBO that one, open up init.sqf and look for private _vaultHouse so you know you're in the right place. Now this all depends on how you've placed the federal reserve on Malden the next few steps, i did what I personally think requires little editing, as you can copy/paste a lot. But the first thing you're going to edit the _vaultHouse array. If you use the same building as there's being used on Altis you can just copy this line in instead of the one already there: Edit: I noticed i got an error with the code i had provided before, when it would get to _dome so this is my workaround: Comment out the altis, malden and Tanoa plus the _pos arrays. Then in _dome and _rsb you can put in your coords, so it will look like this: _dome = nearestObject [[5160,7071,0.75],"Land_Dome_Big_F"]; _rsb = nearestObject [[5160,7071,0.75],_vaultHouse]; Full: Also, you can remove this code from the init.sqf (Unless you want to spawn in 2 hospitals) Now we've finished the stuff we need to do in life_server. 2. Lets jump over to \core\actions\fn_captureHideout.sqf here it's also a quick is easy (if you use the same buildings as on Altis), example on how you will make this look: 3. Now let's go to \core\civilian\fn_jailMe.sqf in Line 43 (private _escDist) you can put in ["Malden", 60], after ["Altis", 60], (You can change "60" to whatever you want the escape distance to be) Example on how it will look: private _escDist = [[["Altis", 60], ["Malden", 60], ["Tanoa", 145]]] call TON_fnc_terrainSort; 4. Let's go to \core\cop\fn_fedCamDisplay.sqf here you basically do the exact same as in step one, so it will look like: 5. Jumping over to \core\fn_initCiv.sqf - This file is what determines which buildings you'll spawn in, since there's most of the Altis buildings on the map you can just copy paste that line and change _altisArray to _maldenArray , after you've done that don't forget to add it into the _spawnBuildings. (Or just copy paste this) 6. \core\fn_setupStationService.sqf , this file is what starts the "refueling" process, i've found the location for some of the gas pumps, and i've included them in this codeblock. If you find more, please say so and i'll update accordingly. DONT FORGET TO ALSO ADD THIS INTO: private _stationPositions so it will look like this: 7. In \core\functions\fn_actionKeyHandler.sqf find the _vaultHouse line, and add ["Malden", "CLASSNAME-FOR-YOUR-BUILDING-WHICH-CONTAINS-FED-VAULT"] (of course change it) also add _maldenArray with the coords for where it's placed. Don't forget to also add this into the _pos. Example of how it can look: 8. \core\housing\fn_houseMenu.sqf - Here it's just like in step 7, so it'll look like: 9. \core\items\fn_blastingCharge.sqf - exact same as above 10. \core\items\fn_boltcutter.sqf - This is (also) the same as above. 11. \core\shops\fn_virt_buy.sqf - Here you'll add the buildings which you use for gang hideouts. Just like in step #2 Here's an example of how it will look: (You can find this on line 19) 12. \core\shops\fn_weaponShopBuySell.sqf - Here we will, like in step #2 add what building we are using as gang hideout, i'll once again show how i've done it: (Line number 32) 13. \Config\Config_SpawnPoints.hpp - Here we will add our spawnpoints. Remember that the class should be called "Malden". Like so: I know this tutorial is not as in depth as others, but that is because a lot of this varies with where you place federal reserve, which buildings you use for gang hideouts and all the other stuff. Also, if you don't switch to Malden remember that everytime "Malden" is mentioned anywhere in the code change it out with your mapname.
  4. Vihrms offers a wide range of BVI Payroll and HR services in UK & US Virgin Islands. Find the best Human Resource Management Systems for your company.

  5. This tutorial has been lost from the forums going down and I found how to do it on another Altis development forum to which I'm translating it for here. ================= Original Post By: Sergueiii ================= Tutorial on how to Separate Civilian and Police Cash & Bank Account *Remember to re-pack @life_server\addons\life_server folder after making these changes. ================= Step 1: Go to your life_server\Functions\MySQL\fn_insertRequest.sqf and modify this: _query = format ["INSERT INTO players (pid, name, cash, bankacc, aliases, cop_licenses, med_licenses, civ_licenses, civ_gear, cop_gear, med_gear) VALUES('%1', '%2', '%3', '%4', '%5','""[]""','""[]""','""[]""','""[]""','""[]""','""[]""')", _uid, _name, _money, _bank, _alias ]; To: _query = format ["INSERT INTO players (pid, name, cash, bankacc, westcash, westbankacc, aliases, cop_licenses, med_licenses, civ_licenses, civ_gear, cop_gear, med_gear) VALUES('%1', '%2', '%3', '%4', '%5', '%6', '%7', '""[]""','""[]""','""[]""','""[]""','""[]""','""[]""')", _uid, _name, _money, _bank, _money, //added for westcash _bank, //added for westbankacc _alias ]; === Step 2: Go to your life_server\Functions\MySQL\fn_queryRequest.sqf and modify this: case west: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, cop_licenses, coplevel, cop_gear, blacklist, cop_stats, playtime FROM players WHERE pid='%1'",_uid];}; To: case west: {format ["SELECT pid, name, westcash, westbankacc, adminlevel, donorlevel, cop_licenses, coplevel, cop_gear, blacklist, cop_stats, playtime FROM players WHERE pid='%1'",_uid];}; === Step 3: Go to your life_server\Functions\MySQL\fn_updatePartial.sqf and modify this: case 1: { _value = [_this,2,0,[0]] call BIS_fnc_param; _value = [_value] call DB_fnc_numberSafe; _query = format ["UPDATE players SET bankacc='%1' WHERE pid='%2'",_value,_uid]; }; To: case 1: { _value = [_this,2,0,[0]] call BIS_fnc_param; _value = [_value] call DB_fnc_numberSafe; switch (_side) do { case civilian: {_query = format ["UPDATE players SET bankacc='%1' WHERE pid='%2'",_value,_uid];}; case west: {_query = format ["UPDATE players SET westbankacc='%1' WHERE pid='%2'",_value,_uid];}; case independent: {_query = format ["UPDATE players SET bankacc='%1' WHERE pid='%2'",_value,_uid];}; }; }; === Step 4: Go to your life_server\Functions\MySQL\fn_updatePartial.sqf and modify this: case 6: { _value1 = [_this,2,0,[0]] call BIS_fnc_param; _value2 = [_this,4,0,[0]] call BIS_fnc_param; _value1 = [_value1] call DB_fnc_numberSafe; _value2 = [_value2] call DB_fnc_numberSafe; _query = format ["UPDATE players SET cash='%1', bankacc='%2' WHERE pid='%3'",_value1,_value2,_uid]; }; To: case 6: { _value1 = [_this,2,0,[0]] call BIS_fnc_param; _value2 = [_this,4,0,[0]] call BIS_fnc_param; _value1 = [_value1] call DB_fnc_numberSafe; _value2 = [_value2] call DB_fnc_numberSafe; switch (_side) do { case civilian: {_query = format ["UPDATE players SET cash='%1', bankacc='%2' WHERE pid='%3'",_value1,_value2,_uid];}; case west: {_query = format ["UPDATE players SET westcash='%1', westbankacc='%2' WHERE pid='%3'",_value1,_value2,_uid];}; case independent: {_query = format ["UPDATE players SET cash='%1', bankacc='%2' WHERE pid='%3'",_value1,_value2,_uid];}; }; }; === Step 5: Go to your life_server\Functions\MySQL\fn_updateRequest.sqf and modify this: switch (_side) do { case west: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', cop_gear='%4', cop_licenses='%5', cop_stats='%6', playtime='%7' WHERE pid='%8'",_name,_cash,_bank,_gear,_licenses,_stats,_playtime_update,_uid];}; case civilian: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', civ_licenses='%4', civ_gear='%5', arrested='%6', civ_stats='%7', civ_alive='%8', civ_position='%9', playtime='%10' WHERE pid='%11'",_name,_cash,_bank,_licenses,_gear,[_this select 8] call DB_fnc_bool,_stats,[_alive] call DB_fnc_bool,_position,_playtime_update,_uid];}; case independent: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', med_licenses='%4', med_gear='%5', med_stats='%6', playtime='%7' WHERE pid='%8'",_name,_cash,_bank,_licenses,_gear,_stats,_playtime_update,_uid];}; }; To: switch (_side) do { case west: {_query = format ["UPDATE players SET name='%1', westcash='%2', westbankacc='%3', cop_gear='%4', cop_licenses='%5', cop_stats='%6', playtime='%7' WHERE pid='%8'",_name,_cash,_bank,_gear,_licenses,_stats,_playtime_update,_uid];}; case civilian: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', civ_licenses='%4', civ_gear='%5', arrested='%6', civ_stats='%7', civ_alive='%8', civ_position='%9', playtime='%10' WHERE pid='%11'",_name,_cash,_bank,_licenses,_gear,[_this select 8] call DB_fnc_bool,_stats,[_alive] call DB_fnc_bool,_position,_playtime_update,_uid];}; case independent: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', med_licenses='%4', med_gear='%5', med_stats='%6', playtime='%7' WHERE pid='%8'",_name,_cash,_bank,_licenses,_gear,_stats,_playtime_update,_uid];}; }; === Step 6: Go to your Altis_Life.Altis\core\fn_initCop.sqf and ADD this: if (life_westbankcount <= 1) then { BANK = 200000; // Change this value to change the starting money life_westbankcount = life_westbankcount + 1; }; RIGHT ABOVE: player setVariable["rank",(FETCH_CONST(life_coplevel)),true]; [] call life_fnc_spawnMenu; waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done. === Step 7: Go to your Altis_Life.Altis\core\configuration.sqf and ADD this: life_westbankcount = 0; AT THE END OF: ***************************** ****** Backend Variables ***** ***************************** */ life_query_time = time; life_action_delay = time; life_trunk_vehicle = objNull; life_session_completed = false; life_garage_store = false; life_session_tries = 0; life_net_dropped = false; life_siren_active = false; life_clothing_filter = 0; life_clothing_uniform = -1; life_redgull_effect = time; life_is_processing = false; life_bail_paid = false; life_impound_inuse = false; life_action_inUse = false; life_spikestrip = ObjNull; life_knockout = false; life_interrupted = false; life_respawned = false; life_removeWanted = false; life_action_gathering = false; tawvd_addon_disable = true; life_god = false; life_frozen = false; life_save_gear = []; life_container_activeObj = ObjNull; life_disable_getIn = false; life_disable_getOut = false; life_admin_debug = false; life_preview_3D_vehicle_cam = objNull; life_preview_3D_vehicle_object = objNull; life_preview_light = objNull; life_pos_exist = false; life_pos_attach = []; life_civ_position = []; life_markers = false; === Step 7: Execute the following on your MySQL database for the players table: ALTER TABLE `players` ADD `westcash` int(100) NOT NULL DEFAULT '0' AFTER bankacc; ALTER TABLE `players` ADD `westbankacc` int(100) NOT NULL DEFAULT '0' AFTER westcash; ===
  6. Matthias Burns | Matze

    [Tutorial] Create your own ts3 Design with Installer

    Hello guys, today I am going to show you how to create your own ts3 Client design. 1. Create an new folder on your Desktop (or anywhere else) name the new created folder styles. 2. go to your TS3 Installation Folder and copy the files from the styles folder to your new created (styles) folder. 3. rename the files 4. go to the ts3design foler and replace the chatlog and logo with your Picture and logo and add a file called bg As an example for size and etc. here our stuff: chatlog.png Logo.png bg.png 5. Now you define the files in the ts3design.Qss file /* * TeamSpeak 3 Default Qt StyleSheet * * Copyright (c) 2009-2016 TeamSpeak Systems GmbH */ /* Use this to change the application default font. By default we leave it up to Qt to decide which font to pick. */ /*QWidget { font-family: "Segoe UI"; font-size: 9pt; }*/ QSplitter::handle#bookmarksLocalRemoteSplitter, QSplitter::handle#identitiesLocalRemoteSplitter, QSplitter::handle#profilesLocalRemoteSplitter, QSplitter::handle#whisperListsLocalRemoteSplitter { margin: 1.5px; background-position: center; background-repeat: none; } QSplitter::handle::vertical#bookmarksLocalRemoteSplitter, QSplitter::handle::vertical#identitiesLocalRemoteSplitter, QSplitter::handle::vertical#profilesLocalRemoteSplitter, QSplitter::handle#whisperListsLocalRemoteSplitter { background-image: url('styles:ts3design/splitter.png'); ///YOu can change this to but I wouldnt height: 2px; } /* QSplitter::handle:horizontal background-image: url('styles:ts3design/splitter_vertical.png'); width: 2px; } */ QLabel#bookmarksBanner, QLabel#identitiesBanner, QLabel#accountLoginBanner, QLabel#accountCreateBanner { background: qlineargradient(x1:0, y1:0, x2:0, y2:24, stop: 0 rgb( 80, 92, 120), stop: 0.08 rgb(133, 147, 174), stop: 0.32 rgb( 88, 107, 140), stop: 1 rgb(111, 128, 170)); color: white; padding-left: 6px; font-weight: bold; qproperty-minimumSize: 0px 32px; } QLabel#accountLoginBanner, QLabel#accountCreateBanner { qproperty-minimumSize: 420px 32px; } QTextEdit#ChatLineEdit[helpTextVisible="true"] { color: #E02D2D; } QTextEdit#ChatLineEdit[helpTextVisible="false"] { color: normal; } QStatusBar QLabel { padding: 0px 3px; border: 0px; } QTextEdit#InfoFrame { background-color: palette(base); background-image: url('styles:ts3design/logo.png'); ///Here the path to your logo background-repeat: none; background-position: bottom right; background-attachment: fixed; } QTextEdit#ChatTab { background-color: palette(base); background-image: url('styles:ts3design/chatlog.png'); ///here the path to your chatlog background-repeat: none; background-position: bottom right; background-attachment: fixed; } TreeView { color: #000000; font-size: 12px; background-color: transparent; background-image: url('styles:ts3design/bg.png'); ///here the path to your Background background-position: fixed; background-position: top right; background-attachment: fixed; } QListWidget#localIconsListWidget::item:selected, QListWidget#remoteIconsListWidget::item:selected { border: 1px solid darkGray; } QTreeView#ServerTreeView { alternate-background-color: transparent; qproperty-rootIsDecorated: false; } QLabel#OptionsHeadlineTitleLabel { color: black; font-weight: bold; } QLabel#OptionsHeadlineDescriptionLabel { color: black; } QLabel#NewsLeftLabel { padding-right: 6px; } QTableView#clientsTableView, QTableView#banTableView { qproperty-alternatingRowColors: true; } QLabel#appNameLabel { color: #E02D2D; font-weight: bold; font-size: 24px; } QWidget#HeadlineLabel { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop: 0 #819CBD, stop: 1 #CDD7E5); } 6. go to your styles folder and add the package.ini Please note, that the depicted ini is only a possible structure, you still have to work with your folder structure [package.ini] Name = Altrpg Design Type = Style Author = Matze Hunter Version = 1.4 Platforms = win32, win64, mac Description = "This is a Alrpg ts tutorial design" [ts3design.ts3_style] package.ini styles ts3design.qss ts3design.qss tsdesign bg.png chatlog.png make sure the structure is like this: 7. Open the files (styles and package.ini) with winrar or any other ziping tool and pack it as zip bwollTS.ts3_style like I did it in the gif Thats it, have fun!
×