Lineage 2 Tower Forum

Full Version: Issue with Modules
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I've been trying for few days now to get a grip on how to work with modules but no luck so far ... error below

module 'mymodule' not found:
no field.package.preload['mymodule']

Can any1 pls shed some light on this subject?
Basically I'd like to know the following:
- how to create my own module with some function inside
- how to use the functions from my module in a script

Any piece of code or small example would be greatly appreciated, TY
Cmon dudes ... there must be some1 willing to post a reply
Up Up,
I would also like to know the basics of creating and using modules
lua modules are usualy created in c++, if you like to create some I can post a lua api used by us.
(04-15-2013 15:19 PM)ClockMan Wrote: [ -> ]lua modules are usualy created in c++, if you like to create some I can post a lua api used by us.

Yes ClockMan, I would like that very much TY.
That is a lib used in static way in L2Tower 1.4.1.95:
(04-18-2013 10:49 AM)ClockMan Wrote: [ -> ]That is a lib used in static way in L2Tower 1.4.1.95:

Thank you ClockMan Big Grin

Edit: On a quick look on that lib's documentation my jaw dropped straight on the floor and I was thinking [OMG ... the possibilities] so ... a big :ThumbUp: for you ClockMan Wink
Reference URL's