IMPORTANT - Things you should know!

How, what and why to code in BYOND.

Moderators: MisterPerson, Code Maintainers

User avatar
Cheridan
 
Joined: Tue Apr 15, 2014 6:04 am
Byond Username: Cheridan

IMPORTANT - Things you should know!

Postby Cheridan » Sun May 04, 2014 6:45 pm #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====
viewtopic.php?f=5&t=16142

====Link your github account to the forum====
viewtopic.php?f=5&t=13141

====Public runtime logs====
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!

Postby Cheridan » Thu Jul 23, 2015 10:39 pm #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!

Postby MisterPerson » Fri Jul 24, 2015 1:25 am #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.

Why realism is stupid:
Spoiler:
Wiz, the project lead of Europa Universalis IV:

Immersion/flavor is playing a WW2 shooter and using a mosin-nagant instead of a laser gun - this is important.

Realism is playing a WW2 shooter and having to spend 2 months in hospital everytime you get shot - stupid and detrimental to gameplay. Nobody actually wants a realistic game, which is why realism arguments are so selectively used.
Source: http://forum.paradoxplaza.com/forum/ind ... t-19679470


Return to Coding

Who is online

Users browsing this forum: No registered users