Creating Libraries and Modules

From ADRIFT 5 Manual Wiki
Revision as of 13:24, 13 August 2013 by Saabie (Talk | contribs) (Exporting your Module)

Jump to: navigation, search

ADRIFT 5 lets you create your own libraries to replace or add features to the standard library, and export it as a .AMF file that you can use in all of your own games, or publish on the ADRIFT web site for other people to use.

Construction.gif

Libraries and Modules

The same .AMF file can be used as both a library and as a module, the only difference is in the way you use it.

A module can be manually imported into a game at any time, simply by choosing "Import" from the main menu and selecting "Module":

MenuImport.jpg

A Library is just a module which is automatically imported whenever you begin a new game, and is automatically re-imported if a new version of the library has replaced the old one.

A new library is added to ADRIFT by going to the Libraries page of Settings and pressing the "Add New Library" button.

LibrarySettings.jpg

Reserving a key prefix

If you think you might ever share your module with anyone else then you should go to the bottom of the Options#Advanced_Tab to check which prefix codes are being used by other people, decide what prefix you want to use (your initials followed by an underscore "_" character for example) then add it to the list so that nobody else uses the same one.

Creating a Module

Create a NEW file in the developer for your module, then go to the Advanced page of the Options and enter your prefix code into the "Key Prefix" field.

Even if you are only making a module for your own use, you still need to specify a key prefix so that none of the keys in your module will be the same as any of the keys in the game files that you load it into.

Player Perspective

If you are creating a module for other people to use, or just want the option to use different player perspectives in your own games, then all of your text output needs to take this into consideration.

Exporting your Module

A copy of the module can be exported as a .AMF file at any time, simply by choosing "Export" from the main menu and selecting "Module":

MenuExport.jpg


<<< Choose Your Own AdventureMain PageADRIFT Reference: Locations >>>