Jump to content




OS dont work, black screen and nothing happens(and sometimes an error that i cant see cause it clears too fast)


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

#1 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 21 April 2013 - 01:36 AM

The code is in github:

Please comment if you commit cause i dont check it regularly

https://github.com/urielsalis/UOS
I aisled the problem to the file called PartManager, but i dont find anything there

#2 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 21 April 2013 - 02:55 AM

Maybe tell us more about what's supposed to happen...

PS:
table.size = function(tbl)
  local count = 0
  for _,__ in pairs(tbl) do
    count = count + 1
  end
  return count
end
?
just do #tableName

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 21 April 2013 - 03:03 AM

View PostremiX, on 21 April 2013 - 02:55 AM, said:

PS:
table.size = function(tbl)
  local count = 0
  for _,__ in pairs(tbl) do
	count = count + 1
  end
  return count
end
?
just do #tableName
Lol, that came from NeverCast's Top Coroutine Override thingy.

EDIT: Pretty much the first 143 lines are all NeverCast's...

Edited by theoriginalbit, 21 April 2013 - 03:07 AM.


#4 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 21 April 2013 - 08:55 AM

Yes, i think that is the problem

#5 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 21 April 2013 - 08:59 AM

View PostremiX, on 21 April 2013 - 02:55 AM, said:

Maybe tell us more about what's supposed to happen...

PS:
table.size = function(tbl)
  local count = 0
  for _,__ in pairs(tbl) do
    count = count + 1
  end
  return count
end
?
just do #tableName

Using the "#" operator only counts numeric indices up until a nil value. His function makes it so that the length of this table

t = {
 [1] = 4,
 [2] = 2,
 [3] = 0,

 [5] = 3,
 foo = 'bar',
 spam = 'eggs'
}

would evaluate to 6, and not 3 with the regular old hash symbol.

#6 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 21 April 2013 - 11:15 AM

I deleted the first part and i detected that the problem is with the partition part that gives a too long without yelding error, so it its doing nothing while its on a loop(cause parallel then gives me that error)

#7 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 22 April 2013 - 01:12 PM

I edited the main post with the new code





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users