DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • August 18, 2019, 10:43:21 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Quick basic questions  (Read 3366 times)
0 Members and 1 Guest are viewing this topic.
Edrick
Guest
« on: February 01, 2006, 07:54:14 PM »

I have a couple basic questions conerning module construction.

My main query is what does the vertxtloc field do in the $info array?
Another question I have is other than module_addhook, what does _install have to worry about?

Thanks in advance,
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #1 on: February 01, 2006, 07:55:56 PM »

1) It allows for Lonny's Version Checker to find that file and check against your file's version to see if there has been a version change or update.

2) Other than adding hooks? anything that you want to do during install (Making Tables, Running Queries, Checking Stuff, Setting a Person with a Pref).
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Edrick
Guest
« Reply #2 on: February 01, 2006, 08:00:36 PM »

Cool - thanks for the quick reply.
Logged
Edrick
Guest
« Reply #3 on: February 01, 2006, 08:18:40 PM »

Hate to double-post, but I have another question.

What is tlschema?  What file is it located in?  Should it already be available to me once the code in my module begins to run?
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #4 on: February 01, 2006, 09:41:46 PM »

Yes, it is always available (as it is require_once()d in common.php).

tlschema() reverts the current translation schema to the one used before.

tlschema("myschema") sets the current translation schema to "myschema"...

Code:
tlschmema("1st"); // schema is now "1st"
tlschema("2nd"); // schema is now "2nd"
tlschema("3rd"); // Guess what ;)
tlschema(); // Now it's "2nd" again

This is necessary for correct translations of your game.

Normally you only need to worry about this, when adding navs to the village section... (There are more than enough examples of how you should do it... Wink )
Logged

Running for more than three years now:
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
116 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search