Closed AuroraBee closed 3 years ago
Copying my comment from the old issue:
@Rick1029 I have an open fork that I can take some PRs on, though undecided if I want to act as a core maintainer. If someone else wants to take maintainership it might be better.
I have found a way to remedy the problem that you can see below.
TypeError: window.refreshData is not a function
When running the command "yarn dev" in ./turtle-gambit-master/ with the frontend also running (use command "yarn dev' as well in ./turtle-gambit-master/frontend/ ) a popup application window will appear. It will load the frontend and if no turtles are connected the screen it will stay blank. If you try to then access https://localhost:3000 in a browser it will return an error because the frontend is not loaded in a Carlo application instance where the exposed function refreshWindow() is accessible to ./turtle-gambit-master/frontend/pages/index.ts.
Below: Code snippet of the exposed carlo window refreshWindow() function.
In order to get turtles connected to the backend/frontend interface via WS I have used ngrok a proxy/tunneling software that Ottomated used in his streams.
To use ngrok:
In ./turtle-gambit-master/turtle/startup.lua edit where it says >http.websocket("(ADDRESS)")
to the URL that ngrok gives you upon executing the aforementioned command
but changing the protocol from http or https to WS so it'll become ws://2c44c8bc3928.ngrok.io
@Myoozik mind making this easier to understand? i literally understood half of it, and im still getting the same error, ngrok is set-up and all the files changed accordingly.
oh, i am just stupid; duh. you need to:
step 1. starts the Frontend by itself. step 2. opens a Chrome window using said Frontend, thus not causing this error. the rest: install ngrok, do above steps.
Yes, sorry for my lack of communication.
Step 1: Generates the views (frontend files) that display the turtle interface. Step 2: The Frontend is then served in a application instance (something of the sort) where certain functions such as the one causing the error above are not void, accessible to be called.
this issue is done, if someone still needs help with this, please make your own issue.
i cant belive you guys are falling for this ngrok is a virus as virus total says
Oh Dear...
ngrok is NOT a virus, virustotal most likely says it is BECAUSE it opens a imperfectly protected http tunnel between a ngrok website with an obscure address on a port which is usually not for rdp/ssh/http/https. otherwise: there are plenty alternatives, just search for some open source ones and check the code yourself if you dont want to risk installing a "virus"
but i guess you would know something about viruses, having created a password + cookie stealer yourself, watisdakalikffffali.
AND PLEASE: this issue is CLOSED: make your own issue if you have problems!
the first time someone replyed to me on this repository im suprised
TypeError: window.refreshData is not a function
![image](https://user-images.githubusercontent.com/68081524/103365104-9c836d80-4abf-11eb-8ddc-323d41a50652.png)