Nukkit / Nukkit

Nukkit is a Nuclear-Powered Server Software For Minecraft: Pocket Edition
https://nukkit.org
GNU General Public License v3.0
827 stars 274 forks source link

Error with crafting (Windows 10) #576

Closed Pub4Game closed 7 years ago

Pub4Game commented 8 years ago

image

[ALERT] java.lang.ArrayIndexOutOfBoundsException: 0
    at cn.nukkit.Player.handleDataPacket(Player.java:2672)
    at cn.nukkit.network.RakNetInterface.handleEncapsulated(RakNetInterface.java:135)
    at cn.nukkit.raknet.server.ServerHandler.handlePacket(ServerHandler.java:123)
    at cn.nukkit.network.RakNetInterface.process(RakNetInterface.java:61)
    at cn.nukkit.network.Network.processInterfaces(Network.java:73)
    at cn.nukkit.Server.tick(Server.java:961)
    at cn.nukkit.Server.tickProcessor(Server.java:768)
    at cn.nukkit.Server.start(Server.java:748)
    at cn.nukkit.Server.<init>(Server.java:445)
    at cn.nukkit.Nukkit.main(Nukkit.java:65)

[DEBUG] Packet cn.nukkit.network.protocol.CraftingEventPacket 0x8EBB0000000001FCB5B0D1A9D93F55BBF743FD08DB1DA3000000000000000100050400000000
xpyctum commented 8 years ago

Wow :D strange that I have not tried to do

Pub4Game commented 8 years ago

fixed #579

Pub4Game commented 8 years ago

image

image

Bug with craft in inventory

wu-vincent commented 8 years ago

I've captured the CraftEventPacket both on PE and W10E and found that W10E never sends what was being used to craft. I am afraid that this might be a client-side issue. The only way to fix is to ignore input items which will definitely make the server unsafe.

karpovichv commented 8 years ago

Needs to be discussed with devs themselves, if there's any possibility to do it.

kkzhang commented 8 years ago

Same problem with WIN10 edition.

stayandwait commented 8 years ago

I really hope they fix this

wu-vincent commented 8 years ago

This is a client-side issue. 2016年5月18日 上午8:15,"stayandwait" notifications@github.com写道:

I really hope they fix this

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/Nukkit/Nukkit/issues/576#issuecomment-219891478

stayandwait commented 8 years ago

I know, I read the conversation above

Snake1999 commented 8 years ago

Such a bad win10 (even without an official bug tracker) :/

imjack commented 8 years ago

A possible "fix" would be to just check if the player contains the items needed to make the item?

JackboyPlay commented 8 years ago

@imjack thats a really nice idea ^^

Creeperface01 commented 8 years ago

and realms are unsafe?

animator013 commented 8 years ago

Have the same problem. Without crafting it is unplayable :)

Creeperface01 commented 8 years ago

yes it is

animator013 commented 8 years ago

This is fully working in Genisys PHP7 server. Maybe some inspiration from them will make things easier.

Creeperface01 commented 8 years ago

its easy... we must check all craft recipes with this output and check if player has all required items to craft

Pub4Game commented 8 years ago

Need test. https://github.com/Nukkit/Nukkit/pull/1033

raulgbcr commented 8 years ago

Same problem. Compiled last version. @Pub4Game

stayandwait commented 8 years ago

It was said that you fixed crafting for Minecraft Windows 10 edtion in 438 http://ci.mengcraft.com:8080/job/nukkit/438/ I'm still not able to permanently keep the workbench I had just crafted. The wooden planks I used to make the workbench also turn back into logs when reopening my inventory.

Creeperface01 commented 8 years ago

IT was fixed in #1040

Pub4Game commented 8 years ago

Nope. Workbench don't fixed

File14 commented 8 years ago

:0

stayandwait commented 8 years ago

It works now! :)

stayandwait commented 8 years ago

There's still a problem. Crafting sticks once crafted turn back into wood again.

Creeperface01 commented 8 years ago

Yes its strange

animator013 commented 8 years ago

Partially working. When I craft, it at least crafts wood to planks. But if I move the wood from my hand, wood stays there and also in crafting space. It gets cloned. Also after crafting I have 8 planks from 1 wood because of the strange cloning.

cyberjudge commented 8 years ago

I'm using the Jenkins file from Maven build 467 and having the crafting issue on Windows 10. I'm assuming a workaround for the way Windows 10 Edition works is not in place yet.

Creeperface01 commented 7 years ago

Fixed...

LeeNeighoff commented 7 years ago

Still an issue on 1.1.3 and 1.2.

algj commented 6 years ago

Still an issue on 1.4

NathanKassab commented 5 years ago

problem with 1.11