[Pasek] Dysponent surowcowy

Malcu

Chłop
Wynik reakcji
0
Dziękuję działa, mistrz!!!!!!
Jak mieszkasz na pomorzu to wpadam z flaszką jacka !

Życzę miłego wieczoru Mateusz.
 

Malcu

Chłop
Wynik reakcji
0
Dzisiejsze błedy:


preventOverflowing(): while_1 is infinite
Kod:
11470    1        NEW TRANSPORT: (0,0,1000) traders:1
11471    1    updateVillages()
11472    1    addTransport()
11473    1        NEW TRANSPORT: (0,0,1000) traders:1
11474    1    updateVillages()
11475    1        reduceSums() | transport swap found
11476    1    reduceTransport()
11477    1        Reduction: i: 9, (0,0,1000), origin: 4058, destination: 2686
11478    2    updateVillages()
11479    1    reduceTransport()
11480    1        Reduction: i: 23, (0,0,1000), origin: 3412, destination: 2649
11481    2    updateVillages()
11482    1    addTransport()
11483    1        NEW TRANSPORT: (0,0,1000) traders:1
11484    1    updateVillages()
11485    1    addTransport()
11486    1        NEW TRANSPORT: (0,0,1000) traders:1
11487    1    updateVillages()
11488    1    verifyTransports()
11489    1        Number of transports: 31 {
11490    1    }
11491    1    removeEmptys()
11492    1        removeEmptys() | removal
11493    1    updateVillages()
11494    1        removeEmptys() | removal
11495    1    updateVillages()
11496    1        removeEmptys() | removal
11497    1    updateVillages()
11498    1        removeEmptys() | removal
11499    1    updateVillages()
11500    1        removeEmptys() | removal
11501    1    updateVillages()
11502    1        removeEmptys() | removal
11503    1    updateVillages()
11504    1    verifyTransports()
11505    1        Number of transports: 25 {
11506    1    }
11507    1    merge()
11508    1    verifyTransports()
11509    1        Number of transports: 25 {
11510    1    }
11511    1        merge() | merging i: 0, i+1: 1
11512    2    updateVillages()
11513    1    addTransport()
11514    1        NEW TRANSPORT: (0,0,24000) traders:24
11515    1    updateVillages()
11516    1        merge() | merging i: 1, i+1: 2
11517    2    updateVillages()
11518    1    addTransport()
11519    1        NEW TRANSPORT: (0,0,38000) traders:38
11520    1    updateVillages()
11521    1        merge() | merging i: 3, i+1: 4
11522    2    updateVillages()
11523    1    addTransport()
11524    1        NEW TRANSPORT: (0,0,28000) traders:28
11525    1    updateVillages()
11526    1        merge() | merging i: 3, i+1: 4
11527    2    updateVillages()
11528    1    addTransport()
11529    1        NEW TRANSPORT: (0,0,2000) traders:2
11530    1    updateVillages()
11531    1        merge() | merging i: 3, i+1: 4
11532    2    updateVillages()
11533    1    addTransport()
11534    1        NEW TRANSPORT: (0,0,30000) traders:30
11535    1    updateVillages()
11536    1        merge() | merging i: 5, i+1: 6
11537    2    updateVillages()
11538    1    addTransport()
11539    1        NEW TRANSPORT: (0,0,6000) traders:6
11540    1    updateVillages()
11541    1        merge() | merging i: 5, i+1: 6
11542    2    updateVillages()
11543    1    addTransport()
11544    1        NEW TRANSPORT: (0,0,2000) traders:2
11545    1    updateVillages()
11546    1        merge() | merging i: 5, i+1: 6
11547    2    updateVillages()
11548    1    addTransport()
11549    1        NEW TRANSPORT: (0,0,7000) traders:7
11550    1    updateVillages()
11551    1        merge() | merging i: 5, i+1: 6
11552    2    updateVillages()
11553    1    addTransport()
11554    1        NEW TRANSPORT: (0,0,9000) traders:9
11555    1    updateVillages()
11556    1        merge() | merging i: 10, i+1: 11
11557    2    updateVillages()
11558    1    addTransport()
11559    1        NEW TRANSPORT: (0,0,10000) traders:10
11560    1    updateVillages()
11561    1    verifyTransports()
11562    1        Number of transports: 15 {
11563    1    }
11564    1    reduceOpposing()
11565    1    removeEmptys()
11566    1    preventOverflowing()
11567    1        preventOverflowing() while_1
11568    100001            preventOverflowing() while_1 while_2
11569    1    ERROR: preventOverflowing(): while_1 is infinite
Nie mogę przeslać debuga poniewaz jest zbyt długi. W nowym poscie też nie da rady dodać.
 

Mario62

