Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否有在稍微詳盡一點的說明 #8

Closed
ausir0726 opened this issue Mar 31, 2016 · 4 comments
Closed

是否有在稍微詳盡一點的說明 #8

ausir0726 opened this issue Mar 31, 2016 · 4 comments

Comments

@ausir0726
Copy link

對 java 不是太熟

所以 import Spigot/Spigot-Server 一直有問題
也無法再編譯成功

不知道是不是有在稍微清楚一點的 import 與 編譯作法
google 了但因為關鍵字一直會被開發新插件 import spigot 洗掉...

thanks.

@ausir0726
Copy link
Author

嗯~

好像有弄出來了

  1. build spigot
    [ java -jar BuildTools.jar ]
  2. setting mvn
    [ /path to apache-maven-3.2.5/bin/mvn -version ]
    要把 mvn 給予執行權限 然後把 java home 設定好
  3. download patch and goto Spigot/Spigot-Server/src upate patch
    [ patch -p1 < ../src.patch ]
  4. build spigot.jar
    [ /path to apache-maven-3.2.5/bin/mvn clean install ]

不知道是否正確

請問現在有支援 1.9.2 嗎?
因為 會跳一堆錯誤 然後無法編譯

我得到以下訊息

/Users/ausir/mcbuilder/Spigot/Spigot-Server/src $
patch -p1 < ../HOSE/src.patch
patching file main/java/net/minecraft/server/AttributeMapServer.java
patching file main/java/net/minecraft/server/AttributeModifiable.java
patching file main/java/net/minecraft/server/BiomeBase.java
patching file main/java/net/minecraft/server/BlockMinecartTrackAbstract.java
Hunk #1 succeeded at 238 (offset -9 lines).
patching file main/java/net/minecraft/server/BlockPiston.java
Hunk #1 succeeded at 6 (offset 2 lines).
Hunk #2 succeeded at 113 (offset 42 lines).
Hunk #3 succeeded at 313 (offset -1 lines).
patching file main/java/net/minecraft/server/BlockPressurePlateAbstract.java
Hunk #2 FAILED at 77.
1 out of 2 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/BlockPressurePlateAbstract.java.rej
patching file main/java/net/minecraft/server/BlockRedstoneTorch.java
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file main/java/net/minecraft/server/BlockRedstoneTorch.java.rej
patching file main/java/net/minecraft/server/BlockRedstoneWire.java
Hunk #2 FAILED at 19.
Hunk #3 FAILED at 66.
Hunk #4 succeeded at 300 (offset 42 lines).
2 out of 4 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/BlockRedstoneWire.java.rej
patching file main/java/net/minecraft/server/BlockRepeater.java
patching file main/java/net/minecraft/server/BlockSapling.java
Hunk #2 succeeded at 42 (offset 2 lines).
patching file main/java/net/minecraft/server/BlockTripwire.java
Hunk #2 FAILED at 134.
1 out of 2 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/BlockTripwire.java.rej
patching file main/java/net/minecraft/server/ChatBaseComponent.java
patching file main/java/net/minecraft/server/Chunk.java
Hunk #3 FAILED at 32.
Hunk #4 FAILED at 82.
Hunk #5 succeeded at 787 (offset -67 lines).
Hunk #6 FAILED at 818.
Hunk #7 succeeded at 865 (offset -67 lines).
Hunk #8 FAILED at 906.
Hunk #9 succeeded at 1277 (offset -49 lines).
4 out of 9 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/Chunk.java.rej
patching file main/java/net/minecraft/server/ChunkProviderGenerate.java
patching file main/java/net/minecraft/server/ChunkProviderServer.java
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 32 (offset -7 lines).
Hunk #3 FAILED at 46.
Hunk #4 succeeded at 51 with fuzz 2 (offset -18 lines).
Hunk #5 succeeded at 72 (offset -18 lines).
Hunk #6 succeeded at 122 (offset 21 lines).
Hunk #7 FAILED at 155.
Hunk #8 FAILED at 186.
Hunk #9 succeeded at 197 (offset 19 lines).
Hunk #10 FAILED at 225.
Hunk #11 FAILED at 322.
Hunk #12 succeeded at 301 (offset -63 lines).
Hunk #13 succeeded at 318 (offset -63 lines).
6 out of 13 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/ChunkProviderServer.java.rej
patching file main/java/net/minecraft/server/ChunkRegionLoader.java
Hunk #2 succeeded at 18 with fuzz 2.
patching file main/java/net/minecraft/server/Container.java
Hunk #4 succeeded at 155 with fuzz 1.
Hunk #5 FAILED at 183.
1 out of 5 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/Container.java.rej
patching file main/java/net/minecraft/server/CraftingManager.java
Hunk #2 succeeded at 224 (offset 9 lines).
patching file main/java/net/minecraft/server/CrashReport.java
patching file main/java/net/minecraft/server/DedicatedServer.java
Hunk #1 FAILED at 29.
1 out of 1 hunk FAILED -- saving rejects to file main/java/net/minecraft/server/DedicatedServer.java.rej
patching file main/java/net/minecraft/server/EntityFallingBlock.java
Hunk #2 FAILED at 16.
Hunk #3 succeeded at 131 (offset 14 lines).
Hunk #4 succeeded at 161 (offset 14 lines).
1 out of 4 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/EntityFallingBlock.java.rej
patching file main/java/net/minecraft/server/EntityHuman.java
Hunk #1 FAILED at 430.
1 out of 1 hunk FAILED -- saving rejects to file main/java/net/minecraft/server/EntityHuman.java.rej
patching file main/java/net/minecraft/server/EntityItem.java
Hunk #1 succeeded at 5 (offset 1 line).
Hunk #2 succeeded at 84 with fuzz 2 (offset 2 lines).
Hunk #3 FAILED at 145.
Hunk #4 succeeded at 167 (offset 1 line).
1 out of 4 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/EntityItem.java.rej
patching file main/java/net/minecraft/server/Entity.java
Hunk #1 succeeded at 146 with fuzz 2 (offset 24 lines).
Hunk #2 FAILED at 288.
Hunk #3 FAILED at 316.
Hunk #4 FAILED at 786.
Hunk #5 FAILED at 1113.
Hunk #6 FAILED at 1584.
Hunk #7 FAILED at 1605.
Hunk #8 FAILED at 1615.
Hunk #9 FAILED at 1635.
Hunk #10 FAILED at 1943.
Hunk #11 FAILED at 1977.
10 out of 11 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/Entity.java.rej
patching file main/java/net/minecraft/server/EntityLiving.java
Hunk #1 FAILED at 14.
Hunk #2 succeeded at 28 (offset 1 line).
Hunk #3 FAILED at 38.
Hunk #4 FAILED at 95.
Hunk #5 succeeded at 124 with fuzz 1 (offset 16 lines).
Hunk #6 succeeded at 512 with fuzz 1 (offset 43 lines).
Hunk #7 FAILED at 1537.
Hunk #8 FAILED at 1781.
Hunk #9 FAILED at 1837.
6 out of 9 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/EntityLiving.java.rej
patching file main/java/net/minecraft/server/EntityMinecartAbstract.java
Hunk #2 succeeded at 245 (offset 6 lines).
Hunk #3 succeeded at 895 (offset -49 lines).
patching file main/java/net/minecraft/server/EntityPlayer.java
Hunk #1 succeeded at 8 (offset -2 lines).
Hunk #2 FAILED at 32.
Hunk #3 FAILED at 219.
Hunk #4 FAILED at 898.
3 out of 4 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/EntityPlayer.java.rej
patching file main/java/net/minecraft/server/EntitySlice.java
patching file main/java/net/minecraft/server/EntityTrackerEntry.java
Hunk #1 FAILED at 39.
Hunk #2 succeeded at 438 (offset 13 lines).
1 out of 2 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/EntityTrackerEntry.java.rej
patching file main/java/net/minecraft/server/EntityTracker.java
Hunk #3 FAILED at 109.
Hunk #4 succeeded at 169 (offset 2 lines).
Hunk #5 succeeded at 186 (offset 2 lines).
Hunk #6 succeeded at 199 (offset 2 lines).
Hunk #7 FAILED at 245.
Hunk #8 FAILED at 255.
3 out of 8 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/EntityTracker.java.rej
patching file main/java/net/minecraft/server/Explosion.java
patching file main/java/net/minecraft/server/HandshakeListener.java
patching file main/java/net/minecraft/server/IntCache.java
patching file main/java/net/minecraft/server/ItemRecord.java
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file main/java/net/minecraft/server/ItemRecord.java.rej
patching file main/java/net/minecraft/server/ItemStack.java
Hunk #2 FAILED at 121.
Hunk #3 FAILED at 154.
2 out of 3 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/ItemStack.java.rej
patching file main/java/net/minecraft/server/JsonList.java
patching file main/java/net/minecraft/server/MinecraftServer.java
Hunk #2 succeeded at 24 with fuzz 1 (offset 8 lines).
Hunk #3 FAILED at 46.
Hunk #4 FAILED at 67.
Hunk #5 FAILED at 113.
Hunk #6 succeeded at 117 (offset -2 lines).
Hunk #7 FAILED at 370.
Hunk #8 succeeded at 533 (offset 2 lines).
Hunk #9 succeeded at 660 with fuzz 2 (offset 6 lines).
Hunk #10 succeeded at 728 (offset 6 lines).
Hunk #11 FAILED at 843.
Hunk #12 succeeded at 1044 (offset -1 lines).
Hunk #13 succeeded at 1127 (offset -1 lines).
5 out of 13 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/MinecraftServer.java.rej
patching file main/java/net/minecraft/server/PacketPlayOutMapChunk.java
Hunk #1 FAILED at 4.
Hunk #2 FAILED at 58.
2 out of 2 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/PacketPlayOutMapChunk.java.rej
patching file main/java/net/minecraft/server/PacketStatusListener.java
Hunk #2 FAILED at 100.
1 out of 2 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/PacketStatusListener.java.rej
patching file main/java/net/minecraft/server/PathfinderGoalBreed.java
patching file main/java/net/minecraft/server/PersistentCollection.java
patching file main/java/net/minecraft/server/PersistentVillage.java
patching file main/java/net/minecraft/server/PistonExtendsChecker.java
patching file main/java/net/minecraft/server/PlayerChunkMap.java
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 12.
Hunk #3 succeeded at 54 with fuzz 1 (offset 21 lines).
Hunk #4 FAILED at 98.
Hunk #5 FAILED at 111.
Hunk #6 FAILED at 180.
Hunk #7 FAILED at 213.
Hunk #8 FAILED at 291.
Hunk #9 FAILED at 311.
Hunk #10 FAILED at 351.
Hunk #11 FAILED at 415.
Hunk #12 FAILED at 435.
11 out of 12 hunks FAILED -- saving rejects to file main/java/net/minecraft/server/PlayerChunkMap.java.rej
patching file main/java/net/minecraft/server/PlayerConnection.java
Reversed (or previously applied) patch detected!  Assume -R? [n]
`

@softpak
Copy link
Owner

softpak commented Mar 31, 2016

應該是有辦法簡化成單純將patch檔放到patch資料夾,直接執行buildtools的辦法。另外1.9已經開始在開發了,使用了jdk1.7的新語法,能解決jdk1.6的諸多問題,之後會順便把1.8.8的bug用相同方式修正。

@ausir0726
Copy link
Author

瞭解

因為看更新,以為是已經支援 1.9 了...

謝謝

@ausir0726
Copy link
Author

剛剛用 1.8.8 測試可以 patch 了
但是我再 mvn clean install 的時候還是 BUILD FAILURE

不過沒關系
因為我們現在也已經用 1.9.2 了 >"< 玩家回不去了

所以只好乖乖支持 1.9 ....

是我自己誤會以為支援 1.9 了
希望 1.9 可以直接加進去 BuildTools ,不然編譯要下載回來有點麻煩 XD

抱歉,可以幫我 CLOSE 了!

謝謝

@softpak softpak closed this as completed Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants