Jump to content




Firewolf Website Browser 2.5 - Brand New Internals (again)!

networking lua wireless

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

#161 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 09 January 2013 - 08:25 AM

View PostCranium, on 09 January 2013 - 08:09 AM, said:

I'm having trouble loading a paint image and displaying it. Here is my paint code:
7777777777777777777777777777
788888888888888888888888888887
788ff888f888ff888f888f888ff887
78f88f8ff88f88f8ff88ff88f88f87
78f88f88f88f88f88f888f88f88f87
788ff88fff88ff88fff8fff88ff887
788888888888888888888888888887
788f888f888ff888ff888f888f8887
78ff88ff88f88f8f88f8ff88ff8887
788f888f88f88f8f88f88f888f8887
78fff8fff88ff888ff88fff8fff770
78888888888888888888888888700
7888888888888888888888888870
77777777777777777777777770
and here is my function call:
local logo = loadImageFromServer("pastebinImage")
paintutils.drawImage(logo, 5, 3)
It works just fine in the lua prompt, but I get paintutils: 92: attempt to get length of nil when running it through Firewolf.

That error would be caused by logo being nil, and nil is returned from loadImageFromServer when the loading failed - meaning that it couldn't find the image on the server.

I just tested it and it worked perfectly for me. Did you move the file into your server folder, and name it pastebinImage? loadImageFromServer takes the imagePath from the root of the server folder, so translated into a full file path taken from the root of the computer it would be /.Firewolf_Data/servers/[server name]/pastebinImage.

#162 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 09 January 2013 - 08:34 AM

oooooohhhh... it has to be in the SERVER folder....
You might want to work on that wiki, friend.

#163 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 09 January 2013 - 08:49 AM

View PostCranium, on 09 January 2013 - 08:34 AM, said:

oooooohhhh... it has to be in the SERVER folder....
You might want to work on that wiki, friend.

I completely suck at wiki/tutorial writing :P

I updated the function's description to:

Downloads an image from your server. The image must be inside the server folder. The `imagePath` is the path to the image, starting in the server folder.
Returns the loaded image that is returned by `paintutils.loadImage(image)`. Returns nil if the download failed or if the image could not be found.

I hope that's a little bit clearer :P

#164 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 09 January 2013 - 08:50 AM

New problem....
I moved the file to my server folder, and it gave me an error, "server_software:518:no such file"
It then deleted the file.
What did I do wrong?

#165 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 09 January 2013 - 08:55 AM

View PostCranium, on 09 January 2013 - 08:50 AM, said:

New problem....
I moved the file to my server folder, and it gave me an error, "server_software:518:no such file"
It then deleted the file.
What did I do wrong?

Ah!!!!! That's a bug in the server software! It occured when the server tried to rename the file to all lowercase - but I removed case insensitivity in Firewolf! I'll remove the piece of code in the server software that causes that error. You did nothing wrong :P It's just the upper case letter in the file scared the software D:

In the meantime, move it to the server folder with a lowercase name :P

#166 Henness

  • Members
  • 189 posts

Posted 09 January 2013 - 09:17 AM

Can you make this work with Immibis's Peripherals LAN cables. http://www.computerc...ss-peripherals/
LAN cables are so much better because they can send information over any distance even through unloaded chunks.

#167 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 09 January 2013 - 03:13 PM

View PostHenness, on 09 January 2013 - 09:17 AM, said:

Can you make this work with Immibis's Peripherals LAN cables. http://www.computerc...ss-peripherals/
LAN cables are so much better because they can send information over any distance even through unloaded chunks.
use my LAN wrapper: https://github.com/i...4/ComputerCraft
just run "lan"
requires "apis/lan" to be loaded (too lazy to combine them)

#168 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 09 January 2013 - 08:51 PM

View PostPixelToast, on 09 January 2013 - 03:13 PM, said:

View PostHenness, on 09 January 2013 - 09:17 AM, said:

Can you make this work with Immibis's Peripherals LAN cables. http://www.computerc...ss-peripherals/
LAN cables are so much better because they can send information over any distance even through unloaded chunks.
use my LAN wrapper: https://github.com/i...4/ComputerCraft
just run "lan"
requires "apis/lan" to be loaded (too lazy to combine them)

Oooooooohhhh that looks cool! I'll put it on the todo list to combine and include the lan cable support and this wrapper :P

#169 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 13 January 2013 - 12:51 AM

Allrrrihgt, so it has come to my attention that there is a seriously major flaw with ComputerCraft or Firewolf that causes minecraft servers to crash.

[boring part]
Some people probably already have noticed this, but randomly, when connecting to a website, ComputerCraft will freeze, server commands stop working, redstone/mechanisms stop working, breaking blocks doesn't drop anything and you cannot pickup or drop items. Basically the server breaks and the server must restart.
[/boring part]

So I have added some messages on what Firewolf is doing when loading a webpage. It would be EXTREMELY helpful if someone does encounter this problem and tell me/gravityscore the status message shown on the screen. It would help A LOT. Thanks in advanced

