Author Topic: 2.445 Mini-update available  (Read 7412 times)

Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
2.445 Mini-update available
« on: February 16, 2006, 12:04:21 AM »
I uploaded a new version, which will be 2.445 in the readme.txt.  It just fixes the compiler errors for Linux and VC6 and fixes the double call to OnReplicate in the data replication system.

I'm dropping Sourceforge CVS because of the hidden directories it puts in the source controlled data.  I'm looking at other solutions right now.  Ion Forge, Perforce or Subversion most likely.

Silver Hawk

  • Full Member
  • ***
  • Posts: 105
  • Karma: 0
    • View Profile
    • Crestock
Re: 2.445 Mini-update available
« Reply #1 on: February 16, 2006, 05:42:37 AM »
I uploaded a new version, which will be 2.445 in the readme.txt.  It just fixes the compiler errors for Linux and VC6 and fixes the double call to OnReplicate in the data replication system.

Great job :D.

I'm dropping Sourceforge CVS because of the hidden directories it puts in the source controlled data.  I'm looking at other solutions right now.  Ion Forge, Perforce or Subversion most likely.

May I suggest berliOS? SVN support is very good there and users can use e.g., TortoiseSVN to easily get the sources :).

Best wishes,
Michael
« Last Edit: February 16, 2006, 05:48:06 AM by Silver Hawk »

Silver Hawk

  • Full Member
  • ***
  • Posts: 105
  • Karma: 0
    • View Profile
    • Crestock
Re: 2.445 Mini-update available
« Reply #2 on: February 16, 2006, 06:24:13 AM »
I uploaded a new version, which will be 2.445 in the readme.txt.  It just fixes the compiler errors for Linux and VC6[...]

I have just downloaded and tried to compile it with VC6, but still get compiler errors. For example, when compiling LibStatic (release):

Quote
--------------------Konfiguration: LibStatic - Win32 Release--------------------
Kompilierung läuft...
Befehlszeilenwarnung D4024 : Typ der Quelldatei 'PRECOMP_VC7_TOBEREMOVED' nicht erkannt, Objektdatei wird angenommen
Befehlszeilenwarnung D4027 : Quelldatei 'PRECOMP_VC7_TOBEREMOVED' ignoriert
BitStream.cpp
./../../Include\NetworkTypes.h(161) : warning C4068: Unbekanntes Pragma
./../../Include\NetworkTypes.h(193) : warning C4068: Unbekanntes Pragma
./../../Include\BitStream.h(553) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
./../../Include\BitStream.h(554) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
./../../Include\BitStream.h(675) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
./../../Include\BitStream.h(676) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
./../../Include\BitStream.h(722) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
./../../Include\BitStream.h(723) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(190) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(197) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(203) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(206) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(207) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(208) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(217) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(218) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(219) : error C2660: 'Write' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(269) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(280) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(295) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(299) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(300) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(301) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(323) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(324) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(325) : error C2660: 'Read' : Funktion akzeptiert keine 1 Parameter
C:\Programme\DANAE\VC6\RakNet\Source\BitStream.cpp(335) : warning C4244: '=' : Konvertierung von 'double' in 'float', moeglicher Datenverlust
...

RakNetLibStatic.lib - 271 Fehler, 29 Warnung(en)

Best wishes,
Michael

Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: 2.445 Mini-update available
« Reply #3 on: February 16, 2006, 11:04:05 AM »
Thanks for the link, I'll look at it tonight and probably use that.

I can't read German.  What's the error?

wrt

  • Full Member
  • ***
  • Posts: 139
  • Karma: 0
    • View Profile
Re: 2.445 Mini-update available
« Reply #4 on: February 16, 2006, 11:31:38 AM »
It's the same like in this other post by nightmarez : http://www.rakkarsoft.com/raknet/forum/index.php?topic=208.15

Silver Hawk

  • Full Member
  • ***
  • Posts: 105
  • Karma: 0
    • View Profile
    • Crestock
