(multiplayer) Help with a mod error - No Graphics Device Service

Doppleboop

Terrarian
This only happens when I enable Lights and Shadows mod in Tmodloader 1.4 alpha in a server but otherwise, it works when I play alone. This is what it says:

[12:06:11] [Main Thread/INFO] [tML]: Starting tModLoader server 1.4.3.2+0.12-1.4-Alpha-b9ff79e7dbf302717ee4c5ad75816a64d5c4b7b7-5249463614571379896
[12:06:11] [Main Thread/INFO] [tML]: Log date: 1/15/2022
[12:06:11] [Main Thread/INFO] [tML]: Running on Windows X64 NetCore 6.0.0
[12:06:11] [Main Thread/INFO] [tML]: Executable: C:\Program Files (x86)\Steam\steamapps\common\tModLoader\tModLoader.dll
[12:06:11] [Main Thread/INFO] [tML]: Working Directory: C:\Program Files (x86)\Steam\steamapps\common\tModLoader
[12:06:11] [Main Thread/INFO] [tML]: Launch Parameters: -server -config serverconfig.txt
[12:06:11] [Main Thread/INFO] [tML]: Parsed Launch Parameters: -server -config serverconfig.txt
[12:06:12] [Main Thread/DEBUG] [tML]: Native Resolve: Steamworks.NET, Version=15.0.1.0, Culture=neutral, PublicKeyToken=null -> steam_api64
[12:06:12] [Main Thread/DEBUG] [tML]: attempting load C:\Program Files (x86)\Steam\steamapps\common\tModLoader\Libraries\Native\Windows\steam_api64.dll
[12:06:12] [Main Thread/DEBUG] [tML]: success
[12:06:12] [Main Thread/INFO] [tML]: Unloading mods
[12:06:13] [Main Thread/INFO] [tML]: Finding Mods...
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: AlchemistNPCLite
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: AmuletOfManyMinions
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: ArmorReforge
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: BetterAutosave
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: BetterBeds
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: BetterBossBar
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: BetterMultiplayer
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: BossChecklist
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: CheatSheet
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: ClickerClass
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: CultistTheme
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: Fargowiltas
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: imkReborn
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: Lights
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: MagicStorage
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: MaskShop
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: MaxStackExtra
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: NPCNameDisplay
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: OneStopNPCShop
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: OreExcavator
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: PrimeTheme
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: RecipeBrowser
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: StarsAbove
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: VitalityMod
[12:06:13] [Main Thread/INFO] [tML]: Sandboxing: WhipArmor
[12:06:13] [Main Thread/INFO] [tML]: Instantiating Mods...
[12:06:14] [Main Thread/INFO] [tML]: Initializing: ModLoader v0.12
[12:06:14] [Main Thread/INFO] [tML]: Initializing: AlchemistNPCLite v1.8.7
[12:06:14] [Main Thread/INFO] [tML]: Initializing: AmuletOfManyMinions v0.14.0
[12:06:14] [Main Thread/INFO] [tML]: Initializing: ArmorReforge v1.3
[12:06:14] [Main Thread/INFO] [tML]: Initializing: BetterAutosave v1.2
[12:06:14] [Main Thread/DEBUG] [tML]: Hook On.Terraria.Main::DoUpdate_AutoSave() added by BetterAutosave
[12:06:14] [Main Thread/DEBUG] [tML]: Hook On.Terraria.Main::UpdateTime() added by BetterAutosave
[12:06:14] [Main Thread/INFO] [tML]: Initializing: BetterBeds v1.3.3
[12:06:14] [Main Thread/INFO] [tML]: Initializing: BetterBossBar v0.2
[12:06:14] [Main Thread/INFO] [tML]: Initializing: BetterMultiplayer v1.5
[12:06:14] [Main Thread/INFO] [tML]: Initializing: BossChecklist v1.2.1
[12:06:14] [Main Thread/DEBUG] [tML]: Hook On.Terraria.GameContent.Events.DD2Event::WinInvasionInternal() added by BossChecklist
[12:06:14] [Main Thread/INFO] [BossChecklist]: Boss Log integration messages will not be logged.
[12:06:14] [Main Thread/INFO] [tML]: Initializing: CheatSheet v0.7.0.7
[12:06:14] [Main Thread/INFO] [tML]: Initializing: ClickerClass v1.3.0
[12:06:14] [Main Thread/DEBUG] [tML]: Hook On.Terraria.Main::DrawInterface_36_Cursor() added by ClickerClass
[12:06:14] [Main Thread/INFO] [tML]: Initializing: CultistTheme v2.0.2
[12:06:14] [Main Thread/INFO] [tML]: Initializing: Fargowiltas v2.6.4
[12:06:14] [Main Thread/INFO] [tML]: Initializing: imkReborn v0.2
[12:06:15] [Main Thread/INFO] [tML]: Initializing: Lights v0.31
[12:06:15] [Main Thread/DEBUG] [tML]: Hook On.Terraria.Graphics.Effects.FilterManager::EndCapture(RenderTarget2D, RenderTarget2D, RenderTarget2D, Color) added by Lights
[12:06:15] [Main Thread/DEBUG] [tML]: Hook On.Terraria.Main::LoadWorlds() added by Lights
[12:06:15] [Main Thread/INFO] [tML]: Initializing: MagicStorage v0.5.3.3
[12:06:15] [Main Thread/DEBUG] [tML]: Hook On.Terraria.Recipe::FindRecipes(bool) added by MagicStorage
[12:06:15] [Main Thread/WARN] [tML]: Granted native detouring access to MagicStorage
[12:06:15] [Main Thread/DEBUG] [tML]: Hook IL.Terraria.Player::ItemCheck_ApplyHoldStyle_Inner(float, Item, Rectangle) modified by MagicStorage
[12:06:15] [Main Thread/ERROR] [MagicStorage]: Unable to fully patch Terraria.Player.ItemCheck_ApplyHoldStyle_Inner()
[12:06:15] [Main Thread/INFO] [tML]: Initializing: MaskShop v0.7.1
[12:06:15] [Main Thread/INFO] [tML]: Initializing: MaxStackExtra v1.4.0.2
[12:06:15] [Main Thread/INFO] [tML]: Initializing: NPCNameDisplay v1.4.2
[12:06:15] [Main Thread/INFO] [tML]: Initializing: OneStopNPCShop v1.1.0.2
[12:06:15] [Main Thread/INFO] [tML]: Initializing: OreExcavator v0.6.2
[12:06:15] [Main Thread/DEBUG] [tML]: Hook IL.Terraria.WorldGen::KillTile_PlaySounds(int, int, bool, Tile) modified by OreExcavator
[12:06:15] [Main Thread/DEBUG] [tML]: Hook IL.Terraria.WorldGen::KillWall_PlaySounds(int, int, Tile) modified by OreExcavator
[12:06:15] [Main Thread/INFO] [tML]: Initializing: PrimeTheme v2.0.1
[12:06:15] [Main Thread/INFO] [tML]: Initializing: RecipeBrowser v0.9.0.5
[12:06:15] [Main Thread/DEBUG] [tML]: Hook On.Terraria.Player::AdjTiles() added by RecipeBrowser
[12:06:15] [Main Thread/INFO] [tML]: Initializing: StarsAbove v0.4
[12:06:15] [Main Thread/INFO] [StarsAbove]: StarsAbove Stars Above log
[12:06:15] [Main Thread/INFO] [tML]: Initializing: VitalityMod v1.1.1.5
[12:06:15] [Main Thread/INFO] [tML]: Initializing: WhipArmor v0.2
[12:06:15] [Main Thread/INFO] [tML]: Setting up...
[12:06:15] [Main Thread/INFO] [tML]: Loading: ModLoader v0.12
[12:06:15] [Main Thread/INFO] [tML]: Loading: AlchemistNPCLite v1.8.7
[12:06:15] [Main Thread/INFO] [tML]: Loading: AmuletOfManyMinions v0.14.0
[12:06:16] [Main Thread/INFO] [tML]: Loading: ArmorReforge v1.3
[12:06:16] [Main Thread/INFO] [tML]: Loading: BetterAutosave v1.2
[12:06:16] [Main Thread/INFO] [tML]: Loading: BetterBeds v1.3.3
[12:06:16] [Main Thread/INFO] [tML]: Loading: BetterBossBar v0.2
[12:06:16] [Main Thread/INFO] [tML]: Loading: BetterMultiplayer v1.5
[12:06:16] [Main Thread/INFO] [tML]: Loading: BossChecklist v1.2.1
[12:06:16] [Main Thread/INFO] [tML]: Loading: CheatSheet v0.7.0.7
[12:06:16] [Main Thread/INFO] [tML]: Loading: ClickerClass v1.3.0
[12:06:16] [Main Thread/INFO] [tML]: Loading: CultistTheme v2.0.2
[12:06:16] [Main Thread/INFO] [tML]: Loading: Fargowiltas v2.6.4
[12:06:16] [Main Thread/INFO] [tML]: Loading: imkReborn v0.2
[12:06:16] [Main Thread/INFO] [tML]: Loading: Lights v0.31
[12:06:16] [Main Thread/INFO] [tML]: Loading: MagicStorage v0.5.3.3
[12:06:16] [Main Thread/INFO] [tML]: Loading: MaskShop v0.7.1
[12:06:16] [Main Thread/INFO] [tML]: Loading: MaxStackExtra v1.4.0.2
[12:06:16] [Main Thread/INFO] [tML]: Loading: NPCNameDisplay v1.4.2
[12:06:16] [Main Thread/INFO] [tML]: Loading: OneStopNPCShop v1.1.0.2
[12:06:16] [Main Thread/INFO] [tML]: Loading: OreExcavator v0.6.2
[12:06:16] [Main Thread/DEBUG] [OreExcavator]: Looking for modded ores and gems to whitelist...
[12:06:16] [Main Thread/DEBUG] [OreExcavator]: Found vein TileID.Arctic'ORE', but was already whitelisted as VitalityMod.VitalityMod:ArcticOre
[12:06:16] [Main Thread/DEBUG] [OreExcavator]: Found vein TileID.Geranium'ORE', but was already whitelisted as VitalityMod.VitalityMod:GeraniumOre
[12:06:16] [Main Thread/DEBUG] [OreExcavator]: Saving config 'OreExcavatorConfig_Client' changes...
[12:06:16] [Main Thread/DEBUG] [OreExcavator]: Config 'OreExcavatorConfig_Client' saved, and updated!
[12:06:16] [Main Thread/DEBUG] [OreExcavator]: Done whitelisting modded content.
[12:06:17] [Main Thread/INFO] [tML]: Loading: PrimeTheme v2.0.1
[12:06:17] [Main Thread/INFO] [tML]: Loading: RecipeBrowser v0.9.0.5
[12:06:17] [Main Thread/INFO] [tML]: Loading: StarsAbove v0.4
[12:06:17] [Main Thread/INFO] [tML]: Loading: VitalityMod v1.1.1.5
[12:06:17] [Main Thread/INFO] [tML]: Loading: WhipArmor v0.2
[12:06:17] [Main Thread/INFO] [tML]: RAM usage: 422.5 MB
[12:06:18] [Main Thread/INFO] [tML]: Adding Recipes...
[12:06:20] [Main Thread/WARN] [tML]: Silently Caught Exception:
System.InvalidOperationException: No Graphics Device Service
at Microsoft.Xna.Framework.Game.get_GraphicsDevice() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 62
at Lights.Lights.Main_LoadWorlds(orig_LoadWorlds orig) in Lights.cs:line 71
at Terraria.Main.DedServ_PostModLoad(Boolean& reloadMods) in tModLoader\Terraria\Main.cs:line 4125
at Terraria.Main.DedServ() in tModLoader\Terraria\Main.cs:line 4114
at Terraria.Program.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 210
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs) in tModLoader\Terraria\Program.cs:line 174
at MonoLaunch.<>c__DisplayClass2_0.<Main>b__0() in tModLoader\Terraria\MonoLaunch.cs:line 60
at System.Threading.Thread.StartCallback()

