Page 1 of 1

cannot join mp game, checksums differ

Posted: 28 Oct 2007, 21:38
by walmis
Hello,

I was trying to join a multiplayer game, but everytime I tried, i got kicked out with a dialog box saying my mod versions mismach, but they dont. I even asked one guy to do a md5sum on the file, checksums matched, but he can join and i can't, how come?

I tried two versions of spring, one from ubuntu repository, and one i compiled from svn, both with the same result.
The mod is Balanced annihilation 5.8, haven't tried others
OS: ubuntu 7.10

:|

Code: Select all

Using read-write data directory: /home/walmis/.spring/
Using read-only  data directory: /usr/share/games/spring/
Using read-only  data directory: /usr/lib/spring/
Connecting to server
Connected to 77.220.37.59:8452 using number 3
Using script Commanders
Map: Green_Fields.smf
Mod: "Balanced Annihilation V5.8" from BA58.sd7
TransportHover: 0 
Opening map file
Loading Map
Loading detail textures
Creating overhead texture
Creating ground shading
Loading tile file
Reading tiles
Reading tile map
Creating projectile texture
Number of damage types: 42
Loading units and weapons
Initializing map features
Generating trees
Parsing unit icons
Creating unit textures
Reading estimate path costs
Creating sky
LUARULES-MAIN  (GADGETS)
LUARULES-DRAW  (GADGETS)
Spring 0.75b2
Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
LuaUI: bound F11 to the widget selector
LuaUI: bound CTRL+F11 to tweak mode
LuaUI v0.2
Mod checksums differ: local: 428783044; remote: 1314280966 (BA58.sd7)
Content error: Your mod differs from the host's mod. This may be caused by a
missing archive, a corrupted download, or there may even be
2 different versions in circulation. Make sure you and the host
have installed the chosen mod and it's dependencies and
consider redownloading the mod.

Posted: 28 Oct 2007, 21:41
by Snipawolf
Content error: Your mod differs from the host's mod. This may be caused by a missing archive, a corrupted download, or there may even be
2 different versions in circulation. Make sure you and the host
have installed the chosen mod and it's dependencies and
consider redownloading the mod.
This is undoubtebly your problem. You have an edited file, or you and the host have a different file.

Make sure you are up to date.

Edit: Otherwise, it may be that you are running linux. I didn't read your whole post. I am not sure of linux's capabilities with Spring.

Posted: 28 Oct 2007, 21:47
by tombom
I even asked one guy to do a md5sum on the file, checksums matched, but he can join and i can't, how come?
Pretty sure they are the same file and Linux should work fine.

What lobby are you using? I don't think it should affect it but...

Posted: 28 Oct 2007, 21:49
by walmis
I'm using springlobby-0.0.1.0696

Posted: 28 Oct 2007, 21:55
by Tobi
Does the mod load when you just run spring directly? (without lobby)

Posted: 28 Oct 2007, 21:58
by walmis
Yep, everything's just fine except online play

Posted: 29 Oct 2007, 13:58
by walmis
Done some source hacking and found the problem..

It appears that the function:
unsigned int CArchiveScanner::GetModChecksum(const string& root)

Generates checksum for the mod file AND it's dependencies

according to the source comment
/** Get checksum of all required archives depending on selected mod. */
it does the job, but the server part doesn't

[ARCHIVE9]
{
Name=BA58.sd7;
Path=/home/walmis/.spring/mods/;
Modified=1193587195;
Checksum=1314280966;
Replaced=;
NumMaps=0;
[MOD]
{
Name=Balanced Annihilation V5.8;
Description=Moooooo!;
ModType=1;
NumDependencies=3;
Depend0=springcontent.sdz;
Depend1=otacontent.sdz;
Depend2=tatextures.sdz;

NumReplaces=0;
}
}


The server sends a checksum for BA58.sd7 only, and therefore i get a mismatch.

But now the big question, why do I get this problem and others don't?

Re: cannot join mp game, checksums differ

Posted: 29 Oct 2007, 18:37
by rcdraco
walmis wrote:Hello,

I was trying to join a multiplayer game, but everytime I tried, i got kicked out with a dialog box saying my mod versions mismach, but they dont. I even asked one guy to do a md5sum on the file, checksums matched, but he can join and i can't, how come?

I tried two versions of spring, one from ubuntu repository, and one i compiled from svn, both with the same result.
The mod is Balanced annihilation 5.8, haven't tried others
OS: ubuntu 7.10

:|

Code: Select all

Using read-write data directory: /home/walmis/.spring/
Using read-only  data directory: /usr/share/games/spring/
Using read-only  data directory: /usr/lib/spring/
Connecting to server
Connected to 77.220.37.59:8452 using number 3
Using script Commanders
Map: Green_Fields.smf
Mod: "Balanced Annihilation V5.8" from BA58.sd7
TransportHover: 0 
Opening map file
Loading Map
Loading detail textures
Creating overhead texture
Creating ground shading
Loading tile file
Reading tiles
Reading tile map
Creating projectile texture
Number of damage types: 42
Loading units and weapons
Initializing map features
Generating trees
Parsing unit icons
Creating unit textures
Reading estimate path costs
Creating sky
LUARULES-MAIN  (GADGETS)
LUARULES-DRAW  (GADGETS)
Spring 0.75b2
Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
LuaUI: bound F11 to the widget selector
LuaUI: bound CTRL+F11 to tweak mode
LuaUI v0.2
Mod checksums differ: local: 428783044; remote: 1314280966 (BA58.sd7)
Content error: Your mod differs from the host's mod. This may be caused by a
missing archive, a corrupted download, or there may even be
2 different versions in circulation. Make sure you and the host
have installed the chosen mod and it's dependencies and
consider redownloading the mod.
We use the current version, try a reinstall of the version off of this site, and redownload the mods you need, etc. The SVN version contains a lot of experimental features.

Posted: 29 Oct 2007, 21:28
by walmis
the thing is, i tried both. Anyways i got it fixed.