I need an explaination...

Users who are viewing this thread

Fujiwara

Sergeant at Arms
I am working on all the coding aspects of the Onin no Ran mod using the tools, and I ran across this bug after modding the following files:

factions.txt
troops.txt
items.txt
constants.txt
parties.txt
map.txt
(last two using Thorgrim's map editor)

I'm not looking for help in debugging, just an explaination of what the bug means so I know where to start looking for it. Thanks!
 
I'm afraid I don't open doc files from the net, so I can't help you unless you put it in a less virus prone format.
 
Thorn said:
Too many faction Fujiwara, makes perfect sense (num faction <= max_num_factions)

Where do you get 'max_num_factions'? And what number is that?

Or is that what the doc file says? If so, what is the max?
 
The error appears to be :

num_factions <= max_num_factions

Which, of course, should not be a problem, if num_factions is less than or equal to max-num_factions. If it were > max_num_factions, I could see the problem...

Where is max_num_factions? I don't know. It's not in any of the python files.

Here it is again
 
Fujiwara said:
The error appears to be :

num_factions <= max_num_factions

Which, of course, should not be a problem, if num_factions is less than or equal to max-num_factions. If it were > max_num_factions, I could see the problem...


I don't think it is necessarily telling you what the problem is, but just telling you there is a line with a problem, i.e that the line "num_factions <= max_num_factions" is not true.

Where is max_num_factions? I don't know. It's not in any of the python files.

No idea. How many factions do you have?
 
Hrmph...you would ask while I'm not on the non-networked box where I do all my hacking :smile:...I believe the number of factions is the original number of factions plus 8 (the ones I created).

Edit:

If the error is indeed telling me, as you say above, that:

num_factions <= max_num_factions

is not true, that would make considerable more sense as to why an exception was raised in the firts place. Of course, that brings me back to my orginal question: what is the value of max_num_factions?
 
Well, it does seem you're out of luck. 7 looks like being the maximum number of extra factions beyond the originals.

I have no idea how to reset the maximum faction number. Seems like its hardcoded. You can try deleting a few unecessary ones from the original list, although that might screw with the hardcoded stuff. And would not bode well for future versions of M&B should armagan & ipek decide to use them.

I guess the place to check would be troops & party templates. If you don't see some of the factions used there, I suppose you could try deleting them.

At any rate, do you really need that many new factions? I mean, a lot of naughty folks can just be huddled under the outlaws faction & good guys under commoners.
 
Jup we really need those factions, simple as that. Ofcourse we can fiddle a little, but if we can we always will :smile:
 
Khalid ibn Walid said:
At any rate, do you really need that many new factions? I mean, a lot of naughty folks can just be huddled under the outlaws faction & good guys under commoners.

Yes; medieval Japan was highly fractitious.

I managed to eliminate the obviously useless factions (undead, slavers, etc) and modified the other files as needed to eliminate the bug. I don't like it though...Its Lubarsky's law of Cybernetic Entymology: there is always one more bug. This one just happens to lie dormant below the surface, waiting for some over-ambitious modder to come along...
 
Back
Top Bottom