Barotrauma

Barotrauma

Lua For Barotrauma
EchoFort 20 Apr, 2022 @ 9:55pm
[Solved?]Could Not Connect to Server (Attempting to Install Client-side Lua)
This problem might be on me, but Everytime I try to host a server to install Client-side lua from this mod, it gives an error "Could Not Connect to Server" and it's not a crash. Anyway, tried to host a normal Server and it works fine. Any Solutions? (Other than Manual Installation if possible)



I just solved it by just downloading the Lua by manually, turns out it's not hard as it seems. Just followed the "Using Lua from Scratch" and it's just simple as copy "this" and place "there" (Using the highlihgted text Use the latest-version of Lua for Barotrauma).
Last edited by EchoFort; 12 May, 2022 @ 5:56pm
< >
Showing 1-10 of 10 comments
It's most likely due to an update. We'll have to wait for a fix from the developer and hope that not everything is seriously broken there.
Evil Factory  [developer] 21 Apr, 2022 @ 6:49am 
it works for me and other users, no idea what's going on for you
Spawn_of_Cthulhu 21 Apr, 2022 @ 11:14am 
worked for me
gamerice4 25 Apr, 2022 @ 5:35am 
Same thing, did everything as stated but no one can connect
Oiltanker 8 May, 2022 @ 3:34am 
@Fort_Thread Starvation try to host lua dedicated server by running it's executable (run 'cmd' in game directory, then launch from console lua dedicated server executable), if it launches then you can connect to it either IP (127.0.0.1 or localhost) from the game and install it that way.
EchoFort 8 May, 2022 @ 4:44am 
Originally posted by Oiltanker:
@Fort_Thread Starvation try to host lua dedicated server by running it's executable (run 'cmd' in game directory, then launch from console lua dedicated server executable), if it launches then you can connect to it either IP (127.0.0.1 or localhost) from the game and install it that way.

Alright, I'll try that when I have the time, I'll update the post later
EchoFort 8 May, 2022 @ 6:53pm 
Originally posted by Fort_Thread Starvation:
Originally posted by Oiltanker:
@Fort_Thread Starvation try to host lua dedicated server by running it's executable (run 'cmd' in game directory, then launch from console lua dedicated server executable), if it launches then you can connect to it either IP (127.0.0.1 or localhost) from the game and install it that way.

Alright, I'll try that when I have the time, I'll update the post later

Turns out I'm still unsure on what/how to do on the parts you've said, so perhaps I need a Simpler procedure or dumb it down a bit maybe I could understand it more.




In any case. New update on my attempts now it Crashes the game with the following log :