Chłop
Wynik reakcji
0
Na głównym koncie skrypt chodzi aż miło, ale na jednym zastępstwie...
preventOverflowing(): while_1 is infinite
Kod:
93921    1        NEW TRANSPORT: (0,0,1000) traders:1
93922    1    updateVillages()
93923    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93924    1            preventOverflowing() while_1 while_2
93925    1    addTransport()
93926    1        NEW TRANSPORT: (0,0,1000) traders:1
93927    1    updateVillages()
93928    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93929    1            preventOverflowing() while_1 while_2
93930    1    addTransport()
93931    1        NEW TRANSPORT: (0,0,1000) traders:1
93932    1    updateVillages()
93933    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93934    1            preventOverflowing() while_1 while_2
93935    1    addTransport()
93936    1        NEW TRANSPORT: (0,0,1000) traders:1
93937    1    updateVillages()
93938    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93939    1            preventOverflowing() while_1 while_2
93940    1    addTransport()
93941    1        NEW TRANSPORT: (0,0,1000) traders:1
93942    1    updateVillages()
93943    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93944    1            preventOverflowing() while_1 while_2
93945    1    addTransport()
93946    1        NEW TRANSPORT: (0,0,1000) traders:1
93947    1    updateVillages()
93948    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93949    1            preventOverflowing() while_1 while_2
93950    1    addTransport()
93951    1        NEW TRANSPORT: (0,0,1000) traders:1
93952    1    updateVillages()
93953    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93954    1            preventOverflowing() while_1 while_2
93955    1    addTransport()
93956    1        NEW TRANSPORT: (0,0,1000) traders:1
93957    1    updateVillages()
93958    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93959    1            preventOverflowing() while_1 while_2
93960    1    addTransport()
93961    1        NEW TRANSPORT: (0,0,1000) traders:1
93962    1    updateVillages()
93963    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93964    1            preventOverflowing() while_1 while_2
93965    1    addTransport()
93966    1        NEW TRANSPORT: (0,0,1000) traders:1
93967    1    updateVillages()
93968    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93969    1            preventOverflowing() while_1 while_2
93970    1    addTransport()
93971    1        NEW TRANSPORT: (0,0,1000) traders:1
93972    1    updateVillages()
93973    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93974    1            preventOverflowing() while_1 while_2
93975    1    addTransport()
93976    1        NEW TRANSPORT: (0,0,1000) traders:1
93977    1    updateVillages()
93978    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93979    1            preventOverflowing() while_1 while_2
93980    1    addTransport()
93981    1        NEW TRANSPORT: (0,0,1000) traders:1
93982    1    updateVillages()
93983    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93984    1            preventOverflowing() while_1 while_2
93985    1    addTransport()
93986    1        NEW TRANSPORT: (0,0,1000) traders:1
93987    1    updateVillages()
93988    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93989    1            preventOverflowing() while_1 while_2
93990    1    addTransport()
93991    1        NEW TRANSPORT: (0,0,1000) traders:1
93992    1    updateVillages()
93993    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93994    1            preventOverflowing() while_1 while_2
93995    1    addTransport()
93996    1        NEW TRANSPORT: (0,0,1000) traders:1
93997    1    updateVillages()
93998    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
93999    1            preventOverflowing() while_1 while_2
94000    1    addTransport()
94001    1        NEW TRANSPORT: (0,0,1000) traders:1
94002    1    updateVillages()
94003    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
94004    1            preventOverflowing() while_1 while_2
94005    1    addTransport()
94006    1        NEW TRANSPORT: (0,0,1000) traders:1
94007    1    updateVillages()
94008    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
94009    1            preventOverflowing() while_1 while_2
94010    1    addTransport()
94011    1        NEW TRANSPORT: (0,0,1000) traders:1
94012    1    updateVillages()
94013    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
94014    1            preventOverflowing() while_1 while_2
94015    1    addTransport()
94016    1        NEW TRANSPORT: (0,0,1000) traders:1
94017    1    updateVillages()
94018    1                preventOverflowing() while_1 while_2 | NEW TRANSPORT
94019    99958            preventOverflowing() while_1 while_2
94020    1    ERROR: preventOverflowing(): while_1 is infinite

Plik debug
Debug.txt
 

2206702

Chłop
Wynik reakcji
0
Czy istnieje możliwość aby w przyszłości dodać opcję ograniczenia czasu podróży?
 

Lodar93

