Giter Site home page Giter Site logo

turtle-gambit's Introduction

TODO

✓ Place blocks ✓ Break blocks ✓ Craft items ✓ Refuel ✓ Display current fuel level ✓ Show block name on mouse over ✓ Drop items ✓ Change inventory slot

  • Pathfinding? ✓ Yoink items from chests
  • Move items in inventory ✓ Equip items
  • Interface with peripherals? ✓ Place signs

TURTLE MATERIALS

  • 7 iron ingots
  • 2 logs
  • 7 smooth stone
  • 1 redstone
  • 1 glass pane
  • 3 diamonds

GAMBIT MAIN PLAN

  1. Get ludwig to set up a single turtle. Ideally in town or a central area.
  2. Preparation. Mine for coal and resources to self-replicate.
  3. Advertisement. Start placing "Turtles are People" signs on the server.
  4. Contact Michael. Approach with turtle and:
    • ask to talk on discord / twitter?
    • link him to a screenshot of the UI
    • roleplay as the turtle: ask for fuel or something
    • obfuscate code and add twitter / discord as comment
  5. Michael gets Abe to whitelist me
  6. ??????
  7. Profit

BEFORE RELEASE

  • Don't use ngrok ✓ Change names of turtles ✓ Reverse shell ✓ Click to switch turtles ✓ Temporary autonomity ✓ Add name to code, and make a UI

INSTRUCTIONS FOR LUDWIG

  1. Materials:
    • Turtle
    • Disk Drive
    • Floppy Disk
    • Diamond Pickaxe
    • Crafting Table
  2. Craft Mining Crafty Turtle
  3. Place disk drive
  4. Place floppy disk inside disk drive
  5. Place turtle on top of disk drive
  6. Run this code on turtle: pastebin get cyQCKL2Z disk/startup, reboot
  7. Mine the disk drive, place the floppy disk and the disk drive in the turtle's inventory
  8. Run startup on turtle
  9. Place at least 4 coal blocks in turtle inventory

turtle-gambit's People

Contributors

ottomated avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

turtle-gambit's Issues

Potential improvements (If you plan to add more)

Instead of the world.json, which will quickly get out of control) I'd suggest moving to something like Redis as an in-memory database for the world data. Given if you are on Windows, this will have to be run by something like WSL, but if you are a linux/mac user there are packages.

Alternatives:

  • MongoDB
  • MySQL/PostgreSQL (though not as fast since they aren't in memory, and schema is more complex)

Have the root lib code build or run a dev version of the frontend and fire it all up with one command. Or build the websocket/turtle management into a single application.


Thanks for the awesome start to the code ❤️ Probably gonna fork this and make a few adjustments of my own.

I get an error when I run 'yarn dev'

When I run 'yarn dev' I get an error that says:

(node:23132) UnhandledPromiseRejectionWarning: Error: Protocol error (Browser.grantPermissions): Unknown permission type: clipboardRead
at E:_STORAGE_\ComputerCraft\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\Connection.js:74:56
at new Promise ()
at Connection.send (E:_STORAGE_\ComputerCraft\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\Connection.js:73:12)
at BrowserContext.overridePermissions (E:_STORAGE_\ComputerCraft\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\Browser.js:349:28)
at BrowserContext. (E:_STORAGE_\ComputerCraft\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:109:23)
at App.init_ (E:_STORAGE_\ComputerCraft\turtle-gambit-master\node_modules\carlo\lib\carlo.js:62:11)
at Object.launch (E:_STORAGE_\ComputerCraft\turtle-gambit-master\node_modules\carlo\lib\carlo.js:627:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:23132) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:23132) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

?

how do i compile this

Turtle Not Connecting

The turtle wont connect to the gui, although everything seems to have gone correctly. Any help?

yarn dev error

image
I don't really know what it's doing, I followed the tutorial issue and this happened

yarn error no work help now

simular to a nother one im stuck at
image and i have react installed but it still doesnt work what package is next refered to?

Error running

@gameworld had this issue:

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)

im

i try runing yarn in frontend and it returns with
[1/4] Resolving packages... [2/4] Fetching packages... error Couldn't find the binary git info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
i ran yarn in master and it installed and yarn dev doesnt work in master.
i ran yarn dev in frontend after installing yarn in master and the output is this
$ next 'next' is not recognized as an internal or external command, operable program or batch file. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

UI not laoding

I have everything working and loaded but the Turtle control panel doesn't have any UI, it's just a grey screen.

Could Not Find Chrome installation

this is fucking bullshit im at the end out of front end and im in the root directory of turtle gambit
image
And IT FUCKING SAYS COULD NOT FIND CHROME INSTALLATION WHEN I HAVE A CHROME INSTALLATION HOW THE FUCK DO I FIX THIS

Errors on running with yarn dev

Hello!
First of all, I saw #3 and #7. I did apply the fixes mentioned in them are they were quite helpful.

Problem is, I get this issue when running it now

