Recommend
 
 Thumb up
 Hide
24 Posts

On-Line Want-List Generator (OLWLG), for Math Trades» Forums » General

Subject: Running the Mathtrade - HELP needed! rss

Your Tags: Add tags
Popular Tags: [View All]
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
Hi, i am trying to run my first actual Mathtrade, but i must have made a mistake trying to test-run it before the end of submission of all the wants and as Jeffry describes here:

https://boardgamegeek.com/article/28608110#28608110

I did not use the "access online submissions" but i propably used the upload want list -->click here.

As a result, now the loaded wants is just all the items (and no wants). I tried to copy and paste the wants from the "read the online submission" and tried to run Trademaximizer but it seems to run now for 3' with no generated results.

Anybody can help me???
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
vernad wrote:
As a result, now the loaded wants is just all the items (and no wants). I tried to copy and paste the wants from the "read the online submission" and tried to run Trademaximizer but it seems to run now for 3' with no generated results.
well the WANTS look ok, they are loaded in the OLWLG just fine

I'm guessing "3'" means 3 hours!? Given you aren't using ITERATIONS (the option is not in the WANTS) it sounds like you are running TradeMax the wrong way.... what is your command line and which version of TradeMax? Original version of Chris O's trademax didn't take command line arguments and required the input be a local file and redirect in ... so if you gave the url on the command line it's just ignored

1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
No i meant 3 minutes I am using Trademaximizer 1.3a, on a laptop using windows 8.1. I tried these commands:

java -jar tm.jar wants.txt > results.txt (after having made copy paste of the wants)

and java -jar tm.jar https://bgg.activityclub.org/olwlg/getwants.cgi?listid=25170... > results.txt

and also java -jar tm.jar http://bgg.activityclub.org/olwlg/251707-officialwants.txt > results.txt

I think that the official wants are not correctly loaded, as when I open them after having loaded them only the item names and a number next to them is the only thing that there is on the wants file.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
You can see at http://bgg.activityclub.org/olwlg/251707-officialwants.txt
that only the numbers of the items exist. Am i missing something?
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
Ok now i did something else and I have got results! I went to "click here to check online submissions" and saved it as a gewants.txt file. I run the command java -jar tm.jar <getwants.txt > res.txt and the results were created at the res.txt file.

Some questions:

1) What could have possibly happened and did not work the first time?
2) Are the results "safe" meaning is in "check online submissions" the last submitted want lists from all the users?
3) Last but very important - if I want to exclude a user from participating in the trade, even if he has submitted (because he did not provide his contact details, I just have to erase his items?

Thanks in advance!
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
vernad wrote:
You can see at 251707-officialwants.txt
that only the numbers of the items exist. Am i missing something?
that is the new default (and someday only) that solves a lot of other problems, see

New functionality: have OLWLG use item id's for lot names (vs. ordinal position in geeklist) (old subject: Looking for volunteer MT organizer to test on their next MT using item id's for "lot" names)

which tm.jar are you using?

btw the one you should be using is the

java -jar tm.jar ..../251707-officialwants.txt >results.txt

using the one invoking the getwants script is error prone if you had forgot to turn off online submissions and someone (re)submitted then the WANTS likely won't match the results.

In any case I ran trademax with that command line and it ran but parsed no items and hence found no results... checking why....

jeffyjeff$ file 251707-officialwants.txt
251707-officialwants.txt: Non-ISO extended-ASCII text, with very long lines, with LF, NEL line terminators

I never even heard of a NEL line terminator, googling... "Unicode, in addition to providing the ASCII CR and LF control codes, also provides a "next line" (NEL) control code"

I renamed the wants there and did an auto-load ... same results...

... I thought maybe this may have been a side effect of the internationalization as 3 of the participants of your MT have their language set to Greek and maybe that's where the NEL(s) came from... but moving theirs out and re-auto-upload no change. Let me look into this a little more....
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
vernad wrote:
Ok now i did something else and I have got results! I went to "click here to check online submissions" and saved it as a gewants.txt file. I run the command java -jar tm.jar <getwants.txt > res.txt and the results were created at the res.txt file.
argh, you may be missing 3 user's wants as I was testing if this was related to internationalization ... and yes, I replicated that loading in browser and saving that it works....

