FortyTwoFortyTwo / VScript

Exposes many VScript features into SourceMod
https://forums.alliedmods.net/showthread.php?t=343182
GNU General Public License v3.0
24 stars 2 forks source link

"MemoryBlock.StoreToOffset" not found #12

Closed Mystik-Spiral closed 5 days ago

Mystik-Spiral commented 1 week ago

@FortyTwoFortyTwo

The Packages -> Artifacts zip file only contain the include and gamedata files, not the source (.sp files) to build vscript.smx. If I separately grab the latest 1.8.6 code, it will compile with no errors, but when attempting to load it (with the latest SM 1.12), it fails with this error:

L 09/14/2024 - 08:30:01: SourceMod error session started L 09/14/2024 - 08:30:01: Info (map "c10m1_caves") (file "/home/l4d2prod/serverfiles/left4dead2/addons/sourcemod/logs/errors_20240914.log") L 09/14/2024 - 08:30:01: [SM] Unable to load plugin "vscript.smx": Native "MemoryBlock.StoreToOffset" was not found L 09/14/2024 - 08:30:37: Error log file session closed.

I switched to a pre-compiled 1.8.5.manual version of vscript.smx and it loads and runs fine. In case it matters, I am running on Ubuntu 22.04.5 LTS.

FortyTwoFortyTwo commented 6 days ago

The Packages -> Artifacts zip file only contain the include and gamedata files, not the source (.sp files) to build vscript.smx.

Package are supposed to only include files needed to directly upload to addons, which it has .smx file compiled and packed in, making .sp file unnecessary unless if you were to edit it.

L 09/14/2024 - 08:30:01: [SM] Unable to load plugin "vscript.smx": Native "MemoryBlock.StoreToOffset" was not found

Where are you getting sourcescramble plugin or include from? Latest include version has it as a normal function instead of a native.

Mystik-Spiral commented 6 days ago

I see what you mean. I was using the SourceScramble build from two months ago, version 0.8.0-pre2, under the Artifacts page here, which looks very different:

methodmap MemoryBlock < Handle { /**

I cannot check this now, but will try to build/test tomorrow with the 0.7.1.4 version from five months ago and see what happens.

FortyTwoFortyTwo commented 6 days ago

Oh I see that you are using the experimental version, which does have it changed from normal to native function. I'll wait for the experimental version to be stable before I recompile it for an official version in packages, otherwise you'll need to make sure that compiled plugin is using the same include version as the sourcescramble extension.

Mystik-Spiral commented 5 days ago

@FortyTwoFortyTwo

Updating to let you know there were no problems compiling VScript 1.8.6.manual when using SourceScramble v0.7.1.4, and also no problems loading the vscript.smx plugin. The issue was only when trying to use VScript 1.8.6 with SourceScramble v0.8.0. Closing this issue.