Feature - Implemented maximize: limit combinations checked

Bale

Minion
I remember the suggestion appearing elsewhere, but cannot find the thread right now. When I have stats of 200+ and can equip all my gear, the maximizations get ridiculously long.

What about a keyword to limit it such as "maxcombo 500000" so I can limit the amount of time spent to half a million combinations? Or perhaps simply "quick" which will stop checking 500k combinations after the last time it found a better score? I like that last one best since it will stop reasonably soon after the maximize gets to a reasonably good choice.

I know that hitting escape will stop the checking and show me the current best choice, but I like to put it in a script and not wonder if it will take ages just to chose an outfit. It reminds me of a high school girl getting ready for a big date. I shouldn't have to check in on the script and hit escape in the middle of it, so that it can move to the next step in a reasonable period of time.

How long does maximization take? Here are a few examples. Adding the "quick" keyword would have been a good thing...

Code:
> maximize meat
Maximizing...
49855 combinations checked, best score 405.00
102049 combinations checked, best score 410.00
153704 combinations checked, best score 410.00
205838 combinations checked, best score 410.00
257103 combinations checked, best score 410.00
308891 combinations checked, best score 410.00
360516 combinations checked, best score 410.00
412903 combinations checked, best score 410.00
465472 combinations checked, best score 410.00
517991 combinations checked, best score 435.00
570321 combinations checked, best score 435.00
622106 combinations checked, best score 435.00
672978 combinations checked, best score 435.00
723578 combinations checked, best score 435.00
774981 combinations checked, best score 435.00
826967 combinations checked, best score 435.00
879131 combinations checked, best score 435.00
931326 combinations checked, best score 435.00
983193 combinations checked, best score 435.00
1034971 combinations checked, best score 435.00
1087079 combinations checked, best score 435.00
1139342 combinations checked, best score 435.00
1191542 combinations checked, best score 435.00
1243972 combinations checked, best score 435.00
1296502 combinations checked, best score 435.00
1349250 combinations checked, best score 435.00
1401705 combinations checked, best score 435.00
1453574 combinations checked, best score 435.00
1505601 combinations checked, best score 435.00
1557230 combinations checked, best score 435.00
1609274 combinations checked, best score 435.00
1661500 combinations checked, best score 435.00
1713765 combinations checked, best score 435.00
1763765 combinations checked, best score 435.00
1814595 combinations checked, best score 435.00
1865790 combinations checked, best score 435.00
1916010 combinations checked, best score 435.00
1968127 combinations checked, best score 435.00
2020260 combinations checked, best score 435.00
2072383 combinations checked, best score 435.00
2124629 combinations checked, best score 435.00
2176323 combinations checked, best score 435.00
2228610 combinations checked, best score 435.00
2280616 combinations checked, best score 435.00
2332670 combinations checked, best score 435.00
2384857 combinations checked, best score 435.00
2436576 combinations checked, best score 435.00
2489288 combinations checked, best score 435.00
2541799 combinations checked, best score 435.00
2593930 combinations checked, best score 435.00
2645699 combinations checked, best score 435.00
2698327 combinations checked, best score 435.00
2748207 combinations checked, best score 435.00
2799946 combinations checked, best score 435.00
2851577 combinations checked, best score 435.00
2904181 combinations checked, best score 435.00
2956218 combinations checked, best score 435.00
3008287 combinations checked, best score 435.00
3060733 combinations checked, best score 435.00
3112776 combinations checked, best score 435.00
3164797 combinations checked, best score 435.00
3216853 combinations checked, best score 435.00
3268740 combinations checked, best score 435.00
3320748 combinations checked, best score 435.00
3372388 combinations checked, best score 435.00
3425049 combinations checked, best score 435.00
3476065 combinations checked, best score 435.00
3527044 combinations checked, best score 435.00
3578098 combinations checked, best score 435.00
3629489 combinations checked, best score 435.00
3681498 combinations checked, best score 435.00
3733791 combinations checked, best score 435.00
3785751 combinations checked, best score 435.00
3838614 combinations checked, best score 435.00
3891226 combinations checked, best score 435.00
3943601 combinations checked, best score 435.00
3996096 combinations checked, best score 435.00
4048057 combinations checked, best score 435.00
4099875 combinations checked, best score 435.00
4151784 combinations checked, best score 435.00
4203647 combinations checked, best score 435.00
4255951 combinations checked, best score 435.00
4308065 combinations checked, best score 435.00
4360247 combinations checked, best score 435.00
4412222 combinations checked, best score 435.00
4464228 combinations checked, best score 435.00
4516569 combinations checked, best score 435.00
4568962 combinations checked, best score 435.00
4621263 combinations checked, best score 435.00
4674139 combinations checked, best score 435.00
4726732 combinations checked, best score 435.00
4779302 combinations checked, best score 435.00
4831667 combinations checked, best score 435.00
4883893 combinations checked, best score 435.00
4935845 combinations checked, best score 435.00
4987876 combinations checked, best score 435.00
5040301 combinations checked, best score 435.00
5093050 combinations checked, best score 435.00
5145406 combinations checked, best score 435.00
5197921 combinations checked, best score 435.00
5249900 combinations checked, best score 435.00
5302246 combinations checked, best score 435.00
5354573 combinations checked, best score 435.00
5407083 combinations checked, best score 435.00
5459302 combinations checked, best score 435.00
5511826 combinations checked, best score 435.00
5563797 combinations checked, best score 435.00
5616494 combinations checked, best score 435.00
5668854 combinations checked, best score 435.00
5721478 combinations checked, best score 435.00
5773828 combinations checked, best score 435.00
5826106 combinations checked, best score 435.00
5878510 combinations checked, best score 435.00
5931314 combinations checked, best score 435.00
5984180 combinations checked, best score 435.00
6036690 combinations checked, best score 435.00
6089063 combinations checked, best score 435.00
6141751 combinations checked, best score 435.00
6194304 combinations checked, best score 435.00
6246816 combinations checked, best score 435.00
6299496 combinations checked, best score 435.00
6352379 combinations checked, best score 435.00
6404720 combinations checked, best score 435.00
6457680 combinations checked, best score 435.00
6510154 combinations checked, best score 435.00
6562603 combinations checked, best score 435.00
6614699 combinations checked, best score 435.00
6666820 combinations checked, best score 435.00
6718212 combinations checked, best score 435.00
6768464 combinations checked, best score 435.00
6820452 combinations checked, best score 435.00
6872126 combinations checked, best score 435.00
6924049 combinations checked, best score 435.00
6976025 combinations checked, best score 435.00
7027842 combinations checked, best score 435.00
7079668 combinations checked, best score 435.00
7131613 combinations checked, best score 435.00
7183848 combinations checked, best score 435.00
7235820 combinations checked, best score 435.00
7287824 combinations checked, best score 435.00
7339480 combinations checked, best score 435.00
7391432 combinations checked, best score 435.00
7442682 combinations checked, best score 435.00
7494011 combinations checked, best score 435.00
7545209 combinations checked, best score 435.00
7596669 combinations checked, best score 435.00
7648193 combinations checked, best score 435.00
7699790 combinations checked, best score 435.00
7751350 combinations checked, best score 435.00
7802811 combinations checked, best score 435.00
7853866 combinations checked, best score 435.00
7905458 combinations checked, best score 435.00
7957121 combinations checked, best score 435.00
8008799 combinations checked, best score 435.00
8060683 combinations checked, best score 435.00
8112792 combinations checked, best score 435.00
8164665 combinations checked, best score 435.00
8216199 combinations checked, best score 435.00
8264038 combinations checked, best score 435.00
8315030 combinations checked, best score 435.00
8365630 combinations checked, best score 435.00
8416489 combinations checked, best score 435.00
8467798 combinations checked, best score 435.00
8518979 combinations checked, best score 435.00
8570096 combinations checked, best score 435.00
8621118 combinations checked, best score 435.00
8672163 combinations checked, best score 435.00
8723144 combinations checked, best score 435.00
8774563 combinations checked, best score 435.00
8825930 combinations checked, best score 435.00
8877242 combinations checked, best score 435.00
8928531 combinations checked, best score 435.00
8979391 combinations checked, best score 435.00
9030737 combinations checked, best score 435.00
9081843 combinations checked, best score 435.00
9133195 combinations checked, best score 435.00
9184394 combinations checked, best score 435.00
9235262 combinations checked, best score 435.00
9286621 combinations checked, best score 435.00
9338235 combinations checked, best score 435.00
9389687 combinations checked, best score 435.00
9441050 combinations checked, best score 435.00
9492157 combinations checked, best score 435.00
9543901 combinations checked, best score 435.00
9595307 combinations checked, best score 435.00
9646591 combinations checked, best score 435.00
9697627 combinations checked, best score 435.00
9747475 combinations checked, best score 435.00
9797130 combinations checked, best score 435.00
9846192 combinations checked, best score 435.00
9897408 combinations checked, best score 435.00
9946238 combinations checked, best score 435.00
9996721 combinations checked, best score 435.00
10042456 combinations checked, best score 435.00
10092444 combinations checked, best score 435.00
10143275 combinations checked, best score 435.00
10193927 combinations checked, best score 435.00
10245145 combinations checked, best score 435.00
10295981 combinations checked, best score 435.00
10347107 combinations checked, best score 435.00
10398335 combinations checked, best score 435.00
10449629 combinations checked, best score 435.00
10500748 combinations checked, best score 435.00
10552340 combinations checked, best score 435.00
10603836 combinations checked, best score 435.00
10655314 combinations checked, best score 435.00
10706628 combinations checked, best score 435.00
10757449 combinations checked, best score 435.00
10808345 combinations checked, best score 435.00
10859051 combinations checked, best score 435.00
10909685 combinations checked, best score 435.00
10960224 combinations checked, best score 435.00
11010932 combinations checked, best score 435.00
11061863 combinations checked, best score 435.00
11112869 combinations checked, best score 435.00
11163690 combinations checked, best score 435.00
11214414 combinations checked, best score 435.00
11264941 combinations checked, best score 435.00
11315994 combinations checked, best score 435.00
11367028 combinations checked, best score 435.00
11418052 combinations checked, best score 435.00
11469513 combinations checked, best score 435.00
11520810 combinations checked, best score 435.00
11572104 combinations checked, best score 435.00
11623343 combinations checked, best score 435.00
11674273 combinations checked, best score 435.00
11725474 combinations checked, best score 435.00
11776257 combinations checked, best score 435.00
11827133 combinations checked, best score 435.00
11878307 combinations checked, best score 435.00
11929586 combinations checked, best score 435.00
11980676 combinations checked, best score 435.00
12031569 combinations checked, best score 435.00
12082201 combinations checked, best score 435.00
12132740 combinations checked, best score 435.00
12183333 combinations checked, best score 435.00
12234357 combinations checked, best score 435.00
12285641 combinations checked, best score 435.00
12336599 combinations checked, best score 435.00
12387237 combinations checked, best score 435.00
12438495 combinations checked, best score 435.00
12489296 combinations checked, best score 435.00
12540068 combinations checked, best score 435.00
12591073 combinations checked, best score 435.00
12641708 combinations checked, best score 435.00
12693056 combinations checked, best score 435.00
12744442 combinations checked, best score 435.00
12795705 combinations checked, best score 435.00
12847103 combinations checked, best score 435.00
12898096 combinations checked, best score 435.00
12949592 combinations checked, best score 435.00
13000856 combinations checked, best score 435.00
13051844 combinations checked, best score 435.00
13103169 combinations checked, best score 435.00
13154100 combinations checked, best score 435.00
13204708 combinations checked, best score 435.00
13255933 combinations checked, best score 435.00
13306920 combinations checked, best score 435.00
13357625 combinations checked, best score 435.00
13408153 combinations checked, best score 435.00
13458529 combinations checked, best score 435.00
13509539 combinations checked, best score 435.00
13560244 combinations checked, best score 435.00
13611092 combinations checked, best score 435.00
13617552 combinations checked, best score 435.00

