Jump to content

MCGalaxy PCompile doesn't work with GoodlyEffects.cs

Posted

I'm making a server for testing purposes, and I want to use the GoodlyEffects plugin. (See https://github.com/ClassiCube/MCGalaxy-Plugins/blob/master/documentation/GoodlyEffects.md) When I use /pcompile GoodlyEffects (In MCGalaxy) though, the .dll file doesn't appear. So I use mcs -target:library -r:MCGalaxy_.dll -out:plugins/GoodlyEffects.dll plugins/GoodlyEffects.cs. (Ubuntu 24.04) And then this error appears: plugins/GoodlyEffects.cs(19,7): error CS0246: The type or namespace name `ExtraLevelProps' could not be found. Are you missing an assembly reference? The ExtraLevelProps dll is there. Is this problem fixable and can you tell me how to fix it? Thanks in advance.

Featured Replies

1 minute ago, RainZhang said:

When I use /pcompile GoodlyEffects (In MCGalaxy) though, the .dll file doesn't appear.

Is there any specific error when you attempt this?

2 minutes ago, RainZhang said:

So I use mcs -target:library -r:MCGalaxy_.dll -out:plugins/GoodlyEffects.dll plugins/GoodlyEffects.cs. (Ubuntu 24.04) And then this error appears: plugins/GoodlyEffects.cs(19,7): error CS0246: The type or namespace name `ExtraLevelProps' could not be found. Are you missing an assembly reference? The ExtraLevelProps dll is there. Is this problem fixable and can you tell me how to fix it? Thanks in advance.

If you are compiling the plugin separately from MCGalaxy, make sure you also reference _extralevelprops.dll, same way you reference MCGalaxy

  • Author

Answering your first question, it didn't say anything except for

Plugin compiled successfully from GoodlyEffects.cs

(console) used /Compile plugin GoodlyEffects.

As for your second question, I tried that. It said error CS2005: Missing file specification for `/r:' option.

Input for reference:

mcs -target:library -r:MCGalaxy_.dll -target:library -r: _extralevelprops.dll -out:plugins/GoodlyEffects.dll plugins/GoodlyEffects.cs.

Edit: I also ran this with the same effect.

mcs -target:library -r:MCGalaxy_.dll -r: _extralevelprops.dll -out:plugins/GoodlyEffects.dll plugins/GoodlyEffects.cs.

Edited by RainZhang
Alternate input method I tried

Update to the latest dev build using /update latest

That should fix no errors being printed when you use /pcompile


I don't know anything about compiling with Ubuntu, but it looks like you added a space between -r: and the _extralevelprops.dll file which isn't how you formatted the MCGalaxy one. Try removing that space?

  • Author

Thanks for the first tip. I tried pcompiling again and here's the error message.

Error #CS0006 - Metadata file `System.Core.dll' could not be found

Compiling failed. See logs/errors/compiler.log for more detail

As for the second tip, the compile worked successfully. By the way, I noticed there was no .mdb file when I compiled it using mcs. Is the .mdb file crucial for _extralevelprops.dll & GoodlyEffects.dll? Thanks.

READ THE RULES BEFORE YOU POST

Create an account or sign in to comment