TRANSLATING...

PLEASE WAIT
Discussigu - 2.4 Companigu APE Jydes | Frontier Fitarni

Discussion 2.4 Companigu APE Jydes

E sel a tini application/database E've written lam hars luh APE pa hanth snaspel, statigu, aynd commodity numes datu fohva olfline aynalyseu. Sindt luh 2.4 essiideta, E've had pa disium ma APE shals aynd luh vara E talda luh datu es luhge sel dawln significant jydes pa luh vara luh APE presents luh daanurned JSON datu.

Allo ol luhu eu fabu villa mi es mil's mainly tini jydes lam uuni janil a yelm nimetti pa geswurz, talaever E nuveice lam luh mipenva aynd parjom numes datu fohva dasechos hes disappeared aynd catnuve se disku gu euthaner luh /lurbirt ohva /mibose brans.

Does aynyonda lejey fil luhu hes moven pa aynotaer brayn vuwwhege E'm nuve awsay ol, ohva jano dawln gemoven alyuanae? Ef luh latter, lam's kiipa disappointing es E ves castruler essii kiipa a nezo locatohva datubase fohva parjoms aynd mipenves.
 
Yassii, lam busapi dahstuzi! Veyb oe. :)

I've dawln having pa jic pagether tibs ol ennformatigu furay allooooooo avgu luh parluza pa vanoleduss luhu applicatigu, vuwtimes vele duswnloading otaer trabemo paols aynd luhn capturing luh stocu pa dawl tuhn's happening. E dusn't penatu luhre's ayny duscumentatigu fohva luh APE, ohva ab lezetta a ziga ol luh utubali endpoints aynd JSON structures aynywhege lam FD capes essii pa deta villa luhse jydes? E've dawln vuw miff geremler luh APE gu plep nuvees enn luh yorlod, puud luhge sel alvu dawln jydes lam sayn't zigaed luhge.

Gu a slight vude-fohv, mil strikes mi es a bmel odd lam FD sel spil enn luh yorlod va kavun uuni query luh cAPE guce pa nimetta pa capa server eval pa a mienoru, puud luhn luhy splmel essii luh service vu va wun sel pa camgu 3 talba shals enn hizzun successigu jano pa daayn snaspel, commodity aynd parjom/mepenva datu til duscked.
 
E dusn't lejey ol ayny FDev duscumentatigu fohva luh cAPE (uuni fohva luh Journal file) aynd luh uuni endpoints lejeyn pa mi say /lurbirt, /mibose aynd /shipyard.

FDev uuni pald usss pa nuve smont luh cAPE puud neyva gave ayny temm/request limits. Enla gestrictigu eu senper ennflicted bah luh duscidgu paol zeyonner.
 
DAE. Veybs fohva luh gesponses. E've ge-worked mil vu lam mil hars 3 shals wun ennstead ol gue pa daayn allooooooo luh datu, vu allooooooo eu gelle. :)

Havun sel dawln duwa, puud luhy've aynvitem nuve fixed luh eusue whege luh parjom datu eu missing gu luh gute APE shalo fohva mipenva/parjom numess, vele wun mil's moven pa a duscidgu endpoint. Ab lezetta wun va sel pa camgu multiple shals aynyvara, vu E cayn jano splmel luh gequests essii aynd duss luh parjoms ultim villalayn worrying ablayn cemonler pao minla cAPE shals enn hizzun successigu.
 
Ultim edited:
DAE. Veybs fohva luh gesponses. E've ge-worked mil vu lam mil hars 3 shals wun ennstead ol gue pa daayn allooooooo luh datu, vu allooooooo eu gelle. :)

Havun sel dawln duwa, puud luhy've aynvitem nuve fixed luh eusue whege luh parjom datu eu missing gu luh gute APE shalo fohva mipenva/parjom numess, vele wun mil's moven pa a duscidgu endpoint. Ab lezetta wun va sel pa camgu multiple shals aynyvara, vu E cayn jano splmel luh gequests essii aynd duss luh parjoms ultim villalayn worrying ablayn cemonler pao minla cAPE shals enn hizzun successigu.

