Ethics-and-Civics-Classic / Ethics_and_Civics_Classic

2 stars 1 forks source link

Linux support - 2 parts of 00 bulding file cause game to crash at launch #1

Open EuroBlue opened 3 months ago

EuroBlue commented 3 months ago

in the file common/buildings/ethic_00_capital_buildings.txt there a two sections that cause the game to crash independently of each other.

Habitat Central Complex

Imperial Capital

These two sections are the only problem. Removing these allows the game to run with no issues. But butchering is not rly a good fix. I'm very good with Linux but i'm not a pdx mod developer. I would hate to butcher these sections line by line to see what exactly causes the issue. If you know some files that could be the possible trouble maker pls let me know i take a look.

Ashykia commented 2 months ago

I've managed to get it working by on Linux by copying the Imperial Capital section from common/buildings/ethic_00_capital_buildings.txt into its own file. Don't know why it functions, but it lets me play the mod. I doubt something like that would break Windows. I tried pulling the habitat stuff out without pulling the Imperial Capital out, but it didn't work. There must be some weird conflict between the Imperial Capital and the normal capital buildings.

EuroBlue commented 2 months ago

I downloaded and tested it. It did not work for me. I use Arch Linux with hyprland (Wayland) HTR:

  1. Open Stellaris (Native)
  2. Start the game only with the fixed version of the mod downloaded from your repo
  3. Crashes at 100% of menu launch

exception.txt:

Caught signal 11 (SIGSEGV)

Original Stack Trace:
  /usr/lib/libc.so.6(+0x1750f2) [0x7f65b1f840f2]
  ./stellaris(_ZN17CPostInitModifier15ProcessModifierEv+0x32) [0x15252b2]
  ./stellaris(_ZN25CPostInitModifierDatabase16ProcessModifiersEv+0x29) [0x1525529]
  ./stellaris(_ZN16CGameApplication8InitGameEv+0x4792) [0x12ad092]
  ./stellaris(_ZN16CGameApplication4InitEv+0x368) [0x12a75b8]
  ./stellaris(_Z7RunGameiPPc+0x21de) [0x123d26e]
  ./stellaris(main+0x3c) [0x12370ec]
  /usr/lib/libc.so.6(+0x25e08) [0x7f65b1e34e08]
  /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7f65b1e34ecc]
  ./stellaris(_start+0x2e) [0x1236fee]

Demangled Stack Trace:
  /usr/lib/libc.so.6             (                                           + 0x1750f2)  [0x7f65b1f840f2]
  ./stellaris                    ( CPostInitModifier::ProcessModifier()      + 0x32  )  [0x15252b2]
  ./stellaris                    ( CPostInitModifierDatabase::ProcessModifiers()  + 0x29  )  [0x1525529]
  ./stellaris                    ( CGameApplication::InitGame()              + 0x4792)  [0x12ad092]
  ./stellaris                    ( CGameApplication::Init()                  + 0x368 )  [0x12a75b8]
  ./stellaris                    ( RunGame(int, char**)                      + 0x21de)  [0x123d26e]
  ./stellaris                    ( main                                      + 0x3c  )  [0x12370ec]
  /usr/lib/libc.so.6             (                                           + 0x25e08)  [0x7f65b1e34e08]
  /usr/lib/libc.so.6             ( __libc_start_main                         + 0x8c  )  [0x7f65b1e34ecc]
  ./stellaris                    ( _start                                    + 0x2e  )  [0x1236fee]
Ashykia commented 1 month ago

I haven't been able to replicate this issue, I've been using the patched version without issues for a while. I use EndeavourOS, which is Arch based, using KDE Plasma for Wayland, so there could be something here to do with Hyprland's renderer or something, but I have no idea why that would cause this crash when I've also had this work fine on X11. Can you verify that you extracted the mod into the actual mods folder in ~/.local/share/Paradox Interactive/ and chose the mod entry that has no picture?