Jump to content

few suggestions about dxdraw and sounds


karlis

Recommended Posts

Posted (edited)

dxdraw:

1)would be very nice to set bounding box(alpha, or w/e it is called) for dxdrawimage(), so it would make for example making custom radars possible

2)smooth recoloring(gradient) from one color to another in dxdrawrectangle, it would need 3 args: first color, second color, rotation in that fade will be performed

sounds:

1)getOrginalSounds(some name) - would return some sound dummy element from gtasa dir, and make possible to use it in for example playSound3D, that way would be possible for example to make proper 3d effect of vehicle radios on foot

2)getRadioPosition() & setRadioPosition() would return/set current radio playing time (eg. to skip song), same as set/getSoundPosition, but for radio

Edited by Guest
Posted

Signing for bounding box for dxDraw. You've done it for text already, so I think it will be possible. It gives a lot of possibilities.

Recoloring can be done with client_anim properly tweaked ;)

And for sound, I think it can be useful, but this isn't a priority, cuz you can extract them from original data, but you can't clip images in any way.

blaszak4.png
Posted
Signing for bounding box for dxDraw. You've done it for text already, so I think it will be possible. It gives a lot of possibilities.

Recoloring can be done with client_anim properly tweaked ;)

And for sound, I think it can be useful, but this isn't a priority, cuz you can extract them from original data, but you can't clip images in any way.

radios audio files takes about 1.5gb of data, would be hilarius to put it at some resource.

Posted
i guess all audio problem will be solved with this:

https://wiki.multitheftauto.com/wiki/PreloadMissionAudio and i think there will be radio sounds too since theres 30000 sounds posible and in sp is some stacionary foot radio sounds too

That page is ancient and not necessarily applicable to the current version.

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted
getRadioPosition() & setRadioPosition() would return/set current radio playing time (eg. to skip song), same as set/getSoundPosition, but for radio

well, in San Andreas radios aren't working this way, like in Vice City.

this isn't one stream for each radio

each radios have some songs, and some presenter parts(speaker? dont know proper word). and they are mixed.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

  • 3 weeks later...
  • 11 months later...
Posted

"image rectangle clipping" can be done by using image sections (dxDrawImageSection). Another case if you want not rectangle clipping - round clipping for example.

"recoloring effect". My avanced DX library have many effects like that and it's not hard to script it.

function ( number dxElementID, table newColor, number seconds )

  • 2 months later...
Posted
"image rectangle clipping" can be done by using image sections (dxDrawImageSection). Another case if you want not rectangle clipping - round clipping for example.

"recoloring effect". My avanced DX library have many effects like that and it's not hard to script it.

function ( number dxElementID, table newColor, number seconds )

i meanth gradient by recoloring, currently it would take hell of lag to draw one.

and yes round section would be nice.

Posted

Actually, radio channels are not one file of 30+ minutes of songs & ads. They're divided into each songs and also the ads are divided per advertisement. Each songs have 2 types: With cast & Without cast. It also has 3 alternate versions and 3 parts of each song provided.

this is the actual order of each song:

Beginning of song -------------------- Middle of song ------------------- Ending of song --> Ads / Another song

Cast 1 --------------------------------- |.......... | ---------------------- Cast 1

Just Song ----------------------------- | ..Song.. | ---------------------- Just Song

Cast 2 --------------------------------- |.......... | ---------------------- Cast 2

(3 files)----------------------------------(1 File)--------------------------- (3 Files)

The beginning of song with cast is consisting of a cast speaking and song (lowered volume), then the song gets louder. The beginning of song file ends here.

Then continues to the middle of song with just song. It just use one file. Near the end of song, ends the file.

The end of song is consisting of a cast speaking and song (lowered volume), then the song stops as when the cast stopped speaking. The file ends here.

It's my knowledge according to my modding times when I decompiled a sound file with SAAT (An audio decompiler for GTA SA). The radio files were on ...\Rockstar Games\GTA San Andreas\audio\streams. They're divided according to each radio channel. Those file with 2 letters (AA,CH,CR) is where each radio channel is placed.

So with that, it's pretty much hard to put that kind of radio functions. Sorry karlis. :(

For the ads, they're one file per advertisement.

Warning! It's not guaranteed to be correct. Don't put full trust on me!

XX3 is gone. This is my new name. :3

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...