Jump to content

RainZhang

Member
  • Joined

  • Last visited

Everything posted by RainZhang

  1. That fixed it, thanks!
  2. Now there's this error when using /giveinsane [user]: !!!Error (Object reference not set to an instance of an object) - See Logs tab for more details The logs show this longer version: Type: NullReferenceException Source: MCGalaxy_ Message: Object reference not set to an instance of an object Trace: at MCGalaxy.Extensions.CaselessContains (System.Collections.Generic.List`1[T] items, System.String value) [0x00000] in <f309205a56554c158910ca5ef34fa632>:0 at CmdGiveinsane.Use (MCGalaxy.Player p, System.String message) [0x0000c] in <5bd5b930cfd5436dbb6e2f13c1219d68>:0 at MCGalaxy.UI.UIHelpers+<>c__DisplayClass3_0.<HandleCommand>b__0 () [0x00000] in <f309205a56554c158910ca5ef34fa632>:0 Please help! BTW, source code for reference attached CmdGiveInsane.cs
  3. I'm trying to use /compile on a custom command I made in MCGalaxy, and when I try to compile the below code(C#), it shows this error: Error #CS1525 on line 3 - Unexpected symbol 'void', expecting 'class', 'delegate', 'enum', interface', 'partial', 'ref', or 'struct' Code: using MCGalaxy.Modules.Awards; public override void Use(Player p, string message) { const string myAward = "Insane"; bool hasAwardAlready = PlayerAwards.Get(p.name).CaselessContains(myAward); if (hasAwardAlready) { p.Message("You have already claimed this award!"); return; // When we write return, that will quit running the command so that the code below doesn't run } //Give the player the award if they haven't already gotten it Command.Find("award").Use(Player.Console, "give "+p.name+" "+myAward); }
  4. Lemme show screenshots: Link: https://www.dropbox.com/scl/fo/kvw02neg4kgzqmc5inp4u/ALlVqL9qXmSYlSVltVFEX94?rlkey=nkvarvgmmikzbji8yu03bdrlm&st=o3h4h8zi&dl=0
  5. I want to make all blocks in one map available in the others, as in that level's blocks become the default global blocks. I tried changing the blockdefs file name of that level to global.json, but when I reloaded the server, every block was strange, even the ones in the map where the blockdefs file originated. Is there an easier way and if not, how do you do fix this?
  6. I'm on MCGalaxy 1.9.5.3, I did /update latest, and I want to add more custom blocks (more than 255) without having to rebuild the server (create everything again). I tried switching the MCGalaxy_.dll file with the MCGalaxy_infid.dll and renamed the latter to MCGalaxy_.dll and moved the original away, and it doesn't start. System specs are attached.
  7. Recently upgraded to 8GB of RAM.
  8. Ah, thanks. But it still says the same thing. I rezipped the file and checked the extract contents and there was no readme.txt file. Rezipped file for reference. classicube.zip
  9. This error shows when uploading my texpack on https://garbage.loan: Zip file must contain any of the following: animations.png, animations.txt, char.png, clouds.png, default.png, gui.png, icons.png, particles.png, rain.png, snow.png, terrain.png, touch.png, skybox.png But my file contains the following (After unzipping): animations.png clouds.png icons.png readme.txt touch.png animations.txt default.png particles.png snow.png char.png gui.png rain.png terrain.png File attached for reference, any help would be appreciated! classicube.zip
  10. This error shows when uploading my texpack on https://garbage.loan: Zip file must contain any of the following: animations.png, animations.txt, char.png, clouds.png, default.png, gui.png, icons.png, particles.png, rain.png, snow.png, terrain.png, touch.png, skybox.png But my file contains the following (After unzipping): animations.png clouds.png icons.png readme.txt touch.png animations.txt default.png particles.png snow.png char.png gui.png rain.png terrain.png File attached for reference, any help would be appreciated! classicube.zip
  11. Thanks! You helped me a lot. Have a nice day!
  12. 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.
  13. 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.
  14. 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.
  15. These are not necessary as custom blocks can be made for a server (Global Blocks). You can also make Level Blocks, which are custom blocks for a certain map.
  16. Yeah, me too. I was wondering about that. Maybe he's pretending he sees Herobrine? Maybe it's the tree.
  17. 7/10. It's a little sparse, and the fog should be a little foggier. Maybe add decor? Plus on the right the terrain looks unnatural.
  18. Then why did you make it? And English please.
  19. Can you quote me in what I originally said, instead of translating it? Thanks.