mcMMO-Dev / mcMMO

The RPG Lover's Mod!
https://mcmmo.org
GNU General Public License v3.0
1.01k stars 862 forks source link

Herbalism Skill Not Increasing with Wheat #3226

Closed hamcoremusic closed 7 years ago

hamcoremusic commented 7 years ago

Hello!

I am having an issue with the latest build of McMMO (1.5.08). When planting and gathering wheat I do not receive any herbalism XP.

Zefferis commented 7 years ago

Yeah; same problem, it's being talked about (kinda) though.

https://github.com/mcMMO-Dev/mcMMO/issues/3207

Angel9001 commented 7 years ago

all this crops that got added in https://github.com/mcMMO-Dev/mcMMO/commit/44684fcfd0ef11bb2ed5c5681a1d80050db67a9e no longer give any xp to herbalism skill regardless of been fully grown or grow %. Tried altering the xp on this lines in the config file to see if they start giving xp but unfinished crop also don't give any xp. all other plants are unaffected. I'm running version 194# the problem consisted in this version

runelynx commented 7 years ago

Player reported this applies to potatoes :(

Zefferis commented 7 years ago

It applies to all crops except beetroot / grasses / flowers / mushrooms.

It effects blocks in a non chunk basis, slowly but eventually prevents all player crops (potatoes, carrots, wheat) from giving xp

bendison commented 7 years ago

Also experiencing this issue, tried adding "Wheat" to the experience config and still nothing. I didn't realize that they changed all crops to be under one value.

DeKleineKobini commented 7 years ago

Also experienced this issue, but I fixed the problem in a local version.

com\gmail\nossr50\skills\herbalism\HerbalismManager.java line 128: if (oneBlockPlant && mcMMO.getPlaceStore().isTrue(blockState)) { to if (!oneBlockPlant && mcMMO.getPlaceStore().isTrue(blockState)) { That's the only thing I changed.

Seeroh commented 7 years ago

@kobini2 Care to share that .java file from the .jar? (A little easier for me to check the code to see if anything was tampered with, so I can fix the issue on my server. I'm not really good at building plugins)

DeKleineKobini commented 7 years ago

It;s literaly 1 character but I'll pastebin it.

EDIT: https://pastebin.com/902uHzEf

Seeroh commented 7 years ago

I meant posting the file. I'm not really adept with building jars. So the code is easy enough to have, but building it is the problem. I don't have any idea on how that all works. @kobini2

Sikatsu commented 7 years ago

Same issue. Herbalism is broken, @t00thpick1

DeKleineKobini commented 7 years ago

I'll just leave my fixed version here: https://mega.nz/#!fIhyzS5L!wIeF60nxzqpE7SFNxPu-xJc58TzXhLL04l4vWP0Jzt8

Sikatsu commented 7 years ago

Is that the latest source with the herbalism fix?

DeKleineKobini commented 7 years ago

The source can be 3 days old, I can always update it if you want.

EDIT: I checked, and it was up to date.

mibby commented 7 years ago

I can confirm as well with my players that you don't gain any xp with herbalism with any crops but for breaking grass.

t00thpick1 commented 7 years ago

Should be fixed. will need to regen experience config, sorry. I thought I could preserve backwards compat for config but I was wrong.

Seeroh commented 7 years ago

I just tried with the latest version, and a clean install, still having the problem. Tilled ground near water, planted wheat seeds, grew them with bonemeal, got exactly zero EXP.

(By latest version, I mean Build #195)

mibby commented 7 years ago

@t00thpick1 Perhaps do the change @kobini2 made? As his build seemed to work fine with my players when I tested.

https://github.com/mcMMO-Dev/mcMMO/blob/24f8b2fbd5d4b12e5ad19dc598b3c1177eafaa4d/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java#L128

Changing

if (oneBlockPlant && mcMMO.getPlaceStore().isTrue(blockState)) {

to

if (!oneBlockPlant && mcMMO.getPlaceStore().isTrue(blockState)) {
Seeroh commented 7 years ago

@kobini2 @mibby @Sikatsu @Zefferis

In case it has not been found, or reported, there seems to be an issue with herbalism (at the very least) with your fixed mcMMO where you can place down flowers, and immediately break them for xp, and likely extra drops. Basically a grind and dupe glitch. Might want to look into it.

I just temporarily cut the xp for flowers and instant breakables, and turned off double drops, until a fix for herbalism is released.

SXRWahrheit commented 7 years ago

@t00thpick1 Is it possible for you to list the changes so we can manually patch our configs rather than losing all our edits? I can do a compare, I guess, but yeah

runelynx commented 7 years ago

You can see that in github

Sent from my iPhone

On Jul 28, 2017, at 4:07 PM, SXRWahrheit notifications@github.com wrote:

@t00thpick1 Is it possible for you to list the changes so we can manually patch our configs rather than losing all our edits? I can do a compare, I guess, but yeah

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

SXRWahrheit commented 7 years ago

It looks like I only got these changes:

#  Last updated on 1.5.08-SNAPSHOT-b${BUILD_NUMBER}
        Stone|*: 30
        Stained_Clay|*: 50
SXRWahrheit commented 7 years ago

Users also report no EXP gain on version 195, @t00thpick1.

DeKleineKobini commented 7 years ago

I updated my version to the lastest dev-build, and it should also fix the bug @Seeroh mentioned.

https://mega.nz/#!fIhyzS5L!wIeF60nxzqpE7SFNxPu-xJc58TzXhLL04l4vWP0Jzt8 Please use build 196 of higher

Changes: com\gmail\nossr50\skills\herbalism\HerbalismManager.java > https://pastebin.com/XjFbQy5w

SXRWahrheit commented 7 years ago

@kobini2 Your link appears to be invalid - file was removed. I appreciate the effort, though!

DeKleineKobini commented 7 years ago

Thanks for pointing it out @SXRWahrheit . 2 links, for safety (for some odd reason the previous was removed).

~~https://mega.nz/#!2ZgUmLiZ!v_Nxo9JXS3IYhpF8QQB1b4Z5ULTzDs8jP36wVlFIADc https://drive.google.com/open?id=0B18fJQbDg1Vsdk95WDUwa0ZWZ0k~~ Please use build 196 of higher

EDIT: if it doesn't work now, then you'll have to wait 2 days, I'm going on a little vacation

Sikatsu commented 7 years ago

@kobini2 Using that version players still report they are able to place flowers and remove them to earn XP in herbalism and receive double drops. So the dupe is still possible it seems. Running (Herbalism fix v2)

DeKleineKobini commented 7 years ago

My players also found a bug, lily pads keep giving xp

Herbalism fix v3: ~~https://drive.google.com/drive/folders/0B18fJQbDg1VsVVo1Y290OVhBaW8?usp=sharing https://mega.nz/#!TQYXWCCK!XoTolDT-Ee4HU-nI1lu1UF05ihfxD5vrCYvWXTCnprY~~ Please use build 196 of higher

t00thpick1 commented 7 years ago

Would recommend reading: https://github.com/mcMMO-Dev/mcMMO/commit/f1ac5739e4681fb3e14849baf3738a0df97a3a95

Kobini's "fix" not recommended due to it just ignoring the block tracking systems in place to prevent exp exploitation. Although the effort is appreciated.

DeKleineKobini commented 7 years ago

While it may not be the best fix, it is only temporary until your version works again.

DeKleineKobini commented 7 years ago

Can confirm, completely fixed.

BetaBurnt commented 7 years ago

The updated dev build hasn't fixed it for me - updated mcmmo jar to dev build 196 and regenerated the experience.yml file on restart but any crops I place still don't give me any experience, only crops placed by others

SXRWahrheit commented 7 years ago

Running 196 with this experience.yml and no exp gain:

    Herbalism:
        Allium: 300
        Azure_Bluet: 150
        Beetroot_Block_Ripe: 50
        Blue_Orchid: 150
        Brown_Mushroom: 150
        Cactus: 30
        Carrot_Ripe: 50
        Chorus_Flower: 25
        Chorus_Plant: 1
        Cocoa_Ripe: 30
        Crops_Ripe: 50
        Dead_Bush: 30
        Lilac: 50
        Melon_Block: 20
        Nether_Warts_Ripe: 50
        Orange_Tulip: 150
        Oxeye_Daisy: 150
        Peony: 50
        Pink_Tulip: 150
        Poppy: 100
        Potato_Ripe: 50
        Pumpkin: 20
        Red_Mushroom: 150
        Red_Tulip: 150
        Rose_Bush: 50
        Small_Fern: 10
        Small_Grass: 10
        Sugar_Cane_Block: 30
        Sunflower: 50
        Tall_Grass: 50
        Tall_Fern: 50
        Vine: 10
        Water_Lily: 100
        White_Tulip: 150
        Yellow_Flower: 100
Sikatsu commented 7 years ago

Same issue, regenerated my experience config but I still have that problem. Back to @kobini2 build for now.

BetaBurnt commented 7 years ago

Correction:: Does work, but any crops that had already been placed won't work. Planting new crops and leaving them to grow before harvesting worked fine on dev build 196

SXRWahrheit commented 7 years ago

Will it not work with bonemeal, then? Because that's what I tried, and no dice.

Sikatsu commented 7 years ago

Bonemeal doesn't work I guess.

SXRWahrheit commented 7 years ago

Can we get a fix for bonemeal @t00thpick1?

iSkeptical commented 7 years ago

I'm using latest mcmmo build. Regenerated experience yml file. Still not gaining any Hebalism exp from crops.

nathanprocks commented 7 years ago

@iSkeptical It works for me. Did you replant the crops without using bonemeal?

Zefferis commented 7 years ago

Perhaps you should go into: //

find your mcmmo_regions folder for your 3 worlds and delete it and restart the world?

Might be a lingering effect on your actual region files