This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Kepler's profile picture

Opus OS

Started by Kepler, 27 October 2016 - 06:05 AM
Kepler #1
Posted 27 October 2016 - 08:05 AM
For computercraft versions 1.7.10 and above



Features
Multitasking OS - run programs in separate tabs
Telnet (wireless remote shell)
VNC (wireless screen sharing)
UI API
Turtle API (includes true pathfinding based on the ASTAR algorithm)
Remote file system access (you can access the file system of any computer in wireless range)
File manager
Lua REPL with GUI
Run scripts on single or groups of computers (GUI)
Turtle follow (with GPS) and turtle come to you (without GPS)

Source / Contribute
https://github.com/kepler155c/opus

Install
pastebin run UzGHLbNC
SpoilerPrevious version
pastebin run sj4VMVJj
reboot

Note that this install will overwrite files (including startup). It is recommended to run this on fresh advanced computers.

No Install
pastebin run 8wE73gbq
SpoilerPrevious version
pastebin run Fm3xf6Z9

Loads a virtual file system to run the OS without overwriting existing files. Files are loaded directly from git.
Edited on 21 March 2018 - 05:11 PM
HaddockDev #2
Posted 06 November 2016 - 01:29 AM
Did you repost this? I'm pretty sure not long ago there was a identical thread that had a few replies, but then got deleted.
Plus, I think i've seen this before. I can't recall the name to it, but I remember something like it.
Kepler #3
Posted 06 November 2016 - 06:27 AM
Controlling multiple turtles
Spoiler[media]http://www.youtube.com/watch?v=SZsNXyWm_hc[/media]
Edited on 16 December 2016 - 04:48 PM
Kepler #4
Posted 10 November 2016 - 11:47 PM
AE Storage Manager video
Spoiler[media]http://www.youtube.com/watch?v=56rElXc-UO0[/media]

Always have inventory crafted.
Purge unwanted items from the system (the chest in the video can be replaced with a trashcan).
Assemblers are optional (as the turtle can craft the items).

The turtle must be equipped with a crafting table and duck antenna (open peripherals) in order to craft items.
Edited on 16 December 2016 - 04:49 PM
Kepler #5
Posted 15 December 2016 - 10:09 PM
Playing with animations…

Bomb Bloke #6
Posted 16 December 2016 - 12:21 AM
That actually looks pretty cool. :)/>
DanyGames2014 #7
Posted 16 December 2016 - 10:58 AM
Awesome practical , fast everything what i need
LDDestroier #8
Posted 18 March 2017 - 05:54 PM
Does this OS support color theming? White text on blue background doesn't look too stellar.
Kepler #9
Posted 19 March 2017 - 02:25 AM
Does this OS support color theming? White text on blue background doesn't look too stellar.

Yes, you can add a file named ui.theme in the /config folder. Here is an autumn theme example:


-- Copy to /config/ui.theme to enable
{
  Button = {
	backgroundFocusColor = colors.orange,
	focusIndicator = '*',
  },
  Grid = {
	textColor = colors.white,
	backgroundColor = colors.gray,
	textSelectedColor = colors.black,
	backgroundSelectedColor = colors.orange,
	headerBackgroundColor = colors.yellow,
	headerTextColor = colors.black,
	unfocusedTextSelectedColor = colors.yellow,
	focusIndicator = '*',
  },
  GridLayout = {
	textColor = colors.white,
	backgroundColor = colors.black,
  },
  MenuBar = {
	backgroundColor = colors.lightGray,
  },
  StatusBar = {
	textColor = colors.brown,
	backgroundColor = colors.lightGray,
  },
  TabBar = {
	selectedBackgroundColor = colors.brown,
	focusBackgroundColor = colors.green,
  },
  TitleBar = {
	backgroundColor = colors.brown,
  },
  ViewportWindow = {
	backgroundColor = colors.brown,
  },
}

You can also selectively theme applications by adding a theme section in the associated application config file.
LDDestroier #10
Posted 19 March 2017 - 06:40 AM
Cool. I'll make myself a gray/white/yellow theme.

Also, if you didn't check your PM, I changed contextualGet() to std.contextualGet(). If the Discover section of the Opus store is to work, please change it. I changed the name just so I could keep all the STD variables contained.
A few other internal values were put in table 'std', but they aren't referenced by the store pages, do it shouldn't be a big deal.
1971chevycamaro #11
Posted 20 March 2017 - 11:09 PM
Hi!

Amazing job on the OpusOS Keplar! I love it how when apps crash they do it independent of the Operating System. There are two bugs I have encountered and a suggestion I would like you to implement/fix.
I have organized this reply in a easy to read format as best I could.

