Project Zomboid

Project Zomboid

Clear Cove
 This topic has been pinned, so it's probably important
Bagels  [developer] Sep 21, 2022 @ 8:02pm
Hosting Clear Cove on a dedicated server
1- Add the Clear Cove mod to your servertest.ini (WorkshopItems=2864464688 and Mods=clearcove)

2- In your servertest.ini, change
Map=Muldraugh, KY
to
Map=clearcove

3- Launch the server once at least so it downloads the files from the workshop. Then close the server.

4- Copy
C:\pzserver\steamapps\workshop\content\108600\2864464688\mods\clearcove\media\maps\clearcove
to
pzserver\media\maps
(your folder might not be called pzserver, but whatever it is.)
5- Edit
C:\Users\youruser\Zomboid\Server\servertest_spawnregions.lua
to this:
lua function SpawnRegions() return { { name = "Clear Cove", file = "media/maps/clearcove/spawnpoints.lua" }, } end
6- Copy the contents from
C:\pzserver\steamapps\workshop\content\108600\2864464688\mods\clearcove\media\maps\clearcove\spawnpoints.lua
to
C:\Users\youruser\Zomboid\Server\servertest_spawnpoints.lua
(remove the old stuff in _spawnpoints.lua and replace it entirely with the ones from Clear Cove).

That should work!

-----

TROUBLESHOOTING
I don't offer support, but this information could help:

If you have ANY issues, first test without any mods. If everything works fine, it's a mod's fault. I don't know which.

If you spawn in the middle of the water/in the top left corner of the map, replace your _spawnregions.lua file with this:

function SpawnRegions() return { { name = "clearcove", file = "media/maps/clearcove/spawnpoints.lua" }, } end
Last edited by Bagels; May 22, 2023 @ 8:34am
< >
Showing 1-15 of 27 comments
Silver_sys Sep 25, 2022 @ 7:44am 
Thanks guy
chuck Sep 25, 2022 @ 5:06pm 
FOR AMP, and others maybe. make sure you list the map name as "clearcove", next for the line
name = "Clear Cove", file = "media/maps/clearcove/spawnpoints.lua" change it to
name = "clearcove", file = "media/maps/clearcove/spawnpoints.lua"
with this you do not have to copy the map file over to the maps folder.
MorningStar Oct 8, 2022 @ 8:37am 
Not working. Says terminated when trying to launch server.
Bagels  [developer] Oct 8, 2022 @ 6:16pm 
Originally posted by Stingray:
Not working. Says terminated when trying to launch server.

You're doing something wrong. It works perfectly fine. I'm doing it as we speak.
MorningStar Oct 12, 2022 @ 6:33am 
Originally posted by Dr. Hollandaise:
Originally posted by Stingray:
Not working. Says terminated when trying to launch server.

You're doing something wrong. It works perfectly fine. I'm doing it as we speak.

Here's what I did, but I believe I understand what could be the issue:

1- Add the Clear Cove mod to your servertest.ini (WorkshopItems=2864464688 and Mods=clearcove) - DONE

2- In your servertest.ini, change
Map=Muldraugh, KY
to
Map=clearcove - DONE

3- Launch the server once at least so it downloads the files from the workshop. Then close the server - DONE

4- Copy
C:\pzserver\steamapps\workshop\content\108600\2864464688\mods\clearcove\media\maps\clearcove
to
pzserver\media\maps - DONE
(your folder might not be called pzserver, but whatever it is.)
5- Edit
C:\Users\youruser\Zomboid\Server\servertest_spawnregions.lua
to this:
lua
function SpawnRegions()
return {
{ name = "Clear Cove", file = "media/maps/clearcove/spawnpoints.lua" },
}
end - DONE
6- Copy the contents from
C:\pzserver\steamapps\workshop\content\108600\2864464688\mods\clearcove\media\maps\clearcove\spawnpoints.lua
to
C:\Users\youruser\Zomboid\Server\servertest_spawnpoints.lua
(remove the old stuff in _spawnpoints.lua and replace it entirely with the ones from Clear Cove). - I can't locate spawnpoints.lua. Only spawnregions. Is it supposed to generate somewhere?

I really love the map in singleplayer and I wish I could play it with my friend today.

Thanks.
Last edited by MorningStar; Oct 12, 2022 @ 6:35am
MorningStar Oct 12, 2022 @ 10:09am 
Resolved the issue. It was on step 1 WorkshopItems=2864464688 wasn't added.
Stardust Oct 22, 2022 @ 5:49am 
Hi, the map seems to be working in MP except for the foraging. It says 'nothing to find here'.
Bagels  [developer] Oct 22, 2022 @ 7:51am 
All the foraging zones are set properly, unless something changed recently. Worked fine when I tested it before release (including dedicated/multiplayer)
Stardust Oct 22, 2022 @ 7:53am 
Thank you, am really not sure what it is but I'll try figure out in case it helps someone else.
Ariguznaga Jan 3, 2023 @ 7:47pm 
Hi, can someone share their spawnpoints and spawnregions?. I can't make it work, it keep sending me to 0,0 :(
MorningStar Jan 4, 2023 @ 8:26am 
Originally posted by Ariguznaga:
Hi, can someone share their spawnpoints and spawnregions?. I can't make it work, it keep sending me to 0,0 :(

I believe it either autogenerates when you first load the map ( f.e in single player ), or I used the ones from default map. Can't quite recall..
Ariguznaga Jan 5, 2023 @ 11:31am 
Im using it on a dedicate server, i was trying to make it work for at least 4 days and i can't make it with this spawnpoints :/ even if with others spawnpoints.
MorningStar Jan 6, 2023 @ 4:35am 
Originally posted by Ariguznaga:
Im using it on a dedicate server, i was trying to make it work for at least 4 days and i can't make it with this spawnpoints :/ even if with others spawnpoints.

Try launching it offline singleplayer first. I believe it should naturally generate default spawnpoints for that map.
Ariguznaga Jan 6, 2023 @ 10:51am 
:O i'll do that
Ariguznaga Jan 6, 2023 @ 12:14pm 
Callframe at: getServerSpawnRegions
function: getSpawnRegionsAux -- file: SpawnRegions.lua line # 76 | Vanilla
function: getSpawnRegions -- file: SpawnRegions.lua line # 92 | Vanilla

ERROR: General , 1673035858254> 0> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
ERROR: General , 1673035858255> 0> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:188)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1096)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at zombie.iso.SpawnPoints.initSpawnRegions(SpawnPoints.java:61)
at zombie.iso.SpawnPoints.initSinglePlayer(SpawnPoints.java:48)
at zombie.iso.IsoWorld.init(IsoWorld.java:2621)
at zombie.gameStates.GameLoadingState$1.runInner(GameLoadingState.java:268)
at zombie.gameStates.GameLoadingState$1.run(GameLoadingState.java:225)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "se.krka.kahlua.vm.KahluaTable.iterator()" because "<parameter1>" is null
at zombie.network.GameClient.copyTable(GameClient.java:1668)
at zombie.network.GameClient.getServerSpawnRegions(GameClient.java:1680)
at zombie.Lua.LuaManager$GlobalObject.getServerSpawnRegions(LuaManager.java:2132)
... 19 more


I can use it in SP and i can spawn very well but in MP that's what i get.
< >
Showing 1-15 of 27 comments
Per page: 1530 50