Project Zomboid

Project Zomboid

Respawn in Car [MP/SP]
257 Comments
WarDaddy Feb 10 @ 3:27am 
Okay ca marche c'est pour MP, merci de ta réponse =)
AuD  [author] Feb 7 @ 12:30am 
Salut, essayes sans voir, mais normalement il est opti, il boufe pas plus que rv interior, mais les deux cumulé peut être ... c'est MP ou SP ?
WarDaddy Feb 6 @ 2:55pm 
Salut Aud, super mod! (comme toujours) est ce que tu sais cependant si ce mod peut créer des lags ou des desynch car j'ai l'impression que c'est le cas?
AuD  [author] Dec 31, 2024 @ 12:53am 
ok, you can add my mod to your mod pack, but only if it is for a server and not a mod that groups mods to share them again... And something else important, rename the mod id (name of the mod/folder containing the mod) with another name, do not leave my id name, it can create problems..
AuD  [author] Dec 31, 2024 @ 12:52am 
hi mister
Deathhead Dec 30, 2024 @ 7:50am 
Would it be alright if I add your mod to a modpack for a server I'm making?
AuD  [author] Nov 10, 2024 @ 12:03am 
lol
V2git026 Sep 27, 2024 @ 6:10pm 
I love you
AuD  [author] Jun 22, 2024 @ 10:20am 
your pb is SP or MP ?
AuD  [author] Jun 22, 2024 @ 10:19am 
@Annatar_BR

hi, "Respawn in Car" mod is only activated (teleportation to) during the spawn of your character on the map, during your entry into the game (if you have not moved position = no teleportation).
If "Respawn in car" mod should create a problem for you, it is not during a game, but only at the very beginning of a game (spawn on map).

Respawn in Car mod est compatible avec tout les mods je pense ..
Annatar_BR Jun 22, 2024 @ 8:00am 
Hello Aud! Great work on this mod. Does it work with RV Interiors? I've installed it and every time I enter a bus' interior and leave I get a high ping and the vehicles around me stay invisible. I'm not sure if it's related to the mod but sure was a coincidence.
AuD  [author] Jun 16, 2024 @ 6:02am 
INFO

Avatar Offiline Mod is Updated : Now is compatible in SP !!

https://steamcommunity.com/sharedfiles/filedetails/?id=2915808671&tscn=1718265282
AuD  [author] Jun 1, 2024 @ 11:29pm 
if you don't see the point of this mod, I can't do anything for you
AuD  [author] Jun 1, 2024 @ 11:28pm 
everyone has their own point of view ^^ but yes everyone can kick the passenger
Darth Dakkers Jun 1, 2024 @ 5:37pm 
Quick question regarding the context menu for kicking a disconnected passenger from occupying a seat, can anyone do this or is it only admins or mods that can do it? Just wondering what the point of the mod is if anyone can remove you when disconnected if the whole point of the mod is to enable you to spawn with the vehicle each time you login?
Dabbydoodaar Apr 14, 2024 @ 2:21am 
@AuD ty and i will
AuD  [author] Apr 13, 2024 @ 8:02am 
Hi, yes,but please, change the id name.
Dabbydoodaar Apr 13, 2024 @ 2:32am 
@Aud can i put this into a mod pack please??
AuD  [author] Feb 12, 2024 @ 7:47am 
avatar mod soon ....
Urban Feb 12, 2024 @ 3:31am 
This has revolutionised how i play SP zomboid! amazing work
Milinoso Jan 26, 2024 @ 9:15am 
excelente mod, gracias!
AuD  [author] Jan 26, 2024 @ 8:08am 
Chrisn Jan 26, 2024 @ 7:16am 
Very good mod. Thanks for this bro
AuD  [author] Jan 26, 2024 @ 6:59am 
UPDATE : c'est une grosse mise à jour pour Respawn in car mod, le script a été entièrement retravaillé, plus d'explications arriveront prochainement, le script du mod Avatar a été adapté, si vous avez le moindre problème, un bug, une erreur, faites le moi savoir , je vous répondrai le plus rapidement possible. je croise les doigts ^^

autre, Respawn in car fonctionne en SP (pas le mod avatar pour le moment)
AuD  [author] Jan 26, 2024 @ 6:59am 
UPDATE: this is a big update for Respawn in car mod, the script has been completely reworked, more explanation will arrive shortly, the Avatar mod script has been adapted, if you have the slightest problem, a bug , an error, let me know, I will respond as quickly as possible. fingers crossed ^^

other, Respawn in car work in SP (not avatar mod for the moment)
AuD  [author] Jan 22, 2024 @ 10:27pm 
impossible, this mod dont touch at the vehicule, just moddata inside ^^

this mod touch at the players positions, and that's all.
Miss Super E Jan 22, 2024 @ 12:47pm 
I think this mod removes vehicle spawn in my server
AuD  [author] Jan 18, 2024 @ 4:40am 
Trailer before next update : https://youtu.be/TwBqq4WLF5k
AuD  [author] Jan 14, 2024 @ 11:32am 
AuD  [author] Jan 11, 2024 @ 3:30am 
solo version soon ....
JimLambda Jan 11, 2024 @ 1:28am 
Thank you for the continued updates and support for this mod. Just installed this yesterday, after my friend learned the hard way when his client crashed in the middle of a hoard...
AuD  [author] Dec 23, 2023 @ 3:16am 
--------------------

UPDATE:

fixes a possible errors on the server side, sometimes for some reason the vehicle no longer exists or cannot be found by the server by her ID, this caused an error.

addition of a context in the RIC admins tools menu in order to print the list of players saved in modData (server side print)

addition of a context in the RIC admins tools menu (in DEBUG MODE) in order to reset the RIC mod (reset the moddata: delete the players list)

--------------------
AuD  [author] Sep 8, 2023 @ 2:27am 
If you have any problems with this new update, let me know ;)
AuD  [author] Sep 8, 2023 @ 2:26am 
- ajout de quelques lignes de code prévu pour le mod avatar

- Désormais, si vous êtes dans un véhicule, votre place est enregistrée dans vos Données de Personnage, lorsque vous vous reconnectez, et que vous êtes téléporté vers votre véhicule, (s'il change de place), vous récupérerez votre place en priorité, et si le siège est occupé ou indisponible (etc...), le siège conducteur sera prioritaire, puis le siège numéro 2, 3 etc...

- erreur côté serveur résolue

- Avant la fin de l'année, je refais le code avec mes nouvelles connaissances, cela ne modifiera pas le principe du code, il sera juste plus beau, et plus digeste à la lecture, et surtout, Je vais le rendre compatible pour le jeu solo, comme ça, en SP, en déplacement avec vos amis (vos autres personnages de votre jeu), le mod avatar viendra ensuite.
AuD  [author] Sep 8, 2023 @ 2:24am 
** UPDATE :

slight modification of the code:

- addition of a few lines of code planned for the avatar mod

- From now on, if you are in a vehicle, your place is saved in your Character Data, when you reconnect, and you are teleported to your vehicle, (if it changes place), you will recover your place in priority, and if the seat is occupied or unavailable (etc...), the driver's seat will have priority, then seat number 2, 3 etc...

- server side error solved, just if vehicle doesn't exist then "return end" of function, I believe it's Rv inner conflict (maybe), but don't worry, because it's not a real problem.

- For the next time, before the end of the year, I will redo the code with my new knowledge, this will not modify the principle of the code, it will just be more beautiful, and more digestible when reading, and above all, I will make it compatible for solo play, like this, in SP, on the road with your friends (your other characters in your game), the avatar mod will come next.
AuD  [author] Sep 8, 2023 @ 2:04am 
** UPDATE more description soon
KodeMan Sep 7, 2023 @ 10:51am 
Sorry for late reply. Yes, we're also using RV interiors
AuD  [author] Aug 31, 2023 @ 10:44pm 
@KodeMan do you have RV interior maybe ?
AuD  [author] Aug 31, 2023 @ 10:31pm 
It seems that the client is sending the vehicle id, but once the server gets the vehicle by that id, it no longer exists. easy to solve it, but i search why
AuD  [author] Aug 31, 2023 @ 10:29pm 
how often do you get this error?
KodeMan Aug 31, 2023 @ 8:04am 
Doesn't affect players as far as I know. Shows up in server logs.

Aug 29 21:32:51 STACK TRACE
Aug 29 21:32:51 -----------------------------------------
Aug 29 21:32:51 function: preSavePlayersByNameFromCar -- file: respawnCarServer.lua line # 49 | MOD: addForceRespawnToCar
Aug 29 21:32:51 function: ForceRespawnInVehicle_OnClientCommand -- file: respawnCarServer.lua line # 316 | MOD: addForceRespawnToCar.
Aug 29 21:32:51 [30-08-23 02:32:51.907] ERROR: General , 1693362771907> 7,274,180,061> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getModData of non-table: null at KahluaThread.tableget line:1689..
Aug 29 21:32:51 [30-08-23 02:32:51.907] ERROR: General , 1693362771907> 7,274,180,061> DebugLogStream.printException> Stack trace:.
Aug 29 21:32:52 [30-08-23 02:32:51.909] LOG : General , 1693362771909> 7,274,180,063>
Primedew Aug 28, 2023 @ 6:23am 
@AuD great....thanx for the hard work
Rabbit Aug 27, 2023 @ 2:26pm 
The avatar mod is a really neat idea, too. I hope things go well for you!
AuD  [author] Aug 27, 2023 @ 1:55pm 
I'm thinking a lot about doing it, but I'm working on Avatar mod right now, and then I have to review a couple of things about Respawn in car mod, and then I'll do the SP versions, first, respawn in car, then avatar.
Rabbit Aug 27, 2023 @ 1:33pm 
I can't wait for the SP functional versions of your mods. I'm trying to do a playthrough with a small group of characters (one specifically for fighting, one general engineer/craftsman, eventually planning on making a cooking specialized character, etc) - and not being able to move as a group in a vehicle is killin' me.

Does anyone know how to make this mod actually function in SP?
AuD  [author] Aug 27, 2023 @ 5:14am 
@Primedew

it's good, I solved the problem, in the next update, soon, if you are forced to reappear in your last vehicle, you recover your initial place, the one where you have DC, and if someone is already occupying this seat, you will reappear on the driver's seat in priority, in this order: driver or front passenger right or rear passenger left or rear passenger right etc.... 0 or 1 or 2 etc....
AuD  [author] Aug 27, 2023 @ 3:35am 
@Willow in the vanilla PZ code, you can't force entry into a seat of vehicle, if the seat has no door, or if the seat has a door but is locked, so no worries
Willow Aug 26, 2023 @ 11:41am 
so if you respawn in a police car, you get locked out of the driver seat? because police cars have a barrier between the driver and back seats
Primedew Aug 26, 2023 @ 5:09am 
i thought of a basic approach to the idea.... spawn where logged off...if seat is taken spawn in another seat...dont know if players gonna like it or not...but it seams realistic to me...
AuD  [author] Aug 26, 2023 @ 5:01am 
yes yes, I'll think about it, I take your comment into account of course, and thank you for the return.