Inactive [FUN/MECH] ExperienceMod v.2.5.0 - Customize XP for blocks, mobs and items. [1.3.1-R2.0]

Discussion in 'Inactive/Unsupported Plugins' started by Comphenix, Jun 16, 2012.

  1. Offline

    shandrolis

    what does the ' first - last' thing mean at mobs?

    Code:
    mobs:
      enderman:
        first: 5
        last: 10
      ?|spawner: 0
    
     
  2. Offline

    Comphenix

    That's just a different way of writing a range of numbers starting at 5 and ending at 10. It's exactly the same as this:
    Code:
    mobs:
      enderman: [5, 10]
      ?|spawner: 0
     
  3. Offline

    Shukaro

    Is there a list of the different available action triggers and other syntax-type stuff?
     
  4. Offline

    Comphenix

    Yes, of course. :)

    It's all documented on BukkitDev.
     
  5. Offline

    PSU4EverServer

    Plugin looks good. Is the amount of experience earned from things like mobs/smelting/mining/ect all preconfigured, or do I need to have the amounts entered manually?
     
  6. Offline

    Comphenix

    Yes, the default configuration is pretty extensive. You don't have to change it if you're happy will the amount of experience you get.

    If you want about the same amount as 1.3, then you should download the "Emulating 1.3" configuration at the top of the configuration page.

    Otherwise, just try to modify the standard configuration. It should be pretty self-explanatory.
     
  7. Offline

    PSU4EverServer


    Thank you! Will download now. :)

    Sadly I'm getting this error upon server start:

    [Severe] Error Occurred while enabling Experiencemod v2.2.3 (is it up to date?)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  8. Offline

    Comphenix

    Could you post the error message that immediately follows that line? It should be saved to the log file, and will probably look something like this:
    Code:
    2012-03-18 10:30:22 [SEVERE] Error occurred while enabling Experiencemod v2.3.3 (Is it up to date?)
    java.lang.NullPointerException: org.bukkit.plugin (something)
    at (something something)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
     
  9. Offline

    PSU4EverServer

    I appreciate the quick response. I am looking into the log file right now. :)

    Code:
    [SEVERE] Error occurred while enabling ExperienceMod v2.2.3 (Is it up to date?)
    java.lang.NullPointerException
        at net.milkbowl.vault.chat.plugins.Chat_mChatSuite.getGroupInfoValue(Chat_mChatSuite.java:294)
        at net.milkbowl.vault.chat.plugins.Chat_mChatSuite.getGroupInfoString(Chat_mChatSuite.java:261)
     
        at com.comphenix.xp.ExperienceMod.checkIllegalPresets(ExperienceMod.java:404)
        at com.comphenix.xp.ExperienceMod.loadDefaults(ExperienceMod.java:377)
        at com.comphenix.xp.ExperienceMod.onEnable(ExperienceMod.java:201)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:381)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:197)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    2012-07-28 18:00:10
    I think that is the full error list. I hope I got the complete thing of errors. The plain text log file can be a pain at times.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  10. Offline

    Comphenix

    Right, so, it looks like the problem is in mChatSuite. For whatever reason, it seems to be throwing an error (NullPointerException) when I try to access the "options" (for presets) of an player or group.

    I managed to avoid this by simply preferring the current permissions plugin (PermissionsEx, GroupManager, ect.) over mChatSuite. If only mChatSuite is available, all NullPointerExceptions are ignored. That will break presets slightly, of course, but everything else will work fine.

    Now, while I'd like to release a fixed version as soon as possible, I think it's better if I wait until more features are in the next version. I don't want updates to be too frequent, both because it can annoy server operators, and because it's a strain on the volunteers from Bukkit that is reviewing every version.

    Instead, I've uploaded a development build for 2.2.4 on GitHub. The issue is fixed in this version:
    ExperienceMod Nightly Build 29.07.12 (a)
     
    PSU4EverServer likes this.
  11. Offline

    PSU4EverServer


    It is now working. By disabling all presets, what does that entail?
    I am trying to mimic 1.3 at the moment in terms of XP. I am looking at the Config for 1.3 and I'm a little unsure about the copying over.

    Is it okay if I copy the full area of text (including green text) into the top of the config?
     
  12. Offline

    Comphenix

    "Presets" are a feature that allow you to use different configuration files for different players, groups or worlds. Using it, you could, say, give VIP members 50% more experience than normal users.

    By "disabling it", I mean that mChatSuite will not support the "experiencePreset" option. However, if you have a permission plugin that supports options (and is supported by Vault), then that will take over for mChatSuite and it will work again.

    So, to summarize, it's only a problem IF you want to use different configuration files per user, and IF you don't have PermissionsEx or any of the advanced permission plugins installed.

    Yes, by all means. The green text is just comments. Just copy everything but the first and last line.

    Basically, you should end up with this.
     
  13. Offline

    PSU4EverServer

    Thanks! Really appreciate the help.
     
  14. Offline

    Comphenix

    I have tested the plugin on the 1.3 DEV builds, and there are a couple of problems.

    Firstly, the maxenchant feature has not been updated and will yield level 50 on the bottom slot, even though the maximum enchant is now 30 (you won't get any more powerful enchants either). The fix is simple though - just don't use it. It's not needed either, seeing how the new enchanting table has this feature by default.

    Secondly, the virtual reward type is also currently broken, giving far more experience than intended. The recommended workaround is to use the experience reward, or currency if you're using the penalize feature.

    Both of these issues will be fixed in the next version (2.3.0), which is currently under review on BukkitDev. It will hopefully be accepted soon.

    Now, in addition to these minor problems, there's also the fact that ExperienceMod is currently unable to modify or prevent vanilla experience drops, such as the experience you'd normally get from mining diamond ore. Nor can I include a fix for that in 2.3.0, as the current developer build doesn't expose an API for handling these experience rewards.

    But there is a hack to avoid this altogether. Patch CraftBukkit 1.3 to not drop block experience by default:
    https://github.com/downloads/aadnk/ExperienceMod/Bukkit%20No-Vanilla%20XP%20Fix%201.1.zip

    It works just like a standard Minecraft client mod (insert a class file into a .jar file), and is equally sane and stable. So, be warned - it has not been extensively tested, and may break something. It's very unlikely, as I only added a single line of code, but nevertheless - make backups if you haven't already. Though, hopefully you're already aware of that, if you're using the developer builds.

    Note that this is ONLY a temporary solution. I'll remove the link once it's no longer necessary.

    EDIT: There's still no API for it, so I've worked on the patch instead. It now also disables vanilla smelting experience, so you'll be able to modify that too.

    I've now posted the next version (2.3.0) on BukkitDev. It's mainly to address the new 1.3 developer builds, but it also adds a couple of new features.

    If you're not using 1.3.1 yet, and still want these new features, then you should download the 2.2.4 version instead.

    New features in 2.2.4 and 2.3.0
    It's now possible to distinguish between slimes of different sizes. Use tiny, small or big in the third attribute:
    Code:
    mobs:
      slime|?|small: 3
      slime|?|big: 5
    In addition, I've added the ability to reward players with items. Simply use the drops reward type wherever you want the player to be rewarded:
    Code:
    items:
      diamond ore:
        bonus source:
          drops:
            gold ingot: 0.5 # 50%
            ice: [1, 3]
    Note that the gold ingot will be rewarded 50% of the time in this case.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  15. Offline

    shakeable_drip

    Ive been using this pluggin for a while on my server. It gets 3 thrums up from me! so customizable and xp for fishing... nice 8)
     
  16. Offline

    Comphenix

    If anyone is wondering, it's still not possible to directly change the default experience rewards in 1.3. But, I've upgraded the CraftBukkit-patch to now also remove the vanilla experience from smelting, so that it's now possible to modify it with ExperienceMod.

    As for the next version, I'm currently working on the ability to set how much experience you need to level up every level. It's going to be fairly customizable - you'll be able to set this for each individual level, or using a mathematical formula. I was also able to change the amount of experience you need for the highest enchanting level, so with this you should be able to, for instance, have the same experience system as in 1.2.5.

    I don't have an ETA for this, as I'd like the next version to coincide with a CraftBukkit release that doesn't require patching for experience to be changed ...
     
  17. Offline

    Comphenix

    I've now created a safe fix for the vanilla experience issue - download and install the NoVanillaExperienceMod (if you're using CraftBukkit DevBuild #2326), and you wont have to "patch" or modify CraftBukkit.jar at all.

    This won't work with the latest release build, however.

    I've also completed version 2.4.0 of ExperienceMod and posted it to BukkitDev. It should be reviewed and accepted (hopefully) in a day or two. Among other things, you'll now be able to fully and seamlessly change the experience system back to 1.2.5 in 1.3 - including having the same enchanting system and leveling rate. Or, you can set an even steeper custom rate - it's all configurable

    Full list of new upcoming features:
    • Added the ability to change how much experience the enchanting level requires:
      • Change the maximum enchanting level from 30 to anything you'd like.
      • Set the amount of bookcases you need to get the maximum enchanting level.
    • Leveling rates: Added a way of changing how much experience you need to level up a level. This can be set either level by level, or by using a general mathematical expression. This will allow you to revert the experience system back to 1.2.5 flawlessly.
    • Added support for ChannelChat.

    Version 2.4.0 has now been released on BukkitDev.

    The biggest new feature is the ability to correctly emulate the 1.2.5 experience system in 1.3. You'll need this configuration file for that to work.

    Changelog:
    • Added the ability to change how much experience the enchanting level requires:
      • Change the maximum enchanting level from 30 to anything you'd like.
      • Set the amount of bookcases you need to get the maximum enchanting level.
    • Leveling rates:
      • Added a way of changing how much experience you need to level up a level. This can be set either level by level, or by using a general mathematical expression. This will allow you to revert the experience system back to 1.2.5 flawlessly.
    • Added support for ChannelChat.
    • Made the default configuration more in line with the rate of 1.3. Delete config.yml to receieve this update.
    • Ranges can now be expressed as '1 - 10', in addition to the old format of [1, 10].
    • Switched to a more efficient virtual experience system that should scale well with the new leveling rate feature.
    • The AutoUpdate feature now checks that the version online is newer before informing of an update.
    • Added a preset cache - this should improve performance if the underlying permission system doesn't cache options.
    • Fixed a bug preventing the drops reward from being displayed in the command line.
    • Forgot to cancel block breaking if there's insufficient funds (penalties).
    • Fixed the configuration not loading in virtual rewards.
    • Fixed a couple of NPE errors in reward virtual.
    • API:
      • Renamed "Range" to "SampleRange".

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  18. Offline

    Comphenix

    Version 2.5.0 has now been released. Download it here. :)

    Changelog:
    • The mod now natively supports altering the vanilla block experience. But you will still need the NoVanillaExperienceMod to change any smelting experience.
    • Added a "multiplier" option to queries. Only the matched blocks or entities will be affected by this multiplier.
    • Added the ability to set the amount of experience rewarded when killing other players. The amount can be based on the player's name and group, or the killing method.
    • Added custom reward expressions, allowing you to use the reward "EXPERIENCE * 0.33" - give 33% of a player's total experience - for player deaths.
    • Added some useful mathematical functions to custom expressions and the "levels" section.
    • Fixed a NullPointerException that would sometimes occur when using furnaces/crafting tables.
    • Investigating the bug above more thoroughly revealed a Bukkit event bug. Added a workaround.
    • Fixed currency rewards not working properly,
    • Fixed currency drops not being counted correctly.
    • Fixed configuration files not being inherited properly.
    • Added custom variables/parameters to every expression. Other mods can extend this system.
     
  19. Offline

    Comphenix

  20. Offline

    royalaid

    Hello, first off let me just say your plugin is great, works wonderfully with the mods I have installed all expect Equivalent Exchange. It appears to the it doesn't like Dark Matter or Red Matter furnaces, treating them both as chests and not rewarding XP. I am running version 2.2.6 with experience bridge mod 1.2.
     
  21. Offline

    Comphenix

    I tried to replicate your problem, but it seemed to work fine on Tekkit 3.1.2.

    Try enabling debug mode (/expmod debug). See if you get any experience at all. Also, note that Equivalent Exchange uses the "smelting result" trigger for furnances, not transmute.
     
  22. Offline

    royalaid

    [quote uid=90687950 name="Comphenix" post=1331242]I tried to replicate your problem, but it seemed to work fine on Tekkit 3.1.2.

    Try enabling debug mode (/expmod debug). See if you get any experience at all. Also, note that Equivalent Exchange uses the "smelting result" trigger for furnances, not transmute.[/quote]
    I am running 1.4.6.5 r5 of EE2 ported to bukkit by cpw for MCPC, download <Edit by Moderator: Redacted mediafire url>

    On a related note, not sure if this is a bug or just the way it works becasue the item ID's are weird but I have noticed that if I add a reward to ruby ore blocks it also includes any RP ores (silver, RP copper, etc.). Is there any way to separate out the rewards because the bridgemod only detects ruby ore and the item ids are 140:1, 140:2, etc...

    Thanks for the quick reply btw =D
     
    Last edited by a moderator: Nov 10, 2016
  23. Offline

    Comphenix

    [quote uid=90579802 name="royalaid" post=1331486]Is there any way to separate out the rewards because the bridgemod only detects ruby ore and the item ids are 140:1, 140:2, etc..[/quote]
    Sure. Use the "|" operator to include the damage/data value:
    Code:
    items:
      140|1:
        block source: 1
    [quote uid=90579802 name="royalaid" post=1331486]I am running 1.4.6.5 r5 of EE2 ported to bukkit by cpw for MCPC, download <Edit by Moderator: Redacted mediafire url>
    Most custom blocks are recognized as chests, though. This is due to a quirk in Bukkit, but ExperienceBridgeMod should be able to detect and handle the blocks regardless.

    Now, as it happens, the EE2 version I was working on in Tekkit (probably older) was fairly broken, so I had to add some custom handling. That could be the cause of your problem, but I can't be sure.

    I tried setting up a similar server, but I couldn't get NEI working with MCPC. I'll try again tomorrow. :)
     
    Last edited by a moderator: Nov 10, 2016
  24. Offline

    Sefyre

    Hullos! :)

    I wanted to start my post by saying that my friend and I have been using ExperienceMod (to gain experience with fishing, mostly :lol: ) and it's been a pretty awesome experience so far and we look forward to continue using the mod.

    The second part of my post has to do with reporting a possible bug/issue in regards to ExperienceMod, reporting statistics through PluginMetrics, and what perhaps can happen when MCStats is down (and yes, I already reported this issue to the Plugin Metrics/MCStats thread).

    Very recently starting from September 21, my friend's Bukkit console suddenly started throwing up a particular [Metric]-tagged error that looks like this:

    Code:
    2012-09-22 15:09:27 [INFO] [Metrics] Software caused connection abort: recv failed
    and this error will pop up sometimes during server launch as the various plugins are being enabled like so:

    Code:
    2012-09-26 00:03:55 [INFO] Query running on x.xxx.xxx.xx:xxxxx
    2012-09-26 00:03:55 [INFO] [Metrics] Software caused connection abort: recv failed
    2012-09-26 00:04:17 [INFO] [ExperienceMod] [AutoUpdate] No new version detected.
    2012-09-26 00:04:17 [INFO] [ExperienceMod] [AutoUpdate] Version online: 2.5.0
    2012-09-26 00:13:22 [INFO] Friend[/x.xxx.xxx.xx:xxxx] logged in with entity id xxx at ([blah] insert location here)
    2012-09-26 00:13:56 [INFO] [Metrics] Software caused connection abort: recv failed
    2012-09-26 00:15:34 [INFO] Sefyre[/x.xxx.xxx.xx:xxxx] logged in with entity id xxxx at ([blah] insert location here)
    and otherwise throughout the duration of the game like so:

    Code:
    2012-09-26 02:23:55 [INFO] <Sefyre> we're in the general right area
    2012-09-26 02:23:55 [INFO] [Metrics] Software caused connection abort: recv failed
    2012-09-26 02:24:00 [INFO] <Friend> oh good
    In relation to it (at least it seems to be in relation to it, though it makes no sense to me), we've also been experiencing a strange series of gameplay issues that were never existent before these errors started popping up.

    1) Getting Stuck in a wall of mossy cobble
    2) Getting Stuck in a wall of soil blocks and receiving Suffocation Damage
    3) Walls of a Ruins and its Floor Suddenly Turning Transparent for no reason
    4) Worsening Player Connectivity Stability
    5) Player's Actions and Locations Not Being Updated Correctly
    6) Greater Frequency of Player Moved Wrongly Errors

    I originally posted parts of this same post to the Plugin Metrics thread, too, to see if they could help us troubleshoot this odd error and the problems we were having and during the time of troubleshooting, my friend disabled the MCStats reporting option in the ExperienceMod plugin which was and is the only plugin that we use which utilizes Plugin Metrics and MCStats... and the error messages went away and with it, all of the reported problems.

    I also found out that during the time of these error messages and gameplay issues, MCStats was down and/or having some trouble... which might have contributed to the problem, however the problem was first triggered.

    I'm not sure how everything's related, but what I do know for sure is that enabling the Plugin Metrics triggers these problems again and disabling the Plugin Metrics gets rid of these problems again and that ExperienceMod is the only mod we use where Plugin Metrics is also used.

    Anyhow, the problem seems to be 'fixed' for now and I just thought that perhaps I ought to report the issue to you, too, just in case someone else might have a similar issue.

    Thanks for an awesome mod! :)
     
  25. Offline

    Scipione

    First: Great Plugin, thanks for your work :)

    i just wanna share my config.yml to other tekkit users, it's made of your "Emulating 1.3" Example and just added the tekkit ore blocks, smelting them and crushing ore in the macerator (if someone dislike getting xp from macerator just delete the parts with "processing result" in it).
    Remember to either copy and paste or rename file to .yml
     

    Attached Files:

  26. Offline

    ShadowSplicer

    I've been having a problem with ExperienceMod since the very beginning, doesn't matter what version of your plugin/CB I use. :( On startup, I get about 30 lines of:

    [WARNING] [ExperienceMod] §cWarning: Preset '' threw exception: java.lang.UnsupportedOperationException: iChat does not support group info nodes!

    I don't see any settings about info nodes, or anything similar. I'm really tired of the huge error chunk in the middle of my startup... Is this a known issue? I haven't been able to find anybody else with my problem as of yet.

    CB 1_4_6_r0.3, ExperienceMod v2.5.3-SNAPSHOT, iChat 2.6.3
     
  27. Offline

    ShadowSplicer

    Well... Didn't realize the last post was made on October 9th. I'm going to assume this thread is dead now... :confused:
     

Share This Page