Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] A syntax error occurs when compiling "namespace\assetname.gsc::funcname( );" in s4. #236

Open
ProjectHiNAtyu opened this issue Jan 12, 2025 · 0 comments

Comments

@ProjectHiNAtyu
Copy link
Contributor

hi Mr. xensik
There is a compilation error in gsc-tool that I would like fixed.

gsctool_error.mp4

This is a problem I had when compiling GSC for s4.
When I decompiled the GSCBIN for s4, the description style for the GSC asset function I wanted to call was as follows:

namespace\assetname.gsc::functionname( );

If you add .gsc as shown here and compile your own GSC, you will get an error regarding . and ::.
If I compile without the .gsc, there are no compilation errors, but if I actually inject the GSC and start a match, it crashes during map loading.
I would be grateful if you could fix this issue.

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

No branches or pull requests

1 participant