Problem with compiling parties.py

Users who are viewing this thread

Astor

Knight at Arms
Hi. I'm currently in the process of disabling all the towns, villages and castles that I won't be using in my mod, but when I got to compile I get this error -

File "process_parties.py", line 69, in <module>
    save_parties<parties>
File "process_parties.py!, line 42, in save_parties
    file.write("%d %d "%(ai_behaviour_object,ai_behaviour_object,))
TypeError: %d format: a number is required, not tuple.

Can anyone help me understand where i'm going wrong?

Cheers, Astor.
 
Astor said:
Hi. I'm currently in the process of disabling all the towns, villages and castles that I won't be using in my mod, but when I got to compile I get this error -

File "process_parties.py", line 69, in <module>
    save_parties<parties>
File "process_parties.py!, line 42, in save_parties
    file.write("%d %d "%(ai_behaviour_object,ai_behaviour_object,))
TypeError: %d format: a number is required, not tuple.

Can anyone help me understand where i'm going wrong?

Cheers, Astor.

Looks like you have the wrong (or missing) info in one of your tuples in module_parties.py.  This could be due to a missing comma.  This is at first glance, I have never gotten this error. How are you disabling them?  Adding the disable flag?  If so, make sure you are doing it right (look for zendar, I think it's there but disabled)
 
Yeah, i've added the 'disabled' flag, copying it from one of the disabled parties, and adding it into the ones I want disabled.

The problem is that they all look fine, but it's still throwing the error up. I'm going through it with a fine-toothed comb right now, but still nada.
 
Astor said:
Yeah, i've added the 'disabled' flag, copying it from one of the disabled parties, and adding it into the ones I want disabled.

The problem is that they all look fine, but it's still throwing the error up. I'm going through it with a fine-toothed comb right now, but still nada.

Remove all the flags you added and compile.  If it goes, then good.  disable one, then compile again.  If it fails, then you are doing it wrong.  You should post what you did so we can more easily diagnose the error.
 
jik said:
Astor said:
Yeah, i've added the 'disabled' flag, copying it from one of the disabled parties, and adding it into the ones I want disabled.

The problem is that they all look fine, but it's still throwing the error up. I'm going through it with a fine-toothed comb right now, but still nada.

Remove all the flags you added and compile.  If it goes, then good.  disable one, then compile again.  If it fails, then you are doing it wrong.  You should post what you did so we can more easily diagnose the error.

I've managed to fix it now. One of the villages was missing it's 'pf_village' flag. Can't believe I missed that.  :roll:

Thank you for your help.
 
Back
Top Bottom