tModLoader

tModLoader

Ravin72 Jan 12, 2021 @ 3:47am
Blue Screen of Death when running tModLoader
During the last couple days I've been experiencing frequent computer crashes whenever I run tModLoader.

At first, I though it could either be my hardware, judging by the WHEA_UNCORRECTABLE_ERROR I kept getting, or one of the mods.

However, after having it crash on the main menu and stress testing with 3DMark and a Minecraft Mod Pack with +200 Mods, I don't know what to do anymore. The hardware seems fine to me.

Anyone know what could be causing this?

Current Mods im using are:
Calamity
Fargos souls mod
Fargos mutant mod
AlchemistNPC
9999+ stack modifier (will check actual name later)
Mod Helpers
Magic Storage
Last edited by Ravin72; Jan 12, 2021 @ 3:55am
< >
Showing 1-1 of 1 comments
1) Go to C:\Users\User\OneDrive\Documents\My Games\Terraria\tModLoader and delete config.json

2) Open the tmodloader, if it run, problem is in fullscreen mode (dont change settings)

3) Download AutoHotkey v2.0 and 1.1

4) Open AutoHotkey Dash and click New script

5) Next name your script and create

6) After you need edit this file with notepad or something else and add this script:



#SingleInstance force

;;; Known issues:
;;;
;;; - Weird results for windows with custom decorations such as
;;; Chrome, or programs with a Ribbon interface.
;;; - Emacs will be maximized behind instead of in front of
;;; the taskbar. Workaround: WinHide ahk_class Shell_TrayWnd
ToggleFakeFullscreen()
{
CoordMode Screen, Window
static WINDOW_STYLE_UNDECORATED := -0xC40000
static savedInfo := Object() ;; Associative array!
WinGet, id, ID, A
if (savedInfo[id])
{
inf := savedInfo[id]
WinSet, Style, % inf["style"], ahk_id %id%
WinMove, ahk_id %id%,, % inf["x"], % inf["y"], % inf["width"], % inf["height"]
savedInfo[id] := ""
}
else
{
savedInfo[id] := inf := Object()
WinGet, ltmp, Style, A
inf["style"] := ltmp
WinGetPos, ltmpX, ltmpY, ltmpWidth, ltmpHeight, ahk_id %id%
inf["x"] := ltmpX
inf["y"] := ltmpY
inf["width"] := ltmpWidth
inf["height"] := ltmpHeight
WinSet, Style, %WINDOW_STYLE_UNDECORATED%, ahk_id %id%
mon := GetMonitorActiveWindow()
SysGet, mon, Monitor, %mon%
WinMove, A,, %monLeft%, %monTop%, % monRight-monLeft, % monBottom-monTop
}
}

GetMonitorAtPos(x,y)
{
;; Monitor number at position x,y or -1 if x,y outside monitors.
SysGet monitorCount, MonitorCount
i := 0
while(i < monitorCount)
{
SysGet area, Monitor, %i%
if ( areaLeft <= x && x <= areaRight && areaTop <= y && y <= areaBottom )
{
return i
}
i := i+1
}
return -1
}

GetMonitorActiveWindow(){
;; Get Monitor number at the center position of the Active window.
WinGetPos x,y,width,height, A
return GetMonitorAtPos(x+width/2, y+height/2)
}

F12::ToggleFakeFullscreen()



7) After that run that script (double click on file) and run the tmodloader

8) In game push F12 to toggle fake fullscreen

Every time you want to log into the game, you will need to activate the script file and activate it using the F12 key, when you quit game you also need to press F12 to toggle windowed mode (If you forgot do this, just press F12 many times when tmodloader opens. or game just crushes)

P.S: Sorry for my English, if you have questions text me
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Jan 12, 2021 @ 3:47am
Posts: 1