[X3LU] Mayhem 3.21b

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
User avatar
Hairless-Ape
Posts: 316
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [X3LU] Mayhem 3.14d

Post by Hairless-Ape » Sat, 6. Nov 21, 17:31

Need advice.

Upgraded my system to a Ryzen 5900 + new mobo, kept the same video card.
Now Mayhem 3 freezes HARD after roughly 1-2 minutes in a new game. I have to log or reboot to get out of it.
Albion Prelude runs fine on the same system for hours.

Tried disabling ALL sound drivers to no avail.
Have the latest nvidia video drivers for my 1070ti
Reinstalled mayhem from scratch twice now.
Tried various compatibility modes etc. Running win10-64
Reinstalled directx.

Not sure what else to try. Can't find any error logs, and no events in the event viewer.
Is there something else I can do to get to the bottom of this?
Out of my mind. Back in 5 minutes.

luke79
Posts: 16
Joined: Sun, 7. Feb 21, 22:00

Re: [X3LU] Mayhem 3.14d

Post by luke79 » Sat, 6. Nov 21, 18:49

I had similar issues and running the game in windowed mode cleared it up.

User avatar
Hairless-Ape
Posts: 316
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [X3LU] Mayhem 3.14d

Post by Hairless-Ape » Mon, 8. Nov 21, 00:11

Yea, no luck there for me.

I was hoping to maybe go back to a previous version of Mayhem 3 to have something to play or try, but for the life of me, I don't see a way to get previous revisions of Mayhem 3.
Out of my mind. Back in 5 minutes.

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [X3LU] Mayhem 3.14d

Post by alexalsp » Mon, 8. Nov 21, 09:44

Hairless-Ape wrote:
Mon, 8. Nov 21, 00:11
Yea, no luck there for me.

I was hoping to maybe go back to a previous version of Mayhem 3 to have something to play or try, but for the life of me, I don't see a way to get previous revisions of Mayhem 3.
Which ones?

User avatar
Hairless-Ape
Posts: 316
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [X3LU] Mayhem 3.14d

Post by Hairless-Ape » Mon, 15. Nov 21, 00:34

bah.. I tried 3.9 and it still locked up tight after only a few minutes. I don't think this is going to solve my problem.
What I'd really like to do is try to get to the bottom of it, but it doesn't create any logs, and I see nothing in the event viewer.
While this is vanilla I'm trying, I've done plenty of script editing in the past to tweak things, so I can understand most of what I see.
I'm thinking I need to maybe figure out how to do some script debugging, but I've not looked into how to do that. Since it locks randomly, I'm afraid there's no way to half-split the issue, but perhaps there is a methodology that works?
Any advice would be appreciated, but otherwise I think I'm screwed. too bad, because I love mayhem.
Out of my mind. Back in 5 minutes.

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [X3LU] Mayhem 3.14d

Post by alexalsp » Mon, 15. Nov 21, 14:28

you need to generate a galaxy through the generator and start the game from it.

If you did so, then the problem lies elsewhere. Try checking the game files.

User avatar
Hairless-Ape
Posts: 316
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [X3LU] Mayhem 3.14d

Post by Hairless-Ape » Mon, 15. Nov 21, 15:22

Wow, that's like saying "make sure your device is not in the "OFF" position" lol. Well, thanks anyway for trying to help :)
Yes, did all that.
Was hoping there might be some way to tell the game to generate some sort of debug diagnostics. Maybe something there but I'll have to go through 10,000 posts in the modding section of the forums to figure it out :)
Now I'm just reduced to endlessly whining a dull tune everyone has heard before, so I'm done.
Out of my mind. Back in 5 minutes.

User avatar
Hector0x
Posts: 994
Joined: Mon, 18. Nov 13, 18:03
x3tc

Re: [X3LU] Mayhem 3.14d

Post by Hector0x » Mon, 15. Nov 21, 18:42

Hairless-Ape wrote:
Mon, 15. Nov 21, 15:22
You probably reinstalled everything multiple times by now. And i know how frustrating this can be. Neither do i know your exact situation nor do i want to lecture you.

But my guess is that you have old scripts from other mods running. I mean why should your system cause a freeze that nobody else seems to have? Then you say things like you're trying outdated versions and want to get a log file, which indicates that you're no stranger to mods and your game folder could be messy from all that modding over the years.

Again, i don't know your methods, but are you 100% sure that the game files that you always start with are actually clean? It wouldn't be the first time that someone claimed that he was using a clean install and later it turned out that he did have other scripts like marine repairs or something and assumed it wouldn't cause any trouble.

