Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Adding memory for Java engine when running under Wine  (Read 1011 times)

0 Members and 1 Guest are viewing this topic.

Slowness

  • member
  • Offline Offline
  • Posts: 1
Adding memory for Java engine when running under Wine
« on: June 20, 2016, 08:33:38 PM »

As an enthusiastic Linux user, I wasn't very pleased about that these new modpacks didn't work anymore under Wine. Stock game, SAS ModAct 5.3 and Dawn of Flight run without issues because they don't contain so many planes. The good old Dark Blue World works well under Linux environment as well - but only if there are not too many planes added in game. The Jet Age crashes at 20% (when loading Java classes) while World at War doesn't even show splash screen before crashing. They don't print anything into logfile which make debugging more difficult.

I have had a long conversation about this issue with Birdman and he explained me that the reason is probably game's internal Java engine that doesn't allocate enough memory for the added data by default. At least the earlier patches could use modified dinput.dll -file that read Java parametres from args.txt. I tried running the game using command:

exec wine il2fb.exe "-jvmargs=args.txt"

but that didn't make any change. I also tried to copy parametres from file straight to the terminal. My args.txt looks like this:

-Xms887M
-Xmx887M
-Xss8192K
-XX:PermSize=128M
-XX:MaxPermSize=128M
-Djava.class.path=.
-Xincgc
-Xverify:none
-Xcomp

Is there any other way to give more memory for game engine? I have no idea of what to try next. Birdman told me that the whole il2fb.exe is changed according to given parametres but it seems that Wine cannot do the trick correctly if even some antivirus programs start whining after that.

And I'm sorry for not using code-tags but forum's anti-spam bot thinks that they are external links...
Logged

Moezilla

  • Supporter
  • member
  • Offline Offline
  • Posts: 358
Re: Adding memory for Java engine when running under Wine
« Reply #1 on: June 22, 2016, 06:53:45 AM »

I'm flying blind here Slowness as I only have a headless Linux server. Will the Il2-selector run under Wine?

There is a section for inputting JVM params in it although it may just be a GUI which runs the command you tried already. Still at least it's something to try. To activate the JVM options check out the SAS Selector manual (pg.10) - https://www.sas1946.com/main/index.php/topic,16403.msg176304.html#msg176304
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 24037
  • Taking a timeout
    • STFU
Re: Adding memory for Java engine when running under Wine
« Reply #2 on: June 22, 2016, 07:13:44 AM »

The selector will run under linux but you might have to disable DEP on the il2fb.exe.
I've got a linux box where I can test this on, but currently the available time is very limited so I won't get back at this until next week probably.

Best regards - Mike
Logged
Don't split your mentality without thinking twice.

Zoran395

  • Mapper
  • member
  • Offline Offline
  • Posts: 355
Re: Adding memory for Java engine when running under Wine
« Reply #3 on: June 23, 2016, 04:46:01 AM »

Sorry Slowness, not a solution but just sharing my personal experience.
I have been a Linux enthusiast for a long time and write this on my old Macbook running Linux.
I do all my IL-2 research, IL-2 scripting, forum posting on my two Linux laptops but ... not being a Wine guru, I gave up after trying to get CUP running on my (feeble) Linux boxes. It was the only version i was interested in.

I made the move back to the dark side, decided to build a mid-range gaming desktop PC with Win10, no Internet connection and run CUP happily on it.
Logged
Pages: [1]   Go Up
 

Page created in 0.461 seconds with 20 queries.