Thanks for the mod mate. This is exactly what always annoyed my perfectionist ass very much. That one tiny bunch of "stolen" XP. Even though I called dibs :-)
One thing though: Might not count as a bug, but summoned creatures won't be killed by NPCs either. Together with "infinite summon time" that makes a shitty combination :-)
summoned creatures won't be killed by NPCs either.
Oops, haven't thought of that. But if there is a way to tell whether the killed monster is a summon, it should be fairly easy to fix. Maybe with self.aivar[AIV_SummonTime]? Will have to give it a try.
Hi I love this idea for a mod but have a mod request very similar to this to make (an optional file, maybe?).
I play co op with my partner and we noticed a lot of monsters we kill don't award each other experience, we know the co op mod is amazing for working at all so we don't blame it for having a few issues but having mismatched experience and always feeling like we are missing out is very off-putting to us.
I was wondering if there was a way to make a mod like this that simply awards all 'kills in the area' to the player, no matter who kills what.
So in effect if any npc -monster or human- kills any other monster or human the player gets the experience regardless. Often even in single player you get very annoying parts where you have to 'race' against the npcs to try to get experience and I always hated having to do that.
A perfect example is when Greg turns up at the bandit hideout and starts one shotting bandits... that's MY experience you bastard!
I often fire rain to start that fight just to avoid it but then I have to deal with an angry Greg right after.
I know its a bit of a cheat but it would really smooth out the game for me, especially in co op as even when we kill things fairly it doesn't reward experience properly.
I would never lure things to guards on purpose because I love fighting in gothic so much.
Your mod is so close to what I want and I assume more work has gone into making this work then making my idea?
Are you playing gothiccoop or Splitscreen? The code for giving xp for kill is in ZS_Dead function, it checks if killer is player, or party member: // ------ XP ------ if ((Npc_IsPlayer(other) || (other.aivar[AIV_PARTYMEMBER] == TRUE)) && (self.aivar[AIV_VictoryXPGiven] == FALSE)) { B_GivePlayerXP(self.level * XP_PER_VICTORY); self.aivar[AIV_VictoryXPGiven] = TRUE; }; If you remove this condition, you should achieve what you want. Save this as .d file in system/autorun. I haven't tested, but it should work.
Yeah every now and then when my partner (I'm the host) kills something I will miss out on the experience, its rare and mostly seems to happen when she fires some magic 'through' me, but I noticed with gothiccoop when she throws magic it can often hit the monster twice and that also robs experience if the second blow is the killing one.
I gave it a go and -oh my god you are the best- I still haven't fully tested it on coop but in single player at least it seems to work perfectly, making my gothic experience so much smoother, you deserve all the kudo's in the world :-)
Yea, GothicCoop can be prone to desynchronization and quite buggy (or maybe not quite, last time I played it was one funny bug fiesta :-)). That's why I prefer Splitscreen - there is no desync since both players are on the same game instance. Despite the name, Local-Splitscreen can be also played online, similarly to coop. But it's only for two players, doesn't support DX11 and mods. Nice to hear the script works!
Two players is all I ever play but we do like our quality of life mods... also coop plays Archolos and I love that, the script wont work in Archolos sadly and I don't know how to make it work there but my main issue was gothic 2 and now that's solved I'm a happy player
16 comments
One thing though: Might not count as a bug, but summoned creatures won't be killed by NPCs either. Together with "infinite summon time" that makes a shitty combination :-)
Just put the one (unpacked!) file into <steam>\Gothic II\system\Autorun\
Works like a charm.
I play co op with my partner and we noticed a lot of monsters we kill don't award each other experience, we know the co op mod is amazing for working at all so we don't blame it for having a few issues but having mismatched experience and always feeling like we are missing out is very off-putting to us.
I was wondering if there was a way to make a mod like this that simply awards all 'kills in the area' to the player, no matter who kills what.
So in effect if any npc -monster or human- kills any other monster or human the player gets the experience regardless. Often even in single player you get very annoying parts where you have to 'race' against the npcs to try to get experience and I always hated having to do that.
A perfect example is when Greg turns up at the bandit hideout and starts one shotting bandits... that's MY experience you bastard!
I often fire rain to start that fight just to avoid it but then I have to deal with an angry Greg right after.
I know its a bit of a cheat but it would really smooth out the game for me, especially in co op as even when we kill things fairly it doesn't reward experience properly.
I would never lure things to guards on purpose because I love fighting in gothic so much.
Your mod is so close to what I want and I assume more work has gone into making this work then making my idea?
Novel over, thanks if you read this.
// ------ XP ------
If you remove this condition, you should achieve what you want. Save this as .d file in system/autorun. I haven't tested, but it should work.if ((Npc_IsPlayer(other) || (other.aivar[AIV_PARTYMEMBER] == TRUE))
&& (self.aivar[AIV_VictoryXPGiven] == FALSE))
{
B_GivePlayerXP(self.level * XP_PER_VICTORY);
self.aivar[AIV_VictoryXPGiven] = TRUE;
};
Yeah every now and then when my partner (I'm the host) kills something I will miss out on the experience, its rare and mostly seems to happen when she fires some magic 'through' me, but I noticed with gothiccoop when she throws magic it can often hit the monster twice and that also robs experience if the second blow is the killing one.
I gave it a go and -oh my god you are the best- I still haven't fully tested it on coop but in single player at least it seems to work perfectly, making my gothic experience so much smoother, you deserve all the kudo's in the world :-)