Author Topic: TNet Server (3.0.0) Compiler Errors  (Read 9281 times)

raptorx81

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 12
    • View Profile
TNet Server (3.0.0) Compiler Errors
« on: February 25, 2016, 11:48:59 PM »
Hi there! I just upgraded to TNet 3 last night. I finished upgrading the Unity portion last night and now I'm about to start with the dedicated server. It doesn't compile even after moving the TNet assets over (Common, LZMA and Server).

The solution is looking for "TNProperty.cs" under the Common folder, which doesn't appear to exist anywhere. I removed this and replaced it with "TNFieldOrProperty.cs" and that seems to initially work.

Also, in the TNFieldOrProperty.cs" class, line 348 throws an error that GetProperty doesn't exist. Changing this to GetFieldOrProperty seems to work initially as well.

Aren, just wanted to give you a heads up and ask if this is a correct fix? Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet Server (3.0.0) Compiler Errors
« Reply #1 on: February 26, 2016, 01:40:39 AM »
Ah, thank you for bringing this to my attention. Yes, you have done everything correctly. I'll get this fixed in the next update. Just to clarify, opening TNServer.csproj with any text editor then renaming "TNProperty" to "TNFieldOrProperty" is enough. Well, that, and changing GetProperty to GetFieldOrProperty as you mentioned. There is no need to include anything else.

Quan

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: TNet Server (3.0.0) Compiler Errors
« Reply #2 on: March 12, 2016, 06:53:39 PM »
Just tried this and it fixed my compiler issues.

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: TNet Server (3.0.0) Compiler Errors
« Reply #3 on: July 12, 2016, 09:37:01 PM »
line #348 in TNFieldOrProperty.cs

still has a compile error

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet Server (3.0.0) Compiler Errors
« Reply #4 on: July 13, 2016, 11:16:29 AM »
Change it to GetFieldOrProperty.

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: TNet Server (3.0.0) Compiler Errors
« Reply #5 on: July 13, 2016, 06:14:34 PM »
Change it to GetFieldOrProperty.

just a reminder :)