Results Checksum: b4c6c656ef5d51cb2c9d82344ea6898

Num trades = 223 of 1134 items (19.7%)
Total cost = 9697 (avg 43.48)
Num groups = 4
Group sizes = 139 74 8 2
Sum squares = 24865
Elapsed time = 1043ms

Quote:
Some questions:
1) What could have possibly happened and did not work the first time?
this I'm working on... the olwlg is generating wants when folks submit that insert non-standard line terminators... could be a problem with the characters used in some of the "altname"'s.

Quote:
2) Are the results "safe" meaning is in "check online submissions" the last submitted want lists from all the users?
I'm not sure I understand this question but you may be missing 3 users wants as you may have fetched the wants I generated the excluded the 3 users whose wants I thought may have resulted in funky WANTS overall... but sounds like you'll be re-running again... I would download the wants again from the olwlg then....
Quote:
3) Last but very important - if I want to exclude a user from participating in the trade, even if he has submitted (because he did not provide his contact details, I just have to erase his items?
... yes, you can edit the wants and remove or comment out (preferred so it's obvious why) that users wants.
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
Quote:
"which tm.jar are you using?"

I suppose you mean trademaximizer version - that is 1.3a.

Quote:
that is the new default (and someday only) that solves a lot of other problems, see

Let me understand this correctly: The wants file will only be a file containing

# These WANTS loaded directly by the OLWLG
# Mon Jan 21 15:02:54 2019
#+ Geeklist: Μικτή Ελληνική Mathtrade Ιανουαρίου 2019
#+ ... http://www.boardgamegeek.com/geeklist/251707
#+ Owner: vernad
#+ Item count: 1032
#+ Users with items: 101

and then

#! ALLOW-DUMMIES
#! REQUIRE-COLONS

# MISSING 7 WANTS (0.6%) FROM 1 USER(s) (0.9%):

!BEGIN-OFFICIAL-NAMES
6658976 ==> 1. "Galaxy Trucker" (from kostantisb)
6658985 ==> 2. "King of New York" (from kostantisb)
.
.
.
!END-OFFICIAL-NAMES

# End of wants. If you don't see this line then this file may have
# been truncated. IMPORTANT: this comment block is also required to be
# in the wants file when you upload the WANTS into the OLWLG.

and it will not contain a single:
# The Awful Green Things From Outer Space
(xdisciplex) 6669436 : 6660298

Because if it this way, then where will the trademaximizer find the wants of each user in order to make the exchanges?

For sure it is an encoding problem... Greek characters have something to do with it...
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
JeffyJeff wrote:
vernad wrote:
Ok now i did something else and I have got results! I went to "click here to check online submissions" and saved it as a gewants.txt file. I run the command java -jar tm.jar <getwants.txt > res.txt and the results were created at the res.txt file.
argh, you may be missing 3 user's wants as I was testing if this was related to internationalization ... and yes, I replicated that loading in browser and saving that it works....

Results Checksum: b4c6c656ef5d51cb2c9d82344ea6898

Num trades = 223 of 1134 items (19.7%)
Total cost = 9697 (avg 43.48)
Num groups = 4
Group sizes = 139 74 8 2
Sum squares = 24865
Elapsed time = 1043ms

Quote:
Some questions:
1) What could have possibly happened and did not work the first time?
this I'm working on... the olwlg is generating wants when folks submit that insert non-standard line terminators... could be a problem with the characters used in some of the "altname"'s.

Quote:
2) Are the results "safe" meaning is in "check online submissions" the last submitted want lists from all the users?
I'm not sure I understand this question but you may be missing 3 users wants as you may have fetched the wants I generated the excluded the 3 users whose wants I thought may have resulted in funky WANTS overall... but sounds like you'll be re-running again... I would download the wants again from the olwlg then....
Quote:
3) Last but very important - if I want to exclude a user from participating in the trade, even if he has submitted (because he did not provide his contact details, I just have to erase his items?
... yes, you can edit the wants and remove or comment out (preferred so it's obvious why) that users wants.

So now, in order to run again, i have first to load them again and then download them in my PC so that I remove the ones users that I do not want to participate?
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
JeffyJeff wrote:
jeffyjeff$ file 251707-officialwants.txt
251707-officialwants.txt: Non-ISO extended-ASCII text, with very long lines, with LF, NEL line terminators

I never even heard of a NEL line terminator, googling... "Unicode, in addition to providing the ASCII CR and LF control codes, also provides a "next line" (NEL) control code"
ok, long time "bug" in that checking getwants script never set input/output streams to be UTF-8! Changing that and re-auto-load the wants again...

jeffyjeff$ file 251707-officialwants.txt
251707-officialwants.txt: UTF-8 Unicode text, with very long lines

though running trademax with url (https://....) for them still does same thing (no errors just doesn't parse.

the final problem is apparently that Java does *not* read UTF8 by default... adding a "UTF8" argument when calling InputStreamReader's constructor and the the file is read properly! ....

... though there is another way w/out making any new version of trademax... command line argument:

java -Dfile.encoding=UTF-8 -jar tm...jar ....

changes the default to UTF-8 and it worked on your wants!
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
vernad wrote:
So now, in order to run again, i have first to load them again and then download them in my PC so that I remove the ones users that I do not want to participate?
I've already redid the auto-upload so the WANTS are clean UTF8 and if you wanted to use them unchanged you could use the https://bgg.... on the command line... but you want to prevent a participant from being in any possible trades so you need to edit the WANTS to comment out (preferred) their wants (i.e. adding a # at the beginning of each of their wants) so you will have to download (OLWLG doesn't currently support excluding participants) ...

... now you could just run trademax on those edited wants but you should in any case be uploading the actual wants used to generate the results so you should use the upload tool to upload those edited wants...

... and now I would recommend running trademax using the https://bgg...wants.txt which will also confirm they were uploaded properly. This should work now if you use the -D option to make sure it's read as UTF8, i.e.

java -Dfile.encoding=UTF-8 -jar tm.jar http......
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
I tried java -Dfile.encoding=UTF-8 -jar tm.jar https://bgg.activityclub.org/olwlg/251707-officialwants.txt >outputfilename.txt

and java -Dfile.encoding=UTF-8 -jar tm.jar <https://bgg.activityclub.org/olwlg/251707-officialwants.txt >outputfilename.txt

but the first one does not do anything and the second one gives an error : The syntax of the file name, the catalogue name or the "department's etiquette" (i don't know to describe it better in English) is wrong.

Moreover, how can I get the wantsfile in my PC so that I edit the wants of the users that I want to exclude? And to comment them out is done simply by adding "#" in their wants?
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
I just saw that i have to run trademax in order to use the https://...wants.txt? So there is no way to do it with Trademaximizer 1.3a that I already have?

Edit: I did download Trademax 1.4 and used:

java -Dfile.encoding=UTF-8 -jar tm.jar https://bgg.activityclub.org/olwlg/251707-officialwants.txt > outputfilename.txt

and i got this message in outputfilename.txt
"FATAL ERROR: java.io.FileNotFoundException: https:\bgg.activityclub.org\olwlg\251707-officialwants.txt ...
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
well the 2nd one is trying to use command line redirection (the less than sign) and I don't know of any operating systems (windows or linux) that support redirecting in from

the 1st one... try running it with out redirecting the output to a file... then you'll see if it at least gives the "TradeMaximizer Version...." and after it's read input will display the input checksum (if it's a version of TM that I had added it to... 1.3 does have it)

for what it's worth I tested on linux and it worked great.... now on windows even with the -D to set to UTF8 it founds "0 items" when having TM fetch the wants from the OLWLG (https....)...

.... but opening WANTS in browser, saving to local disk, then running it works with and without the -D...UTF8 option!

In any case, yes, if you want to remove a user's want(s) from the input to trademax you have to edit them... so you have to save the wants to your local system and edit them... and yes, commenting them out with #'s before each one.... for example:

(jeffyjeff) 12345 : 67890 etc

becomes

#(jeffyjeff) 12345 : 67890 etc

I'll keep working on figuring out why it's still not working (no errors but finding no items) on Windows (but is on Linux) to have the program (trademax) read the wants from the OLWLG
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
vernad wrote:
Edit: I did download Trademax 1.4 and used:

java -Dfile.encoding=UTF-8 -jar tm.jar https://bgg.activityclub.org/olwlg/251707-officialwants.txt > outputfilename.txt

and i got this message in outputfilename.txt
"FATAL ERROR: java.io.FileNotFoundException: https:\bgg.activityclub.org\olwlg\251707-officialwants.txt ...
where did you download it from? looks like a version that doesn't support fetching it from the internet and instead is looking for local file with that name (and give it converted / to back-/'s I'm guessing you're on windows) ah... just realized my code only checked for http: to see if it would try accessing it from olwlg... well before https: (secure)

and I'm guessing the reason it finds 0 items when I use http: and that the java package is getting a redirect and not following it ... I'll get back on this part after more exploring...


... in any case for now just download wants, edit, run TM on the local file, then upload your modified wants
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
Download them from "click here to access the online wants submissions" right? Because if I do that i can get the results!
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
JeffyJeff wrote:
and I'm guessing the reason it finds 0 items when I use http: and that the java package is getting a redirect and not following it ... I'll get back on this part after more exploring...
argh, indeed java doesn't follow redirect from http: to https:

https://stackoverflow.com/questions/1884230/urlconnection-do...

which references

https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4620571

why I don't get an error I don't know yet... but I'm going to have to update TM to also look for https: (in addition to http: and ftp...

... and the reason why it may be working on linux is it may not be using oracle's jvm (java's virtual machine) but gnu's which does follow the redirect
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
vernad wrote:
Download them from "click here to access the online wants submissions" right? Because if I do that i can get the results!
just open up

https://bgg.activityclub.org/olwlg/251707-officialwants.txt

(which is also the link from the OLWLG step 2 page w/anchor "WANTS") and save as a local .txt file

you then have to comment out the users wants then run TM, then upload both the edited wants and the results

another alternative is to just run trademax on the wants as is and check if that user even is involved in any trades... that user may none to begin with...
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
Hi again Jeffry, i managed to create the results (I drew the wants as I told you from "click here to check online submissions"). Then I edited the file in order to exclude the users from which I did not receive their personal information and went to "Upload wants" under the "edit info" of the Mathtrade and uploaded the updated wants file that i had created in my computer. But now that I was checking the wants file (under the Mathtrade link in Olwlg) i saw that it is not the one that I uploaded but the first one! I downloaded to be sure and run Trademaximizer again and indeed it was the first file of the wants that I did not upload. Is there a problem at the Olwlg or did I do something wrong? I want the actual wants that were used to generate the results to be uploaded at the trade and not the original ones.

Thanks in advance for your precious help!
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
which user(s) want lists did you comment out?
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
Qopbot is his username
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
vernad wrote:
Qopbot is his username
ok, I've manually commented out their one and only want list

I did notice the results ended up with 214 items traded vs. the 223 before
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Vaggelis Vernadakis
Greece
Sitia
flag msg tools
Avatar
mbmbmbmbmb
But why can i not upload The wants myself?
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff Michaud
United States
Longwood
Florida
flag msg tools
On-Line Want List Generator - Hopefully Making Math Trades a Little Bit Easier
badge
Captain Kirk, Captain Picard, Captain Sisko, Captain Janeway, Captain Archer
Avatar
mbmbmbmbmb
vernad wrote:
But why can i not upload The wants myself?
you actually did... at "Jan 29 10:33" (EDT)... it replaced the one that was there before dated "Jan 28 19:41" (EDT)

and in fact checking again the one you uploaded "Jan 29 10:33" (EDT) does indeed have that users single want list commented out:

olwlg$ grep -i Qopbot 251707-officialwants.txt.old-1548792827
6667957 ==> 464. "Through the Ages: A New Story of Civilization" (from qopbot)
#pragma user "qopbot"
#(qopbot) 6667957 : 6666266 6670434 6660352 6670433 6666577 6666268 6665713 6666174 6671695 6669609

the one I hand edited I did same but added

# commented out at request of MT organizer

1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls