Search the Community
Showing results for tags 'vehicle'.
-
I created a mod a while back probably a year ago or so to add my own car into the game, and I had it working fine but then I didn't play for a while and now I tried adding it again in the current PZ version, with the same mod folder I created back then, and now the wheels are huge and when I change the wheel size, radius, and width settings in my vehicle script it does nothing. I also tried changing the model size in blender and replacing the fbx file but it still didn't make a difference. It's confusing because the wheel model is proportional to the car model when I exported them as fbx files but then in PZ it's like monster truck wheels. The only thing that I can figure out that changes the wheel size is reducing the scale of the model reference in the vehicle creation (line 47), which then also makes the doors access disappear into the body of the car. Additionally, I had to set the scale of the model itself kind of wacky to get it right in game, if I set the scale inside ScionxBBase to 1 (line 7) and the scale inside the model reference in the ScionxB vehicle to 1 (line 47) the model of the car itself is way bigger than the game object/ScionxB vehicle that gets placed into the game, and then the model is off center for some reason (it definitely was not off center when I exported the fbx file) As it is right now, the car is the correct size and the doors work and everything, it's just that the wheels appear to be huge and stick through the body and I can't figure out how to change the size of them anymore. Additionally I am having an issue where the sound of the engine revving when upshifting while turning doesn't properly line up with the acceleration and I think it might have something to do with the gear ratio settings but I can't figure that out either so if anyone has any suggestion about that I'd appreciate it. Code below EDIT: somehow now changing the wheel scale to 0.45 works after I moved the mod folder from zomboid/workshop/mods to zomboid/mods... I don't understand I tried changing it so many times before and it did literally nothing. Thanks
-
Bug present in: 41.78.16 In media/lua/server/Vehicles/Vehicles.lua we can see the generation of the success/failure chances for vehicle part installation/removal, on line 1350 with calculateInstallationSuccess() It generates and returns a tuple with the success and failure chance, using some math. The math results in, for example, success=65, failure=35 for being 1 level under the part's 'desired' skill level. This tuple is consumed for vehicle part uninstallation in the function starting on line 96 in media/lua/server/Vehicles/VehicleCommands.lua, in the uninstallPart() function. The problem is that on line 127, you do... -- from uninstallPart(), failure chance structured incorrectly if ZombRand(100) < success then [...] elseif ZombRand(failure) < 100 then -- <- Mistake, note the transposed 'failure' and '100'. Compare to above and below examples. [...] But this makes no sense. Compare it to the installPart() function above this one, which is almost identical but structured correctly... -- from installPart(), written correctly if ZombRand(100) < success then [...] elseif ZombRand(100) < failure then [...] The issue: You are generating a random number between 0 and 35 (to use our '1 level too low, 35% failure chance' example), and then checking if it's < 100. Well, of course it will be. Compare this to what it SHOULD be in the second code block above from installPart(), which actually gives a 35% chance. Technically it's actually still possible to 'not succeed and not damage the part' with this code by having a >= 6 level difference, because that will produce a 110% chance of failure, and thus have a 10% chance of actually 'missing' that code block. I'm sure someone just inverted the order of things there and meant to put the 100 as the argument to ZombRand and compare the result to failure instead of the other way around in uninstallPart() and nobody caught it.
-
Quando eu abro o jogo pelos arquivos locais/aplicativo "ProjectZomboid32", a função de rebocar carros fica dando erro o tempo inteiro! Me incapacitando de rebocar veÃculos! Não é nenhum mod que causa o erro, ele acontece sempre que eu abro por esse "aplicativo"! Meu jogo não tem um bom desempenho quando eu jogo pela versão normal de 64 bits, então eu jogo apenas na versão de 32, mas acontece esse erro sempre!
-
Suggestions 1. Change Vehicle camera positioning. The center of the screen should be shifted forward in the direction of the vehicle. 2. Allow camera movement with RMB like in a normal person view. Currently it is only possible to "aim" the camera when the front window is open... which is illogical. 3. It would be better to introduce "Vehicle camera offset" option to let players configure how far the camera is moved when they enter a vehicle. Rationale 1. In most cases a player does not really need to observe half of the screen behind the car. At the other hand the player needs to look forward and the further he can see the road - the better. It is not possible to "aim" the camera with RMB in a car when the front window is closed but it is possible to do so when you open that window. As the result I found myself in an illogical situation where I open a window to look further by aiming the camera and positioning it so that the car would be at the border of my screen. Because I don't need to know what is BEHIND my car when I move at 100mph speed. The only exception is a situation where I intentionally aim my camera backwards. 2. It is useful to be able to use "aim" camera. I don't really get why we can't use it with closed windows. It would be better to allow players to use this camera and look through the windows of the car exactly the same as they can do with open windows now. 3. In case someone does not like the offset - they can tune it.
-
Hello, let us place colored light bulbs as headlights A possibility to paint light bulbs somehow would be cool too. thanks in advance
-
TRUCKS Since this is set in America, this should have one of the most iconic things America has, and it is its long nosed Diesel semi trucks. These trucks would have a lot of use for players that wants to live the travelling nomad life, they would be safe in a large truck with a Sleeper behind.(A Sleeper is a the part of the truck where Truckers sleep, eat and entertain themselves). It would also give a lot of utility to communities if the time ever comes to Multiplayer where large groups of players have banded together with NPCs. These trucks could be their lifeline in supplies themselves or blockading a street. The challenge in having a truck in the Apocalypse would be: Repairing it and up keeping it. Trucks have larger tires than normal cars, so after a while, finding replacement wheels would be extremely hard(Trucks usually have 22.5 tires). Refueling a truck could take a lot of effort. For example, a 1980s Peterbilt 359 with a Sleeper and 6X4 Chassis would need at least 300 Gallons per Football Field to be fully refueled. Maintenance would be a nightmare as trucks do not have usual parts that you could use on cars and you would need to find a Truck shop to get the proper parts for it. Space, trucks need a ton of space to be stored, so unless you have a warehouse as a Safehouse, you would have to park it in the open, for everyone to see. Lights, trucks have a TON of lights, from the roof of the cab to the sides of the Cab and Sleeper, some would even have Spotlights, old time trucks in the 1980s would have Spotlights and Long Reverse lights attached to the top of their chrome driver and passenger side windows. These bad boys uses 4 car batteries, good luck with that. Majority of trucks use 12 Speed or 18 Speed Eaton Fullers, so the player has a lot of shifts to do to get it up to speed. Some like logging trucks has High and Low gears for Hills and Mountain roads. There are different types of trucks too, Day Cab, Flat top, Cabovers, Logging, Military and Sleepers. Day Cab: A truck that only consists of the Cab, it is shorter and used for local trucking industries as it could fit in almost anywhere and has a smaller turn circle Flat top: One of the most famous types of trucks in the 1980s and early 90's. These trucks has sleepers that has flat roofs. Cabovers: A very old design of trucks used way back then in the 80s and 90s when road regulations on truck length wasn't harsh one many states. Logging: These are the types that could plow through large hordes with ease, they are city trucks equipped for the harsh muddy roads of the Mountains. Large bullbars and headache racks. Mostly seen in Day cab with the headache rack behind the cab to protect the driver from the Logs his hauling. Military: The military uses many types of Civilian trucks converted for military use like the M915A5. A Freightliner converted for Military transport. Day Cab 1978 Peterbilt 359 Flat Top 1984 Peterbilt 359 Cabover 1994 Freightliner FLA Kenworth T800 Logging truck, the thing you see behind the cab is what truckers call "Headache" rack. United States Military M915A5 with a M1015 Flatbed Trailer (If this is too modern, there is always the M35 Semi used way back in the 70s) The benefits would be great for anyone. A truck could travel a thousand kilometers in a single tank, large hordes would be nothing as you just plow through them with a trailer, and it would be good as an intimidation to players on the road or walking along it. But one should always remember that trucks have air brakes, so you cannot just be constantly be tapping the brakes since it would lock and would take a lot seconds of revving up the engine(It is to pump air into the brakes) to unlock. They would also be noisy, and more noisy with the trailer jumping on and on in tight turns or just from speed. TRAILERS In terms of trailers, the usual 48ft Fontaine Flatbed and 53ft Wabash Dry Vans and 48ft Refrigerated Reefers you see everyday should be scattered on Industrial areas, these are their Pros and Cons: They would have large utility, but are hard to use since if you do not have a Semi truck, they cannot be moved. Replacing their tires would also be hard after a Month into the survival since they also use the same size as the Semi trucks. Hooking up a trailer would also be a hard thing if you do not know which airline to attach and how to hitch the 5th wheel. Though the creativity that could spark if you have a 48ft Flatbed, you could turn it into a house, towed battlewagon, and car/parts/object carrier while the Dry Van would serve the same purpose just excluding the battlewagon but instead as troop carrier or a more enclosed house or moving storage facility. The Dry Van could be used as a temporary or permanent blockade since 53ft is a very long length and could block off Highways and entire entrances to towns. The Reefers(Basically large fridges) could be used to freeze captured players to death or store large amount of foods. But it has a Generator and would need to be attached to a Truck to work properly. These trailers has the ability to "slide" their axles to balance out the weight, but since this is the Apocalypse, they'd be just there as an option if you want to slide the Axles backward. Examples: Wabash 53ft Dry Van trailer Velocity Fontaine 48ft Flatbed. The one on top is a Dropdeck with Spread Axles Here is a link to how Axles slide on Dry Vans: Now for the more complex trailers like Bulk tankers and specialized trailers, these should only appear in specified areas like construction sites and Gas stations. There are multiple types of Bulk Trailers and you'd see. I'll just post a picture since it would be complex to explain it all. The examples I'll use are from a Tanker Company named Polar Tanks. I don't know all the liquids they carry but the examples I could give is: Petroleum: Used to store Diesel and other types of Gasses. Up to 80,000lbs. Dry Bulk: Used for Cement and other types of Construction materials that are in liquid form. Chemicals: Used to haul dangerous chemicals from factories and is often called as the most dangerous type of trailer as if one could leak, an entire town could die. I cannot explain the others as my American Truck Simulator knowledge on tankers ends there, you guys might have to ask actual truckers on what they do. Here are more types of trailers: Wilson 42ft Grain Trailer, these should be found in large farms. There is two types of Dump trailers, one that is called "Side" Dump trailer and "Full" Dump Trailer, here are examples: EAST Full Frame Dump Trailer JET Side Dump Trailer And here is an example of a "Lowboy" trailer: JET Tri Axle Lowboy trailer, these are used to haul Construction equipment or just heavy vehicles in general. Thanks for looking into my suggestions! Keep doing great Devs!
-
For some reason at 1:06:18 of this playthrough I died: I start rapidly losing health even though I'm not encumbered, fractured, bitten, or anything and then at 1:08:29 I die in the driver's seat of my truck. All I was doing was moving inventory. What happened?
-
I think it'd be nice to be able to lock pick in the game like for car doors as well as regular doors. I think this mechanic could be some kind of lock picking skill that you'd improve from picking locks as well as boost through lock picking books. Maybe there could even be a locksmith occupation that gets you started on the functional capabilities of said skill. Perhaps the skill could also be in the burglar occupation. I think for the tools needed it'd be standard lock picks or maybe you could even make some out of the paperclips you find in the game. For starters, It'd be nice to be able to unlock a car without having to find the key or smash the window in addition to hotwiring it. As for doors it'd be nice being able to get in the building without having to find the key or bash my way in through said door or other entrance. For padlocks it'd be nice to get through those too. I guess for the mechanic to work, with all the proper items and skills in hand you'd right click the you want to lock pick and select "pick lock" and the progress meter would fill up as you pick the lock. It will take a few tries until success and fewer tries and faster ones as you level up.
-
Okay so get this, the guy on the cover of Project Zomboid is a on car and yet we can't climb vehicles in the game? I mean if we could climb up cars that would add some protection from the zombies. You know, in a "I have the high ground!" kind of sense. The zombies would either not be able to climb up making you completely safe but surrounded; not able to climb up but able to pull you down if you're too close to the edge making it so you should go inwards on top of the car as much as possible; or they can climb up and maul you to death in addition to pulling you down. If they can't climb up but you're surrounded it would give you the opportunity to pick them off with your gun or strike them dead downwards with a melee weapon. Same thing if they could pull you down which is a bit more challenging. It the most extreme case they can climb up or pull you down making it so you have to attack the most immediately threatening zombie. Like the one that gets up first, that's who you kill. The most extreme case would force you to fight quickly and sequentially to at least endure a bit longer. Might want to add some kind of move to knock off climbing zombies or swat away zombies trying to pull you down. Personally I prefer it if they couldn't climb or grab you down. The balancing factor would still be that if you're out of gun(s) rounds you got to pull out your melee weapon. If your melee weapon(s) breaks then you could very well be screwed. Screwed because you'd essentially be stranded on your car which would eventually lead to your death due to hunger and dehydration not to mention you probably could sleep too well. I mean a horde of zombies growling at me inches away while I'm on a hard cold car roof ain't exactly a sleep number bed experience. The car could also serve as a temporary barrier between you and the zombies. For example, they're chasing you, you quickly vault over a car (or climb it and jump off the other end) and now the zombies have to go around rather than just making a beeline for you. That could buy you some time which is always of the essence in the game in every conceivable way! So yeah I want to be able to use a car roof to my advantage as well as be like the chad on the cover!
-
There should be motorcycles in the game that can be filled with gas like cars. They'd be more maneuverable than cars and can even fit in the player's home/base through a normal door. Disadvantages would be less protection against zombies (and soon to be hostile NPCs) as well as the potential to be flung off the vehicle in a crash. There are already motorcycle helmets in the game but no motorcycle to go with them btw!
-
Hi, does anyone know why when I try to spawn a vehicle in debug mode its name doesn't appear? I followed the creation guide to the letter and it doesn't appear :c [18:35] If anyone could help me I would be eternally grateful.
-
1) The first thing you want to do, as with most mods is to create your mods folder structure, use the image below as a reference, replacing MOD_NAME with the name of your mod: Don't worry about the files shown above, you will be creating them as you follow this guide, just make sure to remember, anytime you see "MOD_NAME" in this guide, replace that with the name you chose for your mod. 2) In your "..mods/MOD_NAME" folder, create your "mod.info" text file which contains the following code: Remember to replace all "MOD_NAME"'s with the actual name of your mod. 3) In the same folder, create/place your MOD_NAME.png , this will be the thumbnail used in game as the poster/picture for your mod. 4) Next up, in your "mods/MOD_NAME/media/lua/client" folder, create your MOD_NAME.lua file with the following code inside: This is the script that will load your model and scripts into the game, it also controls the spawn rate for the car in each type of zone as well as providing the vehicle mechanic overlay. Remember to replace all instances of "MOD_NAME" with the actual name you chose for your mod. 5) Next, in your "mods/MOD_NAME/media/scripts/vehicles" folder, create your MOD_NAME.txt file containing the following code: This script example contains all of the parameters to control the simulation of the vehicle, such as engine power, gear ratios, collision cube and much more. You will (hopefully) find it well commented to give you an idea of what each parameter does. You can look in the games "media\scripts\vehicles" folder for a vanilla vehicle script that more closely reflects the vehicle you are adding rather than starting with the example above, have a good look through them all to get a sense of the different templates you can use and the various changes that can be made to different components. 6) Now you need to (if you have not already) make the 3d model for your vehicle. We suggest using Blender, but as long as you're experienced in 3d modelling, any program that can export .ply files should work, just make sure your faces are triangulated, in Blender you can do this by selecting your model in Edit mode then pressing Ctrl + T. Then drag and drop the exported ply file onto the converter supplied below (unzip the below file, drag your .ply directly onto the .exe, do not double click the exe), it will output a new txt file with the same name as the .ply in the same directory. Copy the new .txt file into your "mods/MOD_NAME/media/models" folder as "Vehicles_MOD_NAME.txt This is the .ply to PZ convertor: PZ_PLYtoPZconverter.zip 7) Now it's time to create your vehicles texture files, these should all go into the "mods/MOD_NAME/media/textures/Vehicles" folder. First up is your "Vehicles_MOD_NAME_Shell.png" , this is the main texture image for your vehicle and needs to be 512x512 pixels, as do all of your textures, below is an example: Next there are 6 different overlay/detail png's to create, the first is for the vehicle lights ("Vehicles_MOD_NAME_Lights.png"): Then the vehicle rust ("Vehicles_MOD_NAME_Rust.png"): The next 2 image examples ("Vehicles_MOD_NAME_Shell_Damaged01.png" and "Vehicles_MOD_NAME_Shell_Damaged02.png") are to show light and heavy damage, respectively, on the vehicle's shell. They are used to represent dents in the bodywork: The next 2 image examples ("Vehicles_MOD_NAME_Overlays_Damaged01.png" and "Vehicles_MOD_NAME_Overlays_Damaged02.png") are very similar to the previous 2 except they are for showing damage on windows and lights as well as scratched on the body work: The last file we need is the vehicle colour mask ("Vehicles_MOD_NAME_Mask.png"), which should also be placed in your "mods/MOD_NAME/media/textures/Vehicles" folder. This tells the game which parts of your vehicle texture correspond to which part of your vehicle model and is needed to display damage, lowered windows and removed elements etc: Here the colour values to be used: Copy your complete mod folder structure into your C:\Users\YourUsernameHere\Zomboid\Mods folder, load the game, turn the mod on in the mod menu and start a new game, your new vehicle is now ready to be found and taken for a spin. Finally, here: ZAZ968M.zip - you can find an example vehicle mod using the above instructions. Notice the included example mod uses a slightly different process with its textures/overlays. The main texture is transparent while the detail has been shifted onto the vehicle_lights .png. This allows the game to automatically and procedurally generate different colours of your car when they are spawned in. Happy Modding!
-
I noticed in project zomboid you can't see the inside of your vehicle. The windows are opaque and when they get broken there's this weird gray shade that shows up in the window frame. I was thinking windows should be transparent and show the inside of the vehicle like the seats and the player driving of course. Useful for seeing the player as well as their condition. Transparent windows are possible for buildings so I figure they'd be possible for vehicles. They gray shading where the window used to be could be mistaken for a window since it's opaque like the windows are just gray.
-
I noticed when you hook up cars to cars the towing chain is invisible. So I think the chain should be visible as in actually modeled and textured. If you have an invisible chain then it looks like the cars are just floating together which doesn't look right.
-
By customizing cars I don't mean adding spikes to the front of them or things like that but rather something like this, say I have a red pickup truck and I find a white one... I would love it if I could take off the hood of the white one and replace the hood of my red one so I would have a red pickup with a white hood.
- 2 replies
-
- vehicle
- customization
-
(and 1 more)
Tagged with:
-
Hello, I needed to spawn vehicles in multiplayer for a trader mod... Once i realized i was going to need one lua recipe per car i freaked out cause thats a lot of code even if im using a generator. So i created CarWanna, the multi-player vehicle spawning library so that other players with out lua experience can add recipes to craft cars via pink slips. Yes it works on multiplayer on build 41.68 with all anti cheats enabled. Here is my is my library on steam, it comes with all the vanilla vehicle pink slips and recipe to craft all of the vanilla cars from that. https://steamcommunity.com/sharedfiles/filedetails/?id=2786560561 I have created addons for several popular vehicle mods: Autotsar Car Titles https://steamcommunity.com/sharedfiles/filedetails/?id=2787344986 fhqwhgads Car Titles https://steamcommunity.com/sharedfiles/filedetails/?id=2787345141 Filibuster Rhymes' Used Car Titles https://steamcommunity.com/sharedfiles/filedetails/?id=2786565562 KI5 Car Titles https://steamcommunity.com/sharedfiles/filedetails/?id=2787345275 At release i current support the spawning of 385? some odd cars (my count is off as fhq added that car pack last night) I created this for the SIXIS BlackMarket for the server i play on, you can take a look at how i have added that in as a requirement here: https://steamcommunity.com/sharedfiles/filedetails/?id=2770287924 and realized what i had made and decided to rip it out and create this mod along with a template mod so anyone else can add their own cars with a guide: https://steamcommunity.com/sharedfiles/filedetails/?id=2786568777 Here is a a example of what a addon for this another trader mod: Wizard's Titles https://steamcommunity.com/sharedfiles/filedetails/?id=2789247660 Wizard Trade Plus Mod https://steamcommunity.com/sharedfiles/filedetails/?id=2786290508 I have also decide to release my project under GNU GPL v3, access to my source code is here: https://github.com/xyberviri/CarWanna Comments, Opinions, Curses are welcome, if i have coded something wrong or could have done something better please let me know. Yes i do plan on improving it with more features. Current bugs(features i havent added yet): -Vehicles spawn facing south fixed -Vehicles spawn with random inventory fixed -Spawn function requires player target to spawn Pinkslips no longer require additional recipes as tags are used for creation of vehicles.
-
My idea is simple, add bicycles... like cars, you have to repair/change parts (but can be done for low level mechanics) why? as@Rathlordsaid in this post... yes, it's realistic yes, fits the spirit of PZ - you have to go to new places to survive no, the game stays hard - there is no trunk to transport things; if you hit something (Zs included), you will fall and injure; you need good muscles and lungs to use it) no, no need to remake the game yes, it worth taking the time to add - a way to move more silently and add more exercise points yes, t can be found anywhere in the world, including Muldraugh if you are unlucky like me, who find 10 generators and ZERO manuals to operate it (and have no way to pump gas) this is a (very risk) way to improvise, like a real survivor
-
Hello and welcome to my tutorial. It covers full workflow of vehicle creation for PZ. If you are a complete beginner in 3D modelling, you'll have to watch/read additional tutorials, I won't cover every aspect of model creation and 'where this button is located'. I divide vehicle creation in these stages: 1) Modelling 2) Wheels texture and modelling 3) Texturing 4) Packing files in folders 5) Editing scripts and .lua 6) In-game editing and tests 7) Workshop publish STAGE 1 - MODELLING Today I am creating a 1960 Ford Falcon I prefer using blender as it is my everyday 3d modelling software. Now, find references for your vehicle and ideally it will be a blueprint/outline scheme, like this one: There are some tips in modelling for PZ: 1) Do not care too much about topology and good shading. There is no actual shading in game, only windows have reflections. 2) Avoid n-gons or triangulate them before export 3) DO NOT make edges to outline body panels/parts. All dividing of parts will be done with texture mask. You can do it in UVs if there will be a point for that. 4) Place spindiel imitations in wheel wells to hide rear part of wheel models 5) In the UVs parts of body have to be straight-oriented without any non-90 degrees rotation, so pixels in texture will lay parallel with polygon flow. 6) To avoid physics artifacts in game import model of one of vanilla game cars models to your scene and model in consistent scale. Or import mine, that is available in the end of topic. This is what I consider a well done model There is nothing special in UV unwrapping process, just remember to place the least amount of seams possible and keep island aligned. Here are the UVs of my model: I've unwrapped the model without applied mirror modifier, so now we will have to texture just one half of the car. I'll fix mirroring later. STAGE 2 - WHEELS There are many ways to make a wheel and texture it, but I'll show the most efficient one. Make the wheel's face with simple materials, but unwrap the 'road touching part' to flat surface, like this: Then place an orthographic camera facing the wheel, scale it to fit the whole wheel-dish. Place a ring with emission material to light the wheel. Switch your renderer to Cycles and go to camera view, now use a rendered shading mode to adjust materials and lights to your taste. Set rendering resolution to something like 120x120-175-175 for best results Check the 'transparent' box in film settings to have alpha backround in texture: Now increase the sample count to something like 512-1024 and hit render. You will end up with a result of a ready-to-go wheel texture: The example file with scene for rendering and the model of this wheel you can download here: *google drive .blend file* Now make a lowpoly model of the wheel to use this texture on. I prefer using 18-24 edge circles for wheels. The unwrapping will be later, but eventually you'll end up with this: This method takes 10-15 minutes when you get used to it and gives a stunning and clear result. STAGE 3 - TEXTURING NOTE: I use a pretty complicated way of texturing and adding light to model. All rules of using textures the default way are covered in "HOW TO CREATE NEW VEHICLE MODS" topic by RingoD123, one of PZ devs. You can access it here: *boop* I'll show you my way, using Substance Painter to apply lighting and fake chrome parts to model. But first comes the base color and details of the car, so let's dive into it. Create a texture with 0 alpha and resolution 256x256. You can go for 512x512, but personally I like pixelated look of lo-res texture. Here are the settings for initial image: To preview the texture you are painting with different car colors, use this node setup. But switch filtering mode from "Linear" to "Closest", I forgot to do it on screenshot. There are two types of texture details: somewhat transparent and absolutely opaque. Half-transparent parts will be affected by car color, so they are mostly shadow/highlight details. Headlights, fixtures and things like that have to be opaque and painted with 100% brush hardness. It is easier to keep 3d view just to see what are you doing and paint texture in image editing mode, right there: First, paint the outlines of doors and other opening parts. Here are some brush hardness values: 0.2 - Outline shadow 0.5 - Outline 1.0 - Fake chrome and rubber window sealing Some work in progress screenshots Now when you have windows frames, save the image you just painted and go to photoshop and mask out glass sections like that Well, time for Substance Painter. You can use photoshop gradients for windows and blender lighting for lighting of the body, but I'll use SP "Baked lighting" filter for that, and for chrome especially. I will briefly describe what I've done in SP: 1) Mask out windows, give them mirror metal material and add a filter to them 2) Mask out chrome parts, made them mirror metal and added the same filter with slightly different settings. 3) Apply the same filter to all body parts left. 4) Add a position gradient to the windows Now I have this result, it is not shaded model, just basecolor: Also export the AO map you baked in SP. You can download file with this scene to look through and get ideas using this link: *boop* Now paint additional details you want on the car and open Photoshop. This is your layers layout: Now save it as .psd for future color editing and as .png to see what the you've done. Plug .png direcly as BaseColor in shader settings. Set your shading setting like this: And check if everything looks ok. This is my result: And this is the vehicle's look with wheels that we made before Sweet, isn't it? Now, it is time to get rid of mirroring. You can make new UV, bake it and... get A LOT of offset artifacts resulting in jagged pixel edges. There is a lazy but effective method: 1) In the UV editor place cursor in the 0,0 coordinates. 2) Set Pivot to 2D cursor: 3) Scale all UV islands to 0.5 EXACTLY 4) Apply mirror modifier to your model. Now select FACES of any half of the model and move it in UVs on Y by value 0.5 EXACTLY or you'll eventually mess everything up. 5) In Photoshop expand canvas of your PSD file we made before 6) Duplicate everything and move to the upper left corner, like in UVs. You can merge color layer(s) to operate color on export more easily. Now you have half of the texture empty... You do not want to waste it, right? Then drop in the wheel texture here without scaling, and you won't need additional texture file for it! 7) Create a layer beneath all others and paint it black or grey to cover alpha-holes in the textures. 8 ) Now unwrap the wheel to this new texture and let it shine! We painted the car and fixed mirroring. DOWNLOAD THE .PSD FILE: *bloop* There are 3 more types of textures to make: 1) Rust 2) Damage (1 or 2 levels, I'm lazy, I prefer using single one) 3) ID Color Mask or just Mask It wasn't possible to make them right with mirroring. Everything about these textures are explained clearly in Ringo's guide, again: *boop* I'll just show results I ended up with. Now you have to use 512x512 clear images for these textures, do not forget it. RUST Painted it with jitter brush and 0.2 hardness. To see what I am doing used the same node setup, as for base texture. DAMAGE Painted gradients with black and white with 0.1 hardess with repetitive strokes. MASK Mask texture tells game where are separate parts of car: doors, windows, lights and others. Every part has it's own color in palette, you can find color table in Ringo's guide. Copy and paste color HEX to use it in blender brush or fill tools. I've missed some of the parts because they do not really matter. AEUGH Texturing is finished. Go to photoshop and make all color variations you want and save them as .png, name them Vehicles_[vehicle name]_ Vehicle name mustn't containt spaces These are color palettes of my car: Now you have to export your vehicle body and wheel models. Copy them to an empty scene and save as separate file. If you used blender default orientations (front, back, right, left, top), then rotate the car on Z axis by 180 degrees. Game rotates it for some reason, so you'll have to do it. Now position everything in scene like this and continue to export settings. Export body and wheel separately with these settings: STAGE 5 - Packing files in folders The folder hierarchy and naming the files you can find in Ringo's guide. The mod file and all of my project files you will be able to download in the end of this topic. make up an Id name for your car. It has to be short, but unique and do not contain spaces. For this car I use '60falcon'. _____________________________________________ workshop.txt properties of the mod for Steam Workshop _____________________________________________ mod.info properties of the mod for in-game mod menu _____________________________________________ models_X folder -> vehicles this folder contains 3d meshes of the vehicle - body and wheel _____________________________________________ textures -> vehicles easy to guess, all vehicle textures are placed here null.png - completely transparent image, used as placeholder later on _____________________________________________ scripts -> vehicles there shoud be a .txt file named with you vehicle's ID name. Open it up and follow these instructions: change invertX to 'TRUE' if vehicle appears to be mirrored by left and right in game. Do not care about scale, offset and other geometric parameters. Insert all your color variation textures as shown below: All vehicle driving parameters are self-explanatory. Remember to set seats count, I'm creating a car with 4 seats. If you want to make less seats or add new, delete passenger[Seat code] records or add new. Also remember Seat[position] records down below. Add or delete the templates, loaded from Game default files: _____________________________________________ LUA SCRIPTS lua -> server -> vehicles -> [car id name]dis.lua Vehicle trunk type distribution file. There is a file with all vehicle distribution types in game files, I'll put it in project folder in the end if the article. This is game files distibution types, select one of them in respect to the vehicle type you are creating. I'll use CarNormal type for Ford Falcon. This is what distribution lua file has to be: _____________________________________________ lua -> shared -> [car id name]SpawnList.lua This file describes spawn zones of your car in game world with certain chance. I've typed in all default zones of spawn, you just have to change the chance and set [Base.60falcon] to [Base.(your car id name)] _____________________________________________ lua -> shared -> Translate -> EN -> IG_UI_EN.txt This is the name of the car in UI - keys name, mechanics window name and such. STAGE 6 - In-game editing and tests Launch PZ and disable all mod exept the one you will be debugging. Now close the game and go to Steam. In application setting set startup parameter to -debug It enables many debug options in-game. Now launch the Game again and, if menu doesn't appear, you've done something wrong in lua scripts. Check them for probles, and I hope, you'll figure out what is wrong. Now start a new game in world with no zombies and big amount of cars. Leave the house and find any car vibing in the street. Right click, -> Vehicle -> Set Script -> [your car ID name]. Car will switch to yours. This is what I've got on first time in-game spawning: YEET, it is all coming along. But wheel positions are a bit off, and we have to place the entering areas of doors. Go to Right click on car -> [DEBUG] Vehicle -> Vehicle Editor. Chassis Place extents and physics shape to outline the car Areas These are access areas to different parts of the car. There is nothing to describe, really, just place them where you can explain it and continue to next section Right click in mechanics tab to enable cheat options for the car. Now right click in mechanics panel. Here you can get key for that car or repair it. Final result in different variations Make a suitable preview image for your mod and crop it in Photoshop to 256x256. Place it in mod folder as preview.png In game menu go WORKSHOP -> create or update mod -> Go to your profile workshop items and find the new mod. Add the description, more screenshots and set visibility to 'Public' ALL PROJECT FILES: *YEET* ZE END Congratulations if you followed my guide to this point. Comment any issues or mistakes I've made.
-
41.65 Singleplayer No mods Instead of showing the name and icon of the installed radio, it defaults to "WaveSignalDevice" and keeps the icon from the last inspected device.
-
Hi, I just started making a mods to this game, and i was trying to make a mod that adds a vehicle to the game, so far there's not much problem but when i see the vehicle in the game, all the textures are messed up, just like if it didn't follow the UVs of the 3D model or something like that, but in blender they seem ok. Oh and by the way i tried making the mod following the tubetarakan tutorial. Here are some images that show a little better the problem. Sorry if i bother and thanks!
-
This mod adds M113 APC with ANIMATED TRACKS!!! to 41.65+ Project Zomboid. https://steamcommunity.com/sharedfiles/filedetails/?id=2705655822&searchtext= It is necessary to have the mod "Military Tool Kit" installed: https://steamcommunity.com/workshop/filedetails/?id=2705406713
-
With the new update the vehicles accelerate slow when driving forward, but they accelerate way faster when driving backwards. The vehicles when driving in first gear, they going immediately to 3000rpm. And it stays there until you hit 30mph. 2 gear 3500rpm. And so on. It does the same in cruise control 5mph. 3000rpm 25mph also 3000rpm. Before the update the vehicles and the sound behave more dynamic, now it feels more static.
-
Go halfway down for a more organized version of this. Kinda wish Overgrowth got even worse, such as the roads eventually being covered in grass, and maybe after a year trees will start growing on the edges of roads, and eventually cover the road as well. Would also be cool if some walls in buildings also started having holes form in them, small enough that you can only see through them, or large enough that you can walk through them. (Hell, if there were versions of buildings that had completely collapsed that would be super cool as well) Would also be cool if cars left in a grassy area long enough Would get overgrown, and would require some extra maintenance to remove the vines and crap from the car before you could drive it. Also we need semi trucks, and an event where a truck is blocking an entire street. That'd be cool too. Ah what else.... perhaps also taps should slowly lose the stored water in them, so you can't just get fresh water easily when going to a new area. Perhaps maybe even water stored too long could potentially become tainted, specially if it's in an open air container? Would also be great if there were more events to make stuff feel a bit more chaotic (of feel like the aftermath of it) such as car wrecks through fences, car buildup behind a police or military line, hell maybe even entire blocks burned down instead of a single house. Maybe even a chance for a street to have a barricade of furniture, of be blocked off with a wire fence with holes in it. (maybe this would have police vehicles behind it too. Idk) Oh yeah, power being on in burned out houses needs to be fixed too. Would also be neat if eventually metal objects other than vehicles would start rusting (street lights, metal doors, ect) and streetlights also having vines grow on them, however it lining up with the sprite. If you dont want to read through all of my random giberish -Grass can eventually entirely cover a road, and bushes can start growing as well. -Some buildings will have holes form in their outer walls after an extended period of time. This can be prevented by repairing the wall if you want to keep your base secure, however will add more of an apocalytpic feel -Vehicles left in areas where grass or shrubbery is growing will have plants grow over them a bit, which will require you to remove before it can be driven, or you can pull it out of the weeds with a trailer (bit more difficult to pull for a few moments, then the remains of the weeds will need to be removed as well -After a long time (1 or 2 ingame years) trees will start growing on roads (Perhaps they only spawn once a year or something so you have to do the most basic of maintenece once or so a year to keep the roads drivable, but not soo often it becomes a major nuisance.) - (Not in the original text) vines can grow around objects left outside (trashcans, streetlights, ect.) also, vines should onyl start growing if the house is besides dirt or if grass is growing in the street -(somewhat unrelated) We need some basic mechanics to allow semis/18 wheelers to be added in whether in mods or not. Essentially allowing a hitch point to not be at the complete rear of the vehicle, and restricting certain trailers to certain vehicles. Thats probably all that would be needed before modders could make semis -Water would eventually become tainted and unsafe to drink if left alone long enough (Water from the taps would last longer than boiled water due to chlorine/ect inside of it.) open air containers would get dirty much faster, if sealed containers go bad at all -Some way for global power to not affect certain buildings (burned out houses should not have power) would be neat if the whole power system got a lot more complicated, such as power lines which could be destroyed to cut off power to certain areas faster.(Perhaps could also be used to power larger areas with generators too.) -Vehicle events which have damage to the environment, such as car wrecks through small fences (or even large fences and walls if holes in them are added - Metal objects having rust forming on them after long enough would look good too. - if it would ever be possible buildings collapsing after long enough would be neat (only way I can think of doing this is if its done off-screen with a loud crashing sound, and a copy of the building is made with it collapsed. SOme buildings could even partially collapse. idk.) Heres an example someone made of some overgrowth And thats all. I'll probably post ideas here a lot since I now know its here.
- 1 reply
-
- overgrowth
- vehicle
-
(and 2 more)
Tagged with:
-
This started with the .54 update. When looting, I leave the engine of my car running, thus allowing for a quick get away. I now am aware of my car's engine revving on it's own, parked out by the street, while I'm in the house looting. When it first happened, I thought OMG, the zombies are stealing my car but don't know how to take it out of park. Every car I have used is doing it. It's a bit startling when you're trying to sneak around the house and be quiet and you hear your car's engine rev out by the street. I named my last car "Christine".