Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Authoring Kit (http://forums.wolflair.com/forumdisplay.php?f=58)
-   -   Validation everywhere! (http://forums.wolflair.com/showthread.php?t=51467)

KingFrog November 26th, 2014 04:43 PM

Validation everywhere!
 
Hey,

Looking over the code, it appears (to me, at least) as though validation - that is, deciding whether I care how many character points have been spent, or abilities used, etc. before a character enters "Advances" rather than being just in initial creation - is spread over a lot of territory.

I find myself hunting in a lot of places trying to find and either modify or rip out code to get validation working in a way that will function for Traveller (which, again, uses things a bit differently than most games out there owing to its character creation system.)

Is there actually one place I can go to lay hands on the "control switches" for validation, or does that not exist? I ask because in hunting through "things_validation" it appears to have some of the stuff. "miscellaneous" has more. The tabs themselves have some. Does a central set of control variables, tags, or the like exist?

KingFrog

Mathias November 26th, 2014 05:21 PM

Whether you can switch to advancement or not does not depend on whether all the other validation rules have been satisfied. The only thing that matters for that is the <canadvance> element in definition.def.

KingFrog November 26th, 2014 06:00 PM

Ah, there it is. Thanks!

I presume, then, that the remaining validation code is in fact not centralized anywhere? It's not for this purpose, but I'd rather not have spurious messages and red tabs all over the place unless I really need them. :)

Mathias November 27th, 2014 10:42 AM

When I'm not sure where an error message is coming from, I usually find it by finding a text string in the error message itself that looks unique, and then text searching the whole set of files for that text.


All times are GMT -8. The time now is 12:46 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.