Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mr. Blockers

Pages: [1] 2
1
Is it possible to get a string of the output logged by running dump on an object? I feel like there might be a hacky way to access the data inside of the text-log area in the console UI, but if there's a simple way to do this it would save my ass.


2
Modification Help / Re: Item sound volume not tapering with distance.
« on: January 03, 2017, 01:08:51 PM »
Thanks, no dice though :\
Converted one item's set of sounds from mono to stereo and the issue is still there.
Maybe it has to do with the .wav's I'm exporting (32-bit float, 44100Hz). I don't remember torque ever being this picky about sound files though.

ninja edit: the gun's fire sound is (mono, 32-bit float, 22050Hz), I'll try those settings
EDIT2: sure enough, that was the problem. the sample/bit (can never remember) rate needs to be 22050Hz.

EDIT3: 3x edit combo, that wasn't the true solution. some sounds are still broken after the change. this is really strange.

FINAL EDIT: I was a bit too hasty with my edits earlier, but this is for sure:
making the .wav files 22050Hz and mono fixed the problem.

Locking, thanks for the help Conan.

keywords: item sounds, audioprofile, sound volume, .wav, wav, audacity

3
Modification Help / Re: Where do I start with modelling?
« on: January 02, 2017, 10:19:59 PM »
There are a few options for tools to model with, the most common people suggest are either MilkShape (an old, paid, WYSIWYG and simple) and Blender (free, jack-of-all-trades, beginner-unfriendly UI)

If I had to give you a recommendation, it'd be to learn to use Blender. It does everything you could ever need, and then some, and for free, too. The only problem is that it has a steep learning curve and some... unconventional keybinds. But it's worth the effort to learn, imo.

To get models from Blender into to Blockland, look into Port's DTS exporter (DTS being the torque model file type) and Demian's BLB exporter (BLB being blocklands brick format for bricks.)

There's a wealth of information in Modification Help when it comes to modelling and scripting, and plenty on the internet for Blender, so make sure to make use of it!

4
Modification Help / Item sound volume not tapering with distance.
« on: January 02, 2017, 09:22:03 PM »
Hi all,
I've ran into a problem with audio. As you move farther away from a player using the item, the sounds do not fade away, but instead cut off when they reach the maximum range determined by their description.
I've tried looking into the default weapons whose sounds do work, but I haven't found the problem with my code.

I'm creating the sound datablocks as follows:
Code: [Select]
datablock AudioProfile(IWrenchStartSound)
{
  filename = "./IWrench/impactWrenchStart.wav";
  description = AudioClose3d;
  preload = true;
};

datablock AudioProfile(IWrenchFireSound)
{
  filename = "./IWrench/impactWrenchFire.wav";
  description = AudioClose3d;
  preload = true;
};

// and so forth

and am using them in the state system of my image like so:

Code: [Select]

datablock ShapeBaseImageData(ImpactWrenchImage)
{
  shapeFile = "./IWrench/impact_wrench.dts";
  emap = true;
 
  mountPoint = 0;
  offset = "0 0 0";
 
  correctMuzzleVector = false;
  className = "WeaponImage";
 
  item = ImpactWrenchItem;
  ammo = " ";
  projectile = "";
  projectileType = "";
 
  melee = true;
  doRetraction = false;
  armReady = true;
 
  showBricks = false;
 
  stateName[0]                     = "Activate";
  stateTimeoutValue[0]             = 0.0;
  stateTransitionOnTimeout[0]      = "Ready";

  stateName[1]                     = "Ready";
  stateTransitionOnTriggerDown[1]  = "PreFire";
  stateAllowImageChange[1]         = true;
 
  stateName[2] = "PreFire";
  stateSound[2] = IWrenchStartSound;
  stateTransitionOnTimeout[2] = "Fire";
  stateTimeoutValue[2] = 0.1;
  stateAllowImageChange[2] = false;
 
  stateName[3] = "Fire";
  stateScript[3] = "onFire";
  stateTransitionOnTimeout[3] = "Reload";
  stateTimeoutValue[3] = 0.05;
  stateFire[3] = true;
  stateSound[3] = IWrenchFireSound;
  stateAllowImageChange[3] = false;
  stateWaitForTimeout[3] = true;
 
 
  stateName[4] = "Reload";
  //stateSound[4] = IWrenchStopSound;
  stateTransitionOnTriggerDown[4] = "Fire";
  stateTransitionOnTriggerUp[4] = "PostFire";
 
  stateName[5] = "PostFire";
  stateSound[5] = IWrenchStopSound;
  stateTransitionOnTimeout[5] = "Ready";
  stateAllowImageChange[5] = false;
  stateTimeoutValue[5] = 0.1;
};
If more code is needed, I'll edit it in. Pretty sure it has to do with my item images.

This happens with my other items that I've made recently too, so there must be an error somewhere in my workflow. Any help is super appreciated :P

(a side note, the files are mono-channel .wav's exported from Audacity, if it matters.)

5
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 23, 2013, 12:54:46 AM »
Not quite sure if it was noticed already, but Mura's sig has 4 X's now (or it did and im an oblivious motherforgeter)

6
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 22, 2013, 10:57:54 PM »
Guys, his avatars different again
nevermind

7
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 22, 2013, 02:38:26 PM »
Uh... wait, guys? We might be wrong about the zeros. Zero in German is something like "noi".
Ah crap.. my bad.
in german Zero is null.
derp derp derp terrible mistake for a german speaker

also
>10xETA8ET
Estimated Time Available 8 Eastern Time? shhhhhh

8
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 22, 2013, 01:35:13 PM »
What video
Post link I'm too lazy to read 90 pages
the one that mura uploaded after 5 hours
http://www.youtube.com/watch?v=0rAVRf0ahpw

9
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 22, 2013, 01:27:29 PM »
In the answers video, don't know if anyone noticed, but the voice at the beginning is constantly saying some numbers in german over and over...

neunzig zero zero zero acht
90 0 0 0 8

10
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 21, 2013, 08:27:01 PM »
KMO ZSUOB IYEDR

11
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 21, 2013, 08:11:45 PM »
why does it go 42 pages
its the meaning of life

12
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 21, 2013, 07:31:18 PM »
we still need to figure out
█████ eyes open █████████ ██ █████ ███, ██████.
Name: █████ Mura
We must play hangman with mura


give me a y

13
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 21, 2013, 06:18:26 PM »
0011 is binary 3 with lefthand padding (2), so
3331513 ?

14
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 21, 2013, 05:57:43 PM »
Błockers»: look at that
Błockers»: age 8
Błockers»: love F
Błockers»: one of his videos
Błockers»: had a person
Błockers»: walking with a teddy bear
MrDuck: eyes open
Błockers»: annie?
mura is secretly a league of legends player

OT:
Also, can someone tell me what's in the video?
It looks a bit like another walking video but it has 0011 in it ninja'd

15
Off Topic / Re: sOMe cool pIcTures i found online
« on: June 21, 2013, 05:11:37 PM »
Couldnt convert those mathematical characters, just clipped them aside and the seperators, got this:
http://pastebin.com/FsKd9GJ3

starting to think we're beating a dead bush, but notice the two $'s that the other guys found (i didnt remove them)

Pages: [1] 2