Clean reinstall includes:
1) going into your file explorer and manually deleting the entire game folder after deinstalling in Steam. Wipe everything. Don't just assume that Steam finds and deletes every file.
2) use non-Steam exe. There are so many players who don't seem to do this and this only causes issues.
3) always check and disable bonus packs, best before actually redownloading the game

User avatar
Hairless-Ape
Posts: 316
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [X3LU] Mayhem 3.14d

Post by Hairless-Ape » Mon, 15. Nov 21, 19:05

I never actually completely cleared out the steam version files as you point out, when I copied it to start mayhem 3.
I also haven't checked if the bonus pack is on, as I never turned it on and assumed it would be off by default. Assumptions can be bad.. very bad.
Am using the no-steam 3.3 executable.

Overall, sounds like great advice and I thank you DEARLY for it. :) Will do as you ask and let you know.

Update: Yea, no luck. I'll keep trying some other things. Some other article mentioned how other codec's in the system can affect things so maybe I'll look into that, as I have some custom stuff installed.
Thank you so much for the great advice.
Out of my mind. Back in 5 minutes.

User avatar
Hairless-Ape
Posts: 316
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [X3LU] Mayhem 3.14d

Post by Hairless-Ape » Mon, 29. Nov 21, 19:45

Problem Solved:

With some debugging strategy advice from X2-Illuminatus and a couple hours debugging on my part, I was finally able to close in on the issue.

Basically, 'near' the beginning of the Mayhem 3 game you are offered a mission to pickup a data scanner.
Unfortunately, the code looking to find a station for the player to dock at to complete this mission was in a never-ending loop that expanded it's range to find a dockable station. (Mayhem.PlotDataScanner.Trigger.xml)
What the code didn't realize, was that I generally give myself an M7 to start the game just to make things move along quicker in the early game.
At that early point in the game, when this mission offer occurs, there are NO dockable stations for an M7 :) BINGO!

So, it was looping there indefinitely with no safety check on the loop count. I can't blame it on the code given I cheated. But then again, it certainly wasn't a problem with my installation either. It's just one of those stupid situations where the author can't account for every silly thing an end-user can do when provided with the ability to cheat. This truly is a magnificent mod and the Author has done great work. I sincerely hope he is planning on an expansion so I can both admire and admonish him some more :)

Cheers.
Out of my mind. Back in 5 minutes.

User avatar
Hector0x
Posts: 994
Joined: Mon, 18. Nov 13, 18:03
x3tc

Re: [X3LU] Mayhem 3.14d

Post by Hector0x » Tue, 30. Nov 21, 12:07

Hairless-Ape wrote:
Mon, 29. Nov 21, 19:45
Unfortunately, the code looking to find a station for the player to dock at to complete this mission was in a never-ending loop that expanded it's range to find a dockable station. (Mayhem.PlotDataScanner.Trigger.xml)
Thanks for solving it. Thats also valuable information for me. Because SWM3 has a gamestart which also gives you an M7.

I will have to change it so that a random station can be selected. Or have the Data Scanner mission to be considered as already completed.

But the same thing might happen with the "Learning to Jump" mission. Better stay out of your M7 when placing your first outpost.

User avatar
Hairless-Ape
Posts: 316
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [X3LU] Mayhem 3.14d

Post by Hairless-Ape » Wed, 1. Dec 21, 15:37

I have a few other 'fixes', or just improvements you may want. At least these are changes I make to mayhem 3. If interested, let me know where to send them (not here).

