View unanswered posts | View active topics It is currently Sat Dec 28, 2024 5:41 pm



Reply to topic  [ 441 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24 ... 30  Next
 The FBM CB 4200 - Now deployable in the field! 
Author Message
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Warguy wrote:
Lolfail

It's probably something with your comp, or the FBM itself.


Could you be any less helpful?


Wed Apr 07, 2010 7:23 pm
Profile

Joined: Sun Nov 22, 2009 3:15 am
Posts: 3
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Natti wrote:
Don't try to use Pie menu.

Then how do I start using it?


Wed Apr 07, 2010 7:54 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jul 03, 2009 11:05 am
Posts: 3878
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
I mean... Don't use the pie menu when qou have the cursor selected.


Wed Apr 07, 2010 8:22 pm
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Borg184 wrote:
Natti wrote:
Don't try to use Pie menu.

Then how do I start using it?

Q and E


Thu Apr 08, 2010 4:09 am
Profile WWW

Joined: Tue Feb 09, 2010 10:21 pm
Posts: 49
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Come On man try fix the lagg this mod ae awesome, one time i catapult a coalition toh the drop shi conteiner


Mon Apr 19, 2010 7:52 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
it's impossible at the moment :P


Mon Apr 19, 2010 8:20 pm
Profile
User avatar

Joined: Sun Feb 28, 2010 5:29 am
Posts: 172
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
what lag are you all talking about?


Mon Apr 19, 2010 8:35 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Lua in cc currently causes memory leaks to happen.
This is dan's fault, but that's just cause he's the one that made this awesome game.


Mon Apr 19, 2010 9:04 pm
Profile

Joined: Mon Apr 19, 2010 11:17 pm
Posts: 8
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
There should be a way to manually dump the garbage in the Lua script. This should solve all the crashing problems.

Edit: And there is, in the list of Lua functions. Granted, this was made by a developer, so he should know about it. But how would you implement it without creating further complications? (I.e. having certain functions not occurring.)

Second Edit: I just tested this theory out. By adding _G.collectgarbage = true; Before the last "end" on the "Computer" lua script, I have no lag. It does not crash. I can do whatever function i want. It is perfect =)


Mon Apr 19, 2010 11:22 pm
Profile
User avatar

Joined: Mon Aug 17, 2009 3:00 am
Posts: 242
Location: The Great White North
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Kalidor wrote:
... Before the last "end" on the "Computer" lua script...

The last "end" on the Update(self) function?
EDIT: Yup, the end of the Update(self) function.
And since adding it, I have not crashed once, and have not experienced any more lag than CC normally throws.
Mind you, this may just be coincidence, but this seems legit.


Tue Apr 20, 2010 12:14 am
Profile

Joined: Mon Apr 19, 2010 11:17 pm
Posts: 8
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Mind you, this is not a perfect fix, cortex command WILL crash if you overload it with too many functions (I.e. using "grow" several times in quick succession has always made me crash). However, expanding on this garbage collect function further could fix more issues. I'll be playing around with _G.collectgarbage = true; placement for a while until TheLastBanana decides to post about it. Hope this adds to the "fun" factor of this mod!


Tue Apr 20, 2010 1:31 am
Profile
User avatar

Joined: Sat Mar 13, 2010 5:52 am
Posts: 229
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Never messed with Lua language, does it look like:

Code:
[tab][tab]end
[tab]end
_G.collectgarbage = true
end


(psp's don't tab)


Tue Apr 20, 2010 1:32 am
Profile

Joined: Mon Apr 19, 2010 11:17 pm
Posts: 8
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
FuzzyMelon wrote:
Never messed with Lua language, does it look like:

Code:
[tab][tab]end
[tab]end
_G.collectgarbage = true
end


(psp's don't tab)


Its right before Destroy(self) function.
Code:
end
   else
      --Load.
      self.Frame = math.floor(((self.startup - self.startupTimer:LeftTillSimMS(self.startup)) / self.startup) * 7);
   end
   _G.collectgarbage = true;
end

function Destroy(self)

And don't forget your semicolon ";" at the end of "true"


Tue Apr 20, 2010 1:39 am
Profile
User avatar

Joined: Sat Mar 13, 2010 5:52 am
Posts: 229
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Heh, I wasn't off at all. But I get it now, that whole string refers to update(self). The indexing is a bit like INI coding, thanks for that Koolidor. I think I'll try and pick up some basic Lua language so I can help myself out later.


Tue Apr 20, 2010 1:45 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: The FBM CB 4200 - Now deployable in the field!
Kalidor, I seriously cannot believe that solved it. That's something that should be included in the game by default to run every x number of frames (oddly, it seems to, but at a 2-minute mark or something). Adding it in right now, and I'll go write this up in the Lua Scripting section.
The FBM now collects garbage every 10 seconds, so it should keep it from lagging too much.


Tue Apr 20, 2010 2:48 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 441 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24 ... 30  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.050s | 14 Queries | GZIP : Off ]