General Barron – User talk

From Bohemia Interactive Community
Revision as of 21:33, 8 September 2009 by General Barron (talk | contribs) (→‎PreProcessor Commands FILE: clarified a little bit)
Jump to navigation Jump to search

Wiki edits

If you come across obvious mistakes (as in the getMagazineCargo article you annotated), feel free to correct the description.
This is, after all, a Wiki, and if you're 100% sure that information is wrong somewhere, just edit it, and leave a note in the edit summary.
If an article should be deleted, notify one of the sysops here, or, if the commands did exist at some point, but has been removed, just put the vbs2-obsolete template into the article.
Thanks, --Kronzky 18:50, 18 January 2009 (CET)

Renaming Pages

If you need a page to be renamed (as in the locationNull case), just ask one of the sysops here to do it. It's easier (and cleaner) than to first delete it, and then having to create a new version. --Kronzky 14:34, 6 May 2009 (CEST)

PreProcessor Commands FILE

gday GB!
would you please share some examples how to use __FILE__:
http://community.bistudio.com/wiki/PreProcessor_Commands#__FILE__
I am trying to get it work in a cpp - more precisely inside an eventhandler path.
Is it even possible there? Some overall working examples of all known cases
would be very much appreciated - cheers!

--.kju 07:56, 5 September 2009 (CEST)


I added a simple example to the linked page. I'm not sure what other types of examples you are looking for.

I haven't tested what it gets replaced with when you use it inside of a config file. You'd have to test it out yourself.

I'd be careful to look out for differences between (a) a converted config (packed via the BI packer), (b) an unconverted config (packed using a community packer), and (c) an unpacked config (#included into a type (b) pbo's config file, but the included file sitting outside of any pbo).

The difference between the above is *when* the macro is processed. For converted configs, all preprocessing is done during the packing process. For unconverted configs, the preprocessing is done when the game is loaded (or when the mission is loaded, for description.ext's).

--General Barron 21:31, 8 September 2009 (CEST)