Hydromancerx
C2C Modder
Updates
- Tweaked Street Cleaner.
- Tweaked Street Cleaner.
There is no and has never been a check for that kind of error. The loading code only checks that the identifier exists and that it does (and you only get the error message in debug mode). That techs start with TECH_ and promotions start with PROMOTION_ is only a convention. For the code all such identifiers are the same (and stored in one big hash table).Actually, I'm surprised this was in the XML and even allowed me to load. Are we supposed to run an external XML check now?
seeing the recent changes is it still wise for a non-modder to update SVN?? i was planning to update this week or so but with the recent changes i would rather have a green light from one of you guys although i am going on vacation on the 15th so i could always wait till i return and then see what problems have been found![]()
No schema checking with the new parser.
You will need the DLL compiled without the #define to get the old parser and its schema checking.
But an easier way would be to use the Internet Explorer to check your schema. I attached a zipped htm file for that. Replace AudioDefines.xml with the XML file you want to check. Then open it in IE from the directory in which you have the XML file.
Uninstalling IE on a Windows machine is hard work so likely you have it (I use Firefox for any surfing but it does not have the XML parser that is needed here).I suppose I must have IE somewhere on this machine. The above does not work in Firefox.![]()
There is no and has never been a check for that kind of error. The loading code only checks that the identifier exists and that it does (and you only get the error message in debug mode). That techs start with TECH_ and promotions start with PROMOTION_ is only a convention. For the code all such identifiers are the same (and stored in one big hash table).
No schema checking with the new parser.
You will need the DLL compiled without the #define to get the old parser and its schema checking.
But an easier way would be to use the Internet Explorer to check your schema. I attached a zipped htm file for that. Replace AudioDefines.xml with the XML file you want to check. Then open it in IE from the directory in which you have the XML file.
Unfortunately schema checking is not all we have lost.The old way also checked the contents of some tags were correct also.
Is it possible to get a copy of of the dll with the old method in? After all we were promised a way to easily turn on/off the new method for us modders.![]()
Anything that is not part of schema checking (the schema also defines some data types that are checked) should not be lost with the new parser.Unfortunately schema checking is not all we have lost.The old way also checked the contents of some tags were correct also.
@TB: You can make a DLL with the old parser by commenting out a single line in the code. Open CvDLLUtilityIFaceBase.h and look for this line:
#define USE_RAPID_XML
DH wants it but TB said he doesn't know how to make one.I believe DH was the one actually asking for this.