ID:160163
Nov 3 2008, 3:56 am
|
|
I know its now possible to do this but not sure as to where to put the code to include the font file any help would be nice.
|
To include any file in the RSC you just need to use it by putting its filename in your code in single quotes (which denote resource files). It will then be added to the resource archive (RSC) on compile.
So, to just include a file without actually using it in your code (DM files) you just need it to use anywhere, even in a 'dummy' place. It seems a little hackish to do this but it's not really any trouble at all so the BYOND Staff doesn't really have to implement a more 'logical' way IMO. Example: proc/my_dummy_proc_AFAFASFA() Just this will already include the files in the RSC on compile. You could make it easier to specify multiple times by using a more convenient syntax, though of course the code should/is never executed so it doesn't matter what you put as long as it compiles with no errors. You could do this: proc/_RSCFiles() This will work fine, though it will generate an <s>error</s> warning as Dream Maker will detect the statement is 'useless'; to bypass this you can just add something like outputting it to null again. EDIT: (Oops above) EDIT2: Thought of a more elegant/good-looking alternative. proc/_RSCFiles() |
In response to Kaioken
|
|
ok thanks ill try that
|
It seems like that'll be in for BYOND 430 (note the date of that post and the release of 429 in the announcement).
As it says in that post, you can use single quotes to put it in...