Skip to content

Incrase SetVariantString string limit - #2359

Merged
psychonic merged 1 commit into
alliedmodders:masterfrom
Zeisenx:master
Oct 1, 2025
Merged

Incrase SetVariantString string limit#2359
psychonic merged 1 commit into
alliedmodders:masterfrom
Zeisenx:master

Conversation

@Zeisenx

@Zeisenx Zeisenx commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

from AM discord:
https://discord.com/channels/335290997317697536/335290997317697536/1422743151851995277

I have an issue with SetVariantString because I'm trying to call the vscript function TakeDamageEx with a formatted string that's over 128 bytes, but I can't because the buffer that's used for it is 128 bytes. Is it necessary to limit the size to be that small? Could it be raised? The SetString function takes a string_t so I don't think it needs to be this small. I need to call EntIndexToHScript a bunch, which is the reason I'm going over the 128 limit.

@psychonic
psychonic merged commit 0637346 into alliedmodders:master Oct 1, 2025
4 checks passed
cafeed28 pushed a commit to cafeed28/sourcemod that referenced this pull request Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants