Jump to content

Setting up a dedicated server on MacOS.


AdmiralMonke

Recommended Posts

Hello! I am trying to set up a server for family/friends on an extra Mac machine we have that nobody uses. I had followed the wiki on dedicated server setup for linux via the dedicated server tool in steam, but get the following log when trying to start the server via the StartServer.command file.

 

Quote

 

/Users/me/Library/Application\ Support/Steam/steamapps/common/Project\ Zomboid\ Dedicated\ Server/StartServer.command ; exit;

me@Monkeys-MacBook-Pro ~ % /Users/me/Library/Application\ Support/Steam/steamapps/common/Project\ Zomboid\ Dedicated\ Server/StartServer.command ; exit;

Thanks for playing PZ! This script brought to you by Rathlord!

/Users/me/Library/Application Support/Steam/steamapps/common/Project Zomboid Dedicated Server/StartServer.command: line 10: jre/Contents/Home/bin/java: No such file or directory

/Users/me/Library/Application Support/Steam/steamapps/common/Project Zomboid Dedicated Server/StartServer.command: line 13: java/jassimp.jar: cannot execute binary file

/Users/me/Library/Application Support/Steam/steamapps/common/Project Zomboid Dedicated Server/StartServer.command: line 13: java/javacord-2.0.17-shaded.jar: cannot execute binary file

java/javax.activation-api.jar: line 1: PK: command not found

java/javax.activation-api.jar: line 2: ??: command not found

java/javax.activation-api.jar: line 2: K: command not found

java/javax.activation-api.jar: line 3:??: command not found

java/javax.activation-api.jar: line 3: ?Z?ў??f޼?P???X?: Illegal byte sequence

java/javax.activation-api.jar: line 6: syntax error near unexpected token `?Q5???2`?????E&?|?H?ʖ?f&???|NGP??`.?'

java/javax.activation-api.jar: line 6: `<9??4??Ϲ?????YR)????D??2?! I?ӽ?x?(?gM????V?.??D%??DӪ?#?O`?(?Q5???2`?????E&?|?H?ʖ?f&???|NGP??`.?<H?????h0|r'

java/jaxb-api.jar: line 1: PK: command not found

java/jaxb-api.jar: line 2: syntax error near unexpected token `)'

java/jaxb-api.jar: line 2?3,M??lF) META-INF/MANIFEST.MF?V]o?0}G??X<LE#n>?@?N??4?A???MړI?ę????Nh ????s??=?Ʉ?,?R?????.???l\

                                              J???W]&?[P4!K??4?C??a:gq?q??Pe?<???????cB=0?(?7??'

java/jaxb-runtime.jar: line 1: PK: command not found

java/jaxb-runtime.jar: command substitution: line 2: syntax error near unexpected token `)'

??75???ג"-runtime.jar: command substitution: line 2: `t???Z?;S?T$qt??)٦y@??

         oрs?;СdG+?晘?T?2g7O?+?]?v?q{2?[??8b?./9?<??G;Sw?c?H?>£Iz?+?{??$9+?iw?d!?x??a?e??+?E?AO$?e

?*??<[

      Y??I??y???H?R?*??~٦dN?勦pf?s@a?f?Z?Y???܃EC7???b?ھ??S?R?55xI???$}B?:[?od??i?C~??Ou?????~?#??G?k-?g?????M(?d?՝e???l??????ܭk???P????x?PK'

java/jaxb-runtime.jar: line ?a,M????x?META-INF/MANIFEST.MFuP?n?0?

                                                                 ???HK?C?nv?j?H?: No such file or directory

java/jaxb-runtime.jar: line 39: syntax error near unexpected token `?V?ߒ?Z??ģ/oka'

͛?hɴ?ӡ$axb-runtime.jar: line 39: `@?+?*?>???.??x._HS? ?p???@Yw&?=?-`6?%m<m?⠉?In<)

      ?B?^????M??+????870???錻 ??????m?4Eq??????? ?s?5,?JIܩ?^oŚim??j??Ԡ?s]4??s???y?(?V?ߒ?Z??ģ/oka;T??Pf{?m??ճy`???B0????"????$?M"4R?

                               0?c???5?䒊?LJ??Z9?Ӆ8??iy{???!Cb?V@?Ĥ);_??2?)??LV$?K?????,#?'

/Users/me/Library/Application Support/Steam/steamapps/common/Project Zomboid Dedicated Server/StartServer.command: line 13: java/jinput.jar: No such file or directory

java/lwjgl.jar: line 1: PK: command not found

java/lwjgl.jar: line 2:Y?!O: command not found

java/lwjgl.jar: line 3: syntax error near unexpected token `)'

java/lwjgl.jar: line 3:X?!O??_??WMETA-INF/MANIFEST.MFm?=o?0?wK?'&*d+[6`@ P%???%9vtq???1

       ?mXnxޏ{?LM}P?Ľ?T'R,?/?찼D?4љk&

                                     T????l??0?}2??`???!?gR?:*Mm?'P_&X*`o?K????6?R?gFA=:??5)יΧ??<`o??jύ۶?Ԓ

F???9?GKqPK'              ^?

java/lwjgl-natives-macos.jar: line 1: PK: command not found

java/lwjgl-natives-macos.jar: line 2:Y?!O: command not found

java/lwjgl-natives-macos.jar: line 3: syntax error near unexpected token `)'

java/lwjgl-natives-macos.jar: line 3:X?!O??_??WMETA-INF/MANIFEST.MFm?=o?0?wK?'&*d+[6`@ P%???%9vtq???1

                     ?mXnxޏ{?LM}P?Ľ?T'R,?/?찼D?4љk&

                                                   T????l??0?}2??`???!?gR?:*Mm?'P_&X*`o?K????6?R?gFA=:??5)יΧ??<`o??jύ۶?Ԓ

F???9?GKqPK'                            ^?

java/lwjgl-glfw.jar: line 1: PK: command not found

java/lwjgl-glfw.jar: line 4: syntax error near unexpected token `)'

java/lwjgl-glfw.jar: line 4: `d6?????œ`?? }?)???ꥧ?5????"S מ?D?????Ŏ= ?

                                                                               ly?c?r9:?LL8??QF?J?/PK'Z????#U_

/Users/me/Library/Application Support/Steam/steamapps/common/Project Zomboid Dedicated Server/StartServer.command: line 13: java/lwjgl-glfw-natives-macos.jar: No such file or directory

java/lwjgl-jemalloc.jar: line 1: PK: command not found

java/lwjgl-jemalloc.jar: line 2:b?!O: command not found

java/lwjgl-jemalloc.jar: line 24: syntax error near unexpected token `R???_Q?l?'

??????[?Bu7??%?/yc8??R??CדI?@??"UB'(R???_Q?l?|???&pDǔ???l??5\,Z%ifQnP$L?0??"N?'

java/lwjgl-jemalloc-natives-macos.jar: line 1: PK: command not found

java/lwjgl-jemalloc-natives-macos.jar: line 2:b?!O: command not found

java/lwjgl-jemalloc-natives-macos.jar: line 12: syntax error near unexpected token `)'

java/lwjgl-jemalloc-natives-macos.jar: line 12: `(*??*HK?Q٩"Z??-`[?U@e??"P?ҍ杙s??-??>???????&w;뜙?̙?{?????F??h4??W ???+???O?_

                                                  ?F3|?@ˋ5%?I?R??L?A,?ÇǍ???X?E#?~}?^>R?IP>9.???e??s+??V9֪??

                          ?+o???c'??TJydz?k?c?#?7rrܤ7ǿQF??Md?-??,}t?

                                                                   ?M?9????9????4?B?????42???P?]??????&?>1nR?兩??#??o???7&????&??:,?i??Ǿ???u?U???a???7nNq?_???Dy)??CU????=?N???(??????t2?ոW???{XyB???卜0n܄?e??? ??7?G[???&O~??ޮݔ?????j??!sT??ڷ??l??D$+'???q??qH@Y?G??_??O?O???? #_???7_ÿ?F?{u,?i?L?Q??1???F?)֓'

java/lwjgl-opengl.jar: line 1: PK: command not found

java/lwjgl-opengl.jar: line 2:q?!O: command not found

java/lwjgl-opengl.jar: command substitution: line 3: unexpected EOF while looking for matching `''

java/lwjgl-opengl.jar: command substitution: line 4: syntax error: unexpected end of file

java/lwjgl-opengl.jar: line 3: ?=k??Ը?kn??]b?a??S:???: No such file or directory

java/lwjgl-opengl.jar: line 3: ~#???L?r?H~??: command not found

java/lwjgl-opengl.jar: line 3: ????q

                                    e?Oc?ٌ???: No such file or directory

java/lwjgl-opengl.jar: line 3: ?: command not found

java/lwjgl-opengl.jar: line 4:V?!OMETA-INF/versions/PK: No such file or directory

java/lwjgl-opengl.jar: line 5:V?!OMETA-INF/versions/9/PK: No such file or directory

java/lwjgl-opengl.jar: line 6:??!Oorg/PK: No such file or directory

java/lwjgl-opengl.jar: line 7:??!O: command not found

java/lwjgl-opengl.jar: line 8: org/lwjgl/PK: No such file or directory

java/lwjgl-opengl.jar: line 9:??!Oorg/lwjgl/opengl/PK: No such file or directory

java/lwjgl-opengl.jar: command substitution: line 10: syntax error near unexpected token `('

java/lwjgl-opengl.jar: command substitution: line 10:U?!Ov?͐?%META-INF/versions/9/module-info.class;?o?>S>vNF???Ң?T?̜TF????ҜT?̼?|??IJDF6_??0?0?0/#7?:????t???????Լ?FN?f???b???pi?R}0[????????D23?i%V?([?fgP'

java/lwjgl-opengl.jar: line 3: ????q

                                    e?Oc?ٌ???: No such file or directory

java/lwjgl-opengl.jar: line 3: ?: command not found

java/lwjgl-opengl.jar: line 4:V?!OMETA-INF/versions/PK: No such file or directory

java/lwjgl-opengl.jar: line 5:V?!OMETA-INF/versions/9/PK: No such file or directory

java/lwjgl-opengl.jar: line 6:??!Oorg/PK: No such file or directory

java/lwjgl-opengl.jar: line 7:??!O: command not found

java/lwjgl-opengl.jar: line 8: org/lwjgl/PK: No such file or directory

java/lwjgl-opengl.jar: line 9:??!Oorg/lwjgl/opengl/PK: No such file or directory

java/lwjgl-opengl.jar: command substitution: line 10: syntax error near unexpected token `('

java/lwjgl-opengl.jar: command substitution: line 10:U?!Ov?͐?%META-INF/versions/9/module-info.class;?o?>S>vNF???Ң?T?̜TF????ҜT?̼?|??IJDF6_??0?0?0/#7?:????t???????Լ?FN?f???b???pi?R}0[????????D23?i%V?([?fgP'

java/lwjgl-opengl.jar: line 3: 2???/???怫gPK: No such file or directory

java/lwjgl-opengl.jar: line 11: syntax error near unexpected token `)'

