msmhq / msm

An init script for managing Minecraft servers
http://msmhq.com
GNU General Public License v3.0
1.22k stars 225 forks source link

Failure when use icpc-Forge jar #247

Open DeckerCHAN opened 10 years ago

DeckerCHAN commented 10 years ago

When I try to use mcpc1.6.4.jar to replace standard jar file in my server. I received a error with mcpc. I consider that caused by mcpc download function. It will download some file contained by folder called library and this folder must at the same folder with jar file. So I changed it manual by change soft link to hard link. Finally that worked. I consider you need to thinking about this. Sorry about my english :-P

DeckerCHAN commented 10 years ago

By the way I think you need to add both max memory and min memory at config file. And the number of processor is necessary.

zachlatta commented 10 years ago

Can you provide the error along with the changes you made to resolve this?

DeckerCHAN commented 10 years ago
minecraft@Ubu-Server:/opt/msm/jars/mcpc-164-forge965$ msm TestForge jar mcpc-164                                                       -forge965
Downloading latest version... Done.
Downloaded version was different to previous latest. Saved as "/opt/msm/jars/mcp                                                       c-164-forge965/2014-03-17-12-22-26-mcpc-plus-1.6.4-R2.1-forge965-B250.jar".
Server "TestForge" is now using "/opt/msm/jars/mcpc-164-forge965/2014-03-17-12-2                                                       2-26-mcpc-plus-1.6.4-R2.1-forge965-B250.jar".
minecraft@Ubu-Server:/opt/msm/jars/mcpc-164-forge965$ msm TestForge start
[MSM Info: Assuming 'minecraft/1.3.0' for this server. You should override this                                                        value by adding 'msm-version=minecraft/x.x.x' to '/opt/msm/servers/TestForge/ser                                                       ver.properties' to make this message go away]

Maintaining world symbolic links... Done.
Synchronising flagged worlds on disk to RAM... Done.
Starting server... Done.

Now it looks done.....But.... When I open server console

minecraft@Ubu-Server:/opt/msm/servers/TestForge$ msm TestForge console

Considering library net.minecraftforge:minecraftforge:9.11.1.965
Considering library net.minecraft:launchwrapper:1.8
Downloading library net.minecraft:launchwrapper:1.8
Considering library org.ow2.asm:asm-all:4.1
Downloading library org.ow2.asm:asm-all:4.1
Considering library org.scala-lang:scala-library:2.10.2
Downloading library org.scala-lang:scala-library:2.10.2
save-off
save-all
save-on

There is nothing happened but downloading file. Finally it will fail cause it can't establish folder 'library' I had said I fix it by change soft link to hard link. Then it can create folder and download file correctly.

zachlatta commented 10 years ago

Do you have any idea why changing the symlink to a hardlink would fix that? Seems like an odd and not very ideal solution.

DeckerCHAN commented 10 years ago

Looks like some one had push this issue before. https://github.com/marcuswhybrow/minecraft-server-manager/issues/233 But not correct solution.

I had heard that one of mcpc principle is same place of library folder and jar file.(If not, jar will try to make a folder called library) But in this case, it looks impossible to establish library folder at server folder. Cause you used soft link. So it goona be mistake. Even I have no idea about how mcpc works. But library is key of this issue. This is last version of mcpc. You can test it. http://ci.md-5.net/job/MCPC-Plus/lastSuccessfulBuild/artifact/build/distributions/mcpc-plus-1.7.2-R0.4-forge1033-B50.jar