nLineNum = GetM2DARows(-1, sConstructor);
nLine = Random(nLineNum);
nLine = GetM2DARowIdFromRowIndex(-1, nLine, sConstructor);
...
rItem = GetM2DAResource(-1, TS_COLUMN_RESOURCE, nLine, sConstructor);
It appears to me that it selects the entry from the table based on the ID number, and that the ID number needs to also match the row number of the treasure table. That being the case, if I want to expand this (and I can't do it easily either because there is no M2DA prefix in the M2DA_base.GDA for the treasure stuff) then I have to number my new entries the same as the row number or else they will never be generated, which of course could lead to problems down the line if BioWare or someone else releases a mod to these files and my entries get overwritten.
Does anyone have a suggestion as to what I should do to overcome this? There doesn't seem to be a real reason why this was written this way, except perhaps to screw up forward compatibility?





Retour en haut






