Jump to content




os crashes


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

#1 wilcomega

  • Members
  • 466 posts
  • LocationHolland

Posted 16 February 2013 - 02:06 AM

i have a problem:

this is the code that i want to reveal:
window = { }
window.create = function( name )
--hidden code
end

local function explorer( )
--code that i want to hide
local desktop = window.create( "Desktop" ) --here it errors. "attempt to index ? (a nil value)"
--more hidden code
end

if you need more code to see the problem please PM me. i dont want to give out code just yet

thx in advance, wilcomega

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 16 February 2013 - 04:21 AM

Post the whole code and the errors it's giving you.

#3 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 16 February 2013 - 06:13 AM

Does the line number within the error match up with the call (local desktop = window.create( "Desktop" )) or with something that's WITHIN the actual function defining?

Maybe try changing
window = { }
window.create = function( name )
--hidden code
end

to

window = {
    create = function( name )
        --hidden code
    end
}

Otherwise, try removing the local part of the call. I've experienced where I've called something local it errored, removed it and it worked...

#4 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

Posted 16 February 2013 - 06:16 AM

View PostremiX, on 16 February 2013 - 06:13 AM, said:

window = {
	window.create = function( name )
		--hidden code
	end
}

Now that would kill Lua in an instant.
Maybe...

window = {
	create = function( name )
		--hidden code
	end
}

But he indeed has to give us more information in order to get help.

#5 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 16 February 2013 - 06:22 AM

View PostLBPHacker, on 16 February 2013 - 06:16 AM, said:

-- snip

Woops, was meant to remove the 'window.' xD I just copied and pasted it ,_,





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users