Jump to content




Mirror Utility Program - Contents Of Computer Screen On Monitor. v5.0

utility

  • You cannot reply to this topic
36 replies to this topic

#21 LewisTehMinerz

  • Members
  • 174 posts
  • LocationMinecraft in Minecraft in Minecraft in ComputerCraft... in Minecraft

Posted 11 May 2014 - 04:26 PM

I downloaded your program and tryed running it but whatever i type it comes up with:

multishell:39: attempt to call nil

and then it shuts down the computer.

Why does it do this?

#22 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 11 May 2014 - 04:41 PM

View Postwojbie, on 08 May 2014 - 06:55 AM, said:

Yes i realize its not working correctly in 1.6 due to the changes in redirection mechanisms. I am working on new improved version but its a little bit in future because of lack of time to code right now. Will update as soon as its ready. :D


#23 LewisTehMinerz

  • Members
  • 174 posts
  • LocationMinecraft in Minecraft in Minecraft in ComputerCraft... in Minecraft

Posted 14 May 2014 - 03:46 PM

View Postwojbie, on 11 May 2014 - 04:41 PM, said:

View Postwojbie, on 08 May 2014 - 06:55 AM, said:

Yes i realize its not working correctly in 1.6 due to the changes in redirection mechanisms. I am working on new improved version but its a little bit in future because of lack of time to code right now. Will update as soon as its ready. :D
Thank You!

#24 Luca_S

  • Members
  • 407 posts
  • LocationGermany

Posted 16 November 2014 - 12:14 PM

If i try to do this my PC crashes with always other errors(See this error list:

mirror monitor_0 edit test
multishell:39: attempt to call nil
mirror monitor_0 shell
shell:4 attempt to call nil

When i look at the specified lines its alway term.current(), is there a way to fix it?

#25 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 16 November 2014 - 01:03 PM

View PostLuca0208, on 16 November 2014 - 12:14 PM, said:

If i try to do this my PC crashes with always other errors(See this error list:

mirror monitor_0 edit test
multishell:39: attempt to call nil
mirror monitor_0 shell
shell:4 attempt to call nil

When i look at the specified lines its alway term.current(), is there a way to fix it?

Quote

Yes i realize its not working correctly in 1.6 due to the changes in redirection mechanisms.
I am working on new improved version but its a little bit in future because of lack of time to code right now.
Will update as soon as its ready. :D
How did you not see that?

#26 Skullcut

  • New Members
  • 1 posts

Posted 30 December 2014 - 07:34 PM

Hey,

i have a problem, the size of the displayed content, doesn't resize..
Do i have to do a command for this?





Posted Image

#27 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 22 January 2015 - 10:15 PM

Hey, could you fix this for 1.6 as soon as possible? I'm trying to make a game room, and I get the multishell:39: problem

#28 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 23 January 2015 - 07:13 AM

It seems that if a line such as this one is added into the _G["term"] table defined around line 227:

["current"] = saveterm["current"],

... then it should otherwise work more or less "as-is". It won't play all that well with multishell, but it'll likely handle whatever job you're wanting it for so long as you don't try working with multiple tabs.

#29 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 01 October 2015 - 11:19 PM

UPDATE! v2.0
  • Total Rewrite
  • Some features got removed due to lack of need. If requested they may come back
  • It works in new CC!
On side-note take a look at this project twin that just happened to be released at same time ye old time ago. bTetris is still awesome!

#30 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 03 October 2015 - 07:31 AM

Hmm... Is this you gearing up to work on this thing? ;)

#31 Konlab

  • Members
  • 595 posts
  • LocationKerbin

Posted 03 October 2015 - 09:36 AM

View PostBomb Bloke, on 03 October 2015 - 07:31 AM, said:

Hmm... Is this you gearing up to work on this thing? ;)/>/>
Hologram projector redirect :o/>
But with optional 3rd arg for setCursorPos
And more optional arguments for mouse_click event like z, side
More colors, too
It would be so cool!

Edited by Green, 03 October 2015 - 09:37 AM.


#32 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 03 October 2015 - 10:20 AM

View PostBomb Bloke, on 03 October 2015 - 07:31 AM, said:

Hmm... Is this you gearing up to work on this thing? ;)

More like side effect of finalizing work on lua side of this thing and internal want to revive Mirror. But those holograms are on todo list for future. Now that i have made terminal handling side all i have to do is create term.blit that blits onto hologram using font stuff instead of onto terminal. rest of code would stay exactly the same. I just don't feel muse for hologram project atm.


On side note if any of you find any programs that are erroring with the mirror and working fine without it i would be grateful for info. At the moment all that errors for me is battleship treasure disk. And i am working on figuring out why.

Edited by wojbie, 03 October 2015 - 10:36 AM.


#33 Konlab

  • Members
  • 595 posts
  • LocationKerbin

Posted 03 October 2015 - 11:11 AM

View Postwojbie, on 03 October 2015 - 10:20 AM, said:

-long post-
What about a hide-able on-screen keyboard with virtual mouse, where you can specify what type of mouse_click or mouse_scroll will be sent to the computer? And a terminate event sender and a paste event sender?
Toggle shift and toggle ctrl... for example for multiselection in (my filebrowser, see in my signature ;) ) Lattice...
It is already a great program and has great potencial.

#34 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 03 October 2015 - 12:03 PM

View PostGreen, on 03 October 2015 - 11:11 AM, said:

What about a hide-able on-screen keyboard with virtual mouse, where you can specify what type of mouse_click or mouse_scroll will be sent to the computer? And a terminate event sender and a paste event sender?
Toggle shift and toggle ctrl... for example for multiselection in (my filebrowser, see in my signature ;) ) Lattice...

Well truthfully i consider this program done and finished. It has one job - copy terminal onto monitor. Mouse interaction is in cause it was easy to do and there was no point in not including it. And truthfully from my standpoint there is no need to reinvent the keyboard when there are many mods that already give you better keyboard that on-screen one could ever be. Like this per example.

Edited by wojbie, 03 October 2015 - 12:04 PM.


#35 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 03 October 2015 - 02:24 PM

View Postwojbie, on 03 October 2015 - 10:20 AM, said:

At the moment all that errors for me is battleship treasure disk. And i am working on figuring out why.

You may have already gotten this sorted out, but I'm seeing the issue being triggered here:

--redirect just to block scroll
local redir={}
for k,v in pairs(originalTerm) do
  if k~="scroll" then
    redir[k]=v
  else
    redir[k]=function() end
  end
end
originalTerm = term.redirect(redir)

If something is available through a metatable, but is not actually in the table said metatable is built out of, then "pairs" won't see it. In this case, it believes "originalTerm" to be empty (because your createMultitable() function returns empty tables).

#36 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 03 October 2015 - 02:36 PM

View PostBomb Bloke, on 03 October 2015 - 02:24 PM, said:

(because your createMultitable() function returns empty tables).

*Sound of Wojbie facepalming so hard that he falls out of chair*
I placed wrong createMultitable version in this program. Thanks a lot for that. On accident I placed fluid one instead of static one.
This one (fluid) was created for when tables inside multitable change a lot.
Will need to find where i put my static one and replace it.

Thanks for the help. I was looking for error in completely wrong place (function). Its right what they say. Sometimes you just need a pair of new eyes or a rubber duck so solve problems. ( and i may have lost Mr. Duckpants)

Edited by Wojbie, 16 January 2016 - 07:16 PM.


#37 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 03 October 2015 - 03:34 PM

UPDATE! v2.1
  • Bugfix with creation of terminal object.
On side-note: Yay i sunk that battleship. I mean bug. Thanks Bomb Bloke !





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users