BUGS:
  1. turtle follow program crashes because GPS system doesn't work. (I know how the follow program should work, I watched your video)
  2. whenever I run the 'startup' file within OpusOS it creates another copy inception, when I close the inception it leaves a irremovable residue in the tab menu, I would like this to be fixed please :)/> .

REQUEST:
I would like a way to view a functions potential arguments, or a way to view the 'guts' of the function. FOR EXAMPLE; MineChem has bad error handling so it spits out uninterpretable errors instead of giving me its usage. If this is impossible that is ok to my knowledge there is no way to do this.
Kepler #12
Posted 23 March 2017 - 12:26 AM
Thanks for the feedback. Please let know if you find anything else.

turtle follow program crashes because GPS system doesn't work.

I would say this works as expected. The script tab is left open on the turtle with the error message "No GPS found".

whenever I run the 'startup' file within OpusOS it creates another copy inception, when I close the inception it leaves a irremovable residue in the tab menu, I would like this to be fixed please :)/> .

I'm not sure what use it would be to run the OS within the OS. There's probably more problems that would occur other than the tab issue.

REQUEST:
I would like a way to view a functions potential arguments, or a way to view the 'guts' of the function. FOR EXAMPLE; MineChem has bad error handling so it spits out uninterpretable errors instead of giving me its usage. If this is impossible that is ok to my knowledge there is no way to do this.

This type of error checking in functions would really bloat the source. I would suggest using the trace program from Apemanzilla if you are having trouble tracking down errors. You can also reference the source code in Git as an easy way to view the functions and arguments.

Again, thanks for the feedback…
MintGameKing #13
Posted 09 April 2017 - 05:28 PM
Very good OS :)/>
ZapowGaming #14
Posted 23 July 2017 - 06:17 AM
Nice OS!

Also just for fun, I tried downloading this on a regular computer (not advanced) to see what would happen. It downloaded okay, but once it rebooted so it could be used, it was unusable because the mouse didn't work lol. It was cool seeing it in black and white though.
Kepler #15
Posted 23 July 2017 - 08:18 AM
Nice OS!

Also just for fun, I tried downloading this on a regular computer (not advanced) to see what would happen. It downloaded okay, but once it rebooted so it could be used, it was unusable because the mouse didn't work lol. It was cool seeing it in black and white though.

Thanks !

It's not very easy to use without a mouse, but it is usable. Here's some keystrokes you can use:

Control-o: Show Overview
Control-tab: Next tab / process

Within Overview (opening screen):
s = shell
l = lua

Any application:
Tab or arrow keys to navigate
Control-enter: restart application
Control-d: show debug tab
Homedog #16
Posted 30 July 2017 - 08:32 PM
Controlling multiple turtles
Spoiler[media]http://www.youtube.c...h?v=SZsNXyWm_hc[/media]

I am quite the noob to computercraft and I gotta know how you got that turtle set up.
The Crazy Phoenix #17
Posted 31 July 2017 - 02:54 AM
Controlling multiple turtles
Spoiler[media]http://www.youtube.c...h?v=SZsNXyWm_hc[/media]

I am quite the noob to computercraft and I gotta know how you got that turtle set up.