> maximize item
Maximizing...
49677 combinations checked, best score 358.00
102634 combinations checked, best score 358.00
155043 combinations checked, best score 358.00
207321 combinations checked, best score 358.00
259810 combinations checked, best score 358.00
312369 combinations checked, best score 358.00
364757 combinations checked, best score 358.00
417631 combinations checked, best score 358.00
470240 combinations checked, best score 358.00
523235 combinations checked, best score 358.00
576101 combinations checked, best score 358.00
629044 combinations checked, best score 358.00
681871 combinations checked, best score 358.00
734789 combinations checked, best score 358.00
787175 combinations checked, best score 358.00
840092 combinations checked, best score 358.00
892338 combinations checked, best score 358.00
944710 combinations checked, best score 358.00
997157 combinations checked, best score 358.00
1049789 combinations checked, best score 358.00
1102378 combinations checked, best score 358.00
1155135 combinations checked, best score 358.00
1207904 combinations checked, best score 358.00
1260812 combinations checked, best score 358.00
1313510 combinations checked, best score 358.00
1366154 combinations checked, best score 358.00
1418703 combinations checked, best score 358.00
1471534 combinations checked, best score 358.00
1523950 combinations checked, best score 358.00
1576248 combinations checked, best score 358.00
1627985 combinations checked, best score 358.00
1680078 combinations checked, best score 358.00
1732088 combinations checked, best score 358.00
1784396 combinations checked, best score 358.00
1836586 combinations checked, best score 358.00
1888911 combinations checked, best score 358.00
1941028 combinations checked, best score 358.00
1993301 combinations checked, best score 358.00
2045529 combinations checked, best score 358.00
2097302 combinations checked, best score 358.00
2149465 combinations checked, best score 358.00
2201494 combinations checked, best score 358.00
2253696 combinations checked, best score 358.00
2306035 combinations checked, best score 358.00
2358434 combinations checked, best score 358.00
2410913 combinations checked, best score 358.00
2463362 combinations checked, best score 358.00
2515799 combinations checked, best score 358.00
2567991 combinations checked, best score 358.00
2620205 combinations checked, best score 358.00
2672517 combinations checked, best score 358.00
2724589 combinations checked, best score 358.00
2777071 combinations checked, best score 358.00
2829846 combinations checked, best score 358.00
2882365 combinations checked, best score 358.00
2935045 combinations checked, best score 358.00
2987251 combinations checked, best score 358.00
3039854 combinations checked, best score 358.00
3091676 combinations checked, best score 358.00
3144381 combinations checked, best score 358.00
3196933 combinations checked, best score 358.00
3249605 combinations checked, best score 358.00
3302138 combinations checked, best score 358.00
3354861 combinations checked, best score 358.00
3407149 combinations checked, best score 358.00
3459540 combinations checked, best score 358.00
3511816 combinations checked, best score 358.00
3564861 combinations checked, best score 358.00
3617741 combinations checked, best score 358.00
3670770 combinations checked, best score 358.00
3723518 combinations checked, best score 358.00
3776165 combinations checked, best score 358.00
3828637 combinations checked, best score 358.00
3881712 combinations checked, best score 358.00
3934610 combinations checked, best score 358.00
3987481 combinations checked, best score 358.00
4040163 combinations checked, best score 358.00
4092758 combinations checked, best score 358.00
4145784 combinations checked, best score 358.00
4198645 combinations checked, best score 358.00
4251136 combinations checked, best score 358.00
4303646 combinations checked, best score 358.00
4356403 combinations checked, best score 358.00
4408590 combinations checked, best score 358.00
4460939 combinations checked, best score 358.00
4514001 combinations checked, best score 358.00
4566139 combinations checked, best score 358.00
4618921 combinations checked, best score 358.00
4671343 combinations checked, best score 358.00
4723967 combinations checked, best score 358.00
4776376 combinations checked, best score 358.00
4828915 combinations checked, best score 358.00
4851832 combinations checked, best score 358.00

