Page 1 of 1

something weird

Posted: Wed May 04, 2011 4:54 am
by sdw195
in my new mod/AE every second or third time i get to the screen crawl text the game freezes and i have to alt F4 out and kill the process thats using half my cpu and 150~ mb of ram any ideas


(or and dont ask for the code unless your name is in color as this is a surprise mod and i dont want any one playing it while its in pre alpha :P )

Re: something weird

Posted: Wed May 04, 2011 5:02 am
by Drako Slyith
This is an adventure extension correct?
If so it is possible you have too many nodes or you have some startup code that is overly long. In my network mod it takes several seconds for the game to load the topology, but it varies similar to what you explained.

Re: something weird

Posted: Wed May 04, 2011 5:19 am
by sdw195
one node, too many?? but the station in it has a bit in the <oncreate> (but no more than a csc would)

Re: something weird

Posted: Wed May 04, 2011 5:41 am
by Drako Slyith
The game works by calling code in a certain order. First is OnUniverseCreated, (I think) then OnGlobalTopologyCreated then OnGlobalSystemCreated, then the base tags like OnCreate. You're running into problems either in the OnUniverseCreated or OnGlobalTopologyCreated. The system is created as you enter it. It might be OnGlobalSystemCreated, if it happens just as you click to end the opening message.
It would help if you told me if you have any code in the above mentioned tags.

*On a side not, if you are running that enum you got help for, then that might be the case. I've experienced sometimes even simple lists can make enum lag the game. I don't know what the difference is, it might have something to do with the amount of code in the enum.

Re: something weird

Posted: Wed May 04, 2011 6:39 am
by sdw195
but the enum doesn't run in the oncreate its about 200 ticks after it

Re: something weird

Posted: Wed May 04, 2011 7:01 am
by Drako Slyith
Alright then, I confess I have no idea what it could be (without seeing the code, at least) sorry.

Re: something weird

Posted: Thu Jun 07, 2012 10:05 pm
by Star Weaver
meh, close this?