. Double the tug range. NO practical reason why a tug should be so limited.
. Much improved explorer logic. Sorts sectors by range so it's not wasting time traveling 5 jumps when there's an unexplored sector right next door. Doesn't double up satellites in a sector. Far less limited range.
. Like your mod, I also eliminate maintenance costs on TS and TP, but ALSO on the TL.
. If your capital ship is equipped with a Carrier repair Module (regardless whether it's a carrier or not), this module will slowly repair the ship hull. Could easily modify this to consume a resource from the cargo, or limit
the amount of 'field' repairs done to a certain percentage. Fact is, even real capital ships have some field repair capability. For my own part, I also automatically add this module to all newly built M1,M2,and M7's.
. Added fix to retreat logic, so that if player is in a carrier with fighters, they don't continually try to land when there are still enemies out there. bug.
. Changed fleet attack-all logic to extend it's range. It's severely limited by default, and forces you to reissue the command when you shouldn't have to.
. Reduced People needed for M3's. People needed for a new ship should not be based on the number of turrets that ship has, but rather the relative cost of that ship. M3's in particular demand too many people for it's size and capability.
this could use a more robust algorithm, but I just reduced M3 needs.

BTW, I really love your re-balance mod. While I take out the nerfs to the drydock, for the most part, I love what you've done and especially to the ships. I've always felt shields were way too strong and that a race's weapons should be unique. It's abby-normal to start the game as a paranid and be able to use argon weapons. Anyway, good stuff and well done.
Out of my mind. Back in 5 minutes.

User avatar
Hector0x
Posts: 994
Joined: Mon, 18. Nov 13, 18:03
x3tc

Re: [X3LU] Mayhem 3.14d

Post by Hector0x » Wed, 1. Dec 21, 17:12

Hairless-Ape wrote:
Wed, 1. Dec 21, 15:37
Thanks
Wow, you've been busy. Sounds like you should start your own submod thread instead. Especially Explorer fixes could be nice. Although eventually you've mapped most of the gameworld and for the rest, i'd consider most of that optional. For example the carrier repair software. I like that capships have to return back to base to get hull repairs.

Just checked the mission trigger scripts. They should all be working fine. It was really just because you "customized" your gamestart with a capship. When a dockable station for the first Data scanner mission is searched its impossible to have anything too large to dock with it. And this gets skipped when playing with Quickstart.

For the second mission that i thought could be problematic (learning to jump) you could theoretically sit in your free TL when it happens. But Joubarbe really thought about everything. So a temporary Teladi Kestrel gets spawned to serve as the reference to find a dockable station for it. Then it gets secretly destroyed.

sovsefar78
Posts: 4
Joined: Wed, 5. Dec 18, 03:16
x4

Re: [X3LU] Mayhem 3.14d

Post by sovsefar78 » Wed, 8. Dec 21, 06:03

Dear Hector, you have done a wonderful job with this mod, this is more than just a mod, it's x4 like it should have been. For me both x4 games failed to deliver miserably, one was broken and the other was just a buggy mess and lack depth (last played 23rd september 2021). This conversion mod i think put both of these games to shame.

For me this is more x4 than both games combined, so well done.

I learned of this mod from XenonArchitect7 here https://www.youtube.com/watch?v=olkP3DP ... Architect7

User avatar
Hector0x
Posts: 994
Joined: Mon, 18. Nov 13, 18:03
x3tc

Re: [X3LU] Mayhem 3.14d

Post by Hector0x » Wed, 8. Dec 21, 13:45

sovsefar78 wrote:
Wed, 8. Dec 21, 06:03
Joubarbe is the Mayhem mastermind. He built the entire mod over the last 5 years.

I'm just a big fan

alexuyk
Posts: 27
Joined: Mon, 9. Jul 18, 01:09
x4

Re: [X3LU] Mayhem 3.14d

Post by alexuyk » Mon, 20. Dec 21, 21:05

News of Farhram Legend release brought back memories... so now im replaying AP mods. Yet to launch FL...
After blitzkrieging OCV in vanilla LU I decided to try Mayhem 3 again. Had a lot of fun playing Mayhem 2 but Mayhem 3 scared me out back then.

I got around this time and I like it very much so far. I ended up in a perfect galaxy with 20ish clustered unoccupied/xenon sectors in the corner of the map. Have 4 major shipwrights which pump out capitals nonstop.
However when Xenons attacked me with 5 M6s when I rolled a Valhalla out I felt kinda sad...

I chose Medium difficulty from the start and I regret it now. Is there any way to change it mid-playthrough?

Betelgeuse97
Posts: 286
Joined: Sat, 20. Aug 11, 17:27
x4

Re: [X3LU] Mayhem 3.14d

Post by Betelgeuse97 » Wed, 22. Dec 21, 05:08

alexuyk wrote:
Mon, 20. Dec 21, 21:05
News of Farhram Legend release brought back memories... so now im replaying AP mods. Yet to launch FL...
After blitzkrieging OCV in vanilla LU I decided to try Mayhem 3 again. Had a lot of fun playing Mayhem 2 but Mayhem 3 scared me out back then.

I got around this time and I like it very much so far. I ended up in a perfect galaxy with 20ish clustered unoccupied/xenon sectors in the corner of the map. Have 4 major shipwrights which pump out capitals nonstop.
However when Xenons attacked me with 5 M6s when I rolled a Valhalla out I felt kinda sad...
In mayhem, M3s are very strong in numbers and are very easy to replace. A fleet of M3s complements your capitals well. That should help respond to Xenon waves faster (and it saves your capitals as it's the M3s that take the beating and not your bigger ships). Capital ships in Mayhem aren't as OP as they are in vanilla X3 -- they're still great for tanking and support, but the most amount of DPS from your fleet no longer comes from the capital ships.

Since you're parked near the Xenon, you may want to kill them ASAP. They spawn 1 wave from a random Xenon sector every hour, and every few hours they send a large wave that consists of at least 1 M2. The more sectors you have, the tougher the Xenon gets. Fortunately, since you have 4 shipyards, you shouldn't have major problems mass producing ships against them.
alexuyk wrote:
Mon, 20. Dec 21, 21:05
I chose Medium difficulty from the start and I regret it now. Is there any way to change it mid-playthrough?
Nope, once you choose the difficulty, you're stuck with it for the rest of the game.

alexuyk
Posts: 27
Joined: Mon, 9. Jul 18, 01:09
x4

Re: [X3LU] Mayhem 3.14d

Post by alexuyk » Wed, 22. Dec 21, 18:59

Betelgeuse97 wrote:
Wed, 22. Dec 21, 05:08
Nope, once you choose the difficulty, you're stuck with it for the rest of the game.
Thats sad(.

Also I've encountered a bug (or is it?)
Xenons started to lash out on everyone except me. They began to steamroll southeast corner of the galaxy. I wait nearby with my fleet to liberate into my rule as much as Xenons can capture.

However when Xenons were about to capture yet another Boron sector, Paranids be like "we wanna conquer that sh't". Paranids began to claim the sector, their fleet is like 3 sectors away.
Xenons finished destroying the outpost and sector goes to Paranids. Without a single of their ships even close to it.

Xenons are like "duh it is a protectorate now we better go wreck next sector". Sector becomes fully built meanwhile...

Same stuff then happened again in the other part of the galaxy, with Argons this time.

Betelgeuse97
Posts: 286
Joined: Sat, 20. Aug 11, 17:27
x4

Re: [X3LU] Mayhem 3.14d

Post by Betelgeuse97 » Thu, 23. Dec 21, 05:37

alexuyk wrote:
Wed, 22. Dec 21, 18:59
Also I've encountered a bug (or is it?)
Xenons started to lash out on everyone except me. They began to steamroll southeast corner of the galaxy. I wait nearby with my fleet to liberate into my rule as much as Xenons can capture.
When a Xenon wave spawns, they will pick a nearby sector and attack it. Are there any Xenon sectors in the southeast corner of the galaxy?
alexuyk wrote:
Wed, 22. Dec 21, 18:59
Also I've encountered a bug (or is it?)
However when Xenons were about to capture yet another Boron sector, Paranids be like "we wanna conquer that sh't". Paranids began to claim the sector, their fleet is like 3 sectors away.
Xenons finished destroying the outpost and sector goes to Paranids. Without a single of their ships even close to it.

Xenons are like "duh it is a protectorate now we better go wreck next sector". Sector becomes fully built meanwhile...

Same stuff then happened again in the other part of the galaxy, with Argons this time.
The Xenon cannot claim sectors. Because the Paranid claimed that Boron sector, the Paranid became the owner of that sector when that sector lost all its stations. Xenon take control of a sector only when no one is claiming that sector. All an NPC faction has to do to gain control of an occupied sector are claiming it and having the sector's stations destroyed by any means.

alexuyk
Posts: 27
Joined: Mon, 9. Jul 18, 01:09
x4

Re: [X3LU] Mayhem 3.14d

Post by alexuyk » Sun, 26. Dec 21, 21:52

I figured out that if you are present in sector and killed Xenon station, other faction's claim on the sector does nothing. It still becomes unoccupied.

I have another question.
Is there any way I can bring back vanilla LU carrier and fighter behavior? I am familiar with modding, a bit with x3 as well, but never gone that deep. Need some directions or a hint.
Or maybe there are some AI mods which work with Mayhem?

Carriers send fighters to die 40 km away from the carrier on an attack command.
No amount of "M3/M4/M5 > return home" will help. While "carrier command - return home" kept fighters perfectly docked.

Fighters on an attack command by themselves instead of swarming go space acrobats and begin to form into an X-shape (attack: flying to position) disregarding whether they are trying to form inside OCV formation or not, and all of that while triggering endless "bounce"s...

I nearly tore some of my hair out just now after losing like 60 fighters before fight with OCV even began, need help...

Also I would kill for a "don't f**ng move" command for capitals...

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”