AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

LPP2 questions
 
 
  [ # 16 ]

@Stephen I should point out that the language used by the LPP2 is NOT Java, but javaSCRIPT. there is a HUGE difference between the two, and has caused confusion in the past when it was called by the wrong name. Truth be told, the name “JavaScript” is an unfortunate label, and isn’t ‘technically’ correct. In it’s current incarnation, it’s “official name”  is ECMAscript, which is a bit cumbersome, and will probably never catch on. But it’s better to call the language JavaScript instead of ECMAscript than it is to just call it “java”. Just sayin. wink

 

 
  [ # 17 ]

Hi Daniel,

Last year, I had bots that worked with all the protocols. But, I just downloaded the server again and tried a few test and seem to be having problems.

The root of my difficulties seems to be CORS (cross site scripting). Although I would expect a localhost to have no problems, the javascript files are not loaded via the server. The HTML files are loaded directly and are considered a “null” website vs from http://127.0.0.1:8080 (localhost). This is causing a CORS error for me.

I will continue to look into it and get back to you if I find out anything.

 

 
  [ # 18 ]

I’ve run into that CORS problem as well, Merlin, when the “server” is on a computer elsewhere on the local network. In situations of that sort, I try not to use the local loopback IP or name (127.0.0.1, or ‘localhost’), but the actual LAN IP, instead. Then you should have no problems, so long as the “origins” setting is configured correctly (which shouldn’t have to be messed with at all, actually).

 

 
  [ # 19 ]

Thanks for the info guys, will have another crack at it this week end.

 

 
  [ # 20 ]

Still available, should you wish some help. Just sayin’. wink

 

 
  [ # 21 ]

I was running everything on the same computer (New win 10, MS Edge, Google Chrome).
Evidently the latest version of Chrome doesn’t think browser windows launched from a file is the same as a local website.

I solved that problem by turning off web security in the batch file:

start Chrome—disable-web-security—user-data-dir “file://

 

 
  [ # 22 ]
start Chrome --disable-web-security --user-data-dir "file://%
CD%/controlPanel.html" 

(should be all one line)

 

 
  [ # 23 ]
Dave Morton - Apr 25, 2018:

@Stephen I should point out that the language used by the LPP2 is NOT Java, but javaSCRIPT. there is a HUGE difference between the two, and has caused confusion in the past when it was called by the wrong name. Truth be told, the name “JavaScript” is an unfortunate label, and isn’t ‘technically’ correct. In it’s current incarnation, it’s “official name”  is ECMAscript, which is a bit cumbersome, and will probably never catch on. But it’s better to call the language JavaScript instead of ECMAscript than it is to just call it “java”. Just sayin. wink

Thanks Dave, and yes I do know the difference between Java and javascript.

At no point did I say that the LPP2 uses Java, I said my program is written in Java,
which connects to judge.html via server.js using no javascript what so ever.
Thank you.

 

 
  [ # 24 ]

Ah, ok. I just misread it, then. My bad. smile

 

 
  [ # 25 ]

I have just created an open-source project in GITHUB to implement the LPP2 in C++:

https://github.com/DenisROBERT1/Loebner-bot-sample

Happy if it can help someone. It is the program I will use this year, so I will improve it for the best. Thank to tell me if you see a bug.

 

 
  [ # 26 ]

Hi all,

I have been trying the new protocol, but I can’t get it to work. According to this thread, there are some issues that have not been fixed in the GitHub version (such as the “abv123” issue or the line that causes an error when launching judge.html).

I have also seen some issues with the reference to jquery, but that can been solved changing the reference to:
[removed][removed]

Even with these corrections, I haven’t been able to start a new round. The “New Round” and “Start Round” buttons appear disabled. I remember that last year the little table showing the connected bot/judge/confederate was really helpful, but this table is gone. Any chances to bring it back?

I would also like to know if the GitHub files should work with no modifications. Since the contest is just two months away, it would be great to have the most definitive version available for testing!

Many thanks for your help,

Jose

 

 
  [ # 27 ]

Jose,
In my experience, the table and buttons don’t show up if the web page had a problem loading the scripts or with security.

In your web browser use developer tools under the menu to look for errors.

As I mentioned earlier, when I used chrome, I had to start it without web security to get it to work.

 

 
  [ # 28 ]

I got word from the original developer that he’ll look into the issues posted on Github in a week or two (He’s very busy, so count on three). Posting the found solutions on Github would therefore be most expedient, as I am glad to see some have already done.

Denis, thanks for posting your C++ solution. It looks like you did a lot of work there.

I would also like to know if the GitHub files should work with no modifications

‘fraid not. One at least has to make the ‘secrets’ match (without which it won’t connect, as per the documentation), and apply the ‘undefined’ safety check that Denis mentions in the second post of this thread (without which javascript would crash, I can assure you).

 

 
  [ # 29 ]

Many thanks for your help and comments, Merlin and Don!

I have tried making the secrets match and apply the ‘undefined’ safety check, but I still haven’t managed to connect my bot to the contest node.js server. Maybe I should modify the security settings of the browser (I’m currently using Firefox). As the protocol have changed at its core, I just hope that the bot will also work this year!

 

 
  [ # 30 ]
Denis Robert - May 2, 2018:

I have just created an open-source project in GITHUB to implement the LPP2 in C++:

https://github.com/DenisROBERT1/Loebner-bot-sample

Happy if it can help someone. It is the program I will use this year, so I will improve it for the best. Thank to tell me if you see a bug.

Hi Robert, i tried this app and it seems to work, good job! I notice if you stop and then press start again your app doesn’t reattach to the node server without a reboot of the server.js

thanks again for the code.

Dan

 

 < 1 2 3 4 > 
2 of 4
 
  login or register to react