> maximize .25 meat, .75 item
Maximizing...
49896 combinations checked, best score 291.00
99831 combinations checked, best score 316.00
151400 combinations checked, best score 322.25
202675 combinations checked, best score 325.38
254310 combinations checked, best score 325.38
305494 combinations checked, best score 325.38
355835 combinations checked, best score 325.38
406597 combinations checked, best score 325.38
457726 combinations checked, best score 325.38
508944 combinations checked, best score 325.38
560413 combinations checked, best score 325.38
611611 combinations checked, best score 325.38
662388 combinations checked, best score 325.38
712981 combinations checked, best score 325.38
763692 combinations checked, best score 325.38
814987 combinations checked, best score 325.38
866137 combinations checked, best score 325.38
917162 combinations checked, best score 325.38
968198 combinations checked, best score 325.38
1019105 combinations checked, best score 334.75
1069934 combinations checked, best score 334.75
1121271 combinations checked, best score 334.75
1172968 combinations checked, best score 334.75
1224405 combinations checked, best score 334.75
1275645 combinations checked, best score 334.75
1326790 combinations checked, best score 334.75
1378203 combinations checked, best score 334.75
1429247 combinations checked, best score 334.75
1480968 combinations checked, best score 334.75
1532894 combinations checked, best score 334.75
1584718 combinations checked, best score 334.75
1636283 combinations checked, best score 334.75
1687604 combinations checked, best score 334.75
1738922 combinations checked, best score 334.75
1790366 combinations checked, best score 334.75
1841711 combinations checked, best score 334.75
1892474 combinations checked, best score 334.75
1943413 combinations checked, best score 334.75
1995008 combinations checked, best score 334.75
2046211 combinations checked, best score 334.75
2098187 combinations checked, best score 334.75
2149308 combinations checked, best score 334.75
2200850 combinations checked, best score 334.75
2252365 combinations checked, best score 334.75
2303665 combinations checked, best score 334.75
2355128 combinations checked, best score 334.75
2406591 combinations checked, best score 334.75
2458527 combinations checked, best score 334.75
2510435 combinations checked, best score 334.75
2562229 combinations checked, best score 334.75
2613725 combinations checked, best score 334.75
2665397 combinations checked, best score 334.75
2716916 combinations checked, best score 334.75
2768132 combinations checked, best score 334.75
2818785 combinations checked, best score 334.75
2869566 combinations checked, best score 334.75
2920545 combinations checked, best score 334.75
2971796 combinations checked, best score 334.75
3023219 combinations checked, best score 334.75
3074388 combinations checked, best score 334.75
3125376 combinations checked, best score 334.75
3176890 combinations checked, best score 334.75
3228671 combinations checked, best score 334.75
3280447 combinations checked, best score 334.75
3332238 combinations checked, best score 334.75
3383838 combinations checked, best score 334.75
3435162 combinations checked, best score 334.75
3486530 combinations checked, best score 334.75
3537949 combinations checked, best score 334.75
3589091 combinations checked, best score 334.75
3640851 combinations checked, best score 334.75
3692474 combinations checked, best score 334.75
3744277 combinations checked, best score 334.75
3796110 combinations checked, best score 334.75
3847948 combinations checked, best score 334.75
3899805 combinations checked, best score 334.75
3951423 combinations checked, best score 334.75
4003193 combinations checked, best score 334.75
4054689 combinations checked, best score 334.75
4106020 combinations checked, best score 334.75
4157542 combinations checked, best score 334.75
4209051 combinations checked, best score 334.75
4260957 combinations checked, best score 334.75
4312532 combinations checked, best score 334.75
4364057 combinations checked, best score 334.75
4415299 combinations checked, best score 334.75
4466456 combinations checked, best score 334.75
4517577 combinations checked, best score 334.75
4568809 combinations checked, best score 334.75
4619470 combinations checked, best score 334.75
4669970 combinations checked, best score 334.75
4720362 combinations checked, best score 334.75
4770419 combinations checked, best score 334.75
4820541 combinations checked, best score 334.75
4872309 combinations checked, best score 334.75
4924253 combinations checked, best score 334.75
4975926 combinations checked, best score 334.75
5027234 combinations checked, best score 334.75
5078582 combinations checked, best score 334.75
5128610 combinations checked, best score 334.75
5180165 combinations checked, best score 334.75
5231320 combinations checked, best score 334.75
5282957 combinations checked, best score 334.75
5334013 combinations checked, best score 334.75
5385540 combinations checked, best score 334.75
5437100 combinations checked, best score 334.75
5488685 combinations checked, best score 334.75
5539774 combinations checked, best score 334.75
5591567 combinations checked, best score 334.75
5643099 combinations checked, best score 334.75
5694158 combinations checked, best score 334.75
5745180 combinations checked, best score 334.75
5795790 combinations checked, best score 334.75
5846919 combinations checked, best score 334.75
5897681 combinations checked, best score 334.75
5949061 combinations checked, best score 334.75
5999938 combinations checked, best score 334.75
6051278 combinations checked, best score 334.75
6102980 combinations checked, best score 334.75
6154347 combinations checked, best score 334.75
6205718 combinations checked, best score 334.75
6257701 combinations checked, best score 334.75
6309845 combinations checked, best score 334.75
6361423 combinations checked, best score 334.75
6412765 combinations checked, best score 334.75
6463899 combinations checked, best score 334.75
6515672 combinations checked, best score 334.75
6567430 combinations checked, best score 334.75
6618207 combinations checked, best score 334.75
6670255 combinations checked, best score 334.75
6721993 combinations checked, best score 334.75
6773292 combinations checked, best score 334.75
6824407 combinations checked, best score 334.75
6875160 combinations checked, best score 334.75
6926726 combinations checked, best score 334.75
6978409 combinations checked, best score 334.75
7029261 combinations checked, best score 334.75
7079508 combinations checked, best score 334.75
7131553 combinations checked, best score 334.75
7132166 combinations checked, best score 334.75
 
