SmartlyDressedGames / Unturned-Docs

Documentation for Unturned's modding features.
133 stars 49 forks source link

Mod doesn't work properly on servers. #126

Closed yehuuu6 closed 2 years ago

yehuuu6 commented 2 years ago

So I was creating a mod and asked some questions earlier thanks for replying btw, I just finished my mod and tested it on my server. But, I can not equip any gun, barricade (demolotion charge) or grenade. The thing is they are actually being actively used by my character. Just doesnt show animations. If I spawn my custom rocket launcher, and punch the air, It actually spawns the projectile (sometimes). But we can't see it. Later that, explosion effect spawns perfectly and rocket damages people. There are no any error logs. Again, it works perfectly on single player world. Just exported default Launcher_Rocket example as unity3d and changed ID's nothing more happened.

Unity version: 2019.4.35f1

https://user-images.githubusercontent.com/49097712/152576426-9b03c7f0-15d4-4f13-87d2-1da00ff8c5f5.mp4

yehuuu6 commented 2 years ago

https://user-images.githubusercontent.com/49097712/152579984-1c1fc9da-1fdf-4dd5-83c1-ac4e14d7a891.mp4

as i mentioned before, sometimes this happens

SDGNelson commented 2 years ago

Can you upload your Client.log file from the Logs folder please? My guess is there is a client-side exception when the item is equipped.

yehuuu6 commented 2 years ago

[2022-02-05 10:40:17] Reflect net invokables: 44ms [2022-02-05 10:40:17] Unturned overriding Steam AppId with "304930" [2022-02-05 10:40:18] Requesting promo item grant [2022-02-05 10:40:18] Platform: WindowsPlayer [2022-02-05 10:40:18] Loaded "english" language "SDG" namespace [2022-02-05 10:40:19] Long delay between Updates: 1.513067s [2022-02-05 10:40:19] Failed to change display to ExclusiveFullscreen...reverting to FullscreenWindow [2022-02-05 10:40:19] [2022-02-05 10:40:33] Tried loading "core.masterbundle" optional custom data from "Assets/CoreMasterBundle/AssetBundleCustomData.asset" [2022-02-05 10:40:33] Loaded master bundle async: C:\Program Files (x86)\Steam\steamapps\common\Unturned\Bundles\core.masterbundle [2022-02-05 10:40:42] Link spawns: 0 children, 824 sorted/normalized and 747 parents [2022-02-05 10:40:42] Launching main menu [2022-02-05 10:40:42] Loading additive default menu [2022-02-05 10:40:42] Refreshing Steam inventory [2022-02-05 10:40:42] Loaded characters [2022-02-05 10:40:42] Applying graphics settings (loaded menu) [2022-02-05 10:40:42] Applied graphics settings [2022-02-05 10:40:42] Requesting 3 Steam community announcements [2022-02-05 10:40:42] Requesting popular workshop files from the past 30 day(s) for news feed [2022-02-05 10:40:43] Requesting Steam item store prices [2022-02-05 10:40:43] Editor map selection empty [2022-02-05 10:40:43] Menu UI ready [2022-02-05 10:40:43] Received popular workshop files [2022-02-05 10:40:43] Requesting workshop file details for news feed (2733414838) [2022-02-05 10:40:43] Received Steam community announcements [2022-02-05 10:40:43] Long delay between Updates: 1.523709s [2022-02-05 10:40:43] Received workshop file details for news feed [2022-02-05 10:40:43] Item store using fallback culture Turkish (Turkey) for Steam currency code TRY [2022-02-05 10:40:43] Received Steam item store prices - New: 0 Featured: 0 Discounted: 0 All: 294 [2022-02-05 10:41:19] therenaydin Mod Testing host ban flags: None [2022-02-05 10:41:21] Initializing ClientTransport_SteamNetworkingSockets [2022-02-05 10:41:21] Client Steam Networking available [2022-02-05 10:41:21] Client connecting to 194.195.241.12:27016 [2022-02-05 10:41:21] Client connection with 3841051637 ready [2022-02-05 10:41:22] Server specified 1 workshop item(s), querying details [2022-02-05 10:41:22] Server's allowed IP for Workshop downloads: 194.195.241.12 [2022-02-05 10:41:22] Server has 1 valid workshop item(s), but we already have them installed, launching [2022-02-05 10:41:22] Loading server level (Washington) [2022-02-05 10:41:22] Survival [2022-02-05 10:41:24] Found 4096 foliage v2 tiles [2022-02-05 10:41:24] Loading 16 landscape tiles [2022-02-05 10:41:26] Long delay between Updates: 2.19752s [2022-02-05 10:41:26] Ready to connect [2022-02-05 10:41:27] Connection pending verification [2022-02-05 10:41:27] Authenticating with server [2022-02-05 10:41:27] No item hotkeys to load [2022-02-05 10:41:27] Applying graphics settings (loaded player) [2022-02-05 10:41:27] Applied graphics settings [2022-02-05 10:41:28] Accepted by server [2022-02-05 10:41:28] BattlEye client message: Initialized (v1.247) [2022-02-05 10:41:29] Long delay between Updates: 1.702352s [2022-02-05 10:41:29] BattlEye client message: Server computed GUID: 0d71d279c72739f392a0f0582da9bad2

SDGNelson commented 2 years ago

Thanks for the log! Double-checking: did you try equipping the item before uploading the log file? Otherwise unfortunately I was wrong and there was no exception logged. In that case if you can send me the mod I will try loading it up myself to test.

yehuuu6 commented 2 years ago

Yeah, deleted old log, launched game, joined server and spawned item. Used it, left the server. Of course. Thank you for your time. I've been dealing with this error for 3 days. Maybe 4 I lost count XD

SDGNelson commented 2 years ago

Tested your example in multiplayer and it worked as-expected. Maybe your server has a different version? Would recommend removing the Bypass_Hash_Verification line.

yehuuu6 commented 2 years ago

I added that line in order to fix the issue. Im glad it worked for you, from now i can safely publish the mod. Thanks Nelson!