wmlparser3.py preprocess and ignored tags

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

Moderators: Forum Moderators, Developers

wmlparser3.py preprocess and ignored tags

Postby Smok » March 17th, 2017, 9:34 am

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.
Posts: 50
Joined: June 14th, 2016, 11:52 am

Re: wmlparser3.py preprocess and ignored tags

Postby Celtic_Minstrel » May 3rd, 2017, 12:15 am

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.
Maintainer of Steelhive.
User avatar
Posts: 919
Joined: August 3rd, 2012, 11:26 pm

Return to Coder’s Corner

Who is online

Users browsing this forum: No registered users and 2 guests