StargateInvasion / SGI

Stargate Invasion is a mod for Sins of a Solar Empire.
85 stars 43 forks source link

RandomEvent problem #79

Closed eljeffeg closed 6 years ago

eljeffeg commented 6 years ago

A RandomEvent bug in the base game was discussed in the game discord forum. Zombie mentioned a fix for the bug (mentioned at the end). Conversation copied from: https://discordapp.com/channels/266693357093257216/266695797746171924

ZombiesRus5 - 12/05/2017

Hmm, RandomEventMagneticStormTarget is spamming out, but I don't see an MagneticStorm event I'm getting about 30fps though zoomed in which aint bad advent fleet zoomed in drops to 20fps

Defect450 - 12/05/2017

But no hard freeze?

ZombiesRus5 - 12/05/2017

no it's still running I'm in windowed mode I set your player to AI so it's just running a sim right now

Defect450 - 12/05/2017

Ahh okay

ZombiesRus5 - Today at 1:14 PM

I'm really confused on the RandomEvent

Defect450 - Today at 1:14 PM

That is pretty strange

ZombiesRus5 - Today at 1:15 PM

it already has 35k creation events and continually growing

Defect450 - Today at 1:15 PM

I bet the engine just loves that

ZombiesRus5 - Today at 1:16 PM

I've noticed that code looks a little wonky before game is still running

Defect450 - Today at 1:23 PM

And no freezing on your end?

ZombiesRus5 - Today at 1:23 PM

How much RAM do you have?

Defect450 - Today at 1:23 PM

12 GB

ZombiesRus5 - Today at 1:23 PM

ok, that shouldn't be an issue if you had 4gb that could have been an issue :wink: ah, it just froze

Defect450 - Today at 1:24 PM

Gasp

ZombiesRus5 - Today at 1:24 PM

now I've got 1fps

Defect450 - Today at 1:25 PM

Will it let you open any menus?

ZombiesRus5 - Today at 1:25 PM

no, I just see a tic occasionally it's essentially frozen out

Defect450 - Today at 1:25 PM

Yep that's it

ZombiesRus5 - Today at 1:27 PM

whelp, the random even thing isn't optimized well, but I doubt that is the issue event something else is hanging up the game

Defect450 - Today at 1:27 PM

I let it sit for a good 10 minutes to see if it would recover, but it didn't sadly

ZombiesRus5 - Today at 1:28 PM

it's in some hard loop is my guestimation CPU is pegged at 25 so one core fully utilized on it

Defect450 - Today at 1:29 PM

Pretty much what my CPU was at in task manager

ZombiesRus5 - Today at 1:29 PM

well, i'm gonna fix those random events in my mod atleast unfortunately nothing around entity counts popped out for E4X would probably take Ironclad to look at that save file I don't know Fyst's discord name to tag him here and if he would even load it up

Defect450 - Today at 1:32 PM

Oh well, at least something good came from the test! Thanks for your time man

ZombiesRus5 - Today at 1:38 PM

np, atleast you know it's not just you

ElJefe - Today at 1:38 PM

ZombiesRus5 please share your solution to the random events when you fix it if it's something more of us can include in our mods. Wasn't sure if it is due to the mod or base game based on the conversation.

ZombiesRus5 - Today at 1:39 PM

it's the base game shouldn't be using "PrioritizeNewBuffs" plus it's timing and using that causes issues with things like disable fighter launch it's constantly resetting causing glitchy behavior I've already observed in game it needs changed to PrioritizeOldBuffs and it's finish condition needs change to last spawner no longer has buffs along with the enter hyperspace