Jump to content

42 Techdoid


nasKo

Recommended Posts

cute-cappuccino.jpg

 

Hey all, here’s a general update from TIS Towers on various things. We do hope this finds y’all well.

 

First off a quick heads-up on the forthcoming 41.66 patch. It’s now content locked, and is now receiving required fixes reported by our internal testers. We will look to put it out into a new unstable beta branch as soon as we can.

 

The full current changelist can be found here for those interested.

 

Next up, a few details on our Build 42 work.

 

As previously mentioned the core MP team will be sticking with Build 41 patches to improve life out on the servers for the immediate future, but work on the next big build has nevertheless now begun/continued in earnest.

 

Already announced for Build 42 was a major expansion of late game crafting and a major focus on game balance – details on which can be found here.

 

There are a few other irons in the fire for this build too though. As ever, no ETAs on any of this.

 

We are very much still in the early versions of this build, and indeed much of the late game crafting update is currently in the ‘pen and paper’ planning stage. More on this in future blogs.

 

ENGINE TECH IMPROVEMENTS

We have recently taken some time to get rid of a bunch of our longest standing issues with the game’s engine.

 

Whilst this is definitely not a b41-style level of disruption, we’re digging deep inside our renderer and looking for ways to get rid of the quite severe problems that have been baked into our engine for a long time in terms of both capabilities and performance.

 

Performance

Of course, the biggest issue our engine struggles with daily is the extreme CPU and GPU heavy requirements of having a map composed of so many unique tiles, shaders and other stuff without the ability to use a z-buffer to let us render in an optimized way like most 3D games.

 

Ironically the fact that its ‘a simpler looking 2D game’ is what works against using a lot of the power of the GPU to render the map fast. This results in large FPS drops, particularly when zooming out due to the mind meltingly inefficient draw method that the ISO perspective forces on us.

 

We’ve had a few rather bold ideas on how to solve this, using the caching of chunks that have already been rendered, which we hope will vastly increase the FPS in B42.

 

It’s early days, but looks promising. This tech requires heavier use of the GPU memory, however, so it may be that this optimization will only be able to benefit cards with a few gigs of free VRAM. We’ll have to see which generations of GPUs will be best able to leverage it when its dev time is a little further down the line.

 

Speaking of not being able to use a z-buffer to render things in an optimized way: in actual fact, we’ve also been working towards being able to use a z-buffer to render things in an optimized way.

 

image-25-1024x428.png

This essentially frees us from having to slot the draws of zombies, vehicles or players in between the appropriate tile draws in ‘back to front’ order.

 

We’ll be able to simply draw all the characters and vehicles on-screen at the end, their pixels then discarded if they are deeper into the scene than an existing building object’s pixel.

 

This should massively optimize the rendering speed of zombies, and allow us to sort them by materials. It will free us to use cached chunks indefinitely, until the lighting or cutaways demand a change, rather than rendering all the tiles individually.

 

We have had some surprising FPS results in 4k on max zoom, however we also expect this will likely fall a lot in practice – once the work is complete and everything is drawing. Please excuse any visual glitches at the moment!

 

 

Due to all this, in B42 it currently feels safe to assume that zooming out will have significantly lower performance penalty – and that higher resolutions will become more feasible for at least mid-range GPUs, and possibly lower end GPUs too.

 

Variable Chunk Heights

In the game, since our very earliest builds, we’ve been limited to 8 storey buildings. This was primarily because the height was global, and increasing this would incur a penalty to performance across the entire map even if that extra space was not used.

 

The other issue was simply performance when drawing those extra floors. If we’re struggling to render the amount of tiles we already have, adding extra tall buildings would be a big mistake.

 

Thirdly, there’s something to be said about less being more in terms of gameplay. However, this hard limit of 8 has long been a thorn in our mappers’ sides, as well as for our mod community.

 

Seeing as it looks like we’ll be able to solve the performance issues discussed above, we’ve now added a variable chunk height system which will allow each chunk of the map to define its own max height.

This means that in Build 42 it’s looking like a particular area could have floors up to 32 in height, should the mapper desire it.

 

Four way stairs

Currently, due to certain tech limitations, we only have stairs that rise in north or west directions.

 

This is annoying, and we’d like to get rid of this limitation for numerous reasons. We’ve done some mock-ups of how stairs would look in the other two directions, and think we’ve found a way to make it work.

 

They look a little odd, however functionally being able to have stairs in any of the four directions would give mappers and ourselves much more freedom in building design.

 

Map Coordinates

Another limitation that has been very longstanding is the fact that negative map coords (expanding out the map in the negative X and Y directions) is not possible in PZ – due primarily to some TIS naivety early on in development.

 

For the maths-minded out there: casting a player’s x, y, z location to an int to work out what tile they are standing on will return the wrong value if any of those coordinates are a negative value.

 

There were thousands of places where this occurred in the codebase, and they all needed changing from a static cast to a math.floor, so that they will work in negative dimensions.

 

Making negative map coordinates possible means that we, or modders, will feasibly be able to build northwards and westwards, and opens up a huge extra area of potential map area to expand to.

 

It likewise also puts other cool stuff (back) on the game dev table that we’ll discuss at a later date.

Light Propagation

We have also been updating our lighting system.

 

In the current B41 we have an ambient light level that’s inherent to every tile within the map – though slightly reduced indoors. Light sources are only capable of lighting the room that they are in.

 