Re: 2.445 Mini-update available
« Reply #5 on: February 16, 2006, 12:01:31 PM »
I can't read German.  What's the error?

Sorry for the German :-[.

Yes, the problem is the same as posted here (as also said by wrt). The only difference is that in my case it conserns the LibStatic project and by NightMarez the Autopatcher project.

Michael

sdi

  • Not-a-newbie
  • *
  • Posts: 43
  • Karma: 0
    • View Profile
Re: 2.445 Mini-update available
« Reply #6 on: February 17, 2006, 01:06:05 AM »
Hi there,

just want to let you know that compilation of V2.445 with Visual Studio 2005 runs without errors.

Sdi

Silver Hawk

  • Full Member
  • ***
  • Posts: 105
  • Karma: 0
    • View Profile
    • Crestock
Re: 2.445 Mini-update available
« Reply #7 on: February 17, 2006, 06:11:11 AM »
just want to let you know that compilation of V2.445 with Visual Studio 2005 runs without errors.
8)

wrt

  • Full Member
  • ***
  • Posts: 139
  • Karma: 0
    • View Profile
Re: 2.445 Mini-update available
« Reply #8 on: February 17, 2006, 05:18:25 PM »
hi

i finally got to test it again, but it doesn't look like much changed:
Code: [Select]
g++ -fPIC -ggdb -I/home/wrt/proggn/RakNet/speex-1.1.11.1/libspeex/ -I/home/wrt/proggn/RakNet/Include -I/home/wrt/proggn/RakNet/Include/RakVoice -w -c *.cpp
In file included from BitStream.cpp:17:
/home/wrt/proggn/RakNet/Include/BitStream.h:114: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:115: error: `Write' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:119: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:120: error: `Write' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:125: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:126: error: `WriteDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:136: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:137: error: `WriteCompressedDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:140: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:141: error: `WriteCompressedDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:204: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:205: error: `ReadDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:219: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:220: error: `Read' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:224: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:225: error: `Read' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:228: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:229: error: `ReadDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:233: error: explicit specialization in non-namespace scope `class RakNet::BitStream'
/home/wrt/proggn/RakNet/Include/BitStream.h:234: error: `ReadCompressedDelta' is not a template function
/home/wrt/proggn/RakNet/Include/BitStream.h:703: error: specialization of bool RakNet::BitStream::Read(templateType&) [with templateType = bool] after instantiation

what version of gcc did you test it with? I have 3.4.4, 3.4.5 and 4.0.3 and all of them have those problems.

also i've found one more way of getting gcc to shut up, i've written the type of the specialization in the template brackets like this:
Code: [Select]
/// Write a bool to a bitstream
/// \param[in] var The value to write
template <bool>
void Write(bool var);

however, this doesn't seam to work for structs, so i get a error with those two lines:
Code: [Select]
/home/wrt/proggn/RakNet/Include/BitStream.h:119: error: `struct PlayerID' is not a valid type for a template constant parameter
/home/wrt/proggn/RakNet/Include/BitStream.h:204: error: `struct PlayerID' is not a valid type for a template constant parameter

also i don't know what this that i did means  ;D But maybe my random hacking actually helps someone  ???

cu wrt

Silver Hawk

  • Full Member
  • ***
  • Posts: 105
  • Karma: 0
    • View Profile
    • Crestock
Re: 2.445 Mini-update available
« Reply #9 on: February 18, 2006, 11:55:37 AM »
what version of gcc did you test it with? I have 3.4.4, 3.4.5 and 4.0.3 and all of them have those problems.

I have used GCC 4.1.0 and GCC 3.4.4. Both give the errors about templates. Moreover, GCC 4.1.0 gives other errors.

also i've found one more way of getting gcc to shut up, i've written the type of the specialization in the template brackets like this:
Code: [Select]
/// Write a bool to a bitstream
/// \param[in] var The value to write
template <bool>
void Write(bool var);

I am not sure that this is a good thing.... ::)

Best wishes,
Michael