Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
AgentPaper

NameError when calling script [Resolved]

Question

I've got a script that looks like this:

 

 

class Interpreter
def BH_Load_Map
# Do stuff
end
end

 

Then, in a auto-run event, I have this:

 

Script: BH_Load_Map

 

From what I know, this should run the BG_Load_Map script. However, instead I get an error:

 

NameError occurred while running script.

 

uninitialized constant Interpreter::BH_Load_Map

 

This seems like a really simple thing to do, but apparently I've ***ed up somewhere along the line and I can't for the life of me figure out where. Any help?

 

 

Edit: Nevermind. Apparently you can't capitalize method names. It's working now. (well it's not, but it's a different problem now, heh)

Edited by AgentPaper

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Edit: Nevermind. Apparently you can't capitalize method names. It's working now. (well it's not, but it's a different problem now, heh)

Technically you can, but since capital letters are specific to constant names, it's best to avoid capitalizing method names, it would only confuse the interpreter.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...