ULX

Author Topic: How do I make my code a module for ULX?  (Read 2965 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
How do I make my code a module for ULX?
« on: October 06, 2011, 07:28:37 PM »
A concerned citizen writes the following in private message; I share with all for all to learn.
Quote from: Some Concerned Citizen
Hey, I'm trying to make some simple addons for ULX, but I'm not sure about something.
When I have the lua files in an addon format, they won't be registered into ULX. But when I have them directly inside the "ULX/lua/ulx/modules/sh" folder, they are registered.
How can i still have them in an addon format, but still have them registered?

For a task such as this, you place your own code files into a folder structure like below.
<Your_addon_name>/lua/ulx/modules/sh

When ULX loads, it should also see your module.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming