Datasets:
text stringlengths 0 929k |
|---|
// by Bon_Inf* |
if(not local player) exitWith{}; |
if((count (units group player) + count bon_recruit_queue) >= bon_max_units_allowed) exitWith {hint "You've reached the max. allowed group size."}; |
#include "dialog\definitions.sqf" |
disableSerialization; |
_update_queue = { |
_display = findDisplay BON_RECRUITING_DIALOG; |
_queuelist = _display displayCtrl BON_RECRUITING_QUEUE; |
_queuelist ctrlSetText format["Units queued: %1",count bon_recruit_queue]; |
}; |
_display = findDisplay BON_RECRUITING_DIALOG; |
_listbox = _display displayCtrl BON_RECRUITING_UNITLIST; |
_sel = lbCurSel _listbox; if(_sel < 0) exitWith{}; |
_unittype = bon_recruit_recruitableunits select _sel; |
_typename = lbtext [BON_RECRUITING_UNITLIST,_sel]; |
_queuepos = 0; |
_queuecount = count bon_recruit_queue; |
if(_queuecount > 0) then { |
_queuepos = (bon_recruit_queue select (_queuecount - 1)) + 1; |
hint parseText format["<t size='1.0' font='PuristaMedium' color='#ef2525'>%1</t> added to queue.",_typename]; |
}; |
bon_recruit_queue = bon_recruit_queue + [_queuepos]; |
[] call _update_queue; |
WaitUntil{_queuepos == bon_recruit_queue select 0}; |
sleep (1.5 * (_queuepos min 1)); |
hint parseText format["Processing your <t size='1.0' font='PuristaMedium' color='#ffd800'>%1</t>.",_typename]; |
sleep 3; |
/********************* UNIT CREATION ********************/ |
_unit = group player createUnit [_unittype, [(getPos bon_recruit_barracks select 0) + 10 - random 10,(getPos bon_recruit_barracks select 1) + 10 - random 20,0], [], 0, "FORM"]; |
_unit setRank "PRIVATE"; |
[_unit] execVM (BON_RECRUIT_PATH+"init_newunit.sqf"); |
/*******************************************************/ |
hint parseText format["Your <t size='1.0' font='PuristaMedium' color='#008aff'>%1</t> %2 has arrived.",_typename,name _unit]; |
bon_recruit_queue = bon_recruit_queue - [_queuepos]; |
[] call _update_queue; |
<|endoftext|> |
/* ---------------------------------------------------------------------------- |
Function: btc_fnc_findsafepos |
Description: |
Find safe position. |
Parameters: |
_check_pos - Center position. [Array] |
_mindist - Minimum distance from the center position. [Number] |
_random_area - Maximum distance from the center position. [Number] |
_objdist - Minimum distance from the resulting position to the center of nearest object. Specifying quite large distance here will slow the function and might often fail to find suitable position. Recommended value: 0 - 10. [Number] |
_allow_water - Allow water position. [Boolean] |
Returns: |
Examples: |
(begin example) |
_result = [getPos player] call btc_fnc_findsafepos; |
(end) |
Author: |
Vdauphin |
---------------------------------------------------------------------------- */ |
params [ |
["_check_pos", [0, 0, 0], [[]]], |
["_mindist", 0, [0]], |
["_random_area", 100, [0]], |
["_objdist", 0, [0]], |
["_allow_water", false, [false, 0]] |
]; |
private _return_pos = []; |
for "_i" from 0 to 4 do { |
_return_pos = [_check_pos, _mindist, _random_area, _objdist, [0, 1] select _allow_water, 60 * (pi / 180), 0] call BIS_fnc_findSafePos; |
if (count _return_pos isEqualTo 2) exitWith { |
_return_pos = [_return_pos select 0, _return_pos select 1, 0]; |
}; |
_random_area = _random_area * 1.5; |
}; |
_return_pos |
<|endoftext|> |
/* |
Author: Karel Moricky |
Description: |
Halts current function and all it's parents and shows an error message. |
Parameter(s): |
_this select 0: STRING - Formatted message |
End of preview. Expand in Data Studio
- Structure
- Sources
- Included Repositories
- Base Frameworks
- Mission Frameworks
- Gamemodes
- Artificial Intelligence
- RHS, CUP and Factions
- Radio and Communication
- User Interface
- Medical and Damage
- Vehicles and Logistics
- Persistence
- Environment and Terrain
- CBRN and Electronic Warfare
- Artillery and CAS
- Missions and Campaigns
- Training and Simulations
- Zeus Modules
- Utils and Systems
- Development Tools
- Vanilla Arma 3 (Decompiled)
- Maps and GIS
- Base Frameworks
- Purpose
- Usage
TAC-LEX SQF Corpus
A corpus of SQF (Status Quo Function) code — the scripting language of Arma 3 (Bohemia Interactive).
This dataset was built to train the TAC-LEX model, an assistant specialized in SQF code generation.
Structure
- File:
cpt_corpus_fase2.txt - Documents: 56,369
- Size: 145.6 MB
- Separator:
<|endoftext|> - Encoding: UTF-8
Each document is a snippet of SQF code, separated by the special token <|endoftext|>.
Sources
The corpus combines two origins:
| Source | Documents |
|---|---|
| Curated original corpus | 12,525 |
| Open-source repositories | 43,844 |
| Total | 56,369 |
Snippets were extracted from 280+ open-source GitHub repositories. Full list below.
Included Repositories
Base Frameworks
- ACE3 (
ACE,ACE3,ACE3_Hz) - CBA_A3 (
CBA) - ALiVE (
ALiVE.OS) - Zeus Enhanced (
ZEN) - Achilles
- ACE Arsenal Extended
Mission Frameworks
- TMF, ARCOMM-TMF, TMF3
- CMF3 (Cluster Mission Framework)
- F3 (Folk ARPS)
- cScripts (7th Cavalry Gaming)
- WaldosMissionPack
- Everlight-Mission-Framework
- Profiteers-Mission-Framework
- TAS-Mission-Template
- Theseus-Aegis MissionTemplate
- Mission-Framework (TaskForceDingo)
- MissionFramework (ArmaForces)
- Apex-Framework
- Paradigm (Savage Game Design)
- MalFramework
- Olsen-Framework-Arma-3
- GOL_Framework_2021
- qipMissionTPL
- RPFramework
- Framework_Tanoa_Life
- AsYetUntitled Framework
- Supremacy-Framework
- A3RPGFramework
- A3-RP
Gamemodes
- Antistasi (
A3-Antistasi,A3-Antistasi-1.4,A3-Antistasi-Ultimate,antistasi) - KP-Liberation (
KP-Liberation,KP-Liberation-APR) - Liberation-RX
- Liberation (skua-international)
- DUWS-R
- Domination (
Domination,Domination-4) - Invade & Annex (
ADR,I-A-3,CUP-Invade-And-Annex,Evannex,invade-and-annex) - Overthrow
- Insurgency (
InsurgencyRedux,BMR_Insurgency.Altis) - Wasteland (
ArmA3_Wasteland.Altis,.Stratis,.Tanoa,A3A_A3Wasteland.Altis) - Mike-Force
- Vindicta
- Evolution-A3
- co10 Escape
- BECTI (
BECTI-DYN,BECTI-ZERTY-RHS.Altis,Benny-Edition-CTI,ArmA-3-BECTI) - WASP (
a3wasp-core,a3wasp-missions) - Zombie-Framework
- WHFramework
Artificial Intelligence
- LAMBS Danger FSM
- XPS_A3 (eXtensible Project System)
- VCOM AI
- Havoc AI
- Sarge AI
- Soil
- dzn_dynai
- ReSDK_A3.vr
- A3EAI
- A3XAI
- Viceroys STALKER ALife
- AI vs AI Battle Scenario Framework
- DynamicEnemyPopulation
- taskRush-Creep-Hunt
- AdvancedAiCommand2
- random-infantry-skirmish
- HETMAN
- ANIMA
- DynamicCivilWar
RHS, CUP and Factions
- RHS Solid Humvees
- RHS Liberation (arma3-liberation-altis-rhs)
- 30 Tour operations (RHS)
- 15th MEU Liberation
- CUP-Invade-And-Annex
- 2bnb Factions
- BW Waffenkammer
- Black Dagger Armory
- A3UE-Variant-SCP
- civilian_presence_extended
Radio and Communication
- ACRE2
- ACRE2 Custom Signal Calculation
- TFAR (Task Force Arrowhead Radio)
- ArmaRadio
- ArmaCOM
- Force TFAR
- ArmA3 Vehicle SatCom
- jsoc_ew
User Interface
- diwako_dui
- BlueHud
- Arma-3-SideScore-Hud
- cTab
- HackEX
- A3AnimatePAA
- ArmA-3-Command-Center
Medical and Damage
- KAM (KAT Advanced Medical)
- kat_aceAdvMedical
- AFL
- ACE-Armor-Adjuster
- armor_plates_system
- ballistic-impact
Vehicles and Logistics
- SCCVehicles
- Arma-3-Custom-Vehicle-Behaviour-Library
- AdvancedTowing
- AdvancedSlingLoading
- AdvancedRappelling
- AdvancedUrbanRappelling
- AimForTheBushes
- Su_47_Berkut
- Sukhoi Su-27 Family
- Advanced-Vehicle-Service-Centre
- Arma-3-Portable-Drone-mod
- Arma-3-Lethal-Darter
- FPV-AI-Drones
- TanksResourceManagement
- vehicleInventorySystem
- KP-Cratefiller
- SeldomCar
Persistence
- ArmaPersistentCoreSystem
- eXtendedPersistentDB
- extDB3
- grad-persistence
- arma3-persistent-campaign
- EnfusionPersistenceFramework
- A4ES_A3
Environment and Terrain
- STORM-Framework (dynamic weather)
- grad_civs (ambient civilians)
- grad-makefire
- AWESome (wind and flight)
- Arma-3-Civilian-Population-Script
- ArmaRealMap
- mts_nature
- dayz_chz (Chernobyl Zone)
- LakesideReallife_V2
CBRN and Electronic Warfare
- diwako_cbrn
- arma3_cbrn
- AJ_CBRN_Old
- arma3-2d-mask-overlay
- Arma3EMP
- Crows-Electronic-Warfare
Artillery and CAS
- ArtyCalc
- a3-arty-react
- A3_Artillery_Calculator_RHS
- ArmA3_Script_HandleArmA3Artillery
- Better-CAS-Environment
- Incon-Airpower
- 9liners-and-notepad
- itc_air
- Air-Mission-Generator
Missions and Campaigns
- 77th-JSOC-Missions
- 30 Tour (operation haystack, target acquired)
- arma3-training-missions
- communityMissions_A3
- MRC-Mission-Files
- Ascendancy_Wars_SP.Altis
- arma3-missions
- BST_HidingInTheWoods.Stratis
- FNF (Friday Night Fight)
- FNF-DTAS-Altis
- SmmCaptureEvolve
- PRJ_BootCamp
- ALiVE Operation Cobra
- arma3-scenarios
- arma3-khe-sanh-rebellion
- arma3-macvsog-columbia-scripts
- Tactical-Satellite-Feed
Training and Simulations
- missions-entrainement
- arma3-training-missions
- Training (The Wrecking Crew UK)
- Virtual Training
Zeus Modules
- ZEN
- Achilles
- Enhanced-Zeus-Modules
- 160th-Zeus-GM
- ZeusScripts
Utils and Systems
- dzn_gear
- ShadecEconomic
- Arma-3-Economy-System
- Simplex-Support-Services
- 3rd-Shock-Scripts
- Tactical-Sub-Insertion
- Lifeline-Revive-AI
- HATG (Hide Among The Grass)
- Stealth-ghillie
- A3CQC
- grimes-building-occupation-script
- hehu_mf
- iedd (EOD notebook)
- Incon-Intel
- Incon-Undercover
- Arma3-DynamicUndercoverOps
- Arma-3-Ethics-Minefields-Script
- mdennehy/arma (convoy task)
- KP-Support
- Arma-3-Controlled-Spawn-And-Waypoints-Randomizr-Script
- mts_nature
- a3-misc
- Arma3-Scripts
- arma-scripts
Development Tools
- HEMTT (build system)
- intercept (C/C++ binding)
- SQF-VM (runtime)
- sqf-analyzer
- sqflint
- vscode-sqflint
- VSCode_SQF
- npp-sqf
- Funcy-SQF
- Pythia (Python extension)
- Arma.Studio
- dash-core
- RPFUtility
- LazyArmaDev
- SQF-LAB
- ARMA3-notes
- Learn-SQF
- icaruk-tutorial-sqf
- SQF-Gems
- LordGolias/sqf
- holy-evening-chillers/sqf
- Armaclass
- asl
- bsqf
- SQF++ Transpiler
- arma-crypto-binary
- CfgFunctionsGenerator-Arma3
- Arma3-ScriptSplitter
Vanilla Arma 3 (Decompiled)
- functions_f, functions_f_bootcamp, functions_f_decade, functions_f_epa, functions_f_epc, functions_f_exp_a, functions_f_warlords
- missions_f, missions_f_beta, missions_f_bootcamp, missions_f_epa, missions_f_exp_a, missions_f_gamma, missions_f_warlords
- modules_f, modules_f_bootcamp, modules_f_epb
- ui_f, ui_f_decade
- language_f, languagemissions_f
- 3den
Maps and GIS
- Arma3Map
- GameMapStorage
- Arma3TacMap
- grad_mtg
- grad_meh
- maps.gruppe-adler.de
- Beowulf.ArmaTerrainExport
- SCAR_E2TB
- A3_MaskToSatMap_Converter
- MaskColorChecker
- OSMtoArma
- Arma3_QGIS
- a3-map-cfgpatches
- arma-3-terrain-height-extractor
Purpose
This dataset was created for Continued Pre-Training (CPT) of language models focused on SQF code generation for Arma 3. The goal is to teach the model to:
- Recognize SQF-specific syntax
- Correctly use mod APIs (
BIS_fnc_*,CBA_fnc_*,ace_*) - Follow Arma 3 community idioms
- Generate code compatible with the RV Engine
Usage
Quick view (Hugging Face auto-converted Parquet)
from datasets import load_dataset
ds = load_dataset("TreeoM/TAC-LEX-SQF-Corpus")
print(ds["train"][0])
- Downloads last month
- 50