Jump to content

Goodly

Moderator
  • Joined

  • Last visited

  1. MCGalaxy was based on MCForge, which was based on MCLawl, which was based on MCZall, which was based on MCSharp
  2. GreenAxol35 started following Goodly
  3. 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
  4. 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.
  5. what? (banned for 4 hours no 1 word posts)
  6. 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.
  7. Am I understanding correctly that you are playing singleplayer and the button that lets you generate a new world is grayed out?
  8. 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
  9. 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
  10. 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
  11. If you're not specific with your problem ("every block was strange" is vague and unfixable) then you're unlikely to get responses
  12. 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/
  13. This can already be done in a server plugin if someone wants to
  14. Let's have one thread per topic please: https://f.classicube.net/topic/3061-garbage-loan-upload-error
  15. readme.txt isn't included in the list of allowed files. Did you try removing that from your zip before uploading?
  16. 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.