The turtles track their current position and facing as they move around (by checking whether the movement succeeded).
This information can be used for dynamic GPS hosts (which may be what's used for the "follow" command), as well as instructing the turtle where to go.
All it takes at setup is to feed the turtle its coordinates (manually or through GPS) and facing (manually or by moving the turtle and using GPS again).
Kepler #18
Posted 31 July 2017 - 08:11 AM
Most of the turtle movement code is in another API. But here is the following code:

Spoiler

local function follow(id)
  require = requireInjector(getfenv(1))
  local Socket = require('socket')
  local Point  = require('point')
  local Event  = require('event')
  turtle.status = 'follow ' .. id
  if not turtle.enableGPS() then
	error('turtle: No GPS found')
  end
  local socket = Socket.connect(id, 161)
  if not socket then
	error('turtle: Unable to connect to ' .. id)
	return
  end
  local lastPoint
  local following = false
  Event.on('turtle_follow', function(_, pt)
	local pts = {
	  { x = pt.x + 2, z = pt.z,	 y = pt.y },
	  { x = pt.x - 2, z = pt.z,	 y = pt.y },
	  { x = pt.x,	 z = pt.z + 2, y = pt.y },
	  { x = pt.x,	 z = pt.z - 2, y = pt.y },
	}
	local cpt = Point.closest(turtle.point, pts)
	local blocks = { }
	local function addBlocks(tpt)
	  table.insert(blocks, tpt)
	  local apts = Point.adjacentPoints(tpt)
	  for _,apt in pairs(apts) do
		table.insert(blocks, apt)
	  end
	end
	-- don't run into player
	addBlocks(pt)
	addBlocks({ x = pt.x, z = pt.z, y = pt.y + 1 })
	if turtle.pathfind(cpt, blocks) then
	  turtle.headTowards(pt)
	end
	following = false
  end)
  Event.onInterval(.5, function()
	local function getRemotePoint()
	  if not turtle.abort then
		if socket:write({ type = 'gps' }) then
		  return socket:read(3)
		end
	  end
	end
	-- sometimes gps will fail if moving
	local pt, d
	for i = 1, 3 do
	  pt, d = getRemotePoint()
	  if pt then
		break
	  end
	  os.sleep(.5)
	end
	if not pt or turtle.abort then
	  error('Did not receive GPS location')
	end
	if not lastPoint or (lastPoint.x ~= pt.x or lastPoint.y ~= pt.y or lastPoint.z ~= pt.z) then
	  if following then
		turtle.abort = true
		while following do
		  os.sleep(.1)
		end
		turtle.abort = false
	  end
	  -- check if gps is inaccurate (player moving too fast)
	  if d < Point.pythagoreanDistance(turtle.point, pt) + 10 then
		lastPoint = Point.copy(pt)
		following = true
		os.queueEvent('turtle_follow', pt)
	  end
	end
  end)
  Event.on('turtle_abort', function()
	Event.exitPullEvents()
  end)
  Event.pullEvents()
  socket:close()
  return true
end
local s, m = turtle.run(function() follow({COMPUTER_ID}) end)
if not s and m then
  error(m)
end
Edited on 31 July 2017 - 06:21 AM
kreezxil #19
Posted 14 August 2017 - 02:52 PM
I'm getting a crash when installing the operating system.

After hitting next on the "Download and Install" screen, it red lines the text "Expected String" and then only gives me an ">exit" option.



I am using the Computality mod on 1.12 build 2443.
Kepler #20
Posted 20 August 2017 - 11:06 PM
I'm getting a crash when installing the operating system.

Argh…. Forgot an update to the installer on last commit. Fixed now.
Kepler #21
Posted 06 September 2017 - 11:27 PM
You can now easily run this OS (or try it out):
pastebin run Fm3xf6Z9

Instead of installing files on the computer, the source is loaded (as needed) directly from git. This is also a nice way to run if you are low on disk space.
Kepler #22
Posted 27 September 2017 - 09:50 PM
Opus OS got a face lift.



Included two new programs:

mwm: A monitor window manager for running multiple applications on one monitor.

treefarm: A turtle program for tree farming. No GPS needed and can survive server restarts
[indent=1]* Just place the turtle in front of an oak tree with a chest and crafting table in it's inventory and it will create the complete farm. See notes in top of program file.[/indent]
Edited on 27 September 2017 - 07:50 PM
Kepler #23
Posted 27 October 2017 - 12:22 AM
[media]http://www.youtube.com/watch?v=Xz7A_DCkVjE&feature=youtu.be[/media]

Playing around controlling multiple turtles. I thought this turned out pretty good.

Basically, I'm running all the turtles as if they were local to the pocket computer. This approach greatly simplifies multi-turtle programs. Note that the turtle functions I use are somewhat high-level (I just need to tell the turtle at what coordinates to place each block). I also notify each turtle when a block is placed so the path finding algorithm is more efficient.

I've added this support to the develop branch only as I'm still improving the code.

Here's the test program:
Spoiler

_G.requireInjector()
local Event  = require('event')
local GPS	= require('gps')
local Point  = require('point')
local Socket = require('socket')
local Util   = require('util')
local os = _G.os
local template = { }
template[1] = {
{ 3,3,3,3,3 },
{ 1,4,4,4,1 },
{ 1,4,0,4,1 },
{ 1,4,0,4,1 },
{ 1,1,1,1,1 },
}
template[2] = {
{ 3,4,4,4,3 },
{ 4,0,0,0,4 },
{ 4,0,0,0,4 },
{ 4,0,0,0,4 },
{ 1,1,1,1,1 },
}
template[3] = {
{ 3,4,4,4,3 },
{ 4,0,0,0,4 },
{ 5,0,0,0,5 },
{ 4,0,0,0,4 },
{ 1,1,1,1,1 },
}
template[4] = template[2]
template[5] = {
{ 3,3,3,3,3 },
{ 1,4,4,4,1 },
{ 1,4,4,4,1 },
{ 1,4,4,4,1 },
{ 1,1,1,1,1 },
}
local blocks = {
[ 1 ] = { 'minecraft:cobblestone'   },
[ 2 ] = { 'minecraft:oak_stairs', 3 },
[ 3 ] = { 'minecraft:log',		5 },
[ 4 ] = { 'minecraft:planks'		},
[ 5 ] = { 'minecraft:glass_pane'	},
}
local spt = GPS.getPoint() or { x = 0, y = 0, z = 0, heading = 0 }
local house = { }
-- construct a simple schematic from the template
for x,plane in pairs(template) do
for ry,row in pairs(plane) do
  local y = #plane - ry + 1
  for z, b in pairs(row) do
   if b ~= 0 then
	table.insert(house, {
	 x = x + spt.x,
	 y = y + spt.y - 1,
	 z = z + spt.z,
	 name = blocks[b][1],
	 direction = blocks[b][2], -- forward, down, up
	 facing = blocks[b][3],
	})
   end
  end
end
end
-- define a box the turtles should not path find out of
local height, width, length = #template[1], #template[1][1], #template
local box = {
x = spt.x - 1,
y = spt.y,
z = spt.z - 1,
ex = spt.x + length + 1,
ey = spt.y + height + 1,
ez = spt.z + width + 1,
}
local function hijackTurtle(remoteId)
local socket, msg = Socket.connect(remoteId, 188)
if not socket then
   error(msg)
end
socket:write('turtle')
local methods = socket:read()
local hijack = { }
for _,method in pairs(methods) do
  hijack[method] = function(...)
   socket:write({ fn = method, args = { ... } })
   local resp = socket:read()
   if not resp then
	error('timed out')
   end
   return table.unpack(resp)
  end
end
return hijack
end
-- try a couple times in case a turtle is in the way
local function place(turtle, pt)
for _ = 1, 3 do
  if pt.direction then
   if turtle.placeXXXAt(pt, pt.direction, pt.name) then
	return true
   end
  else
   if turtle.placeAt(pt, pt.name) then
	return true
   end
  end
  os.sleep(.5)
end
end
local args = { ... }
local turtleCount = #args
local turtles = { }
for _, id in pairs(args) do -- secondary channel
table.insert(turtles, hijackTurtle(tonumber(id)))
end
for _, id in pairs(args) do
Event.addRoutine(function()
  --os.sleep(1)
  local turtle = hijackTurtle(tonumber(id))
  os.sleep(1)
  turtle.reset()
  turtle.enableGPS()
  local lastPoint = turtle.getPoint()
  turtle.setPersistent(true)
  local boxed
  while true do
   local pt = Point.closest(turtle.getPoint(), house)
   if not pt then
	break
   end
   Util.removeByValue(house, pt)
   if place(turtle, pt) then
	for _, t in pairs(turtles) do
	 t.addWorldBlock(pt) -- notify all turtles about this block
	end
   elseif turtleCount > 1 then
	--table.insert(house, pt)
   end
   if not boxed then
	turtle.setPathingBox(box)
	boxed = true
   end
  end
  turtle.setPathingBox()
  turtle.setPersistent(false)
  turtle.pathfind(lastPoint)
  if turtleCount == 1 then
   Event.exitPullEvents()
  end
  turtleCount = turtleCount - 1
end)
end
print('pulling')
Event.pullEvents()
SchnitzeltoastMC #24
Posted 05 November 2017 - 04:49 PM
Hi,

I can't use the the communication beetween Computers (VNC, SAMBA etc.)

It says the PC wasn't found on the desired Port.
I tried on the 1.12.2 Version (Yes there is one, But inofficial) and also on an older CraftOS Version (Emulated)
Kepler #25
Posted 05 November 2017 - 09:03 PM
Hi,

I can't use the the communication beetween Computers (VNC, SAMBA etc.)

It says the PC wasn't found on the desired Port.
I tried on the 1.12.2 Version (Yes there is one, But inofficial) and also on an older CraftOS Version (Emulated)

Here's some quick instructions on allowing connections between computers:

1. On the system you want to connect to, you need to add a password. Run "password" from a shell prompt.
2. On the system you want to connect from: you need to authenticate to that computer. Run "trust <id>" on this computer - where <id> is the ID of the computer you want to connect to and enter the password. Example: "trust 24".

This only needs to be done one time as trust has now been established.

I've made this much easier in the next version (still in development), including instructions.

Give this a try and if you still have issues, let me know.
Bubbycolditz #26
Posted 06 November 2017 - 04:58 PM
Excellent Operating System! I will be going through tests and I will try to find any bugs that you need to fix to make your OS even better :)/>
Kepler #27
Posted 06 November 2017 - 07:44 PM
Excellent Operating System! I will be going through tests and I will try to find any bugs that you need to fix to make your OS even better :)/>

