The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
|
Need help: serialization class and binary compatibility - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: Need help: serialization class and binary compatibility (/showthread.php?tid=797) Pages:
1
2
|
Need help: serialization class and binary compatibility - joevenzon - 10-14-2007 I've added a new serialization class to VDrift in SVN R1853/R103. This will be used for replays and, more importantly, for upcoming improved mulitplayer. I need help from you guys to make sure that there aren't going to be incompatibilities in the binary format between different platforms. Here's what I need: check out the latest code, compile, and run with the -test argument. You should see a bunch of text and then something like this: Code: [---------------- RUNNING TESTS ----------------] Post what's between the RUNNING TESTS and TESTS FINISHED blocks, along with your OS and CPU (and whether or not you run a 64-bit system) in a reply to this post. I'm curious to see if this will pass for those w/ 64-bit systems, for those on OSX, and for those with big endian machines. - xTs - 10-14-2007 Quote:BinReloc successfully initialized. - joevenzon - 10-14-2007 This is probably because you have a 64-bit system. Alright, try R1854/R104. - xTs - 10-14-2007 Code: [---------------- RUNNING TESTS ----------------] Ok now. - cotharyus - 10-14-2007 Not building under OSX - most likely due to my lack of Xcode knowledge. I'll get you errors when I have a minute. - joevenzon - 10-14-2007 R1855 and R106 implement byte-swapping, so it *should* work on big-endian machines properly, now. - abs1nth - 10-14-2007 I've added the serialization files to the xcode project but it doesn't compile: Code: vdrift/tools/osx/../../include/serialization.h: In member function 'void TEST_FRAMEWORK::TEST_VERTEX::Serialize(TEST_FRAMEWORK::SERIALIZER*)': - cotharyus - 10-14-2007 Then maybe I do understand the Xcode thing a little better. Because I "added" the file(s) as well, and came up with very much the same thing. And here I thought it was something I was doing. - alex25 - 10-14-2007 abs1nth Wrote:I've added the serialization files to the xcode project but it doesn't compile: try this patch Code: Index: include/serialization.h --alex-- - alex25 - 10-14-2007 and looking at include/serialization.h some more. at line 263, there is the following code: Code: if (dataread[0] = '\n') shouldn't those ='s be =='s. --alex-- - joevenzon - 10-14-2007 I checked in alex25's fix to R1857. - joevenzon - 10-14-2007 alex25 Wrote:shouldn't those ='s be =='s. Yep! Good catch. I've checked the fix into R1858. This is the great thing about open source software. :-) - cotharyus - 10-15-2007 still bombing on OS X: /Projects/vdrift/tools/osx/../../include/serialization.h: In member function 'void TEST_FRAMEWORK::TEST_PLAYER::Serialize(TEST_FRAMEWORK::SERIALIZER*)': /Projects/vdrift/tools/osx/../../include/serialization.h:648: error: invalid use of undefined type 'struct TEST_FRAMEWORK::SERIALIZER' etc.. - abs1nth - 10-15-2007 applying alex's fix to line 607 in addition to line 588 makes it compile commited - cotharyus - 10-15-2007 indeed: Version of game: 2007-10-15 Skin name not found in config file... OGG Vorbis loading: 5/5 = 100% PASS Performance testing Sample16bit (14ms for 1 second of 44.1khz stereo audio with 32 sources): 1/1 = 100% PASS Performance testing SampleAndAdvance16bit (8ms for 1 second of 44.1khz stereo audio with 32 sources): 1/1 = 100% PASS Performance testing SampleAndAdvanceWithPitch16bit (29ms for 1 second of 44.1khz stereo audio with 32 sources): 1/1 = 100% PASS Performance testing SampleAndAdvanceWithPitch16bit with 1st order filter (50ms for 1 second of 44.1khz stereo audio with 32 sources): 1/1 = 100% PASS Sound callback testing: 512/512 = 100% PASS Sound effects testing: 3/3 = 100% PASS Sound filter testing: 1/2 = 50% FAIL Sound management testing: 6/6 = 100% PASS Sound source testing: 3/3 = 100% PASS Wave loading 44k s16 c2: 5/5 = 100% PASS TOTAL: 539/540 = 99.8148% FAIL Drawable filtering: 4/4 = 100% PASS Scene node and drawable deletion: 4/4 = 100% PASS Scene node and drawable management: 6/6 = 100% PASS Transform into and out of local space: 1/1 = 100% PASS TOTAL: 15/15 = 100% PASS Pointer/bipointer allocation/deallocation: 13/13 = 100% PASS TOTAL: 13/13 = 100% PASS [---------------- RUNNING TESTS ----------------] Results: 5 succeeded, 0 failed [---------------- TESTS FINISHED ---------------] |