Master of Orion

Master of Orion

5X - The Ultimate Balance Mod
proto69 2017 年 8 月 31 日 上午 7:07
Bug with ANTARENSETTINGS.YAML
When executing "Antaren Force Turn" the game was stuck, the turn processing endlessly. Not wanting to abandon the game, I tried several things. When creating an own mini-mod just containing the original ANTARENSETTINGS.YAML, the turn processed.

Next, I tried to check the file from the mod, but could not locate it on my disk. Where is it, only in the Steam cloud? I finally downloaded the mod from Nexusmods, and copied the "61 ANTARENSETTINGS.YAML" into my mini-mod, renaming it into antarensettings.yaml. I hoped to find the bug by changinng line by line back to the original file, and stop at the point when the game processed normally.

But even without any changes, the renamed file from nexusmods worked!. Is there a difference to the Steam file, the Steam file corrupted, or what could be the problem?
< >
正在显示第 1 - 9 条,共 9 条留言
Spud Dastardly  [开发者] 2017 年 8 月 31 日 上午 8:43 
There's no difference from the Steam file. You can find the file by going to the Steam install directory, then Steam\SteamApps\workshop\content\298050. The mod is in one of the folders there, and you can verify by the date on the file that it's the same as the nexus version.

All the number 61 does is make it load the yamls in the same order as the game's code loads the original yamls as opposed to loading the modded ones alphabetically (otherwise there's some tooltip issues). If it worked with the one from Nexus, there's no reason it shouldn't work with the Steam one. Aside from changing the load order, the name of the yaml file doesn't make any difference.

Did you try processing the turn with the Steam mod more than once? If not, it may have been a one time occurrence. If you are getting it to happen consistently, you might check the output log in the MasterOfOrion_Data folder to see if there are any errors that pop up while it's processing endlessly.

It could also be a conflict with some other mod if you have some other mod that modifies that file. If you for example have some other mod that's loaded after 5X that mods antarans, and then you add your custom 5X antaransettings.yaml as a third mod at the bottom of the list, that would fix any issue because it's undoing whatever the mod after 5X is messing up.
proto69 2017 年 9 月 1 日 上午 1:18 
I did try again to process the turn with the original steam-mod only after it successfully processed with the yaml file from nexusmod. Same thing, turn stuck. I have no other mods running.

Thanks to your help, I have found the 61 antarensettings.yaml from your mod. No difference to the one I got from nexusmods, so everything fine here. Strange. So there must be a problem in a file loaded after 61 antarensettings.yaml? Only thing after that file where antarens are referenced that I could find were 64 LeaderTypes TEMPCORRECTION and 65 LeaderBonuses TEMPCORRECTION - are these tempcorrection files correct or should they have been replaced, am I missing an update? 65 is from 06/06/2017, most other files are newer.

I do not have the save from this turn any more (too stupid, deleted it accidently), so I cannot reproduce it now or check the output file. Will do it if it occurs another time. Currently, only error line that I see is:
The referenced script on this Behaviour is missing!
(Filename: Line: 1496)
several times. Is there a problem or is it normal?

Thank you for your help !
proto69 2017 年 9 月 15 日 下午 1:27 
The bug has hit again. New game, early turn (176). I checked the output log, last lines were as follows when the turn was still processing:

-----
(Filename: Z:/Work/nobackup/unity/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Server Thread Exception: Argument cannot be null.

Parameter name: key
at System.Collections.Generic.Dictionary`2[Backend.Fleets.ShipBlueprint,System.Int32].Add (Backend.Fleets.ShipBlueprint key, Int32 value) [0x00000] in <filename unknown>:0

at AI.AIAntaran.ComputeAttackFleet (Backend.Civilizations.Civilization targetCivilization, Backend.Settlements.Colony targetColony, Int32 turnsToAttack) [0x00000] in <filename unknown>:0

at AI.AIAntaran.CreateAttackColonyEvent () [0x00000] in <filename unknown>:0

at AI.AIAntaran.FSM () [0x00000] in <filename unknown>:0

at AI.AIAntaran.Play () [0x00000] in <filename unknown>:0

at Backend.Core.Universe.RunAI () [0x00000] in <filename unknown>:0

at Backend.Core.Server.Tick () [0x00000] in <filename unknown>:0

at Backend.Core.Server.Update () [0x00000] in <filename unknown>:0

at ServerThread.ServerLoop () [0x00000] in <filename unknown>:0
Backend.Core.Client:LogError(String)
ServerThread:ServerLoop()


(Filename: Z:/Work/nobackup/unity/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Calling GetChancesAgainst without any attacker ships.
Backend.Core.Client:LogError(String)
-----

Then I did end the game with Alt+F4 and the following lines were added:
-----
Server thread ended ---
Backend.Core.Client:Log(String)
ServerThread:ServerLoop()


(Filename: Z:/Work/nobackup/unity/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
-----

Any ideas what happend or how to fix it?
proto69 2017 年 9 月 16 日 上午 7:06 
Any help or ideas what happend?
Spud Dastardly  [开发者] 2017 年 9 月 17 日 上午 8:09 
Those output log errors seem to suggest a code bug, not a yaml problem. Are you using Sol's UCP? His patch modifies some of those functions being called. It might be helpful if you could provide a save file.
最后由 Spud Dastardly 编辑于; 2017 年 9 月 17 日 上午 8:11
proto69 2017 年 9 月 17 日 下午 1:23 
I will try it with Sol's mod tomorrow. You can be right that it is not a yaml problem, because I tried installing a mod with several original antaran-related yaml files, replacing yours, I got the same error.

I will inform you how it worked with Sol's mod. I can also provide a save file, how can I get it to you?
Spud Dastardly  [开发者] 2017 年 9 月 17 日 下午 5:39 
You can post a link here using dropbox or google drive.
proto69 2017 年 9 月 18 日 上午 12:35 
Unfortunately, after installing Sol's Code Patch the bugged savegame refuses to load: "The file appears to be from a different version of the game." Can I force the game to load the file anyway?

I have put the files in my dropbox, if you have time please check them, maybe you can find something:
https://www.dropbox.com/s/6ibve9z7m4ly8xk/Mrrshan-20170915-176bug.data?dl=0
https://www.dropbox.com/s/165fupukjlhs18v/Mrrshan-20170915-176bug.save?dl=0
Spud Dastardly  [开发者] 2017 年 9 月 19 日 下午 8:44 
Sorry for my delayed responses. I keep missing the notifications from this thread for some reason. You have to start a new game if you want to use Sol's patch. I haven't had a chance to look at your save yet. I'll let you know if I find anything.
最后由 Spud Dastardly 编辑于; 2017 年 9 月 19 日 下午 8:46
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50