Locking yourself in a cupboard with the door shut currently results in the same light level as you’d get in the living room with open curtains.

For B42 we are rejigging how lighting is calculated, to make a much more interesting and realistic light propagation system.

 

Now being in a room with no windows, even in broad daylight, will leave you in the darkness. The evening sunset glow will encroach through the window and bathe your room in a red tint, creeping back toward the window and dimming as the sun goes down.

 

Interiors of buildings will lighten and darken with the daylight based on how much exposure to the bounced light they will feasibly receive. Opening a door to a lit room will bathe the outside corridor in light, and so on.

 

This is all still development in progress, and it maybe requires tweaking of light intensities, colours and fall-off ranges.

Please also excuse any glitches you see, this is all still very much in the oven!

 

 

OTHER BIZNESS

  • The map team continue their awesomeness, with lots of map polish currently going into the current Knox Event map – including electricity pylons and cool new locations like this.
sc1-1024x642.png
  • The Noiseworks gang continue with their improvements of the PZ soundscape, with their current mission being to provide background sounds that provide different ambiance for times when the electricity and water are on, for when they are off, and an audible change to signal the exact moment when the turn-off happens in-game.
  • Currently awaiting integration are also 14 new music CDs, 14 movie VHS tapes, 20 new TV show tapes and 44 home recorded tapes too. You will be delighted to hear that these include several new sequels in the much-lauded Dog Goblin horror franchise. Our thanks to Brat Pen for these.
  • The curator of the online PZ map project, Blindcoder, wants to let you know that he’s on the case with updates – and apologises for delays caused by Covid and irl fun/games. His blog here. Our thanks to him for all his amazing work also.

 

 

This week’s flamingo fun from Cute Cappuccino. A changelist of all our pre-release patches since the 41 beta began can be found here. The Centralized Block of Italicised Text would like to direct your attention to the PZ Wiki should you feel like editing or amending something, and the PZ Mailing List that can send you update notifications once builds get released. We also live on Twitter right here! Our Discord is open for chat and hijinks too!

Link to comment
Share on other sites

Great to hear about the technical updates. Better performance is always great, and letting the game utilize better hardware also sounds great. One thing I'm curious about; will the improvements rendering help with performance on integrated graphics (I personally haven't used integrated in years, but I've heard it's quite rough) or will it just benefit dedicated gpus?

It'll be great to be able to drive without getting  motion sickness from sub30 fps. :)

Link to comment
Share on other sites

 

I aboslutely adore the new lighting. It adds a whole new level of gameplay. Clearing out a building after the powers out'll have so much tension. Needing a flashlight, or headtorch/backpack light type thing, to be able to safely clear it'll add so much more need for batteries, and flashlights. And one handed weapons thinking about it.

Mods like "Fear The Sun" will be much greater too, given how zombies will all be inside, in the dark.. where you can't see them.

Link to comment
Share on other sites

"Removed Lucky/Unlucky traits in MP."

why?

 

"Added ability to use sheet ropes to create log stacks"

Finally! but ropes would become almost useless now, no? I'd suggest to set a durability on sheet ropes, and no durability on regular ropes (or very high durability), the more you use sheet ropes (to carry logs or even to climb) the more it deteriorates and would break at some point. 

Btw I feel like we should need ropes to tow cars, but that's out of subject.

 

"Added pinecones (only available from September to December)."

Is it possible to use pinecones as baits in traps to catch squirrels? If not it should

"Added short sighted foraging debuff can be removed by wearing glasses/reading glasses"

Now that's awesome, it would make sense to work also on the field of view, or it already does?

 

"Insects, mushrooms, herbs are now much more common at night."

what? I can understand for insects since some insects are nocturnal like crickets but why mushrooms and herbs? 

A little suggestion about weather's effects on foraging, worms should be way easier to find when it rains, IRL they come out when it rains, that's why birds tap on the ground to imitate rain's vibration and fool worms to come out, so they should be easier to find while foraging and digging when it rains. 

 

A last suggestion for foraging, sorry I know it's not really the place for it but I'm not gonna make a post just for that... It would be much better to pick up items directly on the selected bag, same as when we loot containers, instead of having to right click then choose where the loot goes.

Edited by Axezombie
Link to comment
Share on other sites

44 minutes ago, Axezombie said:

"Added ability to use sheet ropes to create log stacks"

Finally! but ropes would be come almost useless now, no?

Ropes weight less so they're still better? And if that's not enough, sheet ropes can have a lesser weight reduction or something.

Edited by Tykvesh
Link to comment
Share on other sites

On 2/4/2022 at 10:39 AM, Tykvesh said:

Ropes weight less so they're still better? And if that's not enough, sheet ropes can have a lesser weight reduction or something.

Yes but I guess it would still need a durability, I mean it's just sheets you can rip with your bare hands so it's not strong at all and would definitely break after few uses, same with escape sheet ropes.

Link to comment
Share on other sites

  • 2 weeks later...

Good job! I have a question regarding the lighting update.

 

Will the light be similar as when you build custom wooden walls, it feels different and buggy, the shadow/lighting in custom made rooms are buggy. You can see through walls and shadows are much different, even the ambient. You can feel the wind inside the house you built but you can't feel it in already existing interiors. Will this lighting update cover this perhaps?

 

Link to comment
Share on other sites

  • 1 month later...

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...