Last edited:

Winterbay

Active member
I support this request. It would make farm run so much faster for those with lots of combinatory items seeing as that script does 2-4 maximizations times the amount of familiars you have that affect meat or item drops...
 

lostcalpolydude

Developer
Staff member
I found that using -offhand when maximizing speeds things up a lot, though that requires knowing what offhand you want to wear already. As far as I could tell when looking at the code a little bit, that count of combinations checked is only used in the offhand-checking stuff, perhaps because it was clear when the code was written that offhands (combined with other variable things) would be the slowest to calculate.
 

Darzil

Developer
I think it's just that offhands are calculated last if that's the case, The code is a little odd, as it looks like a number of functions, but they call each other in sequence rather than being called from a loop in a central function. The count is updated at the end, and checked. I probably will try to do this sometime soon if no one else does. There are no so many relevant high level items that things do run rather slowly. (Though I have hit 14m+ combinations before Dread was added)
 

xKiv

Active member
I think it's just that offhands are calculated last if that's the case, The code is a little odd, as it looks like a number of functions, but they call each other in sequence rather than being called from a loop in a central function. The count is updated at the end, and checked. I probably will try to do this sometime soon if no one else does. There are no so many relevant high level items that things do run rather slowly. (Though I have hit 14m+ combinations before Dread was added)

