Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Ultimate Guide To Run The Turtle Gambit #40

Open
FOREVEREALIZE opened this issue Sep 25, 2021 · 41 comments
Open

The Ultimate Guide To Run The Turtle Gambit #40

FOREVEREALIZE opened this issue Sep 25, 2021 · 41 comments

Comments

@FOREVEREALIZE
Copy link

FOREVEREALIZE commented Sep 25, 2021

How to run the Turtle Gambit

Prerequisites:

  • NodeJS (nodejs.org)
  • NPM (Should come bundled with NodeJS)
  • Typescript (npm i -g typescript (You may need to use sudo if you are on linux))
  • Yarn (npm i -g yarn (You may need to use sudo if you are on linux))
  • Git (git-scm.com)
  • Ngrok (ngrok.com)
  • A Minecraft Java Edition server or singleplayer world with Forge and Computercraft installed on it
  • Chrome (chrome.google.com)

How to run it:

  • Open a terminal.
  • cd into your desktop (Linux: cd ~/Desktop/ (May depend on language) Windows: cd C:/Users/<Your Username>/Desktop/ (Replace <Your Username> with your username)).
  • Git-clone this repository: git clone http://github.com/ottomated/turtle-gambit.git.
  • Once done cd into the repository: cd turtle-gambit/.
  • Install all required yarn packages: yarn.
  • Once done cd into frontend: cd frontend/.
  • Install all required yarn packages: yarn.
  • Once done run the frontend: yarn dev.
  • Open a new terminal.
  • cd into the repository in your desktop (Linux: cd ~/Desktop/turtle-gambit/ (May depend on language) Windows: cd C:/Users/<Your Username>/Desktop/turtle-gambit/ (Replace <Your Username> with your username)).
  • Run the backend: yarn dev.
  • A browser should have opened at some point, if it has not or you have accidentally closed it, go to localhost:3030.
  • If it spits out an error close it using the cross (check issue Function window.refreshData is not a function: Error #7 for more info about the most common one).
  • Then create an http ngrok tunnel: ngrok http 5757.
  • Once ngrok opens copy the link provided in the first line that says Forwarding.
  • Change the http:// for ws:// and put that link in line 598 of turtle/startup.lua.
  • Go to pastebin.com and copy the entire content of turtle/startup.lua into it, then create a paste.
  • Once the paste is done copy the characters after the pastebin.com/ CASE SENSITIVE.
  • Go onto Minecraft and get a Crafty Mining Turtle, a Disk Drive and a Floppy Disk.
  • Place the Disk Drive, the Floppy Disk inside of the Disk Drive and the Crafty Mining Turtle on top of the Disk Drive.
  • Place some Coal Blocks inside of the Crafty Mining Turtle.
  • Open the Crafty Mining Turtle and type in pastebin get <The Pastebin URL Letters> disk/startup and then reboot.
  • Then break the Disk Drive and place both the Disk Drive and the Floppy Disk inside of the Crafty Mining Turtle.
  • You should be ONLINE!

Note

I strongly suggest you also open the world.json file and replace its contents with {"world":{}} before running the turtle gambit for the first time.
If you have already ran the turtle gambit, don't worry, you can just stop everything, replace the file and start it all again.

If you need help do the following:

  • Create a new issue in this repository.
  • Respond to THIS issue with the response containing a reference to your issue (To reference an issue just use # and a number wich can be found in your issue page)
  • Once done I will help you as quick as it is possible for me.

Edit: Wow this got pinned I feel special lol

@LostGameDev
Copy link

LostGameDev commented Oct 25, 2021

as soon as I did yarn dev in the back end It opened up for a second then closed and I got this Error: net::ERR_CONNECTION_REFUSED at http://localhost:3000/
at navigate (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:101:37)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async FrameManager.navigateFrame (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:75:17)
at async Frame.goto (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:385:12)
at async Page.goto (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:12)
at async Window.load (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:347:5)
-- ASYNC --
at Frame. (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:108:27)
at Page.goto (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:49)
at Page. (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:109:23)
at Window.load (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:347:22)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

@FOREVEREALIZE
Copy link
Author

as soon as I did yarn dev in the back end It opened up for a second then closed and I got this Error: net::ERR_CONNECTION_REFUSED at http://localhost:3000/
at navigate (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:101:37)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async FrameManager.navigateFrame (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:75:17)
at async Frame.goto (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:385:12)
at async Page.goto (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:12)
at async Window.load (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:347:5)
-- ASYNC --
at Frame. (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:108:27)
at Page.goto (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:49)
at Page. (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:109:23)
at Window.load (C:\Users\Ehren_je8q7zl\OneDrive\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:347:22)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Moved to #42

@darkwolfie37
Copy link

#43

@LostGameDev
Copy link

LostGameDev commented Oct 31, 2021

you should add to the guide on how to empty the world.json file so that they don't get the wrong blocks i figured it out so that the world.json file should look like this (assuming you haven't already used it in a world of your own) : {"world":{}}

@HishTheBirb

This comment has been minimized.

@HishTheBirb

This comment has been minimized.

@HishTheBirb

This comment has been minimized.

@darkwolfie37
Copy link

@HishTheBirb Please move this to #44

@Apachedrag427
Copy link

#46

@arch-user-france1
Copy link

Why didn't it get pinned? Would be a good idea..

@arch-user-france1
Copy link

arch-user-france1 commented Feb 17, 2022

I had to Set-ExecutionPolicy unrestricted

(Currently not on my computer, I don't use Windows)

@Cake3996
Copy link

Cake3996 commented Aug 5, 2022

How do I control the turtle?

@darkwolfie37
Copy link

How do I control the turtle?

You can do it using wasd

@ShyGuy001
Copy link

my terminal cannot find the dektop directory

@Nowamax1337
Copy link

How can i make this work?
C:\Users\User\Desktop\turtle-gambit\frontend>yarn dev
yarn run v1.22.19
$ next
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/parser' is not defined by "exports" in C:\Users\User\Desktop\turtle-gambit\frontend\node_modules\next\node_modules\postcss\package.json
at new NodeError (node:internal/errors:393:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:340:9)
at packageExportsResolve (node:internal/modules/esm/resolve:619:3)
at resolveExports (node:internal/modules/cjs/loader:492:36)
at Module._findPath (node:internal/modules/cjs/loader:532:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:941:27)
at Module._load (node:internal/modules/cjs/loader:803:27)
at Module.require (node:internal/modules/cjs/loader:1021:19)
at require (node:internal/modules/cjs/helpers:103:18)
at 552 (C:\Users\User\Desktop\turtle-gambit\frontend\node_modules\next\dist\compiled\postcss-scss\scss-syntax.js:1:11590) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@FOREVEREALIZE
Copy link
Author

How can i make this work?
C:\Users\User\Desktop\turtle-gambit\frontend>yarn dev
yarn run v1.22.19
$ next
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/parser' is not defined by "exports" in C:\Users\User\Desktop\turtle-gambit\frontend\node_modules\next\node_modules\postcss\package.json
at new NodeError (node:internal/errors:393:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:340:9)
at packageExportsResolve (node:internal/modules/esm/resolve:619:3)
at resolveExports (node:internal/modules/cjs/loader:492:36)
at Module._findPath (node:internal/modules/cjs/loader:532:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:941:27)
at Module._load (node:internal/modules/cjs/loader:803:27)
at Module.require (node:internal/modules/cjs/loader:1021:19)
at require (node:internal/modules/cjs/helpers:103:18)
at 552 (C:\Users\User\Desktop\turtle-gambit\frontend\node_modules\next\dist\compiled\postcss-scss\scss-syntax.js:1:11590) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Please see #54

@FOREVEREALIZE
Copy link
Author

you should add to the guide on how to empty the world.json file so that they don't get the wrong blocks i figured it out so that the world.json file should look like this (assuming you haven't already used it in a world of your own) : {"world":{}}

Done

@Nowamax1337
Copy link

image
i got stuck on this, please help

@darkwolfie37
Copy link

image i got stuck on this, please help

Hey so Did you edit the script at ./turtle/startup.lua on line 598 to a ngrok url?

@arch-user-france1
Copy link

Oh god gotta unsubscribe. So many e-mails :(

@darkwolfie37
Copy link

Oh god gotta unsubscribe. So many e-mails :(

so true

@arch-user-france1
Copy link

What the heck I thought it unsubscribed, why did it not work :(
Oh, you mentioned me. BRUH.

Oh god gotta unsubscribe. So many e-mails :(

so true

@darkwolfie37
Copy link

What the heck I thought it unsubscribed, why did it not work :( Oh, you mentioned me. BRUH.

Oh god gotta unsubscribe. So many e-mails :(

so true

HAHAHAHAH Im sorry

@Nowamax1337
Copy link

image i got stuck on this, please help

Hey so Did you edit the script at ./turtle/startup.lua on line 598 to a ngrok url?

yes

@darkwolfie37
Copy link

image i got stuck on this, please help

Hey so Did you edit the script at ./turtle/startup.lua on line 598 to a ngrok url?

yes

Everytime you open ngrok you will need to update it. As Ngrok will reset to a new URL everytime.

@FOREVEREALIZE
Copy link
Author

image i got stuck on this, please help

Hey so Did you edit the script at ./turtle/startup.lua on line 598 to a ngrok url?

yes

Everytime you open ngrok you will need to update it. As Ngrok will reset to a new URL everytime.

Moved to #55

@PrintedScript
Copy link

#58

@PiersPikachu
Copy link

TypeError: Cannot read properties of undefined (reading 'createCDPSession')
at App.init_ (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:56:29)
at Object.launch (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:625:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

i get this message when i use yarn dev, how do i fix this issue?

@Nealavo
Copy link

Nealavo commented Dec 1, 2022

#59

@harmonie-durrant
Copy link

TypeError: Cannot read properties of undefined (reading 'createCDPSession') at App.init_ (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:56:29) at Object.launch (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:625:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

i get this message when i use yarn dev, how do i fix this issue?

Any Idea how to fix this?

@TheRavenSeb
Copy link

TypeError: Cannot read properties of undefined (reading 'createCDPSession') at App.init_ (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:56:29) at Object.launch (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:625:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

any ideas on how to fix this

@Cyktard
Copy link

Cyktard commented Jun 13, 2023

#64

@Java-Codes-Bots
Copy link

#65 plz help

@InactiveGaming13
Copy link

#66

@LostGameDev
Copy link

hi all I recommend using this fork: https://github.com/PrintedScript/turtle-control instead of the original ottomated version

@b0xLUL
Copy link

b0xLUL commented Jun 25, 2023

TypeError: Cannot read properties of undefined (reading 'createCDPSession') at App.init_ (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:56:29) at Object.launch (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:625:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

any ideas on how to fix this

@PiersPikachu
@reuban-bryenton
@TheRavenSeb

I fixed it by installing an older version of chrome (version 86 worked for me. I used this site for it, and found no problems, but still, be careful as always when downloading stuff from the internet: https://www.slimjet.com/chrome/google-chrome-old-version.php ). Hope this helps.

Edit: little guide on wiping turning off autoupdates: https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#delete-google-update-service-files and https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#disable-google-update-task

@TheRavenSeb
Copy link

TypeError: Cannot read properties of undefined (reading 'createCDPSession') at App.init_ (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:56:29) at Object.launch (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:625:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

any ideas on how to fix this

@PiersPikachu

@reuban-bryenton

@TheRavenSeb

I fixed it by installing an older version of chrome (version 86 worked for me. I used this site for it, and found no problems, but still, be careful as always when downloading stuff from the internet: https://www.slimjet.com/chrome/google-chrome-old-version.php ). Hope this helps.

Edit: little guide on wiping turning off autoupdates: https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#delete-google-update-service-files and https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#disable-google-update-task

Will this work with the newer version of CC/CC: restitch

@hecker2000
Copy link

hecker2000 commented Jun 27, 2023

when making another turtle, the new one doesn't know where it is and defaults to 0 0 0, any way to fix this?

@b0xLUL
Copy link

b0xLUL commented Jun 27, 2023

TypeError: Cannot read properties of undefined (reading 'createCDPSession') at App.init_ (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:56:29) at Object.launch (C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:625:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

any ideas on how to fix this

@PiersPikachu
@reuban-bryenton
@TheRavenSeb
I fixed it by installing an older version of chrome (version 86 worked for me. I used this site for it, and found no problems, but still, be careful as always when downloading stuff from the internet: https://www.slimjet.com/chrome/google-chrome-old-version.php ). Hope this helps.
Edit: little guide on wiping turning off autoupdates: https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#delete-google-update-service-files and https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#disable-google-update-task

Will this work with the newer version of CC/CC: restitch

For me, it does work with CC: Restitched (Tested with Create Astral modpack, fabric in mc 1.18.2 by Laskyyy, which contains cc-restitched-1.100.8)

@Jackaroo05
Copy link

Jackaroo05 commented Jun 27, 2023 via email

@TheRavenSeb
Copy link

Which Turtle gambit are we using? This one or the new one?

On Tue, Jun 27, 2023 at 7:15 PM Yolopro177 @.***> wrote:

TypeError: Cannot read properties of undefined (reading

'createCDPSession') at App.init_

(C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:56:29)

at Object.launch

(C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:625:15)

at process.processTicksAndRejections

(node:internal/process/task_queues:95:5)

any ideas on how to fix this

@PiersPikachu https://github.com/PiersPikachu

@reuban-bryenton https://github.com/reuban-bryenton

@TheRavenSeb https://github.com/TheRavenSeb

I fixed it by installing an older version of chrome (version 86 worked for

me. I used this site for it, and found no problems, but still, be careful

as always when downloading stuff from the internet:

https://www.slimjet.com/chrome/google-chrome-old-version.php ). Hope this

helps.

Edit: little guide on wiping turning off autoupdates:

https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#delete-google-update-service-files

and

https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#disable-google-update-task

Will this work with the newer version of CC/CC: restitch

For me, it does work with CC: Restitched (Tested with Create Astra

modpack, fabric in mc 1.18.2 by Laskyyy, which contains

cc-restitched-1.100.8)

Reply to this email directly, view it on GitHub

#40 (comment),

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AFKSDGXULSFKOUE5ZI5N5M3XNNSP5ANCNFSM5EX6DGJQ

.

You are receiving this because you are subscribed to this thread.Message

ID: @.***>

There's a new one?

@hecker2000
Copy link

Which Turtle gambit are we using? This one or the new one?
On Tue, Jun 27, 2023 at 7:15 PM Yolopro177 @.***> wrote:

TypeError: Cannot read properties of undefined (reading

'createCDPSession') at App.init_

(C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:56:29)

at Object.launch

(C:\Users\user\Desktop\turtle-gambit\node_modules\carlo\lib\carlo.js:625:15)

at process.processTicksAndRejections

(node:internal/process/task_queues:95:5)

any ideas on how to fix this

@PiersPikachu https://github.com/PiersPikachu

@reuban-bryenton https://github.com/reuban-bryenton

@TheRavenSeb https://github.com/TheRavenSeb

I fixed it by installing an older version of chrome (version 86 worked for

me. I used this site for it, and found no problems, but still, be careful

as always when downloading stuff from the internet:

https://www.slimjet.com/chrome/google-chrome-old-version.php ). Hope this

helps.

Edit: little guide on wiping turning off autoupdates:

https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#delete-google-update-service-files

and

https://browserhow.com/how-to-uninstall-google-chrome-and-wipe-data-completely/#disable-google-update-task

Will this work with the newer version of CC/CC: restitch

For me, it does work with CC: Restitched (Tested with Create Astra

modpack, fabric in mc 1.18.2 by Laskyyy, which contains

cc-restitched-1.100.8)

Reply to this email directly, view it on GitHub

#40 (comment),

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AFKSDGXULSFKOUE5ZI5N5M3XNNSP5ANCNFSM5EX6DGJQ

.

You are receiving this because you are subscribed to this thread.Message

ID: @.***>

There's a new one?

yes PrintedScript made a version that does not use Carlo, making it work on Windows

@rxshion
Copy link

rxshion commented Aug 28, 2023

image_2023-08-28_123955194
I'm stuck on this error after downloading the browserlist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests