Jump to content




Reading bytes


42 replies to this topic

#41 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 09 August 2018 - 06:47 AM

Having had a further look at the code, there's three functions which could be nil here (it's hard to tell which due to tail call):
  • readByte - almost definitely not this
  • StringStream.read - again, almost definitely not
  • unpack - Ahhhr!
Can you try changing this to use table.unpack and see if it works? Alternatively, print unpack somewhere and see if it's nil. If you've got 5.1 features disabled in the configs, it's possible it won't be set.

Edited by SquidDev, 09 August 2018 - 06:48 AM.


#42 Bomb Bloke

    Hobbyist Coder

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

Posted 09 August 2018 - 08:12 AM

Yaaahhhrrr

That's almost certainly it - and it in turn almost certainly means someone's using a tekkit pack.

Anyway, you'll be wanting to make sure disable_lua51_features is set to false, emanuel.

http://www.computerc...mputerCraft.cfg

#43 emanuel12324

  • Members
  • 28 posts

Posted 09 August 2018 - 05:11 PM

Congratulations ladies and gentlemen, we have success. It was indeed the unpack not being called correctly, and adding table. to the front fixed it right up. So this project is shaping up. Now all I have to do is figure out how to successfully download a png. Thanks for all your help guys.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users