Jump to content




Negative line number for error debug info


13 replies to this topic

#1 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 31 May 2018 - 04:14 PM

Posted Image

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 by EveryOS, 31 May 2018 - 04:19 PM.


#2 Bomb Bloke

    Hobbyist Coder

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

Posted 31 May 2018 - 04: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.

#3 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 31 May 2018 - 04:55 PM

Not CC:Tweaked, just CC dev environment run with gradlew runClient

#4 SquidDev

    Frickin' laser beams | Resident Necromancer

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

Posted 31 May 2018 - 05: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.

View PostEveryOS, on 31 May 2018 - 04:55 PM, said:

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 by SquidDev, 31 May 2018 - 05:59 PM.


#5 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 31 May 2018 - 06:16 PM

Thanks, did not really think about that
Clarification: As in, the first half of that comment

Edited by EveryOS, 31 May 2018 - 06:16 PM.


#6 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 31 May 2018 - 06:23 PM

View PostSquidDev, on 31 May 2018 - 05:59 PM, said:

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?

#7 Desolstice

  • Members
  • 7 posts

Posted 31 May 2018 - 11:58 PM

View PostEveryOS, on 31 May 2018 - 06:23 PM, said:

View PostSquidDev, on 31 May 2018 - 05:59 PM, said:

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.

#8 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 01 June 2018 - 11:20 AM

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

#9 SquidDev

    Frickin' laser beams | Resident Necromancer

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

Posted 01 June 2018 - 11:26 AM

View PostEveryOS, on 01 June 2018 - 11:20 AM, said:

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.

#10 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 01 June 2018 - 11:32 AM

View PostEveryOS, on 01 June 2018 - 11:20 AM, said:

I had have minecraftedu (so in a way I do have minecraft)
That, I believe, was legally obtained, and it is basically minecraft

#11 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 01 June 2018 - 01:00 PM

In addition I have Xbox 360 edition, legally obtained. I'll get the cpu edition when I turn 18

#12 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 04 June 2018 - 03:29 PM

Ok? Still, what's your point?

#13 Sewbacca

  • Members
  • 450 posts
  • LocationStar Wars

Posted 28 June 2018 - 03:26 PM

View PostSquidDev, on 31 May 2018 - 05:59 PM, said:

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:

#14 Nothy

  • Members
  • 250 posts
  • LocationMars

Posted 09 July 2018 - 03:36 PM

View PostSewbacca, on 28 June 2018 - 03:26 PM, said:

Erm... Where do you buy your coffee? I mean, where does a cup of coffee cost $6? :lol:

Stockholm, Sweden





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users