java/lwjgl-opengl.jar: line 11:??!O>??!?+org/lwjgl/opengl/AMDBlendMinmaxFactor.class???J?@??m??????@?.ş?Ap?R)?-h)??$?錤????+???C?7х?

                                                    7??9?ݹ?}?x}p?-?K?(a??v?;??pp?nR8?h??ʨ???????HB?WF??y ?4'u߆B?D?R???[? ??6?z?a6՞?????ki&=e??#??F'??&Q(;*?n??Ľ(??'

/Users/me/Library/Application Support/Steam/steamapps/common/Project Zomboid Dedicated Server/StartServer.command: line 13: java/lwjgl-opengl-natives-macos.jar: No such file or directory

java/lwjgl_util.jar: line 1: PK: command not found

java/lwjgl_util.jar: line 2:: command not found

java/lwjgl_util.jar: line 3: 3F: command not found

java/lwjgl_util.jar: line 4: command not found

K-*??ϳR0?3??r?Cq,HL?HU?%-?Lx???RKRSt?*A???NF/MANIFEST.MF?M??LK-.?

                                          ??Lu?

                                               -4???sR??: No such file or directory

java/lwjgl_util.jar: line 6: ?K??5y?x?PK: command not found

java/lwjgl_util.jar: line 7:?: command not found

java/lwjgl_util.jar: line 8:: command not found

java/lwjgl_util.jar: line 9: 3F: command not found

java/lwjgl_util.jar: line 10: org/lwjgl/PK: No such file or directory

java/lwjgl_util.jar: line 11:: command not found

java/lwjgl_util.jar: line 12: 3Forg/lwjgl/util/PK: No such file or directory

java/lwjgl_util.jar: line 13:: command not found

java/lwjgl_util.jar: line 14: 3Forg/lwjgl/util/glu/PK: No such file or directory

java/lwjgl_util.jar: line 15:: command not found

java/lwjgl_util.jar: line 16: 3F: command not found

java/lwjgl_util.jar: line 17:: command not found

java/lwjgl_util.jar: line 18: 3Forg/lwjgl/util/input/PK: No such file or directory

java/lwjgl_util.jar: line 19:: command not found

java/lwjgl_util.jar: line 20: 3Forg/lwjgl/util/jinput/PK: No such file or directory

java/lwjgl_util.jar: line 21:: command not found

java/lwjgl_util.jar: line 22: 3Forg/lwjgl/util/mapped/PK: No such file or directory

java/lwjgl_util.jar: line 23:: command not found

java/lwjgl_util.jar: line 24: 3Forg/lwjgl/util/vector/PK: No such file or directory

java/lwjgl_util.jar: line 25: command not found

java/lwjgl_util.jar: line 26: 3F4??: command not found

java/lwjgl_util.jar: line 26: ??: command not found

java/lwjgl_util.jar: line 28: syntax error near unexpected token `?

                                                                   C?B0?h'd?Lfpf">P?

??*??F???????V???V?j?vU??Zm?쏮?}|?ܛ???L??ɺ??s?>?w?>??s????BDut?C

                                                                ?{"n?P5?m??[E?憸]?"??}??????n)??{E??E????"??I?C=? ?+?~?x?C???J?1D<.? ??]D????F?I{˛???&??)?jtHS?T2??&?뢉ᘃ??f??c}0?09ұX???

 

                           T???Q&?x2?m?eu?:??J??wfg<[;??7??8ڛ@??3??Q??n4ڳ??

                                                                           Sig*=P??14??????R?T? ???i<x??JG$?M,t???"F??j+fw,?'?:???鴩??V'

java/lwjgl_util.jar: line 28: `??*??F???????V???V?j?vU??Zm?쏮?}|?ܛ???L??ɺ??s?>?w?>??s????BDut?C

               ?{"n?P5?m??[E?憸]?"??}??????n)??{E??E????"??I?C=? ?+?~?x?C???J?1DS?T2??&?뢉ᘃ??f??c}0?09ұX???)?jtH???J2?t<?XKg??%??x

 

                           T???Q&?x2?m?eu?:??J??wfg<[;??7??8ڛ@??3??Q??n4ڳ??

                                                                           Sig*=P??14??????R?T? ???i<x??JG$?M,t???"F??j+fw,?'?:???鴩??V&??@,?-?????

                                                                   ?6=Ԉ??4?4??1???jn?̸}ƴϘ??j5iW6ՓMǓprVuM?P??hm"???[% ???? ?,P??}a?Plk???2???PO??`43?/?ol??k?1???k?????ԫ?}??ޑ?gc?m??L??i$?Z?

                                 ???????bD.???C\i?6uծ??4C?+?%??m?4?P3????>@3Ա~]E???????????jmm????#???4?X"b??s?:(???D???h??t|`0??e?6?l?@??Z?Q@DpJ??=????Xk\v?G????5G"??D_L?R???C:?Z#?3???J?/?N??o???t S?T?A?g}t????Q??-".?Y?Fڤ??>z?^D????8}??K??A?)L:?d?Nd=?Bݾ??[T=y?L?9FT?v?ؐSt??'Y??ۇ??둚?lCb?8??? ?????ګW׬?????

      .?-???`????(덲A?b???<?s??(?!??v'

java/sqlite-jdbc-3.27.2.1.jar: line 1: PK: command not found

java/sqlite-jdbc-3.27.2.1.jar: line 2: 1xtN: command not found

java/sqlite-jdbc-3.27.2.1.jar: line 35: syntax error near unexpected token `('

java/sqlite-jdbc-3.27.2.1.jar: line 35: 0xtN??=G??'org/sqlite/SQLiteConfig$TempStore.class?SkO?`~ޭ[?R?LA&lC? ???%8?"ja?4~(?Ԓ?ծ?w?H?h ??e<om?е????<?9???????,?0-#??"D????#~??䙗??q??K?? !?񉈧"?1?/Jk+??Cb˨}?|?3?u?1?U[?׍:ø?zf??ٶ|#??V V]g?2??1am]-1?7Jo*$?.???%?!??-???n7x??L?a??@?v??c?l?v

                                             oK߱?Hm?2,d?=}_?ۺc?5߳??mK<??U?.??5Ca??k?]????c??

          ?+r?g??????f???7????L?/?z3٫ĥb??;^y?Y?C??v?iԊm4?X??ԢMYe?mxUc?????yV?|?P?a????`Q???EFAz??#?^?΋????Q*C?j?Υ?m??U??F?a??c+_?jc.VUX????

 

                                                           ??ya_?)??C|<??Ɛ? ??}??1B~?M?#D??B?0?q?C?"A??r_;????

                               ?;???a?PG?M?N?0?(݀??>F???"Ҽt?

$x?{??V?C?$??1???C                                         8?n???<!??rG???G?H,??

                 %0n??3~BV?I?P?J??N???|X2??)&??hX???7 ??$P?I?$݄???K'

java/trove-3.0.3.jar: line 1: PK: command not found

java/trove-3.0.3.jar: line 2:¬?@: command not found

java/trove-3.0.3.jar: line 3???@I4^??META-INF/MANIFEST.MFe???0??: No such file or directory

java/trove-3.0.3.jar: line 33: }??:?P??tC]]M??bJK??ķ?8?󝿝q]

                                                          #????N3)RJ

_?&.?s&?%U\?%?r??*g?b,???bN???Y???HI?G؃C?q?WZЬ

? ??$????q???8?$??@?????և?Prc?Ѭ5v???PK

???@gnu/PK

???@

gnu/trove/PK

???@gnu/trove/decorator/PK

???@gnu/trove/function/PK

???@gnu/trove/impl/PK

???@gnu/trove/impl/hash/PK

???@gnu/trove/impl/sync/PK

???@gnu/trove/impl/unmodifiable/PK

???@gnu/trove/iterator/PK

???@gnu/trove/iterator/hash/PK

???@gnu/trove/list/PK

???@gnu/trove/list/array/PK

???@gnu/trove/list/linked/PK

???@gnu/trove/map/PK

???@gnu/trove/map/custom_hash/PK

???@gnu/trove/map/hash/PK

???@gnu/trove/procedure/PK

???@gnu/trove/procedure/array/PK

???@gnu/trove/queue/PK

???@gnu/trove/set/PK

???@gnu/trove/set/hash/PK

???@gnu/trove/stack/PK

???@gnu/trove/stack/array/PK

???@gnu/trove/strategy/PK

???@?np?gnu/trove/TByteCollection.classuR]OA?C?-TP+H+?l???Ƅ֚?5A? O?vl?

                                                                     38;KR??????i?ld_Ξ{?ǹ7???????pX?#??????4??????Z???q?F\????O??h??I

                                                     *q?Ǡ?ɟ2??lpu?fĿ1XN?v\?

                                                                           ??E??;c?ǝӉ?g͍H???Ko??0?.?t??Z>?-:?81??{?S??1R+???????4??K~Ó?I??R"u?hכh?ɉ?.?X????7?o)u7????z??>?b@?

o?J*?_K???9?#|7v??)??EC?֤b?{?>?)u?ď?+<?V?0???%???)Ϧ}3?+???ܦ?TH6K{???x?[???< ??K???Gx?$? "hVq44W`???ޅu?