I think you got it right - looks to me functionally equivalent to something like
Code:
for each outfit
 for each familiar item
  for each back item
   for each back item
    for each combination of accessories
     for each hat
      for each shirt
       for each pants
        for each mainhand
         for each offhand {
           calculate score, best score so far, best equipment so far; update counter; ...
         }

except all the various checks for what's possible (and all the code to make sure that all possible equipment combinations are checked, and no impossible combinations are checked) are quite complicated.
 

Darzil

Developer
r13452 - Adds maximizerCombinationLimit. If not 0 (which is default), maximize will stop at that value with a message indicating why it has stopped and that it is not optimal.
 

Bale

Minion
You added a preference instead of a keyword? May I ask about the reason for that? It's two extra steps when I want to limit maximization. I need to set the preference to 1,000,000 run the maximization string and then set it back to 0.
 
Last edited:

lostcalpolydude

Developer
Staff member
and then set it back to 0.

Is that really necessary? I feel like anyone with slow enough hardware (probably the majority of people) to be interested in this would not be interested in changing it back to get slow results again. For most people, this will be something that gets set once and then never thought about again, which won't work if it's a flag that has to be specified every time.

I'm going to look into adding the value to the GUI somewhere when I have a chance.
 

Theraze

Active member
Agreed... if you want to limit things, limit them and never think about them again. If you don't want to limit them, don't. Either/or.
 

