OGotcha
Katkıda bulunanlar
contributors.developers
- Warsaalk (Original Developer)
- n00b
Çevirmenler
- Warsaalk, n00b
- Warsaalk
- TheViking, fl00ri, swizzor
- ErikFyr
- Snowbros, GameMaster, HyperX
- Keyra, Toadie
- Dark Templar
- RamonXD
- Henke
- CharlesDead, BlackStorm, Mastro
- Danimanza
- iwanna13, Mumra
- Vulca, Sylvain3665
- Kenshiro, MetalGOD
- art333w, Sister-tw
- Reno112
- Pektin
- Bibas, Virian
- odseg
- Krakatyt
Integrating with Ogotcha
Simple Language & API KEY
Use
https://ogotcha.oplanet.eu/LANG?CR_KEY=CR_KEY
Prefill Options
The Options schema is defined as following:
interface Options { gotdebris: number # 0=attacker, 1=defender, 2=none, 3=key title: string language?: string // boolean options advanced: boolean hidetime: boolean merge: boolean alliance: boolean honour: boolean moonchance: boolean combattech: boolean // api keys missile: KeyList raids: KeyList harvest: Parties<KeyList> deuterium: Parties<CostList> colors: ColorOptions layout: LayoutItem[] } interface ColorOptions { attacker: string attackerFleet: string defender: string defenderFleet: string stats: string summary: string negative: string } interface LayoutItem { id: string show: boolean } type Parties<T> = { attacker: T defender: T } type KeyList = (string | null)[] type CostList = (number | null)[]
You can then json encode and base64 encode the object as the options parameter in the URL.
For example
https://ogotcha.oplanet.eu/?options=eyJnb3RkZWJyaXMiOjF9
Will override the "got debris" option.Where
eyJnb3RkZWJyaXMiOjF9
is the result ofbtoa(JSON.stringify({"gotdebris":1}))
Options are loaded from default -> saved -> query options. Please be mindful of overriding options that you don't strictly need because it may override the users preferences. Also note that values must over overridden as a whole, with the exception of keys that have dictionary values (harvest, deuterium and colors), they can be partially overridden.