When I tested my mod in multiplayer, there was a checksum error, even though both versions are the same. When I tried testing the mod without the client cog, it worked. So does anyone know whats wrong with the following client cog, or what else might cause checksum error other that different versions?
Code:
flags=0x240 symbols template canada=+canada local template usa=+usa local template ukingdom=+ukingdom local template russia=+russia local template germany=+germany local template unation=+unation local template china=+china local template nato=+nato local template france=+france local template eunion=+eunion local template japan=+japan local template india=+india local template italy=+italy local template australia=+australia local template philippines=+philippines local template mexico=+mexico local template tmantice=+tmantice local template ffallin=+ffallin local template massassi=+massassi local template swirls=+swirls local int theguy local int thechute local message trigger end # ======================================================================================== code trigger: if (GetSourceRef() == 23) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), canada, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 24) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), usa, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 25) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), ukingdom, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 26) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), russia, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 27) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), germany, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 28) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), china, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 29) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), japan, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 33) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), france, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 34) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), italy, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 35) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), india, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 36) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), mexico, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 37) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), australia, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 38) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), philippines, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 39) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), eunion, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 43) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), nato, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 44) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), unation, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 45) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), tmantice, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 46) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), ffallin, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 47) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), swirls, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } else if(GetSourceRef() == 48) { theguy = GetParam(0); thechute = FireProjectile(GetParam(0), massassi, -1, -1, '0.0, 0.0, 0.0', '0 0 0', 1, 0x20, -1, -1); AttachThingToThingEx(thechute, theguy, 0x8); } return; end