yarn run v1.22.10Downloads\turtle-gambit>yarn dev
warning ..\..\package.json: No license field
$ tsc && node lib/index.js
ERROR: The process with PID 18328 (child process of PID 9764) could not be terminated.
Reason: There is no running instance of the task.
ERROR: The process with PID 12828 (child process of PID 9764) could not be terminated.
Reason: There is no running instance of the task.
node:internal/process/promises:227
          triggerUncaughtException(err, true /* fromPromise */);
          ^

Error: net::ERR_CONNECTION_REFUSED at http://localhost:3000/
    at navigate (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:101:37)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at async FrameManager.navigateFrame (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:75:17)
    at async Frame.goto (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:385:12)
    at async Page.goto (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:12)
    at async Window.load (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\lib\carlo.js:347:5)
  -- ASYNC --
    at Frame.<anonymous> (C:\Users\Michael\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:108:27)
    at Page.goto (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:49)
    at Page.<anonymous> (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:109:23)
    at Window.load (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\lib\carlo.js:347:22)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It doesn't seem to be like any of the other errors people have gotten.

controls messed up

i have the turtle working, and it turns with a and d, but does not go up, down, forward, or backwards with the respective keys

Can't yarn frontend.

I keep trying to yarn the frontend but it keeps giving me the same error.

C:\Users\CyMc\Desktop\turtle-gambit\frontend>yarn
yarn install v1.22.17
warning ..\..\..\package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/@material-ui/icons/-/icons-4.9.1.tgz: ESOCKETTIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\CyMc\\Desktop\\turtle-gambit\\frontend\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.```                                  

failure in mitosis

after several hours of troubleshooting to get the code working on my pc, I've got control of my first turtle... i've given it all the supplies it needs, coal blocks, more mining turtles, a disk drive, and a floppy disk with the startup lua on it... but when i press the mitosis button the resulting named baby mining turtle hasn't received a copy of the code... does anyone have any tips? it seems like it's not sending the turnon command to the new turtle

Mitosis Failure

When I hit the "Undergo Mitosis" button, it places down the disk drive and performs everything properly and names the new turtle but it doesn't show up on the control panel, and when I access the new turtle it's stuck in the shell.

Error with trying to launch the the code

after doing yarn dev
I get the following error:

yarn run v1.22.10
$ tsc && node lib/index.js
(node:17348) UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_REFUSED at http://localhost:3000/
at navigate (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:101:37)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async FrameManager.navigateFrame (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:75:17)
at async Frame.goto (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:385:12)
at async Page.goto (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:12)
at async Window.load (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\lib\carlo.js:347:5)
-- ASYNC --
at Frame. (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:108:27)
at Page.goto (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:49)
at Page. (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:109:23)
at Window.load (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\lib\carlo.js:347:22)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:17348) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:17348) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Turtle not connecting

I followed the guide and got the frontend, backend running (Can see the turtle control panel). Turtle is stuck on the "Im sleeping" screen and is not shown on the turtle control panel, not sure if ive missed something would appreciate the help.

I don't want to use Chrome

Chrome isn't open source! I don't want to install it on a Linux system. I rather would use chromium, brave or even the slow firefox.

How can I bypass that

So... It's not working

Ok. So I just downloaded the repo, unzipped it and I ran yarn in the frontend folder and it told me couldn't find the binary git. I tested only adding NextJS and the same thing happened so I am guessing it is the NextJS binary git.

How do I fix this?

Thanks in advance,
FOREVEREALIZE.

not starting the window on my pc

Hi i try to run the gambit but i get this when I try to run yarn dev

(node:33224) UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_REFUSED at http://localhost:3000/
    at navigate (C:\Users\zacharias\Desktop\gambit\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:101:37)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async FrameManager.navigateFrame (C:\Users\zacharias\Desktop\gambit\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:75:17)
    at async Frame.goto (C:\Users\zacharias\Desktop\gambit\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:385:12)
    at async Page.goto (C:\Users\zacharias\Desktop\gambit\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:12)
    at async Window.load (C:\Users\zacharias\Desktop\gambit\turtle-gambit\node_modules\carlo\lib\carlo.js:347:5)
  -- ASYNC --
    at Frame.<anonymous> (C:\Users\zacharias\Desktop\gambit\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:108:27)
    at Page.goto (C:\Users\zacharias\Desktop\gambit\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:49)
    at Page.<anonymous> (C:\Users\zacharias\Desktop\gambit\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:109:23)
    at Window.load (C:\Users\zacharias\Desktop\gambit\turtle-gambit\node_modules\carlo\lib\carlo.js:347:22)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:33224) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:33224) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Can't run the application because the Lib folder is missing

C:\Users\DarkWolfie\Desktop\turtle-gambit-master\turtle-gambit-master\frontend>yarn dev
yarn run v1.22.17
$ 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\DarkWolfie\Desktop\turtle-gambit-master\turtle-gambit-master\frontend\node_modules\next\node_modules\postcss\package.json
at new NodeError (node:internal/errors:371:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:416:9)
at packageExportsResolve (node:internal/modules/esm/resolve:669:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.552 (C:\Users\DarkWolfie\Desktop\turtle-gambit-master\turtle-gambit-master\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 Help me on this issue.

The Ultimate Guide To Run The Turtle Gambit

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 #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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.