Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Client cog and checksum
Client cog and checksum
2001-08-23, 2:40 PM #1
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
2001-08-23, 3:33 PM #2
Giving him that file that makes checksum and make sure for him to use that should solve.

Same files and checksum doesn't happen.

You can gob the whole thing and let him use so no single file can be different.

------------------
http://millennium.massassi.net/ - Millennium
2001-08-23, 5:12 PM #3
I did gob the whole thing, and both versions are exactly the same.
When the client cog is included in the gob, there is checksum error.
When the client cog is not in the gob, there is no checksum error.
So I think the client cog is causing checksum error, so whats wrong with the cog?

↑ Up to the top!