Jump to content

Sir_Skurpsalot

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by Sir_Skurpsalot

  1. Thanks for the responses. Torque is pretty strange, so as long as you start a function's name with serverCmd you can call it from any script, and it has access to %client? So the code snippet works, but now that I've got that I want to change it so it returns the pose to the function that called it, but it is not working. If I change the server function to: function serverCmdGetPlayerPose(%client) { return %client.player.getPose(); } and then try to: echo(commandToserver('GetPlayerPose'));I get the error: scripts/client/default.bind.cs (292): Call to commandToServer in stanceDown uses result of void function call. Why is it void?
  2. Ok I'm trying my first bit of scripting with torque, having come from unity and godot its quite a bit different. Right now I'm working on changing the way crouching and prone works so you have stance up and stance down keys that cycle you from standing down to prone and back up ala original ghost recon. echo($Player::getPose); does not return anything though, literally a blank space in the console. What is the correct syntax to get the players pose? I'm trying to call this from client/default.bind.cs. That's another thing with Torque... I have no idea where you can and can't access things from, or how other scripts access each other.
  3. 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.
  4. 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.
  5. made sure I had ownership with sudo chown -R on my entire Torque3D from the terminal and it made no difference.
  6. 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.
  7. It's saved my audio now but video settings still reset every time I launch Torque
  8. Thanks for the help! Two things: I installed the dependencies as you suggested and now the pre-compiled version of Torque finds openAL and I can now select OpenAL as an audio provider in the options and I have sound. The annoying thing is Torque never saves any of my hardware settings though, every time I launch Torque I have to re choose my resolution and audio provider. After I got that I tried going ahead and compiling my own Torque via the instructions in the wiki to see what would happen and that version gives the error "SFXALProvider - No valid devices found!" on startup and I do not have sound. Although one note is I did not understand step 4.3 on the wiki and just copied the folders in the Templates/Full/game to my "game" folder manually.
  9. I have openAL installed. Running openal-info shows the following: Available playback devices: Built-in Audio Analog Stereo Available capture devices: Built-in Audio Analog Stereo Monitor of Built-in Audio Analog Stereo Default playback device: Built-in Audio Analog Stereo Default capture device: Built-in Audio Analog Stereo ALC version: 1.1 ** Info for device "Built-in Audio Analog Stereo" ** ALC version: 1.1 ALC extensions: ALC_ENUMERATE_ALL_EXT, ALC_ENUMERATION_EXT, ALC_EXT_CAPTURE, ALC_EXT_DEDICATED, ALC_EXT_disconnect, ALC_EXT_EFX, ALC_EXT_thread_local_context, ALC_SOFTX_device_clock, ALC_SOFT_HRTF, ALC_SOFT_loopback, ALC_SOFT_output_limiter, ALC_SOFT_pause_device Available HRTFs: default-44100 default-48000 OpenAL vendor string: OpenAL Community OpenAL renderer string: OpenAL Soft OpenAL version string: 1.1 ALSOFT 1.18.2 OpenAL extensions: AL_EXT_ALAW, AL_EXT_BFORMAT, AL_EXT_DOUBLE, AL_EXT_EXPONENT_DISTANCE, AL_EXT_FLOAT32, AL_EXT_IMA4, AL_EXT_LINEAR_DISTANCE, AL_EXT_MCFORMATS, AL_EXT_MULAW, AL_EXT_MULAW_BFORMAT, AL_EXT_MULAW_MCFORMATS, AL_EXT_OFFSET, AL_EXT_source_distance_model, AL_EXT_SOURCE_RADIUS, AL_EXT_STEREO_ANGLES, AL_LOKI_quadriphonic, AL_SOFT_block_alignment, AL_SOFT_deferred_updates, AL_SOFT_direct_channels, AL_SOFT_gain_clamp_ex, AL_SOFT_loop_points, AL_SOFT_MSADPCM, AL_SOFT_source_latency, AL_SOFT_source_length, AL_SOFT_source_resampler, AL_SOFT_source_spatialize Available resamplers: Nearest Linear * 4-Point Sinc Band-limited Sinc (12/24) EFX version: 1.0 Max auxiliary sends: 2 Supported filters: Low-pass, High-pass, Band-pass Supported effects: EAX Reverb, Reverb, Chorus, Distortion, Echo, Flanger, Ring Modulator, Compressor, Equalizer, Dedicated Dialog, Dedicated LFE
  10. Hello Trying to check out Torque but my sound is not working. I'm using the linux binaries running linux mint. I get this error on startup: "Failed to load OpenAL shared library. Sound will not be available SFXALProvider - OpenAL not available." How can I fix this? Searched and wasn't able to find anything. Thanks for reading.
×
×
  • Create New...