everytime i start/try to join a game is always says game.prefs. Is there anyway i can fix this?
i need ehlp
@amygdala so i did it but when i tried joining a game but it still said could not update mod states in game.prefs.
@shdwurchinn You could try to delete your game.prefs file.
Then, go to steam/gog and start a game (which recreates your game.prefs file) and try again on FAF.
You find the game.prefs file in the client in the burger menu top left corner.
@Amygdala i deleted it. i started forged alliance on steam but it wont let me load up the FAF client since it gave me a startup error.
java.lang.RuntimeException: Exception in Application init method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:888)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tutorialService' defined in URL [jar:file:/C:/Program%20Files/FAF%20Client/lib/faf-client-2023.11.0-plain.jar!/com/faforever/client/tutorial/TutorialService.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'gameService' defined in URL [jar:file:/C:/Program%20Files/FAF%20Client/lib/faf-client-2023.11.0-plain.jar!/com/faforever/client/game/GameService.class]: Unsatisfied dependency expressed through constructor parameter 4: Error creating bean with name 'preferencesService' defined in URL [jar:file:/C:/Program%20Files/FAF%20Client/lib/faf-client-2023.11.0-plain.jar!/com/faforever/client/preferences/PreferencesService.class]: C:\Users\Aarons\AppData\Local\Gas Powered Games\Supreme Commander Forged Alliance\Game.prefs
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:801)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:240)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1189)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:560)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:950)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:616)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:738)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:440)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:150)
at com.faforever.client.FafClientApplication.init(FafClientApplication.java:55)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:817)
... 2 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gameService' defined in URL [jar:file:/C:/Program%20Files/FAF%20Client/lib/faf-client-2023.11.0-plain.jar!/com/faforever/client/game/GameService.class]: Unsatisfied dependency expressed through constructor parameter 4: Error creating bean with name 'preferencesService' defined in URL [jar:file:/C:/Program%20Files/FAF%20Client/lib/faf-client-2023.11.0-plain.jar!/com/faforever/client/preferences/PreferencesService.class]: C:\Users\Aarons\AppData\Local\Gas Powered Games\Supreme Commander Forged Alliance\Game.prefs
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:801)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:240)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1189)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:560)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:910)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:788)
... 20 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'preferencesService' defined in URL [jar:file:/C:/Program%20Files/FAF%20Client/lib/faf-client-2023.11.0-plain.jar!/com/faforever/client/preferences/PreferencesService.class]: C:\Users\Aarons\AppData\Local\Gas Powered Games\Supreme Commander Forged Alliance\Game.prefs
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1770)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:598)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:910)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:788)
... 34 more
Caused by: java.nio.file.AccessDeniedException: C:\Users\Aarons\AppData\Local\Gas Powered Games\Supreme Commander Forged Alliance\Game.prefs
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484)
at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
at java.base/java.nio.file.Files.copy(Files.java:3160)
at com.faforever.client.preferences.PreferencesService.afterPropertiesSet(PreferencesService.java:61)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1817)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1766)
... 45 more
@shdwurchinn said in i need ehlp:
Caused by: java.nio.file.AccessDeniedException: C:\Users\Aarons\AppData\Local\Gas Powered Games\Supreme Commander Forged Alliance\Game.prefs
the client can't access the file / the location where the file is supposed to be.
either you have some security software blocking it or the permissions of the directory/file don't let the user running the client access it
@shdwurchinn did it change anything?
because the error message is pretty clear on what's happening.
So either try disabling your security software to see if it's blocking something or try running the client as admin, to see if that changes it. that should help narrowing down the cause.
("Aarons" is your user right?)
Still sounds like something is wrong with the permissions on the file.
can you delete the game.prefs file and run the steam version (make sure it starts with your regular user)?
In the end your user should be the owner of the file and the directory (as seen under preferences->security>advanced) and should have full read/write access.
i went to forged alliance folder and its under the user and data and checked the properties and the write box wasnt checked so i checked it but im now missing my game.prefs since i deleted it
@shdwurchinn it should get recreated as long as you have write permission as soon as you start the game