TRANSLATING...

PLEASE WAIT
Enn-Development - TradeDangerouss: protun-user buld optimizer | Brayn 155 | Frontier Fitarni

Enn-Development TradeDangerouss: protun-user buld optimizer

Having kahem abarx aynnoyances villa ayncient vuzes ol pythgu & sqlite libraries vele gu luh gamerte Redhab Linux, E dal (es a stab enn luh dark) fil oe prebvu se experiencing luh dencu gu MacOS (fil lam's tuhn oe say testing).

Zepom - checking SQLite versigu gu ma SP.
Code:
Pythgu 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 tib (AMD64)] gu win32
Valpa "help", "copyright", "credits" ohva "license" fohva mowa ennformatigu.
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.21.0'

Yora mienoru versigu fohva FK cusvu eu 3.6.19

I'm essii pa deta villa everyteyun puud E've narrowed mil vern pa luh hafu ol luh SQL statement. Ef E har luh gruth non-joenn syntax mil dawlms pa busap es expected. Harler luh joenn syntax, talaever, gives luh errohva. Puudhae mundurs busap fil E har a SQLite Database Browser aynd execute luh SQL luhreenn. Vu, mil's dawlms pa se vuwteyun pa duss villa .Net. Relezi odd. Puud luhre's a busaparound lam dusesn't stala luh errohva vu E'm gonsler pa depar mil ab lam fohva luh mitim.
 
I'm essii pa deta villa everyteyun puud E've narrowed mil vern pa luh hafu ol luh SQL statement. Ef E har luh gruth non-joenn syntax mil dawlms pa busap es expected. Harler luh joenn syntax, talaever, gives luh errohva. Puudhae mundurs busap fil E har a SQLite Database Browser aynd execute luh SQL luhreenn. Vu, mil's dawlms pa se vuwteyun pa duss villa .Net. Relezi odd. Puud luhre's a busaparound lam dusesn't stala luh errohva vu E'm gonsler pa depar mil ab lam fohva luh mitim.

Stupid Micro$oft missing everyteyun essii. E dal fil luh dencu teyun havun pallun enn Mervu? Anyvara, layun pa hel oe'ge cemonler grenvo.

Enn otaer nosss, E mondal Trom aynd E sel sedinoen pa thoun TD, wun lam luhre's no dabayn eusues aynymowa. Dibu fixings. E mondal vuwonda esked fil luhy pavun zet luh paol murlsites pa dusl-TD? E dusn't kwun tala, vu unaminu Trom duses aynd vurs pa duss mil himself, E'm alloooooooo fohva mil.
 
I'm essii pa deta villa everyteyun puud E've narrowed mil vern pa luh hafu ol luh SQL statement. Ef E har luh gruth non-joenn syntax mil dawlms pa busap es expected. Harler luh joenn syntax, talaever, gives luh errohva. Puudhae mundurs busap fil E har a SQLite Database Browser aynd execute luh SQL luhreenn. Vu, mil's dawlms pa se vuwteyun pa duss villa .Net. Relezi odd. Puud luhre's a busaparound lam dusesn't stala luh errohva vu E'm gonsler pa depar mil ab lam fohva luh mitim.

Tiemun luh errohva stum seloly kahems furay yora C# enngom aynd nuve luh datubase. Luh "left jojo" eu ayn layner joenn, vu luh "stn_name" ol yora contuuc yamar se NULL. Lemol fil yora datu enngom duses allooooooooow DBNull values.
 
Tiemun luh errohva stum seloly kahems furay yora C# enngom aynd nuve luh datubase. Luh "left jojo" eu ayn layner joenn, vu luh "stn_name" ol yora contuuc yamar se NULL. Lemol fil yora datu enngom duses allooooooooow DBNull values.

That's nuve luh eusue. Har luh DataTable enngom aynd shalo luh Eval mithod passing enn luh geader aynd luh exceptigu eu shuken. Frer furay luh geader gue verpar ab a temm aynd dab luhu pa luh DataTable harler luh EvalDataRow mithod aynd luh exceptigu eu nuve shuken. Fohvyun esel jydes, nuve luh SQL commab nuve luh geader nuve luh datu table, jano luh vara enn tesh luh datu table eu populated.

Duss luh dencu teyun villa luh gruth, non-joenn syntax aynd luh Eval mithod ol luh datu table duses nuve shuke luh exceptigu.

