IMPORTANT - Things you should know!

How, what and why to code in BYOND.
Post Reply
User avatar
Cheridan
Joined: Tue Apr 15, 2014 6:04 am
Byond Username: Cheridan

IMPORTANT - Things you should know!

Post by Cheridan » #3660

This is a directory of useful things, that I hijacked an earlier post for so we didn't have so many stickies.
====Creating a Database Server for Testing====
https://tgstation13.org/phpBB/viewtopic.php?f=5&t=16142

====Link your github account to the forum====
https://tgstation13.org/phpBB/viewtopic.php?f=5&t=13141

====Public runtime logs====
https://tgstation13.org/phpBB/viewtopic.php?f=5&t=3996


==== The DME and You====
Hopefully this will cut down on needless commits/fixes in the future.

The DME.

What is a DME, you ask? Well, it's the file that the Dream Maker compiler reads to figure out which files to include in your project!

When opened in the code editor, the file looks something like this:
Image

This is a list of all those files that are 'ticked' in the file directory that you can see at the left! If you tick or untick a file and then compile the code, the DME will automatically update with your changes!

When do I commit the DME?
If you've added or removed/unticked a file, you'll need to commit the DME so that the complier knows that you're including those files now. If you don't, the code might not compile at all, because code in another file might reference an object in a file that wasn't included! :o
If you haven't made any new file additions, deletions, or renaming, then you shouldn't need to commit the DME at all! Less work for you! :D

What to do when committing the DME.
Before you commit the DME (ideally, before you even start coding), you'll want to change a certain option in the compiler.

Go to Build, and select the Preferences for tgstation... option.
Image

Then this little window will pop up! Make sure the Automatically set FILE_DIR for sub-directories option is unticked!
Image

What this little option does when ticked is, for example, allow you to use:

Code: Select all

playsound(src.loc, 'pop.ogg', 50, 0)
instead of:

Code: Select all

playsound(src.loc, 'sound/effects/pop.ogg', 50, 0)
As it will automatically search for those files! :shock:

This is great, if you're a lazy jerk! :oops: Unfortunately, this also greatly increases the amount of time needed for the compiler to compile, and adds a bunch of lines to the DME. So untick it! :ugeek:
Image
/tg/station spriter, admin, and headcoder. Feel free to contact me via PM with questions, concerns, or requests.
User avatar
Cheridan
Joined: Tue Apr 15, 2014 6:04 am
Byond Username: Cheridan

Re: IMPORTANT - The DME and You!

Post by Cheridan » #106881

bump
Image
/tg/station spriter, admin, and headcoder. Feel free to contact me via PM with questions, concerns, or requests.
User avatar
MisterPerson
Board Moderator
Joined: Tue Apr 15, 2014 4:26 pm
Byond Username: MisterPerson

Re: IMPORTANT - The DME and You!

Post by MisterPerson » #106904

Considering a lot of people don't know about this one, I'll just leave it as a sticky
I code for the code project and moderate the code sections of the forums.

Feedback is dumb and it doesn't matter
Post Reply

Who is online

Users browsing this forum: No registered users