Project Zomboid

Project Zomboid

Spawn point
how to set spawn point project zomboid single player?
i want to have spawn point on my interior bus for my nomad game play
i died once and spawn kindda far from my bus
< >
Showing 1-10 of 10 comments
Armagenesis Oct 19, 2023 @ 8:12pm 
Maybe try this?
Originally posted by Spark Sunbright:
You can remove spawn points yourself. Find the text file named "spawnpoints" here:
Steam > steamapps > common > ProjectZomboid > media > maps > Riverside, KY

Open it in any text editor, and you'll see code that starts like this:

function SpawnPoints()
return {
chef = {
{ worldX = 21, worldY = 18, posX = 227, posY = 31, posZ = 0 },
{ worldX = 22, worldY = 17, posX = 115, posY = 231, posZ = 0 },
{ worldX = 22, worldY = 17, posX = 205, posY = 270, posZ = 0 },
{ worldX = 22, worldY = 18, posX = 159, posY = 87, posZ = 0 },
{ worldX = 20, worldY = 21, posX = 179, posY = 73, posZ = 0 },
{ worldX = 21, worldY = 17, posX = 71, posY = 168, posZ = 0 }
},
constructionworker = {
{ worldX = 21, worldY = 17, posX = 71, posY = 168, posZ = 0 },
{ worldX = 17, worldY = 20, posX = 295, posY = 56, posZ = 0 },
{ worldX = 17, worldY = 20, posX = 233, posY = 63, posZ = 0 },
{ worldX = 20, worldY = 17, posX = 57, posY = 249, posZ = 0 },
{ worldX = 20, worldY = 17, posX = 266, posY = 228, posZ = 0 },
{ worldX = 21, worldY = 18, posX = 51, posY = 20, posZ = 0 },
{ worldX = 22, worldY = 17, posX = 136, posY = 143, posZ = 0 },
{ worldX = 20, worldY = 17, posX = 71, posY = 223, posZ = 0 },
{ worldX = 19, worldY = 18, posX = 260, posY = 23, posZ = 0 }
},

There's a set of spawn coordinates for each profession, including "unemployed". and each line corresponds to a spawn point. You simply need to identify and negate each line that you don't want.

For example, if you plan to enter as a Chef, you can start by adding two hyphens "--" (without the quotation marks) in front of all but one of the spawn point lines:

chef = {
{ worldX = 21, worldY = 18, posX = 227, posY = 31, posZ = 0 },
--{ worldX = 22, worldY = 17, posX = 115, posY = 231, posZ = 0 },
--{ worldX = 22, worldY = 17, posX = 205, posY = 270, posZ = 0 },
--{ worldX = 22, worldY = 18, posX = 159, posY = 87, posZ = 0 },
--{ worldX = 20, worldY = 21, posX = 179, posY = 73, posZ = 0 },
--{ worldX = 21, worldY = 17, posX = 71, posY = 168, posZ = 0 }
},

Start a new game as a Chef and you will always spawn at the location you didn't add hyphens to. Repeat this process until you can identify which coordinates spawn where, and you're all set.

(This should go without saying, but keep a backup of the original file somewhere.)

I haven't tried playing around with the values, but seems like those are cell coordinates and tile coordinates.

You need to figure out where your "indoor" area first. If I recall, RV interior mod adds its "indoor" cell somewhere far to the east of the map.
►Piplion◄ Oct 25, 2023 @ 2:12am 
i wanna try this but im not good on this kind of stuff that going to mess with codes im new to game might mess up everything maybe we can try simple stuff like mod?
Happy Helldiver Oct 25, 2023 @ 9:14am 
Honestly, man, what the other user described to you is just editing a text file that you already have. That is much simpler than modding, but also that may not work as you would need the coordinates for a bus that (presumably) moves.
Nordil(Hun) Oct 25, 2023 @ 12:09pm 
Originally posted by ►Piplion:
i wanna try this but im not good on this kind of stuff that going to mess with codes im new to game might mess up everything maybe we can try simple stuff like mod?

There is Pillows's random spawn mod, but it is just that randomly spawning somewhere. It is the most famous mod spawn.
Secondly. You are already using mods;)
Thirdly, if you are not sure in your abilities to edit the file (using a text writer, or a code snippet writer like notepad++) it is a good practice to make first a backup save it of it.
So just copy the original file someplace you will know it is there, and then edit the file in the original folder. If you encounter bugs, or it does not do what you hope for, you copy and overwrite the edited version with your backup. You can do this indefinetly until you get what you are looking for.
WillieSea Oct 25, 2023 @ 1:36pm 
Originally posted by Armagenesis:
Maybe try this?
Originally posted by Spark Sunbright:
You can remove spawn points yourself. Find the text file named "spawnpoints" here:
Steam > steamapps > common > ProjectZomboid > media > maps > Riverside, KY

Open it in any text editor, and you'll see code that starts like this:

function SpawnPoints()
return {
chef = {
{ worldX = 21, worldY = 18, posX = 227, posY = 31, posZ = 0 },
{ worldX = 22, worldY = 17, posX = 115, posY = 231, posZ = 0 },
{ worldX = 22, worldY = 17, posX = 205, posY = 270, posZ = 0 },
{ worldX = 22, worldY = 18, posX = 159, posY = 87, posZ = 0 },
{ worldX = 20, worldY = 21, posX = 179, posY = 73, posZ = 0 },
{ worldX = 21, worldY = 17, posX = 71, posY = 168, posZ = 0 }
},
constructionworker = {
{ worldX = 21, worldY = 17, posX = 71, posY = 168, posZ = 0 },
{ worldX = 17, worldY = 20, posX = 295, posY = 56, posZ = 0 },
{ worldX = 17, worldY = 20, posX = 233, posY = 63, posZ = 0 },
{ worldX = 20, worldY = 17, posX = 57, posY = 249, posZ = 0 },
{ worldX = 20, worldY = 17, posX = 266, posY = 228, posZ = 0 },
{ worldX = 21, worldY = 18, posX = 51, posY = 20, posZ = 0 },
{ worldX = 22, worldY = 17, posX = 136, posY = 143, posZ = 0 },
{ worldX = 20, worldY = 17, posX = 71, posY = 223, posZ = 0 },
{ worldX = 19, worldY = 18, posX = 260, posY = 23, posZ = 0 }
},

There's a set of spawn coordinates for each profession, including "unemployed". and each line corresponds to a spawn point. You simply need to identify and negate each line that you don't want.

For example, if you plan to enter as a Chef, you can start by adding two hyphens "--" (without the quotation marks) in front of all but one of the spawn point lines:

chef = {
{ worldX = 21, worldY = 18, posX = 227, posY = 31, posZ = 0 },
--{ worldX = 22, worldY = 17, posX = 115, posY = 231, posZ = 0 },
--{ worldX = 22, worldY = 17, posX = 205, posY = 270, posZ = 0 },
--{ worldX = 22, worldY = 18, posX = 159, posY = 87, posZ = 0 },
--{ worldX = 20, worldY = 21, posX = 179, posY = 73, posZ = 0 },
--{ worldX = 21, worldY = 17, posX = 71, posY = 168, posZ = 0 }
},

Start a new game as a Chef and you will always spawn at the location you didn't add hyphens to. Repeat this process until you can identify which coordinates spawn where, and you're all set.

(This should go without saying, but keep a backup of the original file somewhere.)

I haven't tried playing around with the values, but seems like those are cell coordinates and tile coordinates.

You need to figure out where your "indoor" area first. If I recall, RV interior mod adds its "indoor" cell somewhere far to the east of the map.
1. There is NOT a "set of spawn coordinates for each profession". There are only a few professions in the code, so I would assume if the profession you pick is not on the list that is would choose 'unemployed' but I have not confirmed this.

2. The "worldX worldY posX posY" values relate to nothing I can glean from the game, or the 'coordinate viewer mod' or the online map. So if that cannot be explained how to come up with those values than that 'quoted' text is useless to anybody trying to make exact spawn points.

3. Those instructions are only useful if as it says, you want only ONE EXISTING spawn point to be active. There is nothing about making your own spawn points.
Armagenesis Oct 25, 2023 @ 7:29pm 
Originally posted by WillieSea:
Originally posted by Armagenesis:
Maybe try this?


I haven't tried playing around with the values, but seems like those are cell coordinates and tile coordinates.

You need to figure out where your "indoor" area first. If I recall, RV interior mod adds its "indoor" cell somewhere far to the east of the map.
1. There is NOT a "set of spawn coordinates for each profession". There are only a few professions in the code, so I would assume if the profession you pick is not on the list that is would choose 'unemployed' but I have not confirmed this.

2. The "worldX worldY posX posY" values relate to nothing I can glean from the game, or the 'coordinate viewer mod' or the online map. So if that cannot be explained how to come up with those values than that 'quoted' text is useless to anybody trying to make exact spawn points.

3. Those instructions are only useful if as it says, you want only ONE EXISTING spawn point to be active. There is nothing about making your own spawn points.
Have you actually tried changing these settings?
As I've said, I haven't bothered trying it myself yet.
So I'm not sure if any of your claims is correct nor can I confirm myself how this actually works.

I can't say much about whether the setting for each profession exists in those files, but...

Looking at the map [map.projectzomboid.com], there are Cell and Rel coordinates on top of general coordinate that look like they can translate to the world and pos coordinates in that setting.

And the original post mentions nothing about changing these settings only applicable for only one existing spawn point. If you actually bothered to read the post, the person clearly mentioned "You simply need to identify and negate each line that you don't want." Meaning you can reduce the number of spawn points to any number you want, not just limiting the spawn point to JUST ONE.

Also, the data itself is an array of values, not a fixed string. Meaning you can actually add more spawn points for that specific profession, though it also depends on how the devs define the code to read those spawn points.

Again, since I haven't tried it myself, this is nothing but my own conjecture.

As for OP, which type of bus was your base? If I have the time to play the game, I can give this a shot for you.
Last edited by Armagenesis; Oct 25, 2023 @ 7:44pm
WillieSea Oct 25, 2023 @ 7:58pm 
Originally posted by Armagenesis:
Originally posted by WillieSea:
1. There is NOT a "set of spawn coordinates for each profession". There are only a few professions in the code, so I would assume if the profession you pick is not on the list that is would choose 'unemployed' but I have not confirmed this.

2. The "worldX worldY posX posY" values relate to nothing I can glean from the game, or the 'coordinate viewer mod' or the online map. So if that cannot be explained how to come up with those values than that 'quoted' text is useless to anybody trying to make exact spawn points.

3. Those instructions are only useful if as it says, you want only ONE EXISTING spawn point to be active. There is nothing about making your own spawn points.
Have you actually tried changing these settings?
As I've said, I haven't bothered trying it myself yet.
So I'm not sure if any of your claims is correct nor can I confirm myself how this actually works.

I can't say much about whether the setting for each profession exists in those files, but...

Looking at the map [map.projectzomboid.com], there are Cell and Rel coordinates on top of general coordinate that look like they can translate to the world and pos coordinates in that setting.

And the original post mentions nothing about changing these settings only applicable for only one existing spawn point. If you actually bothered to read the post, the person clearly mentioned "You simply need to identify and negate each line that you don't want." Meaning you can reduce the number of spawn points to any number you want, not just limiting the spawn point to JUST ONE.

Also, the data itself is an array of values, not a fixed string. Meaning you can actually add more spawn points for that specific profession, though it also depends on how the devs define the code to read those spawn points.

Again, since I haven't tried it myself, this is nothing but my own conjecture.
If you bothered to read the OP post, you would know the quoted text you provided is useless. The OP wants to spawn at a very specific location that is NOT specified in the vanilla location values. The quoted text you provided says to comment out the spawn points you don't want to spawn at and says nothing about generating your own spawn points.

Again, if you bothered to read my post as you claim I didn't do, the online map values DO NOT relate to the values in the spawn point files. If I can be proven wrong here I would greatly appreciate if anyone has information on how the values translate over into the file.

One location I spawn at (assuming unemployed in West Point) is around 1113 x 671 using the coordinate from the online map.

But in the file there are these numbers:
unemployed = { { worldX = 39, worldY = 22, posX = 204, posY = 125, posZ = 0 }, { worldX = 39, worldY = 22, posX = 59, posY = 84, posZ = 0 }, { worldX = 39, worldY = 22, posX = 92, posY = 186, posZ = 0 }, { worldX = 39, worldY = 23, posX = 196, posY = 115, posZ = 0 }, { worldX = 40, worldY = 23, posX = 21, posY = 14, posZ = 0 }, { worldX = 38, worldY = 23, posX = 137, posY = 86, posZ = 0 }, { worldX = 38, worldY = 23, posX = 80, posY = 124, posZ = 0 }, { worldX = 38, worldY = 22, posX = 243, posY = 96, posZ = 0 }, { worldX = 38, worldY = 22, posX = 94, posY = 102, posZ = 0 }, { worldX = 38, worldY = 22, posX = 12, posY = 124, posZ = 0 }, { worldX = 37, worldY = 22, posX = 197, posY = 130, posZ = 0 } }

I don't see any correlation on how to make specific new coordinate spawn points.
I simply don't see how they relate to make a new spawn point.
Armagenesis Oct 25, 2023 @ 8:35pm 
Originally posted by WillieSea:
If you bothered to read the OP post, you would know the quoted text you provided is useless. The OP wants to spawn at a very specific location that is NOT specified in the vanilla location values. The quoted text you provided says to comment out the spawn points you don't want to spawn at and says nothing about generating your own spawn points.

Again, if you bothered to read my post as you claim I didn't do, the online map values DO NOT relate to the values in the spawn point files. If I can be proven wrong here I would greatly appreciate if anyone has information on how the values translate over into the file.

One location I spawn at (assuming unemployed in West Point) is around 1113 x 671 using the coordinate from the online map.

But in the file there are these numbers:
unemployed = { { worldX = 39, worldY = 22, posX = 204, posY = 125, posZ = 0 }, { worldX = 39, worldY = 22, posX = 59, posY = 84, posZ = 0 }, { worldX = 39, worldY = 22, posX = 92, posY = 186, posZ = 0 }, { worldX = 39, worldY = 23, posX = 196, posY = 115, posZ = 0 }, { worldX = 40, worldY = 23, posX = 21, posY = 14, posZ = 0 }, { worldX = 38, worldY = 23, posX = 137, posY = 86, posZ = 0 }, { worldX = 38, worldY = 23, posX = 80, posY = 124, posZ = 0 }, { worldX = 38, worldY = 22, posX = 243, posY = 96, posZ = 0 }, { worldX = 38, worldY = 22, posX = 94, posY = 102, posZ = 0 }, { worldX = 38, worldY = 22, posX = 12, posY = 124, posZ = 0 }, { worldX = 37, worldY = 22, posX = 197, posY = 130, posZ = 0 } }

I don't see any correlation on how to make specific new coordinate spawn points.
I simply don't see how they relate to make a new spawn point.
And again, have you actually tried changing those spawn points?
Or are just claiming to know everything without actually trying it out first?

The example for the spawn points you give out are West Point's spawn points. And if you check the online map, the "Cell" coordinate mirrors the worldX and worldY, and the "Rel" coordinate mirrors the posX and posY.

I must emphasis again, this is not the "Coords" that is displayed in the online map nor the xyz coordinate for in-game teleportation. It refers to the "Cell" and "Rel" that are shown under the "Coords" in the map.projectzomboid.com.

Let's take an example.
This spawn coordinate:
{ worldX = 37, worldY = 22, posX = 197, posY = 130, posZ = 0 },
is shown to be the house across the school in this specific location:
https://map.projectzomboid.com/#11287x6730x2061
When I tried to translate the worldX and worldY into the Cell coordinate, and the posX and posY into the "Rel" coordinate.

And to test it out, try changing the file in question by removing the other spawn points except that one for the unemployed occupation and spawn as said occupation while choosing West Point for the town.

Of course I haven't tried it myself, but these are the steps I'll do to test my earlier conjectures. If I spawn in that location and only in that location, then my theory is correct.

And furthermore, if the theory is correct then you can virtually spawn just about anywhere you want by changing those spawn coordinates. You can choose West Point as your starting town but spawn in Louisville instead by changing the coordinates into Louisville's Cell and Rel coordinates.

And to answer OP's request again, if the theory is proven correct, you then need to figure out where the trailers' indoor location again, as explained in this video:
https://www.youtube.com/watch?v=CJDx_1a13Kw&ab_channel=TheBacklog

Of course I don't what know ramification this will hold if you actually do it.
I tried using split screen coop once and tried hauling my other character inside the RV interior. When the character inside the RV left the place, he returned to where the trailer previously was instead of the trailer's new location.
Last edited by Armagenesis; Oct 25, 2023 @ 8:43pm
WillieSea Oct 25, 2023 @ 9:12pm 
Ok, so now we are getting somewhere with how to determine personal spawn coordinates, and I thank you for mentioning the online map, you have to click on 'Map Coords' since I did not know that was a link and was clicking on the 'overlay grid'.

That information should be added to the 'quoted response' I keep seeing given when somebody asks how to make personal spawn points since it does not cover personal spawn points.

I will try it out tomorrow and see how it works. And see if the coords match to the file locations.
►Piplion◄ Oct 27, 2023 @ 1:31am 
Thx guys but managed to find a mod that i can use to modify my spawn point by using
"Set spawnpoint" mod and right click -> set spawn point on any furniture that i can sleep on like chair sofa or beds
1x1 chair = spawn point for my RV
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Oct 19, 2023 @ 5:33pm
Posts: 10