Thanks! Yes, let me know of any bugs/suggestions you have.
LDDestroier #28
Posted 06 November 2017 - 09:02 PM
I once wanted to make a desktop grid for CC similar to the one in the Unity desktop, but after realizing I hadn't a damned clue where to begin, I stopped. Could the task select use a workspace grid?


EDIT: woot https://raw.githubusercontent.com/LDDestroier/CC/master/workspace.lua
Edited on 02 May 2019 - 04:36 AM
Kepler #29
Posted 06 November 2017 - 11:26 PM
I once wanted to make a desktop grid for CC similar to the one in the Unity desktop, but after realizing I hadn't a damned clue where to begin, I stopped. Could the task select use a workspace grid?

Really don't think it would work too well as I can't show an icon for each task. Normally, this would be a scaled down picture of the app (which would like really bad at like 5x5 pixels.
Siftos31 #30
Posted 20 February 2018 - 07:58 AM
I'm impressed. Really impressed..
marv21222324 #31
Posted 04 March 2018 - 09:51 AM
kepler j'ais un probleme je n'arrive pas a faire folow la turtle la turle me dit qu'elle na pas de gps mes je ne sais pas ou trover le gps


kepler I have a problem I can not do follow the turtle turtle tells me she does not gps my I do not know or trover the gps

video

https://www.youtube.com/watch?v=Y6NAiGr704Y

help please
Kepler #32
Posted 07 March 2018 - 05:12 PM
kepler j'ais un probleme je n'arrive pas a faire folow la turtle la turle me dit qu'elle na pas de gps mes je ne sais pas ou trover le gps


kepler I have a problem I can not do follow the turtle turtle tells me she does not gps my I do not know or trover the gps

video

https://www.youtube....h?v=Y6NAiGr704Y

help please

Take a look at this video:

[media]http://www.youtube.com/watch?v=vPyxJUEALvY[/media]
atithaoss #33
Posted 09 March 2018 - 08:59 PM
Hello, you have done great work with Opus OS.

I use it with Minecraft 1.12.2 and refine storage. I use Interface and I can see my items that are changing.

The only thing that I want to know is if there is another peripheral except duck antenna so I will build the Refine storage manager.

I love your OS
Kepler #34
Posted 10 March 2018 - 02:12 AM
Hello, you have done great work with Opus OS.

I use it with Minecraft 1.12.2 and refine storage. I use Interface and I can see my items that are changing.

The only thing that I want to know is if there is another peripheral except duck antenna so I will build the Refine storage manager.

I love your OS

Thanks!

With this setup:
chest (on top)
turtle
refined storage controller (below)

You would have this in the usr/config/chestManager configuration file:
{
inventoryDirection = { direction = 'up', wrapSide = 'bottom' },
chestDirection = { direction = 'down', wrapSide = 'top' },
}

(I've simplified the configuration a lot in a newer version)

The chest acts like a duck antenna in 1.8+.

Note that the turtle will, most likely, not be able to craft items in this version as refined storage support was crippled in later versions of plethora. You should, although, be able to initiate crafting with the program. This allows you to set minimum levels for items (ie. always have 64 planks crafted).
SquidDev #35
Posted 10 March 2018 - 09:40 AM
as refined storage support was crippled in later versions of plethora.
Can you file a report on the issue tracker? I'm not aware of Plethora changing removing any functionality on its end, so it's possible RS introduced some incompatibilities along the way. I recently did a lot of work to get AE implementation in a functional state, so would be happy to do the same to RS.
Edited on 10 March 2018 - 08:41 AM
Kepler #36
Posted 10 March 2018 - 02:51 PM
as refined storage support was crippled in later versions of plethora.
Can you file a report on the issue tracker? I'm not aware of Plethora changing removing any functionality on its end, so it's possible RS introduced some incompatibilities along the way. I recently did a lot of work to get AE implementation in a functional state, so would be happy to do the same to RS.

I am filing a bug report now. Until some issues are resolved for this version, I would not recommend using refined storage with the storage manager as the ability to invoke crafting is not functioning correctly.
marv21222324 #37
Posted 13 March 2018 - 10:32 PM
Playing around controlling multiple turtles. I thought this turned out pretty good.

Basically, I'm running all the turtles as if they were local to the pocket computer. This approach greatly simplifies multi-turtle programs. Note that the turtle functions I use are somewhat high-level (I just need to tell the turtle at what coordinates to place each block). I also notify each turtle when a block is placed so the path finding algorithm is more efficient.

I've added this support to the develop branch only as I'm still improving the code.




you think that will come out when
Kepler #38
Posted 13 March 2018 - 10:54 PM
you think that will come out when

If you want to try out the latest version for 1.7.10 - 1.12, you can do:
pastebin run UzGHLbNC
Select the develop-1.8 branch (still some testing left to do for version 1.7.10)

I've got a bit more testing to do before I release this version.
Edited on 13 March 2018 - 09:56 PM
marv21222324 #39
Posted 14 March 2018 - 07:01 PM
j'ai essayé sa a l'air de fonctioné mais comment ont fais pour transféré de la pocket aux turtle

video https://www.youtube.com/watch?v=RN09ZEUu7-Q


I tried it seems functional but how did I transfer it from the pocket to the turtle video https://www.youtube.com/watch?v=RN09ZEUu7-Q



I tried it seems functional but how did I transfer it from the pocket to the turtle video
Kepler #40
Posted 14 March 2018 - 11:02 PM
j'ai essayé sa a l'air de fonctioné mais comment ont fais pour transféré de la pocket aux turtle

video https://www.youtube....h?v=RN09ZEUu7-Q


I tried it seems functional but how did I transfer it from the pocket to the turtle video https://www.youtube....h?v=RN09ZEUu7-Q



I tried it seems functional but how did I transfer it from the pocket to the turtle video


I am unable to view the video. It is showing as unavailable.
marv21222324 #41
Posted 15 March 2018 - 06:15 PM
nomalement la ses bon https://www.youtube.com/watch?v=RN09ZEUu7-Q

nominally its its good https://www.youtube.com/watch?v=RN09ZEUu7-Q



nominally its its good
6_4 #42
Posted 15 March 2018 - 11:06 PM
This OS is good but I have two questions:
How do you access minesweeper from the shell and:
How do you put an entire screen on the monitor
Kepler #43
Posted 18 March 2018 - 07:56 PM
How do you access minesweeper from the shell and:

If you right-click on the icon for minesweeper, it will show you the command line. You can use that same command in a shell prompt.

How do you put an entire screen on the monitor

You can run "mirror" from the shell prompt to mirror the screen on the monitor.
marv21222324 #44
Posted 19 March 2018 - 11:16 PM

j'ai essayé sa a l'air de fonctioné mais comment ont fais pour transféré de la pocket aux turtle

video https://www.youtube....h?v=RN09ZEUu7-Q


I tried it seems functional but how did I transfer it from the pocket to the turtle video https://www.youtube....h?v=RN09ZEUu7-Q



I tried it seems functional but how did I transfer it from the pocket to the turtle video
  • 0
Kepler #45
Posted 21 March 2018 - 06:04 PM
j'ai essayé sa a l'air de fonctioné mais comment ont fais pour transféré de la pocket aux turtle

video https://www.youtube....h?v=RN09ZEUu7-Q
I tried it seems functional but how did I transfer it from the pocket to the turtle video https://www.youtube....h?v=RN09ZEUu7-Q

I posted a new video to show the setup and remote control for the schematic builder.

Note that this is using the latest version of Opus OS. The new Opus OS will work on 1.7.10 through the current minecraft version.

New Opus
pastebin run UzGHLbNC
Select the master-1.8 branch.

Chicken test schematic
base64dl chicken.schematic http://pastebin.com/raw/vxpHBUky

[media]http://www.youtube.com/watch?v=DpNd4dTximA[/media]
Kepler #46
Posted 21 March 2018 - 06:24 PM
A new version has been released!

Significant enhancements have been added since the last release.

Some major changes
  • Kernel rewrite to make the system more flexible.
  • Terminal only option (good for standard computers) with full networking support.
  • Storage Manager has had significant updates. This program can provide autocrafting from day 1.
  • Many updates to the Schematic builder program.
  • Minecraftt version 1.7 support brought up to date.
Installation

pastebin run UzGHLbNC

Feedback is always appreciated.
atithaoss #47
Posted 22 March 2018 - 08:03 PM
Hello Kepler,
As you understand I already install the master Version for 1.8
Now I have a prob with the treefarm.
When the turtle tries to build the furnace I receive the following error.

chestAdapter18.lua:180 Source 'down'
does not exist
treefarm.lua:735:
chestAdapter18.lua:180 Source 'down'

And the program terminates and I see the turtle with the chest up.
As you already know I can not edit the treefarm program because is read only.

Thanks in advance for your OS and of course for your help.

Also another question now the chestmanager needs other configuration can you please inform me what I should write to the config?
I use refine storage.

Thanks again

EDIT: I place the furnace and now it is working
Edited on 23 March 2018 - 10:54 AM
Kepler #48
Posted 23 March 2018 - 05:02 PM
Now I have a prob with the treefarm.
When the turtle tries to build the furnace I receive the following error.

I've fixed the issue with the program - thanks for finding that.

Also another question now the chestmanager needs other configuration can you please inform me what I should write to the config?
I use refine storage.

Here's the full instructions:

SpoilerConfiguration:
Configuration file is usr/config/inventoryManager

valid sides:
top, bottom, left, right, front, back

valid directions:
up, down, north, south, east, west

Required:
computerFacing : direction turtle is facing
inventory : side for the main inventory (can be the same as the controller)

Optional:
craftingChest : side for the chest used for crafting
controller : side for AE cable/interface or RS controller
stock : side for restocking inventory
trashDirection : direction of trash block (trashcan/inventory/etc) in
relationship to the main inventory. This block does not
need to touch the turtle, only the main inventory block.
monitor : valid options include:
type/monitor - will use the first monitor found
side/north - specify a direction (top/bottom/east/etc)
name/monitor_1 - specify the exact name of the peripheral

Your usr/config/inventoryManager file would look something like:

{
	computerFacing: 'north',
	inventory: 'bottom',   <<-- this would be the RS controller
	controller: 'bottom',
	monitor: 'type/monitor',
}

BTW, I see that squiddev has resolved the issue with refined storage. So if you get his latest version of plethora, I think it should be functional now.
atithaoss #49
Posted 23 March 2018 - 08:21 PM
Great help.
Thanks Kepler, yes its working with the latest plethora.

One more thing, I have also place a crafter to redstone furnace, is turtle able to automate the stock of some items that uses the crafter???

How can I automate this procedure? have you something in your mind?

Thanks in advance
Kepler #50
Posted 24 March 2018 - 08:03 AM
One more thing, I have also place a crafter to redstone furnace, is turtle able to automate the stock of some items that uses the crafter???

How can I automate this procedure? have you something in your mind?

You can set minimum levels for anything that refined storage can craft. So if you always wanted 64 stone crafted, just double-click stone and set 64 as the min.
Kepler #51
Posted 26 March 2018 - 08:06 PM
One more thing, I have also place a crafter to redstone furnace, is turtle able to automate the stock of some items that uses the crafter???

How can I automate this procedure? have you something in your mind?

You can set minimum levels for anything that refined storage can craft. So if you always wanted 64 stone crafted, just double-click stone and set 64 as the min.

NOTE:
With the very latest plethora version (I compiled from source), all crafting functions for RS seem to work fine. The turtle can craft so you don't need RS recipes (if you wish), giving you hundreds of predefined recipes available.

None of the following is needed if using the latest version.

I've updated to the latest plethora build and updated support for refined storage. There is still some functionality missing which I have requested.

To be able to set minimum values for items using refined storage, you can do the following:
edit usr/config/fstab and replace "master-1.8" with "develop-1.8"

Remove all minecraft recipes as the turtle currently cannot craft using RS items.

cd usr/etc/recipes
persist minecraft.db
edit minecraft.db

Replace the entire contents (control-a) with { } and save.

Upon rebooting, the storage manager should only show items that are in RS (no other recipes are displayed). You will be able to use "craft" from the menu or set minimum levels for the items.

Let me know if you have issues.
Edited on 28 March 2018 - 11:22 PM
Kepler #52
Posted 29 March 2018 - 08:59 AM
Also another question now the chestmanager needs other configuration can you please inform me what I should write to the config?
I use refine storage.

With the latest changes to plethora, you can now use the following which allows the turtle to craft items:

Your usr/config/inventoryManager file would look something like:

{

	 computerFacing: 'north',
	 inventory: 'bottom',   <<-- this would be the RS interface
	 controller: 'bottom',
	 monitor: 'type/monitor',
	 craftingChest: 'back',  <<-- turtle uses this chest to get item info

}

You will also need to equip the turtle with a crafting table and have connected to an RS interface (instead of the RS controller).
atithaoss #53
Posted 30 March 2018 - 08:58 AM
As always the perfect system.

The only problem that i have is how can I create a recipe for gold ingot.
I tried a lot of things but i did not find any solution.
atithaoss #54
Posted 31 March 2018 - 02:28 PM
Hello again,
As you know I am working with the develop 1.8 version
I tried from my pocket to set home to a turtle but I can not set it
So I went to the turtle and from system gps i tried to set home
I receive the following error
event.lua:47:
ui.lua:1511: attempt to index local 'row' (a number value)

Although the set home was placed
also I tried the follow command and nothing happened in 1.7 it was working
Edited on 31 March 2018 - 12:30 PM
Kepler #55
Posted 01 April 2018 - 11:34 PM
Hello again,
As you know I am working with the develop 1.8 version
I tried from my pocket to set home to a turtle but I can not set it
So I went to the turtle and from system gps i tried to set home
I receive the following error
event.lua:47:
ui.lua:1511: attempt to index local 'row' (a number value)

Although the set home was placed
also I tried the follow command and nothing happened in 1.7 it was working

I have fixed this issue in the develop-1.8 branch. You will have to update each turtle and pocket in order to get this change (System tab -> Update and pick develop-1.8 branch). This, hopefully, fixes most of the script issues.

Let me know if you have any problems.
atithaoss #56
Posted 02 April 2018 - 12:20 AM
Hello,
I must say that you fix it too quickly…
From my pocket now are all great.

From the turtle in System / GPS / Set Home
I receive the following error

event.lua:47:
ui.lua:1511: attempt to index ? (a number value)

Although the error it keeps the Set Home location.

I need also an idea. How to setup refueling bases for different groups of turtles?
I mean that for each of my turtles I have set their home. And I want to set also refuel base for each turtle (a chest or AE2 interface or refine storage interface, something like that) to get coal or anything for refueling if refuel level is bellow xxxxx.


Finally I was wondering if you can share your base so we can get some ideas.
atithaoss #57
Posted 11 April 2018 - 07:47 AM
Good Morning and Happy Easter.
As I saw now its fully working. GPS is Fixed without any error (in the develop version).
The only thing that I do not know is to use the crafters (with refine Storage). Somehow turtle can not craft any item that is used from external devices, like gold ingot in a furnace etc.
draeician #58
Posted 27 July 2018 - 04:34 AM
I'm trying to use the builder to make a schematic, but it keeps saying I must have a chest or ME interface under turtle. I have a chest below it, and the program still insists there isn't a chest there.
Jummit #59
Posted 18 September 2018 - 06:06 PM
What is the size of a program icon? I want to make some custom apps, but it tells me 'invalid size' with 3*5, 3*6, 3*7, 3*8 and 3*9 pixel sized images…
EDIT: I tried using the .nft format and it worked. I think this should be said in the error message.
Edited on 18 September 2018 - 04:33 PM
Windows10User #60
Posted 08 October 2018 - 05:15 PM
I'm going to infect it with my virus (overwrites startup) and tell you how it turns out…

It didn't survive startup…
Otherwise, nice OS!
Kepler #61
Posted 11 October 2018 - 04:55 AM
What is the size of a program icon? I want to make some custom apps, but it tells me 'invalid size' with 3*5, 3*6, 3*7, 3*8 and 3*9 pixel sized images…
EDIT: I tried using the .nft format and it worked. I think this should be said in the error message.

I updated the error message - sorry for the confusion.

I'm going to infect it with my virus (overwrites startup) and tell you how it turns out…

It didn't survive startup…
Otherwise, nice OS!

Defeated !
atithaoss #62
Posted 02 January 2019 - 10:19 PM
Hello, Happy new year,
I open my old map in order to have some fun and as I checked I have not any more the storage manager
I saw your new programs and I made an update.
I already tested Milo and I must say that it is a very good program, but now I can not use any more my refine storage.
Is any possibility to make it work again??

Best Regards
Atithasos
Kepler #63
Posted 03 January 2019 - 04:29 AM
Hello, Happy new year,
I open my old map in order to have some fun and as I checked I have not any more the storage manager
I saw your new programs and I made an update.
I already tested Milo and I must say that it is a very good program, but now I can not use any more my refine storage.
Is any possibility to make it work again??

Best Regards
Atithasos

I re-enabled the storage program. Here's what you need to do to install the storage manager program in the master-1.8 branch:

rm usr/config/packages
reboot
package install storage
reboot (again)

The storage program should be available again in apps.
atithaoss #64
Posted 03 January 2019 - 05:45 AM
Great i download the storage, I create the configuration file like the example you wrote to me at the page 3.

I receive an error message in the turtle when i run the storage,
Error - retrying in 3 seconds (at my monitor)
Communication failure (at turtle)
rebooting in 5 seconds

I tried also with controller at bottom and i receive the same error message without any further info.
Dereki2000 #65
Posted 17 May 2019 - 08:46 PM
Hello,

at first, it is an amazing OS. This is really good work. But even this os has bugs too. Or some features that i miss. In the file explorer I'm not able to make a new folder or run a file with an special app. Second thing is, when you add an app to the applist on the left on desktop, it would be good to have an file explorer for the app-path. But your os is really really good. I think i will use it for all of my computers.