General Barron – User talk
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)
gday GB!
thanks and sorry for the late response.
Your example makes sense, yet my goal is more complex. First to what I want to achieve:
model = "\myTag\myModel";
MyTag is the prefix the file is in. Either defined in the PBOPREFIX or the
folder name. Unfortunately BI made relative path not possible at many instances.
Here it would have look like: "model = 'myModel'; - if the file is in the
same folder as the config.
Long story short. It is very annoying to set the right path all the time.
Especially if you repath (aka change the container name/location).
The idea was to use the __FILE__ macro to avoid all the hassle like:
model = __FILE__\myModel; model = "__FILE__\myModel";
That is the plan. And that I am unable to get to work. Cheers. --.kju 20:06, 16 September 2009 (CEST)