Jump to content




[CC1.5]ComputerCraft Emulator V0.57 (February 19th)


  • This topic is locked This topic is locked
399 replies to this topic

#161 rhyleymaster

  • Members
  • 186 posts
  • LocationCanada

Posted 07 November 2012 - 05:27 PM

Thanks for a great program!

#162 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 07 November 2012 - 07:24 PM

sorry forgot to Posted Image before, thar you go

#163 Mendax

  • Members
  • 366 posts

Posted 09 November 2012 - 10:50 PM

New update = awesome
if ccEMU-update == "AWESOME" then
postRep = postRep + ( number = 1 while true do number = number + 1)
end


#164 Mitchfizz05

  • Members
  • 125 posts
  • LocationAdelaide, Australia

Posted 13 November 2012 - 09:15 AM

Hmm... its keeps freezing on me. =
Otherwise, I would use this program alot.

#165 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 13 November 2012 - 10:20 AM

View Postmitchfizz05, on 13 November 2012 - 09:15 AM, said:

Hmm... its keeps freezing on me. =
Otherwise, I would use this program alot.
And do the programs that cause the freeze not freeze the computers when you run them in Minecraft?

Edited by Espen, 13 November 2012 - 10:20 AM.


#166 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 14 November 2012 - 07:21 AM

I think this is amazing. once you have the redstone functionality added and the ability to make it load everything from the current dir if needed it will be ultimate. long overdue +1

#167 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 18 November 2012 - 01:08 AM

Tomass, why are all traces to your code from unknown sources? Bit irksome, I would guess.

#168 Kilobyte

  • Members
  • 122 posts

Posted 19 November 2012 - 06:00 AM

Hey, could you at least make your own (if not use the original) peripheral API so others can write peripharals for ccemu

in order to attach some peripharal you'd need peripheral.mount(side, name/id) and to deattach peripheral.unmount(side) or so. would that be possible?

#169 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 20 November 2012 - 07:10 AM

For wired reason rednet doesn't work for me in emulator.

Windows 7 x86
Java 1.7.0.01-b08

#170 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 21 November 2012 - 05:15 AM

View Postjesusthekiller, on 20 November 2012 - 07:10 AM, said:

For wired reason rednet doesn't work for me in emulator.

Windows 7 x86
Java 1.7.0.01-b08
did you forget to open rednet?
also, your java is outdated, try getting 1.7.0_07

#171 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 21 November 2012 - 05:33 AM

View PostPixelToast, on 21 November 2012 - 05:15 AM, said:

View Postjesusthekiller, on 20 November 2012 - 07:10 AM, said:

For wired reason rednet doesn't work for me in emulator.

Windows 7 x86
Java 1.7.0.01-b08
did you forget to open rednet?
also, your java is outdated, try getting 1.7.0_07
Java 1.7.0_09 is the latest one, they fixed a serious exploit.

#172 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 21 November 2012 - 05:57 AM

I have the same problem.
This code on terminal with ID 0...
rednet.open("right")
rednet.send(1, "hello") -- or rednet.broadcast("hello")
... doesn't send the message to the terminal with ID 1.

rednet.open returns true, but the message never arrives.

Edit:
To be complete about it, this was the code for the waiting terminal with ID 1:
rednet.open("left")
a, b = rednet.receive()

Edit #2:
Ok, wow, it just worked when I chose the same rednet-side for both computers.
I assumed it was like with the wireless modems, so that it doesn't matter if the sides match or not.
But I guess with CCEmu you have to choose the same side?
Anyway, it works when choosing the same side, so that's good to know. :(/>


Final Edit:
*Mega-Derp*
It helps to read the OP:

Quote

-All the computers come with a modem on the right hand side, ie rednet.open("right")
My apologies. :(/>

Edited by Espen, 21 November 2012 - 06:04 AM.


#173 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 21 November 2012 - 07:31 AM

well luckily i dont need to use rednet.open
my networking api automatically opens the first available modem :3

View PostLeo Verto, on 21 November 2012 - 05:33 AM, said:

Java 1.7.0_09 is the latest one, they fixed a serious exploit.
o.O really?
i dont keep up with jdk updates much
especially because the installers refused to open at all

#174 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 21 November 2012 - 09:12 AM

View PostPixelToast, on 21 November 2012 - 07:31 AM, said:

well luckily i dont need to use rednet.open
my networking api automatically opens the first available modem :3
Well you might not do it manually, but in your API you surely use rednet.open() as well, no?
The only thing that would be a lucky coincidence is if the first side your API tries to open on CCEmu would happen to be the right side.
Because any other side and it wouldn't work either.

#175 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 21 November 2012 - 10:16 AM

View PostEspen, on 21 November 2012 - 09:12 AM, said:

View PostPixelToast, on 21 November 2012 - 07:31 AM, said:

well luckily i dont need to use rednet.open
my networking api automatically opens the first available modem :3
Well you might not do it manually, but in your API you surely use rednet.open() as well, no?
The only thing that would be a lucky coincidence is if the first side your API tries to open on CCEmu would happen to be the right side.
Because any other side and it wouldn't work either.

you don't have to use right first. you just say

local function open()
  for num,side in pairs(rs.getSides()) do
    if peripheral.getType(side)=='modem' then
	  rednet.open(side)
	  return true
    end
    return false
  end
end

it works fine on CCemu for me

#176 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 21 November 2012 - 10:24 AM

View PostKaoS, on 21 November 2012 - 10:16 AM, said:

you don't have to use right first. you just say

local function open()
  for num,side in pairs(rs.getSides()) do
    if peripheral.getType(side)=='modem' then
	  rednet.open(side)
	  return true
    end
    return false
  end
end

it works fine on CCemu for me
That code just iterates over all sides until it finds the first with a modem.
And on CCEmu that will always be the right side.

My point was not that you have to open the right side first, it was that the right side is the only one that works in CCEmu.
No hard feelings though, just trying to clear up the confusion. :(/>

#177 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 21 November 2012 - 11:12 AM

ah lol. derp :(/> misunderstood

#178 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 24 November 2012 - 11:02 AM

It seems cc-emu has the problem with https addresses that ComputerCraft used to, in that it won't connect to them with the http library. Any chance we could get an update on that front? Thanks!

#179 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 24 November 2012 - 05:04 PM

View PostLyqyd, on 24 November 2012 - 11:02 AM, said:

It seems cc-emu has the problem with https addresses that ComputerCraft used to, in that it won't connect to them with the http library. Any chance we could get an update on that front? Thanks!

It seems to be working for me, I'm able to connect to https://www.google.com as well as https://www.youtube.com,
Can you give me an example where it fails?

#180 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 24 November 2012 - 07:24 PM

Okay, you are correct. That's not the problem. I apologize for making assumptions about the nature of the problem. I can also fetch https://www.google.com just fine, so something about the nature of the URL I was attempting to fetch is causing the problem. The url in question is:

https://raw.github.com/lyqyd/LyqydNet-Programs/master/apis/location






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users