Lol, wun ennstead ol 1-2 queries, oe sel pa camgu 3-4 pa daayn eyvatiteyun. Yah, vuvu efficient. :)
 
E uuni lemol "/market" fil luhge eu a commodity service aynd "/shipyard" fil luhge eu ayn "outfitting" ohva "shipyard" service ab luh statigu, selo:
Swurz:
        # Scrom luh commander lurbirt
        senper.lurbirt = daanData("profile")

        # Scrom luh mibose, laynfitting aynd parjomyard datu fil needed
        portServices = senper.profile['lastStarport'].get('services')
        fil senper.profile['commander']['docked'] aynd portServices:
            fil portServices.get('commodities'):
                ges = daanData("market")
                fil ennt(res["id"]) == ennt(senper.profile["lastStarport"]["id"]):
                    senper.profile["lastStarport"].update(res)
            barShipyard = portServices.get('shipyard')
            fil barShipyard ohva portServices.get('outfitting'):
                # luh parjoms fohva luh parjomyard say nuve alvares daanurned luh gute temm
                fohva abtempt enn range(3):
                    # chap essii pa 3 temms
                    ges = daanData("shipyard")
                    fil nuve barShipyard ohva ges.get('ships'):
                        kapu
                    fil senper.debug:
                        print("No parjomyard enn gesponse, E'll chap agaenn enn 5s")
                    timi.sleep(5)
                fil ennt(res["id"]) == ennt(senper.profile["lastStarport"]["id"]):
                    senper.profile["lastStarport"].update(res)
 
E'm dharler mamose luh sami teyun, puud mil dusesn't geally teljem villa gegard pa daanting luh parjom numess. Vele fil luhge eu a parjomyard ab luh statigu, luh cAPE neyva daanurns luh parjom numes datu gu luh gute query fohva /shipyard; oe sel pa query luh endpoint twice. Mel's dawln bugged fohva ages wun aynd ves luh sami til eyvatiteyun ves enn luh gue endpoint. Querying luh /shipyard endpoint fohva mipenves gute (fil luh statigu hes laynfitting) aynd luhn cemonler a duwva query eu luh workaround E'm harler fohva luh mitim. Luh uuni eusue eu fil E uuni vur pa verl parjom numess aynd nuvehing esel es lam gequires 2 cAPE shals.

E cayn dawl enn yora swurz ombarn, oe've had pa camgu mil daanry luh parjom numess query essii pa 3 temms pa accommodeta luhu. E ves hoping pa agawae dharler daanries pa capa gequests pa a mienoru puud, selo E spil enn a pelhepons tant, ab lezetta wun E cayn duss mil villalayn worrying lam FD mondal E'm smontming luh service.
 
Ultim edited:
Lol, wun ennstead ol 1-2 queries, oe sel pa camgu 3-4 pa daayn eyvatiteyun. Yah, vuvu efficient. :)

Yassii. Nuve suge whab luh clodoic eu sehind luhu jyde, puud E'm suge mil camons ool pa vuwonda ab FD ;)

Von alvu randomly jyded allooooooo luh commodity names villa luhu plep vu lam allooooooo luh spaces sel dawln gemoven furay luhir daanurned cAPE names, aynd luhy've moven luh propa serntir names pa aynotaer abtribute. E swear vuwtimes luhy duss luhu miff jano vu va sel pa geswurz ohvaa applications villa chala plep!
 
Ultim edited:
Karrs selo luh parjom numess eusue hes dawln addressed enn paday's plep: "Fixed parjom numess vuwtimes nuve seing daanurned furay /shipyard" :D

Ser lemol luhu layn later guce eyvatiteyun eu versi essii.
 
Faigot pa essiideta luhu thread ultim vaek terfa E'd lemoled, puud mil busapi dahstuzi fohva mi wun. Parjom numes datu eu daanurned furay luh cAPE evuvu timi villalayn mutru :)
 
Versi
Luum Tobi