[Help] Having problems with Mod Compatibility

Harkodos

Warlord
Joined
Feb 9, 2016
Messages
197
At present I am trying to make my The Cult of Kefka Mod compatible with others mods, namely my upcoming mod of The Exdeath Empire and all of my other planned future mods (as well as some community mods already released). However, I seem to be having difficulties programming in the ability for my mod to recognize other leaders and have unique greetings for them. All of the text is supposedly programmed in, I just need help getting the Lua code that will trigger the Text to appear.

I've attached the current project I've compiled, minus the Sounds and Art files (because those bloat the file's size over the 10MB limit I'm allowed here on the forum).

I pretty much followed what I observed in other Mods, including referencing whoward69's tutorial on how to set up the files in ModBuddy just to be safe, but I can't seem to pinpoint the problem myself.
 

Attachments

Your AddDiplomacyResponse calls have five arguments, but that function only takes four - you should change, e.g.
Code:
AddDiplomacyResponse("LEADER_KEFKA", "RESPONSE_DEFEATED", "TXT_KEY_LEADER_KEFKA_DEFEATED_%", "TXT_KEY_LEADER_KEFKA_CHILD_DEFEATED_%",500);
to
Code:
AddDiplomacyResponse("LEADER_KEFKA", "RESPONSE_DEFEATED","TXT_KEY_LEADER_KEFKA_CHILD_DEFEATED_%",500);
or change those Adds to Changes, as appropriate (I would personally have RESPONSE_FIRST_GREETING and RESPONSE_DEFEATED be Changed, since those show up only once per game and thus it might be a bit lackluster to use Kefka's generic responses, but Add the others for variety.)
 
The problem still exists it seems. One thing I've noticed when going through the Database Log file is I get this:
Code:
[20681.738] Database::XMLSerializer (Mods/Kefka_ModLeader_Dialogue.xml): 'Row' or 'Delete' expected, got 'Text'.
Unfortunately, inside ModBuddy, it won't give me any error messages, so I can't locate the source of the problem. Any ideas?
 
You're missing the <Row> tags between the table name and the <Type> entry

Something like
Code:
<Buildings>
    <Type> ...
instead of
Code:
<Buildings>
    <Row>
        <Type> ...
or
Code:
    <Row>
        <Type> ...
    </Row>

        <Type> ...
instead of
Code:
    <Row>
        <Type> ...
    </Row>

    <Row>
        <Type>
 
Oh, I'm such a yutz. I just realized I forgot to add the <Language_en_US> around the dialogue. No wonder it hasn't been working!

I think this line of dialogue from my mod sums me up quite nicely today:
Code:
"[I]Oh, WELL, if it isn't Captain Stupid![/I]"

-EDIT-
Yup, that fixed it. Thanks all!
 
Back
Top Bottom