Exception: ChildServerRelay readTask did not run to completion: status was WaitingForActivation. (System.Exception)
Target site: Int32 ReadIncomingMsgs()
Stack trace:
at Barotrauma.Networking.ChildServerRelay.ReadIncomingMsgs() in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Networking\ChildServerRelay.cs:line 126
at Barotrauma.Networking.ChildServerRelay.<UpdateRead>g__readBytes|40_0(Span`1 readTo) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Networking\ChildServerRelay.cs:line 157
at Barotrauma.Networking.ChildServerRelay.UpdateRead() in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Networking\ChildServerRelay.cs:line 168
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadHelper.ThreadStart()


Last debug messages:
[5/9/2022 8:40:13 AM] Exiting...
[5/9/2022 8:38:36 AM] Couldn't load xml document "serversettings.xml"! {Root element is missing.}
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at Barotrauma.XMLExtensions.TryLoadXml(String filePath, Exception& exception) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Serialization\XMLExtensions.cs:line 110
[5/9/2022 8:38:05 AM] WARNING: C:/Users/[REDACTED]/AppData/Local/Daedalic Entertainment GmbH/Barotrauma/WorkshopMods/Installed/2251179004/zombieevents.xml: All root EventSets should have an identifier
[5/9/2022 8:35:36 AM] Attempting to open ALC device "OpenAL Soft on Speakers (Realtek High Definition Audio)"
[5/9/2022 8:34:55 AM] Logged in as Fort_Thread Starvation (SteamID STEAM_1:0:228038169)
Last edited by EchoFort; 8 May, 2022 @ 6:54pm
EchoFort 12 May, 2022 @ 5:55pm 
Update again : I just solved it by just downloading the Lua by manually, turns out it's not hard as it seems. Just followed the "Using Lua from Scratch" and it's just simple as copy "this" and place "there" (Using the highlihgted text Use the latest-version of Lua for Barotrauma).
Last edited by EchoFort; 12 May, 2022 @ 5:56pm
★⋆Gothy⋆★ 20 Jun, 2022 @ 7:56pm 
I have a definitive similar issue with Lua installation process.

For some reason or another, after hosting a multiplayer server and entering "install_cl_lua" key prompt command, it gives a brief pause for about 10 to 15 seconds before giving feedback, then prompts that there is a missing package or something.

Basically, it isn't finding what it is supposed to and my Single Player Campaign is "Lualess." It doesn't appear to be installing client-side at all.


*(Side Note)* ~~~ I will disable the "Aliens (Xenomorphs, neomorphs, etc)" mod and test if the Lua will install without it being active. ~~~



_______________________________________________________________________


Exception: The process cannot access the file 'Workshop_Aliens (Xenomorphs, neomorphs, etc)_2510534927.barodir.gz' because it is being used by another process. (System.IO.IOException)
Target site: Void RemoveDirectoryRecursive(System.String, WIN32_FIND_DATA ByRef, Boolean)
Stack trace:
at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
at System.IO.Directory.Delete(String path, Boolean recursive)
at Barotrauma.IO.Directory.Delete(String path, Boolean recursive) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Utils\SafeIO.cs:line 302
at Barotrauma.Networking.ModSender.DeleteDir() in <DEV>\Barotrauma\BarotraumaServer\ServerSource\Networking\FileTransfer\ModSender.cs:line 58
at Barotrauma.Networking.ModSender.Dispose() in <DEV>\Barotrauma\BarotraumaServer\ServerSource\Networking\FileTransfer\ModSender.cs:line 65
at Barotrauma.Networking.GameServer.Disconnect() in <DEV>\Barotrauma\BarotraumaServer\ServerSource\Networking\GameServer.cs:line 3936
at Barotrauma.Networking.GameServer.Update(Single deltaTime) in <DEV>\Barotrauma\BarotraumaServer\ServerSource\Networking\GameServer.cs:line 349
at Barotrauma.GameMain.Run() in <DEV>\Barotrauma\BarotraumaServer\ServerSource\GameMain.cs:line 329
at Barotrauma.Program.Main(String[] args) in <DEV>\Barotrauma\BarotraumaServer\ServerSource\Program.cs:line 75


Last debug messages:
20-Jun-22 18:45:15 - [20-Jun-22 18:45:15]
Saving banlist
20-Jun-22 18:45:13 - [20-Jun-22 18:45:13]
ServerCrashed
20-Jun-22 18:45:12 - [20-Jun-22 18:45:12]
Saving banlist
20-Jun-22 18:44:52 - [20-Jun-22 18:44:52]
Saving banlist
20-Jun-22 18:44:33 - [20-Jun-22 18:44:33]
Saving client permissions
20-Jun-22 18:44:33 - [20-Jun-22 18:44:33]
Saving client permissions
20-Jun-22 18:44:33 - [20-Jun-22 18:44:33]
Skylar has joined the server.
20-Jun-22 18:44:33 - [20-Jun-22 18:44:33]
Server started
20-Jun-22 18:44:32 - [20-Jun-22 18:44:32]
Using SteamP2P networking.
20-Jun-22 18:44:32 - [20-Jun-22 18:44:32]
Starting the server...
20-Jun-22 18:44:32 - Selected shuttle: UFO Mk III
20-Jun-22 18:44:32 - Selected sub: Unique Starred Items & More4
20-Jun-22 18:44:28 - Overriding an affliction or a buff with the identifier 'concussion' using the file 'C:/Users/[REDACTED]/AppData/Local/Daedalic Entertainment GmbH/Barotrauma/WorkshopMods/Installed/2648774153/Characters/Human/Afflictions.xml'
20-Jun-22 18:44:28 - Overriding an affliction or a buff with the identifier 'nausea' using the file 'C:/Users/[REDACTED]/AppData/Local/Daedalic Entertainment GmbH/Barotrauma/WorkshopMods/Installed/2648774153/Characters/Human/Afflictions.xml'
Friends cannot join server with this mod. "Could not connect to server".
< >
Showing 1-10 of 10 comments
Per page: 1530 50