OpenAL error on startup

There are no stupid questions, just stupid answers.
  • 1
  • 2
19 posts Page 2 of 2
Duion
Posts: 1626
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Tue Feb 11, 2020 1:21 am
Are you using the stock template or did you write your own functions to save the settings? Or do the options save into a file correctly and something with the operating system messes it up again?
Sir_Skurpsalot
Posts: 57
Joined: Tue Jan 28, 2020 6:32 pm
by Sir_Skurpsalot » Tue Feb 11, 2020 1:51 am
Jason - I didn't notice any errors, I could try compiling it again. Correct "SFXALProvider - No valid devices found!" shows in my terminal as the game is starting up.

Duion - Stock template. I noticed that scripts/client/prefs.cs does not get updated when I change my video settings and exit.
Duion
Posts: 1626
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Tue Feb 11, 2020 2:11 am
There you have it, the prefs do not get saved, maybe due to file permission issues.
Sir_Skurpsalot
Posts: 57
Joined: Tue Jan 28, 2020 6:32 pm
by Sir_Skurpsalot » Tue Feb 11, 2020 3:57 am
made sure I had ownership with sudo chown -R on my entire Torque3D from the terminal and it made no difference.
Duion
Posts: 1626
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Tue Feb 11, 2020 11:27 am
Well you got a more complicated error there, you may have to go through it step by step, like did the settings ever get saved before or is it just in this case? There is a function in script that will write the options into a pref file when exiting the options dialog, you could try to debug that with Torsion, but I don't know if Torsion has a Linux port yet. All I know is that it works in my game and it also works for all other people using my game, but I also have a custom function that writes the user prefs into the user home directory like it is supposed to be done and not into the game directory.
Jason Campbell
Posts: 362
Joined: Fri Feb 13, 2015 2:51 am
 
by Jason Campbell » Tue Feb 11, 2020 1:33 pm
Try right-clicking the T3D binary and go to Properties and make sure that Read and Write is available for every group.
Sir_Skurpsalot
Posts: 57
Joined: Tue Jan 28, 2020 6:32 pm
by Sir_Skurpsalot » Wed Feb 12, 2020 12:35 am
Duion - It has always done this. I opened up scripts/gui/optionsDlg.cs and couldn't find any function in there that looked like it was supposed to save any video settings to any script, just a line for savings control bindings (which works). Maybe it isn't even supposed to save them by default?

Jason - no luck.
Duion
Posts: 1626
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Wed Feb 12, 2020 11:33 am
This is how the function looks in my game:
https://github.com/Duion/Uebergame/blob ... #L320-L321

I put it into the on sleep method in the options dialog, so every time the options dialog is closed the settings are saved automatically, so settings can never get lost.

The function will export any "$pref::" value which includes all settings also video settings. Second argument is the path and filename to write, where i used a custom function to get the home path, but you can directly write a file path there.

Control bindings may work for you, since they are saved in a different function to a different file, as you can see in my example as well.

A source of error may be that for certain settings you forgot to write into script to save them into pref values, it happened to me a few times. The export function only exports the pref values that have been changed, if you forgot to link the button in the options menu to change the values of course they will not be saved.
Sir_Skurpsalot
Posts: 57
Joined: Tue Jan 28, 2020 6:32 pm
by Sir_Skurpsalot » Fri Feb 14, 2020 12:43 am
Ok thanks, yeah I guess it just isn't scripted in by default. I'll keep playing with Torque. I tried Torque way back in 2012 and didn't really get it, then went to Unity and used that on and off up until this year, switched to Godot and have used that and made pretty good progress the past 6 months, but now I'm back to Torque giving it a second look because I really just want an FPS engine that has been proven and used in real games before where I don't have to reinvent the wheel for every little bit of basic functionality.
  • 1
  • 2
19 posts Page 2 of 2

Who is online

Users browsing this forum: No registered users and 5 guests