Log in

View Full Version : Definitions for scripting



zamp
01-02-2013, 02:32 AM
Would be nice to have defines/consts for every base id as a header file or something.

Remembering 0x0001CF95 (mutant npc?) etc. Isn't that easy.

foxtacles
01-02-2013, 07:37 AM
Yes, you are right. I've been planning this. It isn't too difficult either, as we already have all the data in the database. Just needs parsing.

EDIT done:
https://github.com/Foxtacles/vaultmp/blob/master/source/vaultscript/records.h

Also all related functions are optionally strongly typed (at least in C++). By defining GAME_FALLOUT3 or GAME_NEWVEGAS before the inclusion of vaultscript.h, all functions and callbacks are typed so they only accept data members either from the Fallout 3 or New Vegas namespace. If none is defined, it falls back to the generic type.

In C, only one "namespace" is available at a time controlled by the above defines. This is due to the numerous enumerator name clashes.

zamp
01-03-2013, 10:34 PM
Holy crap that list is huge :eek: