Raised This Month: $51 Target: $400
 12% 

Solved Max datapack size


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hh2
AlliedModders Donor
Join Date: Sep 2010
Old 09-18-2017 , 11:08   Max datapack size
Reply With Quote #1

What is the max size for datapack writing?

Last edited by hh2; 09-18-2017 at 17:17. Reason: solved
hh2 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-18-2017 , 14:15   Re: Max datapack size
Reply With Quote #2

About 4GiB - 4,294,967,295 bytes, but you'll run out of address space long before you reach it.

What makes you think it is only 4,000 bytes?
__________________
asherkin is offline
hh2
AlliedModders Donor
Join Date: Sep 2010
Old 09-18-2017 , 16:50   Re: Max datapack size
Reply With Quote #3

I created simple plugin to simulate writing string data to pack.
Limit for loop is 150 iterations.
After reading 106 strings each 32 chars max length, my console get spammed with this message:
Code:
SendNetMsg <IP address>: stream[netchan_t::unreliabledata] buffer overflow (maxsize = 4000)!
hh2 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-18-2017 , 16:59   Re: Max datapack size
Reply With Quote #4

You printed too much to the client console in a single frame, nothing to do with the datapack.
__________________
asherkin is offline
hh2
AlliedModders Donor
Join Date: Sep 2010
Old 09-18-2017 , 17:17   Re: Max datapack size
Reply With Quote #5

Ok, my fault.
Thanks for your help.
hh2 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode