MNAI-U: unofficial build & bugfixes

Asserts are always shown with a popup.

The external code is in the .exe file. The XML processing code is always a nightmare to work with, because half of it is not accessible. From my experience, your error message could indeed be related to any problem with opening either the XML file, or even the associated Schema.

If you're motivated to do some more testing, here's some questions/suggestions:
  • Just to be sure: have you double-checked that the mod was installed correctly? Not sure what if the installer works with wine, but the archive should
  • What exactly happens when starting the game? You get the two error messages, then the program crashes?
  • Can you upload the contents of your log folder? ("<home>/Documents/My Games/Beyond the Sword/Logs/" for me)
  • Could you try deleting the file More Naval AI/Assets/XML/GameInfo/CIV4GameInfoSchema.xml? This will cause a bunch more errors that will probably crash the game again; but, we'll see if the game is now able to at least load the two files from your error messages.
  • You could also try deleting GameInfo/CIV4PlayerOptionInfos.xml. I doubt this file is the problem, since the other file (GraphicOptionInfos) isn't changed in either vanilla FfH or MNAI, and still shows an error.
  • If all this doesn't help, please try an older version of MNAI (https://forums.civfanatics.com/resources/more-naval-ai-ffh-mod.14499/history). If they work, the problem could be with my compilation process.
Hi, I made an account here just to inquire about the problem with Linux Xirema was discussing. If there's anyway I could help you let me know, I have recently gotten into FFH2 and wanted to try all the modmods. I've heard nothing but positives about your mod. I am not very tech literate but I am willing to be a guinea pig.
 
Hi, I made an account here just to inquire about the problem with Linux Xirema was discussing. If there's anyway I could help you let me know, I have recently gotten into FFH2 and wanted to try all the modmods. I've heard nothing but positives about your mod. I am not very tech literate but I am willing to be a guinea pig.
Probably one thing that would be useful is if you have a different Linux Distro than me (I'm using Linux Mint 22.x) you could try all the same steps I followed, and see which versions successfully load and which don't.

That could be a hint towards what's going wrong, if you get different results than me.
 
Probably one thing that would be useful is if you have a different Linux Distro than me (I'm using Linux Mint 22.x) you could try all the same steps I followed, and see which versions successfully load and which don't.

That could be a hint towards what's going wrong, if you get different results than me.
Hey! Look at that! I have the same exact distro as you! What great taste you have!

All the XML errors you received in the original post are the exact same to boot. I really don't know what else I could do, already tried a few smoothbrain workarounds. Only other solution I can come up with is to figure out how to use a virtual machine just to play the blasted thing. Even then, seems like a lot of work.
 
Hey! Look at that! I have the same exact distro as you! What great taste you have!

All the XML errors you received in the original post are the exact same to boot. I really don't know what else I could do, already tried a few smoothbrain workarounds. Only other solution I can come up with is to figure out how to use a virtual machine just to play the blasted thing. Even then, seems like a lot of work.
Womp womp. So much for A/B testing. 🙃

So the thing I need to figure out is if it's possible to attach a debugger to the process on Linux. Could maybe inspect what's going on when it goes to load the XML file.

The other thing I want to try is building the DLL myself, and trying a few different compile options to see what happens differently.
 
Womp womp. So much for A/B testing. 🙃

So the thing I need to figure out is if it's possible to attach a debugger to the process on Linux. Could maybe inspect what's going on when it goes to load the XML file.

The other thing I want to try is building the DLL myself, and trying a few different compile options to see what happens differently.
Sounds a few orders of magnitude above my pay grade. Good luck, hopefully we can get something to work. I'll tinker in the mean time while I play the working official mod.
 
I think I figured it out, try the attached file (replace the one in Mods/More Naval AI/Assets/XML/Gameinfo/). I tried it with a GOG installation on wine.

I only removed two <description> tags. These are only for documentation of the schema (and both had errors anyway). My best guess is that wine uses a replacement for Microsoft's old XML library, and perhaps doesn't implement this tag properly.

EDIT, I first attached the wrong file, should be correct now
 

Attachments

I think I figured it out, try the attached file (replace the one in Mods/More Naval AI/Assets/XML/Gameinfo/). I tried it with a GOG installation on wine.

I only removed two <description> tags. These are only for documentation of the schema (and both had errors anyway). My best guess is that wine uses a replacement for Microsoft's old XML library, and perhaps doesn't implement this tag properly.

EDIT, I first attached the wrong file, should be correct now
Thank you for this. It seems to have fixed the issue on my end. Is there a way to get this working for your EMM continued? That modmod also has similar issues. I tried using this file out of curiosity, but it unfortunately did not load.
 
I think I figured it out, try the attached file (replace the one in Mods/More Naval AI/Assets/XML/Gameinfo/). I tried it with a GOG installation on wine.

I only removed two <description> tags. These are only for documentation of the schema (and both had errors anyway). My best guess is that wine uses a replacement for Microsoft's old XML library, and perhaps doesn't implement this tag properly.

EDIT, I first attached the wrong file, should be correct now
Worked wonderfully for an entire campaign. The only thing I noted that was off, was that I couldn't 'liberate' cities for my vassal that I directly recaptured from the Barbs. It was just labeled as give city. But capturing cities on the same continent triggered the 'liberate' option despite not being actually part of my vassal's empire originally. Still thank you so much for this, it has made the game much better for me.
 
Back
Top Bottom