DrSmugleaf Posted April 10, 2016 Share Posted April 10, 2016 (edited) The source code for the mod is here: https://github.com/DrSmugleaf/Mod-Character-Rebalancing-2/tree/development If the mod is enabled, the graphics and hud and everything go insane: http://imgur.com/a/aQxBY Game settings: Spoiler Nvidia control panel 3d settings which are in spanish so good luck: Spoiler From top to bottom: Deactivated, performance mode for multiple screens, controlled by application, deactivated, controlled by application, activated, deactivated, all, activated, off, controlled by application, quality, allow, deactivated, activated, 1, adaptable, use configuration of 3d application, deactivated, automatic, use configuration of 3d application, deactivated, deactivated. When hosting my own non dedicated server or when the mod is off, it doesn't happen: Spoiler This only happens on a dedicated server or when joining a hosted server that isn't your own. Happens only when the mod is on, without netbook mode and small textures, with and without anisotropic filtering, it being controlled by the application or not, even after resetting 3d configuration on the nvidia control panel, without any client mods, with only my mod + 4 character mods "Saber, Abigail, Luffy and Tamamo", the gpu isn't overheating when it happens, and when you click or try to move or at random or sometimes when taking a screenshot it will change all the weird colours or the screen will flash black for a very short time. Using an old version of Kzisor's (Ysovuka) keyhandler and env.lua because I'm too lazy to update it yet. (And want to do it at the same time I get the description for the mod and credits done) This also happened sometimes with Mod Character Rebalancing 1, but not as often (I think). And it was often fixed by reconnecting. And also when joining a server that is dedicated or not your own, you can't move, only walk in place, but that's probably a story for another day that the graphics don't go insane. Bonus points if you get that solved too at the same time. When joining another friend's hosted non-dedicated server none of this happens to him, not even them not being able to move. Haven't tested them joining their own dedicated server. Using this guide for dedicated servers: Using this tool to get the mods from a collection to put the lines in F:\SteamCMD\steamapps\common\Don't Starve Together Dedicated Server\mods\dedicated_servers_mods_setup.lua: http://dstct.tdlive.me/# Enabling them through 2 identical modoverrides.lua at C:\Users\Javier\Documents\Klei\DoNotStarveTogether\DedicatedServer\Master and C:\Users\Javier\Documents\Klei\DoNotStarveTogether\DedicatedServer\Caves, as the dedicated_server_mods_setup.lua and modsettings.lua both seem to empty as soon as the server startsup, so that's useful. Spoiler System specs and temps while writing this: Spoiler Operating System Windows 10 Pro 64-bit CPU Intel Core i7 4790K @ 4.00GHz 44 °C Haswell 22nm Technology RAM 16,0GB Dual-Channel DDR3 @ 666MHz (9-9-9-24) Motherboard Gigabyte Technology Co., Ltd. Z97P-D3 (SOCKET 0) 30 °C Graphics Philips 231T (1920x1080@60Hz) 22_LCD_TV (1768x992@30Hz) Intel HD Graphics 4600 (Gigabyte) NVIDIA GeForce GTX 970 (Gigabyte) 32 °C Storage 111GB Samsung SSD 850 EVO 120GB (SSD) 30 °C 465GB SAMSUNG HD502HJ (SATA) 28 °C Optical Drives Optiarc DVD RW AD-5260S Audio NVIDIA Virtual Audio Device (Wave Extensible) (WDM) Its partly cloudy, 17ºC, a precipitation of 100%, humidity of 55% and wind speed of 27 km/h where I live, I haven't yet eaten lunch at 5PM, and this is beyond my or 4 other people's understanding. Cue the answer that highlights the single line I missed somewhere or the solution Jjmarco/Kzisor(Ysovuka) already gave me for MCR1 and I forgot Edited April 10, 2016 by DrSmugleaf Link to comment https://forums.kleientertainment.com/forums/topic/66234-mod-making-the-games-graphics-go-insane/ Share on other sites More sharing options...
Aquaterion Posted April 10, 2016 Share Posted April 10, 2016 While I don't have a solution, I've seen this happen with other people, when their sanity stat was an invalid number(like dividing by 0 and such), and as you can see in one of the images, your sanity number is broken(-1#.IND), and since the game's colors change according to sanity, I think having invalid sanity makes your colors go crazy. Link to comment https://forums.kleientertainment.com/forums/topic/66234-mod-making-the-games-graphics-go-insane/#findComment-748015 Share on other sites More sharing options...
DrSmugleaf Posted April 10, 2016 Author Share Posted April 10, 2016 (edited) 16 minutes ago, Aquaterion said: While I don't have a solution, I've seen this happen with other people, when their sanity stat was an invalid number(like dividing by 0 and such), and as you can see in one of the images, your sanity number is broken(-1#.IND), and since the game's colors change according to sanity, I think having invalid sanity makes your colors go crazy. On that note, after setting data/scripts/modifycharacter to always set sanity to 100 instead of dynamically, it's still bugged to death. Doing a remote print(ThePlayer.components.sanity.current) prints 100 to the server log, but the sanity meter still shows -1.#IND. ReceiveRemoteExecute(print(ThePlayer.components.sanity.current)) @(183.75, -241.28) [00:03:32]: 100 Spoiler Edit: Same with print(AllPlayers[1].components.sanity.current), except it lowered from it being night (c_godmode() is on) DrSmugleaf] ReceiveRemoteExecute(print(AllPlayers[1].components.sanity.current)) @(184.54, -244.90) [00:08:08]: 89.739999464883 Edited April 10, 2016 by DrSmugleaf Link to comment https://forums.kleientertainment.com/forums/topic/66234-mod-making-the-games-graphics-go-insane/#findComment-748019 Share on other sites More sharing options...
Aquaterion Posted April 10, 2016 Share Posted April 10, 2016 Just now, DrSmugleaf said: On that note, after setting data/scripts/modifycharacter to always set sanity to 100 instead of dynamically, it's still bugged to death. Doing a remote print(ThePlayer.components.sanity.current) prints 100 to the server log, but the sanity meter still shows -1.#IND. ReceiveRemoteExecute(print(ThePlayer.components.sanity.current)) @(183.75, -241.28) [00:03:32]: 100 Reveal hidden contents probably a server to client issue Link to comment https://forums.kleientertainment.com/forums/topic/66234-mod-making-the-games-graphics-go-insane/#findComment-748020 Share on other sites More sharing options...
Muche Posted April 10, 2016 Share Posted April 10, 2016 Such symptoms usually appear when there is a network synchronization issue, in particular, when there is an extra network variable on either the server side or client side. Your mod is marked all_clients_require_mod=true, so it shouldn't be enabled when you join others' server. Are you force-enabling it? Anyways, your version of keyhandler does not add a ignore_event variable (a net_event), which other mods' version does. Try updating the keyhandler module. Link to comment https://forums.kleientertainment.com/forums/topic/66234-mod-making-the-games-graphics-go-insane/#findComment-748261 Share on other sites More sharing options...
DrSmugleaf Posted April 11, 2016 Author Share Posted April 11, 2016 (edited) 11 hours ago, Muche said: Such symptoms usually appear when there is a network synchronization issue, in particular, when there is an extra network variable on either the server side or client side. Your mod is marked all_clients_require_mod=true, so it shouldn't be enabled when you join others' server. Are you force-enabling it? Anyways, your version of keyhandler does not add a ignore_event variable (a net_event), which other mods' version does. Try updating the keyhandler module. It was enabled because my friend was enabling it along with the 4 other characters. For my server, I'm enabling them through 2 identical modoverrides.lua at C:\Users\Javier\Documents\Klei\DoNotStarveTogether\DedicatedServer\Master and C:\Users\Javier\Documents\Klei\DoNotStarveTogether\DedicatedServer\Caves, as the dedicated_server_mods_setup.lua and modsettings.lua both seem to empty as soon as the server startsup, so that's useful: Spoiler Updated the keyhandler and such, and it's still screwed: Spoiler The changes are on GitHub. Edited April 11, 2016 by DrSmugleaf Link to comment https://forums.kleientertainment.com/forums/topic/66234-mod-making-the-games-graphics-go-insane/#findComment-748501 Share on other sites More sharing options...
Muche Posted April 11, 2016 Share Posted April 11, 2016 Have you tried enabling various combinations of mods, which of them causes it? In particular, enabling Balancer+Abigail+Tamamo (and disabling Luffy+Saber)? I have a hunch it would look ok. Anyways, in luffy and saber, you are adding recipes (luffyhat and kendostick) only on the server (it's after TheWorld.ismastersim check). The client does not have these recipes. Later, when a player is spawned, a player_classified prefab is created for them, it goes through all recipes and adds net_bools. Server adds extra net_vars, that are not added on the client. All the subsequent net_var are thus paired incorrectly, including whether you got a gift, are a ghost and speed. IIRC, changing recipes for abigail only on server means that client has wrong recipe ingredients, making them think they can craft the item, but server might refuse. Link to comment https://forums.kleientertainment.com/forums/topic/66234-mod-making-the-games-graphics-go-insane/#findComment-748516 Share on other sites More sharing options...
DrSmugleaf Posted April 11, 2016 Author Share Posted April 11, 2016 (edited) 27 minutes ago, Muche said: Have you tried enabling various combinations of mods, which of them causes it? In particular, enabling Balancer+Abigail+Tamamo (and disabling Luffy+Saber)? I have a hunch it would look ok. Anyways, in luffy and saber, you are adding recipes (luffyhat and kendostick) only on the server (it's after TheWorld.ismastersim check). The client does not have these recipes. Later, when a player is spawned, a player_classified prefab is created for them, it goes through all recipes and adds net_bools. Server adds extra net_vars, that are not added on the client. All the subsequent net_var are thus paired incorrectly, including whether you got a gift, are a ghost and speed. IIRC, changing recipes for abigail only on server means that client has wrong recipe ingredients, making them think they can craft the item, but server might refuse. Disabled Luffy and Saber and it got fixed: Spoiler As a side note, been noticing my mod really likes to spam the log. It's set to print to log once depending on if its balancing a character or ignoring it, but it does it...a lot: Spoiler [00:00:19]: Mod: Mod-Character-Rebalancing-2 (Mod Character Rebalancing 2) Loading modworldgenmain.lua [00:00:19]: Mod: Mod-Character-Rebalancing-2 (Mod Character Rebalancing 2) Mod had no modworldgenmain.lua. Skipping. [00:00:19]: Mod: Mod-Character-Rebalancing-2 (Mod Character Rebalancing 2) Loading modmain.lua [00:00:19]: modimport: ../mods/Mod-Character-Rebalancing-2/engine.lua [00:00:19]: [Mod Character Rebalancing 2] [INFO] Running Mod Character Rebalancing 2 Version: 1.0.0 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Running Mod Character Rebalancing 2 Version: 1.0.0 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Running Mod Character Rebalancing 2 Version: 1.0.0 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Running Mod Character Rebalancing 2 Version: 1.0.0 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Balancing Abigail(Stardew) by Silhh and Arcade Version: 1.2.1 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Balancing Abigail(Stardew) by Silhh and Arcade Version: 1.2.1 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Balancing Tamamo(OS 4.0) by Silhh and Arcade Version: 1.3.5 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Balancing Tamamo(OS 4.0) by Silhh and Arcade Version: 1.3.5 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Balancing Abigail(Stardew) by Silhh and Arcade Version: 1.2.1 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Balancing Abigail(Stardew) by Silhh and Arcade Version: 1.2.1 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Balancing Tamamo(OS 4.0) by Silhh and Arcade Version: 1.3.5 [00:00:19]: [Mod Character Rebalancing 2] [INFO] Balancing Tamamo(OS 4.0) by Silhh and Arcade Version: 1.3.5 [00:00:19]: LOADING LUA SUCCESS But yes, the weird everything is gone and the character can move again, thank you so much Muche. Going to try doing what you suggested and having the recipes on the client too and see if that fixes it, and later going to look into my mod not crapping all over the log. Edit: It's fixed with luffy and saber enabled: Spoiler Recipes work just fine now too: Spoiler Edited April 11, 2016 by DrSmugleaf Link to comment https://forums.kleientertainment.com/forums/topic/66234-mod-making-the-games-graphics-go-insane/#findComment-748526 Share on other sites More sharing options...
Neu7ral Posted April 11, 2016 Share Posted April 11, 2016 seems familiar @DextersComicLaboratory Link to comment https://forums.kleientertainment.com/forums/topic/66234-mod-making-the-games-graphics-go-insane/#findComment-748703 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now