Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import math
import sys
def isa(inputAltitude):
#global constants
gAccel = 9.80665
molarMassAir = 28.964332265670002
gasConstant = 8314.46261815324
specificGasConstant = 287 #= (gasConstant/molarMassAir) =#
@erentar
erentar / dict.c
Created October 16, 2020 12:00
C dictionary
#include <stdio.h>
#include <string.h>
char lookup(char inputChar,char dict[][2]) {
int i;
for (i=0; i<(sizeof(&dict)/sizeof(dict[0][0])); i++) //total size/colum = rows
if (dict[i][0] == inputChar)
return dict[i][1];
return 0;
}
inputAltitude = 50000
#global constants
gAccel = 9.80665
molarMassAir = 28.964332265670002
gasConstant = 8314.46261815324
specificGasConstant = 287 #= (gasConstant/molarMassAir) =#
listStratas = (#= altitude, lapseRate =#
(0, -0.0065),
import random
import PySimpleGUI as pygui
def genRandSquawk():
randDigits = []
for i in range(0,4):
if i == 0:
randDigits.append(random.randint(0,6))
else:
randDigits.append(random.randint(0,7))
return(str("".join(str(i) for i in randDigits)))

Teamspeak, by default, only allows one client with the same identity certificate on the server at a time.

This is extremely annoying due to the fact that if you have one client connected elsewhere, you will not be allowed to connect.

If you have teamspeak on multiple devices, and forget to disconnect on any of them, you will not be able to connect until the zombie client is kicked, and there is nothing you can do about it.

The i_client_max_clones_uid permission holds the value of how many connections by the same identity certificate is allowed. By default, this set to 1. Setting it higher may be better for people with multiple devices.

I personally use teamspeak regularly on 3 devices (gaming pc, laptop, phone) and it would make my life easier if this setting is changed.

You'll need:

  1. Arma 3 installation
  2. pbo extractor: PBO manager if on windows and armake2 if ion l/unix
  3. ConvertWrp.exe (you have have the entire tools/folder for it to work so just clone the repo)
  4. GIS software you'd like to manipulate these in, i recommend QGIS

  • Navigate to Arma 3 installation
  • unpack addons/map_altis.pbo
  • git clone https://github.com/ALiVEOS/ALiVE.OS (or download as zip, same thing)
  • ALiVE.OS/utils/tools/mikero/ConvertWrp.exe altis.wrp