nanos-world / issues

Issue Tracker for nanos world
9 stars 1 forks source link

Package scripts download breaking #968

Open vugi99 opened 10 months ago

vugi99 commented 10 months ago

Prerequisites

Your Environment

Description

Package scripts download breaking

Steps to reproduce the behavior

Weird package reload all

[2023-10-22 17:13:23]    INFO  Package 'vzombies' unloaded.
[2023-10-22 17:13:23]    INFO  Package 'default-weapons' unloaded.
[2023-10-22 17:13:23]    INFO  Package 'modern-weapons' unloaded.
[2023-10-22 17:13:23]    INFO  Package 'mapvote' unloaded.
[2023-10-22 17:13:23]    INFO  Package 'default-blank-map' unloaded.
[2023-10-22 17:13:23]    INFO  Package 'webui3d2d' unloaded.
[2023-10-22 17:13:23]    INFO  Downloading 5 Scripting file(s)! (71.5 KB)
[2023-10-22 17:14:04]   ERROR  Failed to find Package 'vzombies' to HotUnload!
[2023-10-22 17:14:04]   ERROR  Failed to find Package 'default-weapons' to HotUnload!
[2023-10-22 17:14:04]   ERROR  Failed to find Package 'modern-weapons' to HotUnload!
[2023-10-22 17:14:04]   ERROR  Failed to find Package 'mapvote' to HotUnload!
[2023-10-22 17:14:04]   ERROR  Failed to find Package 'default-blank-map' to HotUnload!
[2023-10-22 17:14:04]   ERROR  Failed to find Package 'webui3d2d' to HotUnload!
[2023-10-22 17:14:04] WARNING  Received new hot-download request while already hot-downloading. Enqueueing it.

That fails to hotunload everything Then join again It will be broken even after game restart

Expected behavior

Original file : https://cdn.discordapp.com/attachments/440886726408404994/1165671328486019162/cl_Bots.lua?ex=6547b305&is=65353e05&hm=8f8d364be6aa31059c32e81809b658daf1ffaeef125d5e7863883d0c37784f95&

Actual behavior

Broken file : https://cdn.discordapp.com/attachments/440886726408404994/1165671328062373939/cl_Bots_broken.lua?ex=6547b305&is=65353e05&hm=c9844e801ee268037da34d2d6b3ec99be938d5065395701601860fe18a164f3c&

Some other files broke too

vugi99 commented 10 months ago

The hotunload fail is not needed to reproduce. It seems to happen for 1% of package reload all but when it happens I have to remove the server packages files in Saved folder of the game to fix.

vugi99 commented 10 months ago

HAPPENS WITHOUT PACKAGE RELOAD ALL (VZ Server)

2023-10-27 11:16:07    INFO  Player 'ATO' (X) has connected!
2023-10-27 11:16:07  SCRIPT  Player Joined  ATO 
2023-10-27 11:16:07 WARNING  Server Tick extremely high! Verify the server performance! Server got stuck for 113ms.
2023-10-27 11:16:09  SCRIPT  Received error log from client 454 ATO Error   [2023-10-27 07:16:09]   ERROR  Lua Error on loading file 'vzombies/Client/Gui.lua':
[string "vzombies/Client/Gui.lua"]:1: unexpected symbol