Compiled 0.71b1 (not modified) can't sync in lobby?

Compiled 0.71b1 (not modified) can't sync in lobby?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Compiled 0.71b1 (not modified) can't sync in lobby?

Post by Licho »

Hi, I just took version 0.71b1 from subversion, compiled it, and it runs great in single player skirmishes.

But I can't play multiplayer, because ta client reports that we are not synced.

Is there any way to fix it?
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Isn't subversion the latest and greatest, ie all the updates not released yet?
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Well I got version from tagged/ 0.71b1. It shoudln't be latest..
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

By contrast when I compiled latest subversion version (which included some new features) it did sync in lob but then desynced in-game..

Weird..
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

I think that even minor changes to the executable will make you not sync. That means that, even if you have the same source, if you compile slightly diferent, won't work. Harsh but it is one of the reasons why it is so extremely hard to cheat the game except exploitations of bugs).

Sync in the lobby is diferent. It is just the lobby checking «minor» stuff like check in the HD if all players have the same units installed. Me thinks.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

I'm not sure what the lobby uses to check sync, but if it's a simple checksum, the exes have to be exactly the same. Means that you have to compile the EXE with "Release with error catching" with VS2003. Maybe even small differences in library versions could make a change.
patmo98
Posts: 188
Joined: 09 Jan 2006, 17:51

Post by patmo98 »

I think that you are most likely having floating point issues. I'm not sure though.
Right now Tobi (I hope I spelled that right) is working on resolving floating point issues between diffierent platforms/compilers.

If you are using windows just use the installer. And if you are using Linux either use Wine or play single player.

EDIT: That didn't come out right. I like Linux, I just meant that Linux support is not done yet.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Ok so it works this way:

1) game is synced in lobby at first
2) I try to play game but get some sync errors, so I quit
3) game is always unsynced in lobby from this time on, no matter if you revert to original executable
4) only way to fix it is to reinstall whole game
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Argh, any idea how to make "syncable" build in visual studio 2005?
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Do you have the latest version of the lobby client? 1.71 released before the latest lobby client did, there's supposed to be an autoupdate feature but it may not work for you for whatever reason.

I really don't understand the problem but it's just a guess that the 1.71 marked svn came with the version of lobby that shipped with 1.71 and the newest svn has the current version, that's why you sync with the new one in lobby but not the old... Sorry if I'm beind devnub :P
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Yeah, lobby client upgraded itself automatically.. I guess it's as patmo98 suggest.
I'm using newer compiler, and couple changed instructions could theoretically lead to differences in floating point numbers.. My executable is also 500k smaller than the original one..
But It's a shame, I wanted to improve some minor stuff but if I can't run it in multiplayer - even unmodified version.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

Licho wrote:Ok so it works this way:

1) game is synced in lobby at first
2) I try to play game but get some sync errors, so I quit
3) game is always unsynced in lobby from this time on, no matter if you revert to original executable
4) only way to fix it is to reinstall whole game
Well, that is certainly extremely odd. Leads to thinking that the game might be changing the .exe/.dll files. As far as i know, that is not suposed to be.
Post Reply

Return to “Engine”