ID:159002
 
Is there any way to do this? In case you don't understand me, heres what i mean.

I start to make game.

A lib online catches my eye and it's something i really want in my game.

So how do i put the lib in my game?
You download it first, then you go to the dme file on the left. Click on it, and copy the stuff
betweeen
// BEGIN_INCLUDE
(this stuff here)
// END_INCLUDE

Or that's how I did it.
Open your project in Dream Maker and go to the file tab. At the bottom of the file list you should see a redish folder called "Lib". Click the [+] next to it to open the list of libraries you have downloaded. Then it's as simple as checking whichever one you want to use.



Yotoko64 wrote:
You download it first, then you go to the dme file on the left. Click on it, and copy the stuff
betweeen
// BEGIN_INCLUDE
(this stuff here)
// END_INCLUDE

Or that's how I did it.

That is far more work than necessary, as you would also have to copy each of those files in the includes into your project's directory. It is much faster to use the built-in system.
When working on any project in Dream Maker, there should be a folder at the bottom of your file tree called Lib. Open that up and it will show you a list of all libraries that you've downloaded from BYOND.com. If you check the box on one, it will be included in your game.
Just FYI, an alternative approach is to manually use the #include directive yourself in one of your .DM files. It goes like:
#include <AuthorKey/LibName>
//e.g.
#include <Deadron/TextHandling>


This may help make the library-includage more organized, by putting the including directive above where the code begins to use it, etc. Note that where preprocessor directives are placed, order-wise, matters though. So you can't refer to parts of a library in your code before the #include line.
Also, doing that is a must if you need to "override" #defines of the library you use, but of course this only applies to such specific cases.