Possible to create a mod that disables surrendering? (GC2:DL)

Hey, sorry if this has come up before but I couldn't find anything through the search system. I'm playing the game without any addons, and while it's fun, it annoys the crap out of me when I'm waging war with some race and they decide to give all their shit to a random neighbour instead, probably one that's been doing nothing but research all the time and now has a huge advantage.

Anyhow, I guess it doesn't really matter the motives. I just want to know how hard it would be to remove that option from the trade list. I've read through the modding guide a little but couldn't find any mention of which file deals with trading. Since you can disable tech trading I suppose it would make sense if there was a trade list file like that, in the worst case scenario it's hardcoded into some AI routine I suppose. :| Hell even disabling trading altogether would be a preferable option to keeping the surrendering nonsense around.

If anyone has a clue on how to go about something like this, please enlighten me. =)
3,842 views 8 replies
Reply #1 Top
When you start a new game you can toggle off surrenders.
Reply #2 Top
Its right next to the victory type toggles.
Reply #3 Top
I disabled surrenders for quite a while. I've been giving them a go again in my last couple of games, and I have to say that it still seems pretty random, with the possibility of a distinct bias against surrendering to the human player. They surrender to their persecutors or someone they barely know even when they've had Close relations with me for ages and my military is better than what their's was.

Still, I'm probably going to leave them enabled for a while because the craziness does shake the map up refreshingly sometimes.
Reply #4 Top
Hum, that must be something they added in one of the expansions. Like I said, I'm playing just the base game without either of the expansions. The only toggles I get on my screen are for Tech Trading, Blind Exploration and Minor Races.

The only reference I found to the surrendering in the GC2IDE editor are in the conversation files. Perhaps just getting rid of those conversations makes it unable to occur - on the other hand all it might do is crash the game. :P Does anyone know what the numbers besides speaker and listener mean in the dialogue? If those are the conditions for it to occur perhaps I can just set them beyond any reasonable chance.
Reply #5 Top
I'll have to wait until i get home to check out the DL screen.
Reply #6 Top
DL does not have that option, and it is not something that can be modded in.
Reply #7 Top
The question is why. The flags for disabling part of the trade options are already in the base game (ie. disabling tech trade), so you'd think that unless they were purposefully holding back features from the start it would be one of the easiest things to mod. Unless the design is just sloppy.
Reply #8 Top
Actually, scrap that, the guy just didn't know what he was talking about. I played through a game with 4 computers using just a modified dialogue file that didn't contain any of the lines the computer would normally use when surrendering to an ally. And it seemed to work just fine as the only surrendering that occured was towards the invading party, even if the conditions would've normally almost definitely prompted otherwise.

It's a 5-minute hack and I doubt anyone else is still playing just DL so I won't bother posting the file here, but knowing in itself that just removing the dialogue effectively disables some options makes it easy to condition the game exactly how you like.