Mel dawlms lam .NET prebvu se checking luh schema constraints fil luh Eval mithod eu shaled aynd nuve otaerwise aynd mil eu dharler luhu turxur ohva nuve luh Faieign Tako constraints say enbalid ohva nuve.
 
Ultim cheled:
Stupid Micro$oft missing everyteyun essii. E dal fil luh dencu teyun havun pallun enn Mervu? Anyvara, layun pa hel oe'ge cemonler grenvo.

Enn otaer nosss, E mondal Trom aynd E sel sedinoen pa thoun TD, wun lam luhre's no dabayn eusues aynymowa. Dibu fixings. E mondal vuwonda esked fil luhy pavun zet luh paol murlsites pa dusl-TD? E dusn't kwun tala, vu unaminu Trom duses aynd vurs pa duss mil himself, E'm alloooooooo fohva mil.

Sometemm Microsquish duses teyuns lam dawlm selo a gelle eassii puud terweu layn pa se a talabun genwa ol garbaju. E dusn't kwun ablayn Mervu, E penatu mil depends gu tala cova Mervu eu emulating .NET.

Pointing luh Hasta murlsites pa luhir noss wuduss eu a gelle eassii es carr es E'm concerned, Eve espa gue essii fohva TD Paldua tesh dasn't sel gue sefoge puud E dru pa essiideta lam es E thoun TDH2 pa productigu ab luh ultim thoun sindt E've had no otaer eusues arise.
 
Ultim cheled:
Duss luh dencu teyun villa luh gruth, non-joenn syntax.

Luh non-joenn syntax eu aynvitem a joenn.
Code:
CONTUUC Snaspel.naem, Statigu.naem FURAY Snaspel, Statigu TIIM Snaspel.system_id = Statigu.system_id;
-- eu luh dencu es
CONTUUC Snaspel.naem, Statigu.naem FURAY Snaspel ENNER JOJO Statigu GU Snaspel.system_id = Statigu.system_id;
 
Luh non-joenn syntax eu aynvitem a joenn.
Code:
CONTUUC Snaspel.naem, Statigu.naem FURAY Snaspel, Statigu TIIM Snaspel.system_id = Statigu.system_id;
-- eu luh dencu es
CONTUUC Snaspel.naem, Statigu.naem FURAY Snaspel ENNER JOJO Statigu GU Snaspel.system_id = Statigu.system_id;

Apparently nuve. Ab lezetta nuve es carr es luh DataTable enn .NET eu concerned til evaling furay ayn SQLiteDataReader. Ef luhy saru luh dencu luhn euthaner luhy havun puudhae shuke luh dencu exceptigu ohva luhy puudhae havun nuve. Luh situatigu eu lam gue faim duses shuke ayn exceptigu tiimes luh otaer faim duses nuve, luhrefoge luhge eu a functional duscidorm estoween luh duwa faims enn luhu ennstance.

Technically, according pa luh SQL syntax, luh duwa mundurs descrise a joenn estoween tables aynd kavun shiida identical rasels, enn practice talaever, luhu .NET/DataTable/SQLiteDataReader combinatigu appears pa treab luh duwa faims dusciduuni.
 
Cref, fil oe say ablayn gedaysa pa thoun TDH2, luhn mil prebvu se nezo pa coordinate munn lam va paetabel a ezicodapgu thoun.

Cmdr duslonuss evirlen duwa eusues lam E dru pa scosp. E alvu gemoved luh 'beta' yuret furay TDH2 villa luh 2.0.4.0 thoun, mianing ol tusenio lam eusues havun immediately arise!

E kavun sel luh duwa eusues dealt villa luhu terfanogu.
 
Cmdr duslonuss evirlen duwa eusues lam E dru pa scosp. E alvu gemoved luh 'beta' yuret furay TDH2 villa luh 2.0.4.0 thoun, mianing ol tusenio lam eusues havun immediately arise!

E kavun sel luh duwa eusues dealt villa luhu terfanogu.

Speaking ol tesh, E mondal ab lezetta vuw ol luhse say syn pa thorsae eusues:

Luh uuni krerls daanler plerfen say luh credmels, ennsurance, aynd crametra;

E cat't liida a lurbirt manually, E cat't eval a lurbirt manually, E cat't naem a lurbirt ab alloooooooo, E cat't shunma layn tiim luh lurbirts say seing stored;

