ComputerCraft Forums

ComputerCraft => Programs => Turtle Programs => Topic started by: ArchAngel075 on Oct 06, 2022, 02:08 PM

Title: Archangel's Turtle Gambit [NOW Pre Alpha]
Post by: ArchAngel075 on Oct 06, 2022, 02:08 PM
After a week of inspiration I present (turtle code only for now)

ArchAngel075's Turtle Gambit
Originally inspired by Ottomated - I set about creating a turtle gambit project of my own, except this time leveraging Unity3D and its 3D powers.

Installation and Preperation
1. First prepare by getting ngrok (https://ngrok.com/) if you intend to run this on a server.
2. Setup ngrok to point to your local machine by doing the following :
2.1 in ngrok terminal enter `ngrok config edit`
2.2 setup a channel such :
tunnels:
 gambit:
  addr: <computer ip address here>:13337
  proto: http
  host_header: localhost:13337
For now the port is locked to 13337 (cool kids use 1337. cooler kids use 13337)

2.3 Save and close the config.
2.4 Whenever you feel like interfacing with the turtle army use `ngrok start --all` in the ngrok terminal to get a new endpoint. it will likely look something like `https://4ccf-156-95-227-198.ngrok.io`
2.5 We are only interested in the section after 'https://'. IE "4ccf-156-95-227-198.ngrok.io" remember it somewhere.

3. do `pastebin get gBpf7yPS startup.lua` on your turtle child. No upgrades are needed though mining and one minecraft chest in inventory are required to open and interact with other inventories

4. reboot the computer.
4.1 You will be prompted to enter a server name. This must be unique to the *server* but the same for all turtles on that server. Name it anything memorable. SinglePlayerServer works just fine for SSP
4.2 You will be prompted to enter an address. This will be that '4ccf-156-95-227-198.ngrok.io' entry.
NB. IF EVER you create a new ngrok endpoint for whatever reason. you will have to update the _address.lua on *every* turtle - I leave it up to you to manage this some way.
4.3 The boot will download a modified json.lua file. It contains a small edit to manage serializing function definitions.

Now your turtle should be making an attempt to connect to your ngrok endpoint which will point back to your local host, the endpoint is automatically appended with the server name to seperate turtles and prevent overlap.

At the time of this post I have not released a build of the Gambit control center as I have some small edits to make yet before I want to release a version 1.00 properly.
I am willing however to share a low support build to anyone interested.

Features of the project :

In Progress Features :

Pics or it didn't happen :

update+095.png
Title: Archangel's Turtle Gambit [Turtle Code only for now]
Post by: Tungsten on Nov 01, 2023, 07:09 PM
Ok, so im getting a 502 bad gate way error? how does the networking work for this? also getting a "no server atempting for server name"
Title: Archangel's Turtle Gambit ALPHA [SOON]
Post by: ArchAngel075 on Dec 12, 2023, 05:36 PM
Its...been a while.

The short story: A hard drive fault caused me to lose 2 years of collected projects and tinkering, one of which was the Unity3D portion of the Turtle Gambit Project.

After some recent deliberation, hyper coding away.
I present the VERY SOON (you can actually maybe get it sooner***) Alpha version!


What has changed

some features were lost sofar unfortunately.

ALL procedure code was lost, I do plan on bringing it back but as no one else but I used this app i doubt you will know or care....

Logs are currently not implemented on the Unity side, but this is short on my list of todo.

Some textures are not supported. But I have *big* plans to support nearly any minecraft save possible.

Yet behold I present this time, my ugly repo for you to follow along. As usual im happy to share test runs with anyone interested. I say this more to fish for end users to test the look and feel. Feel free to ping me if you want to be a test user!
Turtle Gambit Repo (https://github.com/ArchAngel075/TurtleGambit)
Title: Archangel's Turtle Gambit [Turtle Code only for now]
Post by: ArchAngel075 on Dec 12, 2023, 05:38 PM
Quote from: Tungsten on Nov 01, 2023, 07:09 PMOk, so im getting a 502 bad gate way error? how does the networking work for this? also getting a "no server atempting for server name"

Im not familiar with that error myself.
No server* Message likely means that the code presumes there is no gambit running, which given I hadn't shared the code with anyone must be true. Unless you attempted to write the other end up yourself...