1C Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official 1C Company forum > 1C Publishing > IL-2 Sturmovik > Daidalos Team discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2018, 07:29 PM
Oh Chute! Oh Chute! is offline
Approved Member
 
Join Date: May 2010
Location: Vancouver, Canada
Posts: 56
Default Memory allocation & Releasing memory

In the campaigns I have noticed frequent memory locking. Aircraft ‘following their kill down’ end up crashing into the ground.

When I first noticed that I was losing AI pilots to this, planes spiralling in for no reason, I replayed later missions then on autopilot and experienced this “memory lock” myself. Switching off autopilot would not release the controls to the player. Controls would remain unresponsive until the fatal crash.

Perhaps someone could look at how memory is allocated and released in the campaigns and or make some script adjustment that had aircraft ‘follow down’ to a set altitude, then having them pulling up and away?
Reply With Quote
  #2  
Old 07-29-2018, 03:58 PM
Tolwyn Tolwyn is offline
Approved Member
 
Join Date: Apr 2010
Posts: 246
Default

Have you modified or adjusted the java environment that comes with the game?

Java and the game does a regular "garbage collecting."

Make sure you have this in your game installation folder:

gc.cmd

but more importantly, this file has to be called by the RCU file:

@file gc.cmd

THIS line should be in the RCU file.

If you want to run the garbage collecting manually, the command is (from the console):

GC
Reply With Quote
  #3  
Old 07-30-2018, 07:01 AM
Oh Chute! Oh Chute! is offline
Approved Member
 
Join Date: May 2010
Location: Vancouver, Canada
Posts: 56
Default

Quote:
Originally Posted by Tolwyn View Post
Have you modified or adjusted the java environment that comes with the game?

Java and the game does a regular "garbage collecting."

Make sure you have this in your game installation folder:

gc.cmd

but more importantly, this file has to be called by the RCU file:

@file gc.cmd

THIS line should be in the RCU file.

If you want to run the garbage collecting manually, the command is (from the console):

GC
No. I’ve not modified any file, period. I wouldn’t even know where to start such a process. Other than setting/options I leave things alone.
Reply With Quote
  #4  
Old 08-13-2018, 06:12 AM
Oh Chute! Oh Chute! is offline
Approved Member
 
Join Date: May 2010
Location: Vancouver, Canada
Posts: 56
Default

Can you direct me with more precise file locations? I don’t have a working knowledge of the games inner file systems. Thanks.
Reply With Quote
  #5  
Old 08-26-2018, 08:50 PM
wheelsup_cavu's Avatar
wheelsup_cavu wheelsup_cavu is offline
Approved Member
 
Join Date: Jan 2009
Location: Riverside County, California
Posts: 282
Default

The RCU file is located in the main directory of your IL-2 install. It can be edited using Notepad but as a precaution you should make a copy of it first.
This is the default location.

(32 bit systems): C:\Program Files\Ubisoft\IL-2 Sturmovik 1946\rcu
(64 bit systems): C:\Program Files (x86)\Ubisoft\IL-2 Sturmovik 1946\rcu

If you still happen to have the game located in one of those default directories you should move it out of them onto your C drive.
IL-2 Sturmovik 1946 Patching Guide: http://www.mission4today.com/index.p...p=show&kid=584

In this Knowledge Base article at M4T there is an explanation about the RCU file and how to alter it.
Custom Icons: http://www.mission4today.com/index.p...p=show&kid=681


Wheels
Reply With Quote
  #6  
Old 08-27-2018, 09:30 AM
Storebror's Avatar
Storebror Storebror is offline
Ask me if I care
 
Join Date: Jun 2010
Location: Denmark
Posts: 60
Default

The Java VM automatically performs a garbage collection if necessary.
Asking for a garbage collection "on demand" is just that: Asking.
The Java VM may or may not actually perform a garbage collection when you call for it, and the result most of the time isn't exactly what you'd expect it to be.
In summary, the whole purpose of the GC command is questionable at best.

Cheers!
Mike
__________________
'Armor' is a fantasy invented by your C.O. to make you feel better.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:37 PM.

Based on a design by: Miner Skinz.com

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2007 1C Company. All rights reserved.