Jump to content

Goodly

Moderator
  • Joined

  • Last visited

Everything posted by Goodly

  1. Issue is here. You accidentally typed p1 instead of pl (lowercase L). Also, SetPrefix is a method, which requires (). Also, CURLY BRACKET MISSING WARNING!!! When you don't use { } after an if statement, it only executes the very first statement, even if you have more statements on the same line. The code you have now is about to execute like this: As a general rule, you should just always add curly brackets. If you have more than one statement inside the if, put them both on new lines.
  2. Please upload it somewhere like pastebin -- the forum eats the formatting and I suspect some of the characters when pasted in raw
  3. Please post the whole source code if what you're trying to compile
  4. You might want to remove the lambda syntax from public override CommandPerm[] ExtraPerms => new[] { new CommandPerm(LevelPermission.Operator, "can set and view all players' notifications") }; since that won't compile on standard MCGalaxy
  5. To use the angled lighting, you need to compile ClassiCube from the AngledLighting branch. https://github.com/ClassiCube/ClassiCube/tree/AngledLighting For instructions on how to compile it, see the README file at the Compiling section. https://github.com/ClassiCube/ClassiCube/tree/AngledLighting?tab=readme-ov-file#compiling By the way, AngledLighting is not finished. It may take a very long time to load on larger levels. And the shadows don't update when you change blocks. Alternatively, if you are logged into github you can download it pre-compiled from here: https://github.com/ClassiCube/ClassiCube/actions/runs/16534287480 Scroll down to "Artifacts" and download the .exe for your system. If you are using windows, you should probably get ClassiCube-Win64-Direct3D9.exe
  6. You can try it from here if you want https://cdn.classicube.net/client/latest/ClassiCube.sis (the download is listed here https://www.classicube.net/download/#dl-other)
  7. MCGalaxy was based on MCForge, which was based on MCLawl, which was based on MCZall, which was based on MCSharp
  8. When you see "Object reference not set to an instance of an object", that means it's trying to get the value of a variable in your code, but because that variable is null, it fails to find anything. The issue is that PlayerAwards.Get(p.name) can give you either: List<string>, a list of 0 or more awards that the player has got before null, if the player has never gotten an award before You cannot call .CaselessContains on a null variable because that function requires a valid string to run. The solution is not to call PlayerAwards.Get and CaselessContains in the same line, so that we can check if the list is null first. By the way, please make sure you indent the code (tab or four spaces) every time there is an open bracket {, otherwise the code will become extremely difficult to understand. An example of fixes is attached. CmdGiveInsane.cs
  9. You're missing a lot of code that's required for a custom command, for instance the command class itself. You can use /cmdcreate to generate a working template that you can change.
  10. what? (banned for 4 hours no 1 word posts)
  11. If you want to play multiplayer LAN, you will need to run your own server. https://github.com/ClassiCube/MCGalaxy?tab=readme-ov-file#setup Once it's running and you can join it, you can check the wiki for how to do basic things like create new levels. https://github.com/ClassiCube/MCGalaxy/wiki Once your server is up and running, you can import levels from other multiplayer servers by saving the level clientside (Save level... menu option), then moving that level into the server's extra/import folder and using /import [mapname] However it should be noted that if the level you saved has any kind of special gameplay or dialogue, you cannot preserve that by saving it for yourself. It can only be experienced on the server you found it on.
  12. Am I understanding correctly that you are playing singleplayer and the button that lets you generate a new world is grayed out?
  13. If you already lost your global blocks (e.g. if you didn't undo the thing you tried to do earlier) then following my steps could never fix it. I'm not sure what else the issue could be
  14. I believe the issue here is that the blockdef file for the level doesn't contain the global blocks as well, just the local ones. So when you replace the global file with the local file, all the global blocks are erased. What you need to do is to merge both of the blockdef files. An easy way to do this is: While in your server on the level you want to make global, save it using Save Level... in escape menu. You'll have something like mylevel.cw in your maps folder. Move mylevel.cw from your client map folder to "extra/import" folder in your server Use /import mylevel Now in your server blockdef files, you should be able rename lvl_mylevel.json to global.json
  15. It looks like you're trying to make your server globally use the blocks I created for NA2, which I prefer if you didn't do, unless your server is just for private use
  16. If you're not specific with your problem ("every block was strange" is vague and unfixable) then you're unlikely to get responses
  17. Where did you get the MCGalaxy_infid.dll? If it came from the "Uploads" folder on github, that is no longer updated. Try using the MCGalaxy_.dll from here: https://123dmwm.com/MCGalaxy/
  18. This can already be done in a server plugin if someone wants to
  19. Let's have one thread per topic please: https://f.classicube.net/topic/3061-garbage-loan-upload-error
  20. readme.txt isn't included in the list of allowed files. Did you try removing that from your zip before uploading?
  21. You don't need .mdb (or .pdb) files for plugins. Those just give you line numbers if there are errors, which is helpful for debugging but not needed for a normal user.
  22. 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?
  23. Is there any specific error when you attempt this? If you are compiling the plugin separately from MCGalaxy, make sure you also reference _extralevelprops.dll, same way you reference MCGalaxy
  24. I don't think anyone's going to stop you if you do return. Or are you asking this because you're actually blocked from joining in some way right now?
  25. Forum posts show up in discord. We saw it Glad you've grown and reflected since then