Author Topic: TNet 1.9.6b Console/Compile Errors in Web Player mode  (Read 2033 times)

Deozaan

  • Newbie
  • *
  • Thank You
  • -Given: 44
  • -Receive: 4
  • Posts: 42
    • View Profile
    • Deozaan.com
TNet 1.9.6b Console/Compile Errors in Web Player mode
« on: July 19, 2014, 03:57:31 PM »
The latest version of TNet can't compile when the platform is set to "Web Player" because of the following errors:

Quote
Assets/TNet/Common/TNTools.cs(509,28): error CS0161: `TNet.Tools.WriteFile(string, byte[])': not all code paths return a value
Assets/TNet/Common/TNTools.cs(552,28): error CS0161: `TNet.Tools.DeleteFile(string)': not all code paths return a value

You need the return falses to go after the #endifs to fix these errors.

I also get some warnings about variables which are defined but never used. It would be nice if these messages didn't show up in the console.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet 1.9.6b Console/Compile Errors in Web Player mode
« Reply #1 on: July 19, 2014, 03:59:39 PM »
You're right, thanks.

Deozaan

  • Newbie
  • *
  • Thank You
  • -Given: 44
  • -Receive: 4
  • Posts: 42
    • View Profile
    • Deozaan.com
Re: TNet 1.9.6b Console/Compile Errors in Web Player mode
« Reply #2 on: July 19, 2014, 04:22:16 PM »
And another minor complaint:

When quitting the server, it says "There server has shut down. Press ENTER to terminate the application."

This should obviously say "The server [...]"

Approx. Line 247 in ServerMain.cs

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet 1.9.6b Console/Compile Errors in Web Player mode
« Reply #3 on: July 19, 2014, 08:24:12 PM »
Hmm... typo, yeah. Thanks!