?À??1M???§

          ?.??/?V???V??%??vП??s?: File name too long

java/trove-3.0.3.jar: line 33: /: No such file or directory

java/trove-3.0.3.jar: line 34: syntax error near unexpected token `('

java/trove-3.0.3.jar: line 34:???@Ɨ?b??gnu/trove/TCharCollection.classuR]OA?C?-TP+H??l???Ƅ?5?!j??A????fpv???4??(㝻Ӥ?Ⱦ?=?܏so???_??^5? G

                                                         6ra%W#asi???;??????q?F\????O??h??I

           jq/eP??ϒ

                   4e>??v3??,gF;.u?yqJ???X?q?t???Ys#?y<??N??ǞΜX?g?E?'F?yJ?5>#??'

/Users/me/Library/Application Support/Steam/steamapps/common/Project Zomboid Dedicated Server/StartServer.command: line 13: java/uncommons-maths-1.2.3.jar: cannot execute binary file

/Users/me/Library/Application Support/Steam/steamapps/common/Project Zomboid Dedicated Server/StartServer.command: line 14: java/: is a directory

 

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

 

[Process completed]

 

I have tried to do everything from installing java, switching on and off beta builds, and reinstalling the tool. Snooping around, it appears there are no java files in the JRE folder underneath the dedicated server folder? this is the ServerStart.command file that came with the dedicated server install.

Quote

 

cd "$(dirname "$0")"

jre/Contents/Home/bin/java \
    -Djava.awt.headless=true -XstartOnFirstThread \
    -Djava.library.path=natives/:. \
    -Dzomboid.steam=1 -Dzomboid.znetlog=1 \
    -classpath java/istack-commons-runtime.jar;java/jassimp.jar;java/javacord-2.0.17-shaded.jar;java/javax.activation-api.jar;java/jaxb-api.jar;java/jaxb-runtime.jar;java/jinput.jar;java/lwjgl.jar;java/lwjgl-natives-macos.jar;java/lwjgl-glfw.jar;java/lwjgl-glfw-natives-macos.jar;java/lwjgl-jemalloc.jar;java/lwjgl-jemalloc-natives-macos.jar;java/lwjgl-opengl.jar;java/lwjgl-opengl-natives-macos.jar;java/lwjgl_util.jar;java/sqlite-jdbc-3.27.2.1.jar;java/trove-3.0.3.jar;java/uncommons-maths-1.2.3.jar;java/ \
    zombie/network/GameServer

 

Any help would obviously be greatly appreciated. Thanks much!!!!

Link to comment
Share on other sites

  • 2 weeks later...

Yeah, to say the least, there's been so little demand for servers on Mac that the script is woefully out of date.

 

The game also is a x86 program and experience with Rossetta has shown that it's rather imperfect at emulating a x86 Mac, so I'm not sure it'd be a very stable experience to run a dedicated server.

 

I'm unsure how you'd get it to run as x86 outside of  rebuilding the application, but maybe this command will help:

https://apple.stackexchange.com/questions/426871/conditionally-run-program-using-rosetta-2-on-m1-mac

Link to comment
Share on other sites

1 minute ago, EnigmaGrey said:

Yeah, to say the least, there's been so little demand for servers on Mac that the script is woefully out of date.

 

The game also is a x86 program and experience with Rossetta has shown that it's rather imperfect at emulating a x86 Mac, so I'm not sure it'd be a very stable experience to run a dedicated server.

 

I'm unsure how you'd get it to run as x86 outside of  rebuilding the application, but maybe this command will help:

https://apple.stackexchange.com/questions/426871/conditionally-run-program-using-rosetta-2-on-m1-mac

Ah what a shame. Having a spare macbook and being able to run a 24/7 server would be too good to be true it seems haha

thank you though, I'm gonna look around to see if there's anyone that's cracked it and maybe made a new .command script cause I imagine something's must've changed in the time since it was created

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...