wmlparser3.py preprocess and ignored tags

Discussion of all aspects of the game engine, including development of new and existing features.

Moderator: Forum Moderators

Post Reply
Smok
Posts: 53
Joined: June 14th, 2016, 11:52 am

wmlparser3.py preprocess and ignored tags

Post by Smok »

When I parse file with wmlparser3.py i don't get tags that are macros or are between #ifdef MULTIPLAYER #ednif statements. It's quite logical that preprocessor make parser ignore them, but I actualy want to get this tags. I want to be able to load eras, units, macros etc. to edit them.
User avatar
Celtic_Minstrel
Developer
Posts: 2166
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: wmlparser3.py preprocess and ignored tags

Post by Celtic_Minstrel »

Um... it takes a list of preprocessor defines, so just include MULTIPLAYER in that?
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
Post Reply