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

Negative line number for error debug info

Started by EveryOS, 31 May 2018 - 03:14 PM
EveryOS #1
Posted 31 May 2018 - 05:14 PM


This is not very useful because I do not know what line it is. Do you know what a negative line number means?

Source is here
Edited on 31 May 2018 - 03:19 PM
Bomb Bloke #2
Posted 31 May 2018 - 05:52 PM
Just with a quick glance through, this might be causing it. A call to that function would produce the indexing error, as "queue" has no elements (… and never will), so #queue[0] crashes.

Beats me about the line number. I've got a vague idea that it means the VM doesn't know where the function was defined. Not really sure. This isn't CC:Tweaked, is it? I reckon that'd give you a lot more information to work with.
EveryOS #3
Posted 31 May 2018 - 05:55 PM
Not CC:Tweaked, just CC dev environment run with gradlew runClient
SquidDev #4
Posted 31 May 2018 - 06:59 PM

env.load(string.dump(myclass), OSName..":"..class, "tb", env)
This is the issue: LuaJ has a bug (feature?) where debug information is stripped when using string.dump, thus line numbers are all -1. You're better off reading the file's contents and passing it into load directly - there's very rarely a reason to use string.dump.

Just CC dev environment run with gradlew runClient
For crying out loud, Minecraft costs the same as 4 cups of coffee or 3 beers.
Edited on 31 May 2018 - 04:59 PM
EveryOS #5
Posted 31 May 2018 - 07:16 PM
Thanks, did not really think about that
Clarification: As in, the first half of that comment
Edited on 31 May 2018 - 05:16 PM
EveryOS #6
Posted 31 May 2018 - 07:23 PM
For crying out loud, Minecraft costs the same as 4 cups of coffee or 3 beers.
How much would that be?
Do they sell coffee at the dollar tree?
What are the inflation rates in your area?
Desolstice #7
Posted 01 June 2018 - 12:58 AM
For crying out loud, Minecraft costs the same as 4 cups of coffee or 3 beers.
How much would that be?
Do they sell coffee at the dollar tree?
What are the inflation rates in your area?

It is looked down upon to pirate software in a software based forum. You might think its funny but it really isn't.
EveryOS #8
Posted 01 June 2018 - 12:20 PM
I had have minecraftedu (so in a way I do have minecraft), and there is no verification when you download minecraft from files.minecraftforge.net
SquidDev #9
Posted 01 June 2018 - 12:26 PM
I had have minecraftedu (so in a way I do have minecraft), and there is no verification when you download minecraft from files.minecraftforge.net
Your point being? Piracy isn't limited to torrents, it's any attempt to subvert the normal payment requirements of a piece of software. The whole issue is you're basically saying "I don't think developers deserved to be payed for their work", which is obviously rather problematic on a forum populated largely by programmers.
EveryOS #10
Posted 01 June 2018 - 12:32 PM
I had have minecraftedu (so in a way I do have minecraft)
That, I believe, was legally obtained, and it is basically minecraft
EveryOS #11
Posted 01 June 2018 - 02:00 PM
In addition I have Xbox 360 edition, legally obtained. I'll get the cpu edition when I turn 18
H4X0RZ #12
Posted 04 June 2018 - 04:29 PM
Ok? Still, what's your point?
Sewbacca #13
Posted 28 June 2018 - 04:26 PM
For crying out loud, Minecraft costs the same as 4 cups of coffee or 3 beers.

Erm… Where do you buy your coffee? I mean, where does a cup of coffee cost $6? :lol:/>
Nothy #14
Posted 09 July 2018 - 04:36 PM
Erm… Where do you buy your coffee? I mean, where does a cup of coffee cost $6? :lol:/>

Stockholm, Sweden