Jump to content
XCOMUFO & Xenocide

Crc Errors, Nid Errors And A Desynchronized Game


uff

Recommended Posts

Hi,

 

I was trying to get an account on Mantis to add a comment to a bug but I am now waiting for more than 24 hours and no register email came to me.

Is there something wrong with the Mantis or should I wait more ?

 

uff

Edited by Serge
Link to comment
Share on other sites

Something wrong with Mantis.

Oh, not cool.

Anyway this may be later removed by a moderator, considers bug 250, crc errors and such stuff.

As Serge wrote, such errors may be caused by wrong floating point calculations.

While browsing through main.cpp, there is a routine, init_fpu(), which sets a bool variable, fpu_is_ok.

The variable is only used once, when a player clicks "connect to internet server" from main menu in the game.

However, when a player starts a hot seat game or connects to an internet server by providing login and password in command line

the fpu check is not performed.

So now why the double standard ? Or is the init_fpu() routine obsolete and outdated ?

 

Thanks for an answer,

Link to comment
Share on other sites

Something wrong with Mantis.

Oh, not cool.

Anyway this may be later removed by a moderator, considers bug 250, crc errors and such stuff.

As Serge wrote, such errors may be caused by wrong floating point calculations.

While browsing through main.cpp, there is a routine, init_fpu(), which sets a bool variable, fpu_is_ok.

The variable is only used once, when a player clicks "connect to internet server" from main menu in the game.

However, when a player starts a hot seat game or connects to an internet server by providing login and password in command line

the fpu check is not performed.

So now why the double standard ? Or is the init_fpu() routine obsolete and outdated ?

 

Thanks for an answer,

You can check http://ufo2000.svn.sourceforge.net/viewvc/...0/trunk/HACKING and search for "floating point" to find an explanation. Hotseat is not affected as everything is calculated on the same machine in that case. Missing floating point consistency check when connecting to the server by using just command line arguments is a bug.

 

Anyway, on desktop PC's, this check would almost always pass unless something is terribly miscompiled.

Link to comment
Share on other sites

You can check http://ufo2000.svn.sourceforge.net/viewvc/...0/trunk/HACKING and search for "floating point" to find an explanation. Hotseat is not affected as everything is calculated on the same machine in that case. Missing floating point consistency check when connecting to the server by using just command line arguments is a bug.

Thanks for the answer.

Sure, I read the HACKING file.

Sadly, the link provided there, in floating point section, is outdated.

Link to comment
Share on other sites

Missing floating point consistency check when connecting to the server by using just command line arguments is a bug.

As I can not post on Mantis, I attach the patch file here. It is a small one so easy to check

 

Thanks a lot, I'll review it as soon as I get some spare time. ( ETA 2 weeks)

Edited by nachtwolf
Link to comment
Share on other sites

Thanks a lot, I'll review it as soon as I get some spare time. ( ETA 2 weeks)

No problem, now I am looking into the credits feature, Mantis no. 542.

So far I added a button in the main menu, just before quit button.

Now, where to read the credits from ? The AUTHORS file ?

My current approach is just to read the file line by line and display in a window.

I will just have to figure out how to do a "floating text" window.

Any other suggestions ?

Link to comment
Share on other sites

No problem, now I am looking into the credits feature, Mantis no. 542.

Ok I did the credits stuff.

Added a button in main menu.

Did the flowing credits from the AUTHORS file, they are drawn on menu.jpg

 

There is one small glitch though, when I press a key to get back to the main menu, a small part (1cm x 0.5 cm) of menu.jpg stays where the cursor is placed. When I enter tip of day or options and then return back to main menu again, it is clear and dandy. Maybe some refresh stuff ?

I do not know how to handle this. But nevertheless it does not break anything.

credits.rar

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...