Bale

Minion
After some consideration I've decided that might actually be the correct solution. I'm limited maximizer combinations to 2 million because I just don't want to ever have to deal with it taking more than that. Now I don't have to think about it each time I type a maximizer string.
 

fronobulax

Developer
Staff member
I will make comments but I don't expect them to be compelling enough to consider a change.

First I play on multiple computers with the KoL directories synchronized via Dropbox. They are not all of equal capability and some are slow enough that I would limit the mazimizer on them but others are fast enough that it doesn't make a difference.

Second, sometimes I have to complete all of my KoL activities within a certain amount of wall clock time. In those cases I make some setting or play style changes in order to accomplish my goals. Even on a fast machine I may choose to limit the maximizer for that session only. (That said, I think SmartStasis is much more of a contributor to wall clock time consumed than the maximizer).
 

Darzil

Developer
Hmm, maybe have the preference AND a limit to include in a maximiser string, with the second taking precedence ?
And/or optionally allow the limit to be expressed in seconds rather than combinations ?
 

Fluxxdog

Active member
First I play on multiple computers with the KoL directories synchronized via Dropbox. They are not all of equal capability and some are slow enough that I would limit the mazimizer on them but others are fast enough that it doesn't make a difference.
I can't remember which, but I remember someone saying either mafia was not designed to be portable or mafia was designed to not be portable.
 

