Skip to content

[BUG] Specific .gml Fails to Enable Correctly #113

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

Open
Draxiss314 opened this issue Apr 19, 2025 · 0 comments
Open

[BUG] Specific .gml Fails to Enable Correctly #113

Draxiss314 opened this issue Apr 19, 2025 · 0 comments

Comments

@Draxiss314
Copy link

Describe the Bug :

A .sml file with this code:

Msl.LoadGML("gml_GlobalScript_scr_unitTurnPositionEvents")
    .MatchFrom("var _isGround = scr_is_ground_unit(x, y)")
    .InsertBelow("")
    .Save();

yields this error:

System.Exception: GML Compile Error: Errors parsing code when trying to compile modified "gml_GlobalScript_scr_unitTurnPositionEvents":

Expected assignment operator around line 40, column 13.
Unexpected end of code.
Unexpected end of code.
Unexpected end of code.
Unexpected end of code.
Unexpected end of code.
Unexpected end of code.

   at UndertaleModLib.Models.UndertaleCode.ReplaceGML(String gmlCode, UndertaleData data) in D:\UndertaleModToolCE-master\UndertaleModLib\Models\UndertaleCode.cs:line 1585
   at ModShardLauncher.Msl.Save(FileEnumerable`1 fe)
   at DraxisstheBookwyrm.DraxisstheBookwyrm.PatchMod()
   at ModShardLauncher.ModLoader.PatchMods()
   at ModShardLauncher.ModLoader.PatchFile()
   at ModShardLauncher.Controls.ModInfos.Save_Click(Object sender, EventArgs e)

when I try to enable it. This issue is likely with other .gml files as well.

Steps To Reproduce :

Include my code in a new .sml file, then try to enable it through MSL.

Expected Behavior :

It is enabled normally.

Screenshots if applicable :

You can directly paste screenshots here, no need for external hosting.
...


Additional Information :

  • Stoneshard Version : 0.9.2.12
  • MSL Version : 0.13.2.0

Additional Context :

Add any other context about the problem here.
...

@Draxiss314 Draxiss314 changed the title [BUG] Specific .gml's Fail to Recompile Correctly [BUG] Specific .gml's Fails to Enable Correctly Apr 19, 2025
@Draxiss314 Draxiss314 changed the title [BUG] Specific .gml's Fails to Enable Correctly [BUG] Specific .gml Fails to Enable Correctly Apr 19, 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

No branches or pull requests

1 participant