[12:06:20] [Main Thread/FATAL] [Terraria]: Main engine crash
System.InvalidOperationException: No Graphics Device Service
at Microsoft.Xna.Framework.Game.get_GraphicsDevice() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 62
at Lights.Lights.Main_LoadWorlds(orig_LoadWorlds orig) in Lights.cs:line 71
at Terraria.Main.DedServ_PostModLoad(Boolean& reloadMods) in tModLoader\Terraria\Main.cs:line 4125
at Terraria.Main.DedServ() in tModLoader\Terraria\Main.cs:line 4114
at Terraria.Program.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 210
[12:06:20] [Main Thread/DEBUG] [tML]: Native Resolve: FNA, Version=22.1.0.0, Culture=neutral, PublicKeyToken=null -> SDL2
[12:06:20] [Main Thread/DEBUG] [tML]: attempting load C:\Program Files (x86)\Steam\steamapps\common\tModLoader\Libraries\Native\Windows\SDL2.dll
[12:06:20] [Main Thread/DEBUG] [tML]: success

I can play without the mod but, it would be nice to have it with my friends. If removing it is the only option here then so be it. If there are any solution then please do tell, Thanks! :happy:
 

Attachments

  • lfYnKi.png
    lfYnKi.png
    186 KB · Views: 25

Michaelsoftman

Terrarian
Are your friends able to use it successfully? Looking up the error, it's either an error with the mod code itself setting a graphics device, or your PC is configured differently in some way and the mod cannot recognize your graphics device.
 

Doppleboop

Terrarian
Oh, I haven't made them try hosting yet but I actually tried it on two different computers and the same error came up... after digging through discord and finding someone having the exact same problem, I found out that its most likely something that the mod author needs to fix himself :c
 
Last edited:
Top Bottom