Server/Squirrel Update Released (March 1)

ysc3839

  • VC:MP Beta Tester
  • Posts: 618
Re: Server/Squirrel Update Released (March 1)
« Reply #15, on March 2nd, 2016, 03:17 PM »
I noticed that you revert the "Fix print issue" commit made by me. Have you tested if the old code works well? I tested in old version, when you print more than 512 chars, the server won't crash immediately, but the stack is broken and maybe crash later. I will test it again on weekend(because I only can use computer on weekends)

Stormeus

  • VC:MP Developer
  • oh god how did i get here im not good w computer
  • Posts: 1,087
Re: Server/Squirrel Update Released (March 1)
« Reply #16, on March 2nd, 2016, 05:05 PM »
The print issue fix was reverted because it only measured the length of the format string, which resulted in error messages being cut off.

KAKAN

  • Wiki Contributor
  • Posts: 3,345
Re: Server/Squirrel Update Released (March 1)
« Reply #17, on March 2nd, 2016, 05:30 PM »
What about the sockets anyways? Fix the bugs of the Sockets plugin too, please!
And also, I can't open the server's download link, any mirrors?
You can contact me using Discord, at Developers.CPP( check off-board to find the invite link )
Github: https://github.com/theKAKAN

ysc3839

  • VC:MP Beta Tester
  • Posts: 618
Re: Server/Squirrel Update Released (March 1)
« Reply #19, on March 3rd, 2016, 02:47 PM »
Also I want to know why the CCore::rawprint uses fputs instead of functions->printf
Code: [Select]
void CCore::rawprint(const char * pszOutput)
{
fputs(pszOutput, stdout);
if (this->pLogFile != NULL)
fprintf(this->pLogFile, "%s", pszOutput);
}
Re: Server/Squirrel Update Released (March 1)
« Reply #21, on March 5th, 2016, 01:03 PM »Last edited on March 5th, 2016, 02:58 PM
Tested on VS2013 and VS2015. I found that VS2013 doesn't have "snprintf" but have "_snprintf". However, VS2015 have both "snprintf" and "_snprintf". And it's "snprintf" functions like gcc's.

Also, the plugin still have print issue.

 :edit:Linux version doesn't have this issue.

kingofpopYT

  • Newbie
  • Posts: 16