#170 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 13 January 2013 - 06:27 AM

View Post1lann, on 13 January 2013 - 12:51 AM, said:

Allrrrihgt, so it has come to my attention that there is a seriously major flaw with ComputerCraft or Firewolf that causes minecraft servers to crash.

[boring part]
Some people probably already have noticed this, but randomly, when connecting to a website, ComputerCraft will freeze, server commands stop working, redstone/mechanisms stop working, breaking blocks doesn't drop anything and you cannot pickup or drop items. Basically the server breaks and the server must restart.
[/boring part]

So I have added some messages on what Firewolf is doing when loading a webpage. It would be EXTREMELY helpful if someone does encounter this problem and tell me/gravityscore the status message shown on the screen. It would help A LOT. Thanks in advanced
Uhh....wow. That is a serious issue. I'll let you know if I come across anything.

#171 BustedEarLobes

  • Members
  • 46 posts

Posted 13 January 2013 - 09:48 AM

Interesting, I played around with it in my OS, and it was working perfectly fine. But then, I ran it and it immediately said "Thanks for using Firewolf made my 1lann and gravity" or whatever. That wasn't a big deal and everything, but now, every time it runs, it gives an error at line 1122 saying a "}" was expected. However, I looked at the code and it looked like it was closed properly. Can you guys look into it? It completely stopped running now...

Edit: It's in fact a major bug! Every Firewolf program I run will get updated and do exactly what I said before.

#172 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 13 January 2013 - 10:08 AM

View PostBustedEarLobes, on 13 January 2013 - 09:48 AM, said:

Interesting, I played around with it in my OS, and it was working perfectly fine. But then, I ran it and it immediately said "Thanks for using Firewolf made my 1lann and gravity" or whatever. That wasn't a big deal and everything, but now, every time it runs, it gives an error at line 1122 saying a "}" was expected. However, I looked at the code and it looked like it was closed properly. Can you guys look into it? It completely stopped running now...

Edit: It's in fact a major bug! Every Firewolf program I run will get updated and do exactly what I said before.

Oh ummm........... whoops :P

I forgot a comma........ 1lann will kill me now. Goodbye everyone!

Nah. I fixed it. You're going to have to re-download the clients you updated though :(

#173 brett122798

  • Members
  • 300 posts
  • LocationIn the TARDIS at an unknown place in time.

Posted 13 January 2013 - 10:23 AM

Hey, I am currently in the progress of making an OS, and I was wondering if I could get permission to include Firewolf into my OS, like the other million OS's.

#174 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 13 January 2013 - 10:29 AM

View Postbrett122798, on 13 January 2013 - 10:23 AM, said:

Hey, I am currently in the progress of making an OS, and I was wondering if I could get permission to include Firewolf into my OS, like the other million OS's.

Yep sure!
What's it called, so I can add it to the list of OS's Firewolf is in? :P

#175 brett122798

  • Members
  • 300 posts
  • LocationIn the TARDIS at an unknown place in time.

Posted 13 January 2013 - 10:49 AM

View PostGravityScore, on 13 January 2013 - 10:29 AM, said:

View Postbrett122798, on 13 January 2013 - 10:23 AM, said:

Hey, I am currently in the progress of making an OS, and I was wondering if I could get permission to include Firewolf into my OS, like the other million OS's.

Yep sure!
What's it called, so I can add it to the list of OS's Firewolf is in? :P
It's not going to out for a while, but I believe I'm going to call it Panels.

#176 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 13 January 2013 - 12:03 PM

View Post1lann, on 13 January 2013 - 12:51 AM, said:

Allrrrihgt, so it has come to my attention that there is a seriously major flaw with ComputerCraft or Firewolf that causes minecraft servers to crash.
-mega snippy-
i have never seen anything like this when using http
try sending me the server files and let me test it?

#177 BustedEarLobes

  • Members
  • 46 posts

Posted 13 January 2013 - 12:21 PM

Um haha, sorry to say but now your exit site is bugged as well...

#178 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 13 January 2013 - 03:12 PM

View PostPixelToast, on 13 January 2013 - 12:03 PM, said:

View Post1lann, on 13 January 2013 - 12:51 AM, said:

Allrrrihgt, so it has come to my attention that there is a seriously major flaw with ComputerCraft or Firewolf that causes minecraft servers to crash.
-mega snippy-
i have never seen anything like this when using http
try sending me the server files and let me test it?
HTTP? Firewolf uses rednet. But this event has occurred on blackwolf and CCU

#179 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 13 January 2013 - 03:55 PM

i dont get how rednet can cause servers to crash, unless you have specific steps / code then you probably wont get it fixed

#180 anonimo182

  • Members
  • 252 posts
  • LocationIn the universe

Posted 15 January 2013 - 06:26 AM

Also, in 2.3.8 the red bar at the top doesn't show the scrolling animation





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users