Chłop
Wynik reakcji
27
TypeError: Cannot read property 'innerText' of undefined
Kod:
TypeError: Cannot read property 'innerText' of undefined
    at Object.getOngoingTransports (https://media.innogamescdn.com/com_DS_PL/skrypty/Dysponent_Surowcowy.js?_=1614268016586:983:86)
    at Object.success (https://media.innogamescdn.com/com_DS_PL/skrypty/Dysponent_Surowcowy.js?_=1614268016586:1899:69)
    at u (https://dspl.innogamescdn.com/assets/pl162/2a2c932b7133babb76c2bb48f72d8f8c/merged/game.js:8:28184)
    at Object.fireWith [as resolveWith] (https://dspl.innogamescdn.com/assets/pl162/2a2c932b7133babb76c2bb48f72d8f8c/merged/game.js:8:28928)
    at S (https://dspl.innogamescdn.com/assets/pl162/2a2c932b7133babb76c2bb48f72d8f8c/merged/game.js:8:79655)
    at XMLHttpRequest.<anonymous> (https://dspl.innogamescdn.com/assets/pl162/2a2c932b7133babb76c2bb48f72d8f8c/merged/game.js:8:82108)
    at Object.send (https://dspl.innogamescdn.com/assets/pl162/2a2c932b7133babb76c2bb48f72d8f8c/merged/game.js:8:82467)
    at Function.ajax (https://dspl.innogamescdn.com/assets/pl162/2a2c932b7133babb76c2bb48f72d8f8c/merged/game.js:8:78083)
    at Object.main (https://media.innogamescdn.com/com_DS_PL/skrypty/Dysponent_Surowcowy.js?_=1614268016586:1895:8)
    at https://media.innogamescdn.com/com_DS_PL/skrypty/Dysponent_Surowcowy.js?_=1614268016586:1920:24

Kod:
1    Dysponent Surowcowy - Debug Log:
1    main()
1    overview_villages
1    getBaseData()
6    addVillage()
1    getOngoingTransports()
 

FetaGreen

Chłop
Wynik reakcji
0
Skrypt działa idealnie. Wie ktoś jak mogę naprawić kwadraty ze screena (win7)? Na telefonie elegancko zapełniają mi się kuleczki.
 

Załączniki

Jacq

Ciężki Kawalerzysta
Wynik reakcji
772
Będzie kiedyś możliwość by np: z grupy pełna zagroda wyrównywało do grupy Off ?
 

Rijo97

Chłop
Wynik reakcji
11
TypeError: $(...).find(...)[0] is undefined
Kod:
getOngoingTransports@https://media.innogamescdn.com/com_DS_PL/skrypty/Dysponent_Surowcowy.js?_=1614869943070:983:17
success@https://media.innogamescdn.com/com_DS_PL/skrypty/Dysponent_Surowcowy.js?_=1614869943070:1899:69
u@https://dspl.innogamescdn.com/assets/pl162/27d6cb614aadc01d2b9955988ef60c6a/merged/game.js:8:28184
fireWith@https://dspl.innogamescdn.com/assets/pl162/27d6cb614aadc01d2b9955988ef60c6a/merged/game.js:8:28928
S@https://dspl.innogamescdn.com/assets/pl162/27d6cb614aadc01d2b9955988ef60c6a/merged/game.js:8:79655
n/<@https://dspl.innogamescdn.com/assets/pl162/27d6cb614aadc01d2b9955988ef60c6a/merged/game.js:8:82108
send@https://dspl.innogamescdn.com/assets/pl162/27d6cb614aadc01d2b9955988ef60c6a/merged/game.js:8:82467
ajax@https://dspl.innogamescdn.com/assets/pl162/27d6cb614aadc01d2b9955988ef60c6a/merged/game.js:8:78083
main@https://media.innogamescdn.com/com_DS_PL/skrypty/Dysponent_Surowcowy.js?_=1614869943070:1895:8
@https://media.innogamescdn.com/com_DS_PL/skrypty/Dysponent_Surowcowy.js?_=1614869943070:1920:24
@https://media.innogamescdn.com/com_DS_PL/skrypty/Dysponent_Surowcowy.js?_=1614869943070:1921:3

Kod:
1    Dysponent Surowcowy - Debug Log:
1    main()
1    overview_villages
1    getBaseData()
4    addVillage()
1    getOngoingTransports()

Mimo tych błędów skrypt działa u mnie poprawnie.
 

PabloCanaletto

Topornik
Wynik reakcji
197
Znane bugi (do naprawienia kiedyśtam)

1. preventOverflowing(): while_1 is infinite
Wyjaśnienie: Gdy skrypt w trakcie rozsyłania surowców z wioski mającej ich za dużo nie może znaleźć wioski z wolnym miejscem w spichlerzu zapętla się.
Workaround: Podnieść wartość ustawienia Maksymalne wypełnienie spichlerza (%)

2. TypeError: Cannot read property 'innerText' of undefined oraz TypeError: $(...).find(...)[0] is undefined
Kod:
1    Dysponent Surowcowy - Debug Log:
1    main()
1    overview_villages
1    getBaseData()
X    addVillage()
1    getOngoingTransports()
Wyjaśnienie: W przypadku braku przychodzących transportów w danej grupie wiosek skrypt nie jest w stanie ich wczytać.
Workaround: Nie potrzebny.

3. UI "rozjeżdża się", gdy szerokość okna jest niewielka.
Workaround: W ustawieniach gry wpisać "Szerokość okna" na conajmniej 1110 Pixeli.

4. Skrypt da się uruchomić na pustej grupie wiosek.
Workaround: N/A
 
Ostatnia edycja: