I am in the process of trying to merge some of the changes made in the Orbis mod with Fall Further and it involved some modifications in the pythons. I have a feeling, based upon programming experience that I have introduced some undefined variables (i.e. no type assigned to them) that MAY be causing some errors when BTS is trying load the pythons ("Init python").
Note that I was FULLY expecting some errors on the initial attempt to run the modified XMLs and pythons, but the errors I'm getting aren't terribly explanatory.
Hopefully (and you'll probably tell me that I should NOT be messing around with the pythons!!! That's what I would tell any users of programmers that I've written...
) you can tell me where I might look to investigate the following errors.
The first error I get is: Traceback (most recent call last):
Followed by:
File "<string>", line 1, in ? (the question mark isn't helping!!!)
File "<string>", line 52, in load_module
File "CVEventInterface", line 14, in ? (I hadn't made ANY changes in this python...)
File "<string>, line 52, in load_module
File "CVCustomEventManager", line 23, in ?
File "<string>", line 52, in load_module
(I'm picking up a DEFINITE pattern here... The "<string>" sure seems to indicate that I have an untyped variable. I'm going to drop the "File "<string>" message since it appears between each of the following messages!!)
File "CVEventManager", line 11, in ?
File "CVScreensInterface", line 940, in ?
Then I get the error "NameError" followed by a colon
)
name "MERCENARY_CHOOSER" is not defined
Failed to load python module CVEventInterface
Obviously the "MERCENARY_CHOOSER" is the problem. Any ideas on where this needs to be defined? I added a directory titled "Mercenaries" from Orbis that has a python file named "CvMercenaryChooser.py" that I THOUGHT would have provided the needed reference. Based upon my preliminary review, this capability seems pretty neat in Orbis given what I perceive it to permit. There are all kinds of references in the Orbis pythons to this ability.
As a side question, is there a good tool to find a specific referenced line within an XML? For example, I have an error in loading the art definitions (CIV4ArtDefines_Unit.xml) that references a specific line # (25420). Is there any editing tool that I could enter this line and actually have it go to it (Word sure doesn't work and a line editor I downloaded doesn't seem to help either).
Thanks and my apologies for being so freakin' lengthy.
Note that I was FULLY expecting some errors on the initial attempt to run the modified XMLs and pythons, but the errors I'm getting aren't terribly explanatory.

Hopefully (and you'll probably tell me that I should NOT be messing around with the pythons!!! That's what I would tell any users of programmers that I've written...

The first error I get is: Traceback (most recent call last):
Followed by:
File "<string>", line 1, in ? (the question mark isn't helping!!!)
File "<string>", line 52, in load_module
File "CVEventInterface", line 14, in ? (I hadn't made ANY changes in this python...)
File "<string>, line 52, in load_module
File "CVCustomEventManager", line 23, in ?
File "<string>", line 52, in load_module
(I'm picking up a DEFINITE pattern here... The "<string>" sure seems to indicate that I have an untyped variable. I'm going to drop the "File "<string>" message since it appears between each of the following messages!!)
File "CVEventManager", line 11, in ?
File "CVScreensInterface", line 940, in ?
Then I get the error "NameError" followed by a colon

name "MERCENARY_CHOOSER" is not defined
Failed to load python module CVEventInterface
Obviously the "MERCENARY_CHOOSER" is the problem. Any ideas on where this needs to be defined? I added a directory titled "Mercenaries" from Orbis that has a python file named "CvMercenaryChooser.py" that I THOUGHT would have provided the needed reference. Based upon my preliminary review, this capability seems pretty neat in Orbis given what I perceive it to permit. There are all kinds of references in the Orbis pythons to this ability.
As a side question, is there a good tool to find a specific referenced line within an XML? For example, I have an error in loading the art definitions (CIV4ArtDefines_Unit.xml) that references a specific line # (25420). Is there any editing tool that I could enter this line and actually have it go to it (Word sure doesn't work and a line editor I downloaded doesn't seem to help either).
Thanks and my apologies for being so freakin' lengthy.