Build 86: AI rework

Beer Factory

Beer Factory is a business simulation and management game. Take the challenge and manage your own beer factory, employees, production lines, as well as the import and export of merchandise.

[h3]Hello brewers,[/h3] It's been a while since the last update, thank you for your patience. Over the last few weeks, I've been able to take a week's rest after the last two long years of work, and then of course I'm back at work. After careful consideration, rather than correcting and patching a system that's not optimal and that generates a lot of problems, I decided to rework the AI in depth: its movements, the generation of its navigation perimeter and the generation of the path it takes. It took a long time, but it's now a system over which I have full control. Many of you also wanted the employees to unload the delivery truck at the start of the game, but adding an AI to drive the vehicles would have been another long job, so I did some experimentation and came up with a result that I found rather amusing without intending to, so I opted for this one and took the opportunity to add the functionality. [h3][i]Thank you for your constant support! [/i][/h3] [h2]Patch note: [/h2] [u][b]Reworked:[/b][/u] Entire system of navigation for AI characters (The game no longer uses the unreal engine navigation system but a custom one) [list] [*] The AI movement system has also been remade, as the Unreal Engine system was no longer compatible [*] AI employee will always find their target unless the object is in a room or in a place where the player himself cannot reach (It also fixes any problems with employees assigned to cleaning) [*] AI use their own dynamic collision systems to generate their trajectories [*] New navigation chunks never disappear so AI will be active even if the player is very far from the AI [/list] Vehicle AI does not move by physic anymore and now it's fully scripted [list] [*] Less visual quality but better performance and now prevents vehicles from deviating from their trajectories and will always deliver no matter what [/list] [u][b]New:[/b][/u] [list] [*] Rather than dropping resources, if an employee no longer needs to have a resource in hand and has an assigned slot with an empty pallet or one of the same type as the resource in hand, he'll put it on the pallet [*] Added 2 pallet locker on ground level for buildables storages [*] Employee assigned to factory cleaning will unload delivery truck when one is available [*] Employees carrying pallets store them on the nearest storage available [/list] [u][b]Fix:[/b][/u] [list] [*] Employees assigned to the brewery will no longer put resources in the brewing tank if they no longer require them and will come and place their resources on a relevant pallet [*] Employees assigned to cleaning will no longer make unnecessary trips to the kitchen [/list]