fronobulax

Developer
Staff member
I can't remember which, but I remember someone saying either mafia was not designed to be portable or mafia was designed to not be portable.

I'd be interested in what else you remember since the only issue I have noticed is that some of the screen size and location parameters are not expressed in a portable form - i.e. windows have different initial locations and sizes on different graphics cards - but otherwise, by design or otherwise, it seems quite portable.
 

Fluxxdog

Active member
Found it. It wasn't designed to be portable according to Veracity. The linked discussion basically involves installing scripts and settings to a relative directory vs. an absolute directory.\ on different OSs. OSes? Whatever ^^
 

fronobulax

Developer
Staff member
Nuanced definitions of portable. I'm synchronizing and running on multiple computers using Dropbox and flash drives so yes it is portable. However I am very careful how I set up things to do that and the expertise necessary to do that is beyond that of a novice so "not designed to be portable". I have played mafia from my flash drive on a Linux box but never tried it on a Mac so the discussion may be framed by which OS is included as well. Thanks.
 

Fluxxdog

Active member
Well, it just got me thinking what if it was designed to be more portable. Have an option to enable it to not install everything to an arbitrary folder but use the folder the jar is in. Just thoughts.
 

Winterbay

Active member
Well, it just got me thinking what if it was designed to be more portable. Have an option to enable it to not install everything to an arbitrary folder but use the folder the jar is in. Just thoughts.

You mean just as it does on Windows? Or am I misunderstanding something?
 

Fluxxdog

Active member
I'm saying just as it should for a portable application. I have a flash with Eclipse and Notepad++ that saves settings and whatnot to the flash drive rather than any location on the computer I use it on. The only problem I have running mafia off of it is on the Macs at the school or a Linux box, it goes elsewhere, like ~/.kolmafia IIRC. Also, logging causes it to slow down immensely because it's constantly writing to the drive.

fronobulax got me thinking of it. The setting for limitations usually becomes an issue because of a computer's speed. When trying to use the limitation on different computers, you'll have different preferences. So for some machines, there are different settings you'd want to use. If there was a way to make it easier to specify settings based on machine, that would go quite a way for frono. Tying it to a MAC address would be reasonable enough.

The problem with doing that is mafia isn't designed to be portable. It needs to read those settings from a specific directory and a flash on a Mac or Linux will never read it from the one you want without specific command line arguments. You can wrap them in a .sh script or the equivalent for Macs (Veracity, as I'm not as versed in Macs, what is the equivalent to a Windows .bat or a Linux .sh script for a Mac?) for easy access, but then each person is going to go looking for that solution each and every time.

Perhaps what might be a better solution is for mafia to look in it's current directory for settings first rather than default to check another directory that a person would have to hunt for on a different machine. Start up mafia, it looks for .\settings\GLOBAL_prefs.txt first, then goes elsewhere to check, then set up that elsewhere if nothing was found.
 

lostcalpolydude

Developer
Staff member
It's weird how fronobulax's comments about how he wants to use different settings for different computers was sidetracked with discussion about using the same settings on all computers.
 
Top