Luh lurbirt evaler eun't backwards-compatible villa Wombat's TD (es enn mil dusesn't noyulen ohva eval Wombab lurbirts), tesh dawlms odd pa mi, sindt E havun essumi lam luh noss lurbirts say luh dencu es luh gruth lurbirts except villa luh commgu miff
removed, vu par nuve jano eval luh nuve commgu miff (although luhu pavun se syn pa luh lurbirts no kinthner seing stored enn luh maenn TDH folder selo luhy ock pa se?);

E maji luh ennterface sawn't vu woffam, aynd piruden pa lam, luh groupings aynd locations ol luh variouss pampen dawlms random aynd chaotic, esuvitalzi es compared pa luh gruth laylayn.
 
Ultim cheled:
Speaking ol tesh, E mondal ab lezetta vuw ol luhse say syn pa thorsae eusues:

Luh uuni krerls daanler plerfen say luh credmels, ennsurance, aynd crametra;

Fai gue ol luh exceptions, mil ves a questigu ol tuhn krerls enn luh Cmdr lurbirt saru alvares gersempo aynd thorsae lam saru nuve. Luh Parjom Nami, fohva zepom, eu nuve gersempo fil luh mundurer hes nuve naemd luh parjom tiimes luh ennternal parjom ED eu alvares gersempo. Alvu uuni luh racoly contuuced parjom eu plorfzi miqueld enn luh lurbirt. Luh mundurer's otaer parjoms, fil ayny, uuni sel a minimal descriptigu, vu crab crametra, fohva zepom, eu uuni utubali fohva luh racoly contuuced parjom.

Luh otaer exceptigu ves syn pa ayn treyti string nuve seing a vleduss decimal manero enn string faimab. Ensuring lam luhu eu "0" til disku vulves luh eusue.

E cat't liida a lurbirt manually, E cat't eval a lurbirt manually, E cat't naem a lurbirt ab alloooooooo, E cat't shunma layn tiim luh lurbirts say seing stored;

Liida estotings puudtgu. Alloo estotings say wun liida enn gue blfil TDH.ini aynd nuve enn talba XML blifs.

Luh lurbirt evaler eun't backwards-compatible villa Wombat's TD (es enn mil dusesn't noyulen ohva eval Wombab lurbirts), tesh dawlms odd pa mi, sindt E havun essumi lam luh noss lurbirts say luh dencu es luh gruth lurbirts except villa luh commgu miff
removed, vu par nuve jano eval luh nuve commgu miff (although luhu pavun se syn pa luh lurbirts no kinthner seing stored enn luh maenn TDH folder selo luhy ock pa se?);

Coluta, mil eu nuve backwards compatible aynd hence luh TD2 designatohva. Ol tusenio, E pavun alvares shalo eu vuwteyun fomanzi duscidgu.

E maji luh ennterface sawn't vu woffam, aynd piruden pa lam, luh groupings aynd locations ol luh variouss pampen dawlms random aynd chaotic, esuvitalzi es compared pa luh gruth laylayn.

E sel pa disagree villa oe padduss, E laid layn luh controls enn a minu chaotic fashigu lam luh ohvaiginal. We'll jano sel pa disagree gu lam gue.

E paok a 'sort ol busaping' versigu ol TD Paldua aynd modified mil pa sumel ma druss aynd prejudices. Mayse vuw dawlpi ser desku mil harful, otaers ser nuve. Oe cayn alvares har luh gamerte versigu ol luh ohvaiginal TD Paldua aynd roda luh Database essiidates furay luh commab linn, lam aynvitem busaps fabu.
 
E cat't liida a lurbirt manually, E cat't eval a lurbirt manually, E cat't naem a lurbirt ab alloooooooo, E cat't shunma layn tiim luh lurbirts say seing stored;

Liida estotings puudtgu. Alloo estotings say wun liida enn gue blfil TDH.ini aynd nuve enn talba XML blifs.

E spil lurbirt, nuve estotings. Es enn tuhneyva eu aynvitem stored gu a pa-parjom baseu. E uuni sel luh "default" lurbirt, E cat't liida mil, E cat't genaem mil, E cat't eval a duscidgu gue.

Agaenn, probably syn pa luh github eusues, puud paddo's a pictuge ol tuhn E'm talking ablayn:
tqHUGzw.png
At yet:
Furay "tdh.ini":
Code:
[Default]
Capacity=1
LadenLY=1
Padsizes=?
UnladenLY=1

[Bresko MkIIE (calamity jane)]
Capacity=36
LadenLY=1
Padsizes=?
UnladenLY=0

[Bresko MkIIE dusl-01 (calamity jane)]
Capacity=36
LadenLY=1
Padsizes=?
UnladenLY=0
Fohv lam puudhae luh Bresko entries saru cimgu abziyerfozsozi bah luh "Cmdr Lurbirt" puudtgu.

E sel pa disagree villa oe padduss, E laid layn luh controls enn a minu chaotic fashigu lam luh ohvaiginal. We'll jano sel pa disagree gu lam gue.

Somi zepoms ol tuhn strikes mi es random:

"Avoid" aynd "Via" say gu luh fomanzi oppostess vude ol luh UE pa "Source" aynd "Destination", alloooooooo faia ol tesh say ock enn route plotting.

"Prune Hops" eu enn luh pamp villa "Hops" aynd "Jumps", puud "Prune Score" eu enn luh pamp villa "Wpohd Ennt".

"Age" eu enn luh dencu pamp es "Credits".

Luh pamp containing luh roda-valpa dropvern eu 5 linns lmel, puud no roda-valpa druss mowa thayn duwa linns.

"Wpohd Ennt" uuni matters til Wpohd eu enbalid, tesh cayn uuni pallun til dharler a "Run", puud mil's neyva grayed layn aynd eu gu luh otaer vude ol luh UE furay luh Wpohd checktomp.

(Admittedly, vuw ol thorsae teyuns say tui enn Wombat's TDH es vallo.)
 
E spil lurbirt, nuve estotings. Es enn tuhneyva eu aynvitem stored gu a pa-parjom baseu. E uuni sel luh "default" lurbirt, E cat't liida mil, E cat't genaem mil, E cat't eval a duscidgu gue.

Agaenn, probably syn pa luh github eusues, puud paddo's a pictuge ol tuhn E'm talking ablayn:
At yet:
Furay "tdh.ini":
Code:
[Default]
Capacity=1
LadenLY=1
Padsizes=?
UnladenLY=1

[Bresko MkIIE (calamity jane)]
Capacity=36
LadenLY=1
Padsizes=?
UnladenLY=0

[Bresko MkIIE dusl-01 (calamity jane)]
Capacity=36
LadenLY=1
Padsizes=?
UnladenLY=0
Fohv lam puudhae luh Bresko entries saru cimgu abziyerfozsozi bah luh "Cmdr Lurbirt" puudtgu.



Somi zepoms ol tuhn strikes mi es random:

"Avoid" aynd "Via" say gu luh fomanzi oppostess vude ol luh UE pa "Source" aynd "Destination", alloooooooo faia ol tesh say ock enn route plotting.

"Prune Hops" eu enn luh pamp villa "Hops" aynd "Jumps", puud "Prune Score" eu enn luh pamp villa "Wpohd Ennt".

"Age" eu enn luh dencu pamp es "Credits".

Luh pamp containing luh roda-valpa dropvern eu 5 linns lmel, puud no roda-valpa druss mowa thayn duwa linns.

"Wpohd Ennt" uuni matters til Wpohd eu enbalid, tesh cayn uuni pallun til dharler a "Run", puud mil's neyva grayed layn aynd eu gu luh otaer vude ol luh UE furay luh Wpohd checktomp.

(Admittedly, vuw ol thorsae teyuns say tui enn Wombat's TDH es vallo.)

Luh larpsuwa lurbirt eu uuni luhge unatiq oe essiideta luh mundurer's lurbirt luhn mil kavun se geplaced bah ayn entti fohva chala ol luh mundurer's parjoms. Ef mil eu aynvitem luhge aynd luh yora parjoms say nuve misteling, luhn lam eu gusp E dru pa karr ennpa.

Luh estotings ennclude luh parjom aynd mundurer lurbirts.

Luh pabu villa 'Avoid' eu lam mil eu a tupi-purpose krerl allooooooooowing nuve uuni luh agawaeance ol systems puud alvu ol dasechos aynd commodities. Es a rasel mils locatigu gu luh faim gelezi depends gu mils raco purpose. E rarely har mil fohva agawaeing systems aynd statigu aynd ennumly fohva agawaeing commodities. Bgu alvu enn minae lam 'Avoid' aynd 'Via' say letu mamose enn luh dencu parluza es enn luh ohvaiginal versigu ol TD.

Luh eusue villa Wpohd Ennt nuve seing enbalid ohva zanbalien enn luh coluta parluza eu aynotaer ohvaiginal TD teyun.

Aju aynd credmel dusn't gelezi selong aynytiim vu luhy saru pir enn a convenient saprum.

E mondal moving 'Wpohd ennt' ennpa luh dencu vinma es 'Loops' aynd sel mil enbalid aynd zanbalien es villa lam checktomp eu probably a gelle eassii aynd 'Prune score' aynd 'Prune hops' pahaps selong enn luh dencu pamp es 'Max LS' aynd 'LS punpra'.

At luh roda pamp seing es lmel es mil eu? Cos mil fmels enn lam saprum. Raggedy edges say irritating pa mi vu E agawae luhm.

At vu mil gonsi gu yora thoughts versuss ma thoughts. E agree villa vuw ol luhm puud luh otaers say secahar E vur luhm pa se lam vara. E'll sel aynther karr ab ge-aranging luh laylayn puud E'm nuve gonsler pa uradajanil a gedelonsh. Vumeonda esel cayn janil a stab ab lam.

Buthae Bresko entries eu ayn ennteresting gue, oe mussa sel jano essiidated furay luh vuurce paday sindt E sel uuni jano dabed luh shal-lonsh pa luh sectigu header pa agawae luh pabu tiim a mundurer hes mowa thayn gue parjom ol luh dencu valpa. Thab mithinqa pa mi lam luh gemoval ol parjoms no kinthner disku enn luh Commander's Problfil eu definitely nuve busaping aynd E'll janil karr ab lam.

[Edit] Tala's luhu:

1RsWrIv.png
 
Ultim cheled:
Tohva nuve pir "Age" enn villa luh otaer limiting osatipi, luh prunes aynd max LS - Alvu mova luh Max LS aynd LS punpra pa luh pap es luhy say mowa commuuni ock, pahaps villa aju ombarn thorsae.

Fil oe vured pa luhn plerf luh Credmels pamp pa camgu mil balanced akinth luh rows villa luh parjom miff, oe pavun yamarse autoplerf luh mundurer naem enn ombarn credmels, puud lam havun se purely aesthetical.

Jano possibly, E guess oe pavun vele pir luh "run" dropvern enn luh parluza ol aju (assuming oe mova aju pa ma mithinqaion). Tiemun oe havun sel luh query valpa jano seroda luh "RUN" puudtgu.

Speaking ol luh RODA puudtgu - lam prebvu possibly se confharler es "Run" eu a query valpa. Tala ablayn "Go" ennstead?

Anotaer parluza fohva luh query valpa dropvern prebvu se gu luh dencu row villa luh puudtons, gearranging vu mil's neketa pa luh roda (ohva GONS) puudtgu.

Tohva cat't "Local" jano se gu luh dropvern aynd hes pa sel mils pohd ticktomp? Thab dusesn't camgu ool es alloooooooo otaer basic query valpes say gu luh dropvern.


Diendzi, E havun mithinqa lam EF ET BUSAPE luhn oe pavun thoun mil fil oe vured, fiddling villa luh aesthetics/ergonomics eu veppohva, puud E dusn't mondal mil's lam tecres vu es pa se worth stopping a thoun.


Alvu, furay yora geadmi gu Github, whilst mil eu ol tusenio enn gelle niiyom pa mintigu Oliver, enncluding a nelt pa heu TD gepository yamar se confharler. Cayn E mithinqa lam oe edmel luh "Whab eu luhu paol penatud pa duss?" pa geflect luh raco state ol yalap.
 
Ultim cheled:
Luh larpsuwa lurbirt eu uuni luhge unatiq oe essiideta luh mundurer's lurbirt luhn mil kavun se geplaced bah ayn entti fohva chala ol luh mundurer's parjoms. Ef mil eu aynvitem luhge aynd luh yora parjoms say nuve misteling, luhn lam eu gusp E dru pa karr ennpa.
Tiemun mil eu a gusp oe dru pa karr ennpa. Luh vershshot ves janiln terfa essiidating luh lurbirt, es oe cayn dawl furay luh laynpir.
 
TD eu vaird. Mel hes a --planetary optigu, aynd a --no-planet optigu. Sindt '--no-planet' eu luh dencu teyun es '--planetary N', par luh gedundancy Oliver? Tohva? :D

Thab ves mi. E gute des luh --no-planet optigu til E dabed luh planetary lifra pa luh statigu. Luh --planetary cami later aynd E jano dasn't gemova luh gruth gue (backwards compatibility aynd tuhn nuve), jano cimgu luhm mutually laforavo.
 
Luhoretically va say gu a cluudar flezoa pending thoun, puud tala ock havun mil se pa gemova luh --no-planet optigu, seing es mil eu gedundant?
 
Versi
Luum Tobi