[Plugin] Audio Plugin

Quote:
Originally Posted by GBLTeam
Посмотреть сообщение
So in new version will be fixed the "libcurl.dll" problem ? Because MTA not working you must delete it to work.. And when you gonna release it
Yes.

Quote:
Originally Posted by Diablosrouge
Посмотреть сообщение
Hello Incognito. Remember the PM i sent you some months ago related to GTA United Multiplayer plugin adaption? Did that bug get confirmed/solved on v.0.5?
No. I only plan to support the official SA-MP client and server. The plugin is open source, though, so you are welcome to try adding support for this third-party adaption yourself.

Quote:
Originally Posted by SPAWN_METAL
Посмотреть сообщение
When you wiil give test 0.5? I want to test release on my server and to know will he crash on it or no
I sent you a PM.

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Here's version for H-RP if anyone see something better just tell us here:
http://h-rp.co/public/files/hrpAudio05.exe

Translated from H-RP:
That will only work if you have the latest server version.
Reply

So freaking nice
Reply

Hi i get some errors

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3c R2, ©2005-2011 SA-MP Team

[23:22:41] 
[23:22:41] Server Plugins
[23:22:41] --------------
[23:22:41]  Loading plugin: streamer
[23:22:41] 

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[23:22:41]   Loaded.
[23:22:41]  Loading plugin: sscanf
[23:22:41] 

[23:22:41]  ===============================

[23:22:41]       sscanf plugin loaded.     

[23:22:41]    © 2009 Alex "Y_Less" Cole

[23:22:41]  ===============================

[23:22:41]   Loaded.
[23:22:41]  Loading plugin: Whirlpool
[23:22:41]  
[23:22:41]  ==================
[23:22:41]  
[23:22:41]   Whirlpool loaded
[23:22:41]  
[23:22:41]  ==================
[23:22:41]  
[23:22:41]   Loaded.
[23:22:41]  Loading plugin: mysql
[23:22:41]  SA:MP MySQL Plugin v2.1.1 Loaded.
[23:22:41]   Loaded.
[23:22:41]  Loading plugin: nativechecker
[23:22:41] [MySQL] Thread running. Threadsafe: Yes.
[23:22:41]   Loaded.
[23:22:41]  Loading plugin: audio
[23:22:41] 

*** Audio Plugin v0.4 by Incognito loaded ***


[23:22:41]   Loaded.
[23:22:41]  Loaded 6 plugins.

[23:22:41] 
[23:22:41] Filter Scripts
[23:22:41] ---------------
[23:22:41]   Loading filter script 'TextDrawMaker.amx'...
[23:22:41] 
--------------------------------------
[23:22:41]  Text Draw Editor 1.0RC2 by Zamaroht for SA-MP 0.3 Loaded.
[23:22:41] --------------------------------------

[23:22:41]   Loading filter script 'SoundScript.amx'...
[23:22:41]    Error: Function not registered: 'Audio_CreateTCPServer'
[23:22:41]    Error: Function not registered: 'Audio_AddPlayer'
[23:22:41]    Error: Function not registered: 'Audio_RemovePlayer'
[23:22:41]    Error: Function not registered: 'Audio_SetPack'
[23:22:41]    Error: Function not registered: 'Audio_CreateSequence'
[23:22:41]    Error: Function not registered: 'Audio_DestroySequence'
[23:22:41]    Error: Function not registered: 'Audio_AddToSequence'
[23:22:41]    Error: Function not registered: 'Audio_RemoveFromSequence'
[23:22:41]    Error: Function not registered: 'Audio_Play'
[23:22:41]    Error: Function not registered: 'Audio_PlaySequence'
[23:22:41]    Error: Function not registered: 'Audio_PlayStreamed'
[23:22:41]    Error: Function not registered: 'Audio_Pause'
[23:22:41]    Error: Function not registered: 'Audio_Resume'
[23:22:41]    Error: Function not registered: 'Audio_Stop'
[23:22:41]    Error: Function not registered: 'Audio_Restart'
[23:22:41]    Error: Function not registered: 'Audio_Seek'
[23:22:41]    Error: Function not registered: 'Audio_SetVolume'
[23:22:41]    Error: Function not registered: 'Audio_Set3DPosition'
[23:22:41]    Error: Function not registered: 'Audio_Set3DOffsets'
[23:22:41]    Error: Function not registered: 'Audio_SetEAX'
[23:22:41]    Error: Function not registered: 'Audio_RemoveEAX'
[23:22:41]    Error: Function not registered: 'Audio_SetFX'
[23:22:41]    Error: Function not registered: 'Audio_RemoveFX'
[23:22:41]    Error: Function not registered: 'Audio_IsClientConnected'
[23:22:41]    Error: Function not registered: 'Audio_TransferPack'
[23:22:41] *** Audio Plugin: Started TCP server on port 2525
[23:22:41]   Loaded 2 filter scripts.

[23:22:41] [MySQL] Connected (0) to 'root'@'localhost via TCP/IP'.
[23:22:41] [MySQL] Server Version 5.5.8.
[23:22:41] Number of vehicle models: 0
[23:22:41] *** Audio_SetPack: Audio pack set to "default_pack" (transferable)
The "Error: Function not registered:" was found by the guy who made "nativechecker". Thanks to him!

And that is why i never got sound ingame i think xD

I did:
Код:
1. Downloaded the plugin
2. Added "audio" in my server.cfg
3. Added "audiopacks" in same folder as "gamemodes, flierscripts.. ect"
4. Added added the "audio.pwn" to the filterscript folder
5. Added "audio.pwn" in my server.cfg
Reply

audio.so

Use that one, not the .dll one, .dll one is for windows.
Reply

Quote:

Use that one, not the .dll one, .dll one is for windows.

YES I KNOW ! i HAVE the .so NOT THE .dll ... Im not idiot or noob -.-
Can someone really HELP me ?
Reply

that sould not be the promblem cause the plugin inits properly
Reply

I have no idea whats its the problem so i ask here.
Reply

Quote:
Originally Posted by Holnista
Посмотреть сообщение
YES I KNOW ! i HAVE the .so NOT THE .dll ... Im not idiot or noob -.-
Can someone really HELP me ?
You got something wrong when it comes reading the audio files (correct folder, update it on the .cfg, etc..), as you are not a ''noob or an idiot'' like you say, find it your self, put effort.
Reply

Facts:
- I have audio client installed
- I have audio plugin installed (wich .so format on Linux)
- I have "plugins audio.so" in server.cfg file
- Plugin is loading correctly
- TCP server is starting automatically on server port (what is 7777)
- audio.ini is correct. Plugin sets audiopacks to "Pack". (audiopacks/Pack/fileshere.ogg)
- On Windows server everything work perfect. Client connect, files send to client from server.
- When player connect to linux server, plugin not send message like "** Audio: Playername (ID) connected".
and show message: "You dont have audio plugin installed."
And this is the problem. But what is the cause ?
Reply

[01:26:59] *** Audio_SetPack: Error opening "audiopacks/default_pack/test.wav" for CRC check
[01:26:59] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.mp3" for CRC check
[01:26:59] *** Audio_SetPack: Error opening "audiopacks/default_pack/track.ogg" for CRC check
[01:26:59] *** Audio_SetPack: Error opening "audiopacks/default_pack/file.wma" for CRC check
[01:26:59] *** Audio_SetPack: Audio pack set to "default_pack" (transferable)
[01:26:59]

dont work for me
Reply

Where I can find empty client plugin SDK, to create my own client (not sever) plugins?
Reply

Here for technobase hardbase and trancebase:
Код:
  if(strcmp(cmdtext, "/technobase",true)==0)
 	{
		Radio[playerid] = Audio_PlayStreamed(playerid, "http://listen.technobase.fm/dsl.pls",false,false,false);
		Audio_SetVolume(playerid, Radio[playerid], 100);
		SendClientMessage(playerid,COLOR_YELLOW,"Connected to Technobase.fm.");
		return 1;
    }
    
   	if(strcmp(cmdtext, "/hardbasebase",true)==0)
 	{
		Radio[playerid] = Audio_PlayStreamed(playerid, "http://listen.hardbase.fm/dsl.pls",false,false,false);
		Audio_SetVolume(playerid, Radio[playerid], 100);
		SendClientMessage(playerid,COLOR_YELLOW,"Connected to Hardbase.fm.");
		return 1;
    }
   	if(strcmp(cmdtext, "/trancebase",true)==0)
 	{
		Radio[playerid] = Audio_PlayStreamed(playerid, "http://listen.trancebase.fm/dsl.pls",false,false,false);
		Audio_SetVolume(playerid, Radio[playerid], 100);
		SendClientMessage(playerid,COLOR_YELLOW,"Connected to Trancebase.fm.");
		return 1;
    }
Reply

I have a huge problem, I'm trying the RadioSystem from sa-mp.com but each time I'm trying the system my game crashes, before that I didn't have the Client for the plugin then I didn't crash, now when I have it my game crashed.

and yes I'm using Windows 7
Reply

Nice, I'm using one :P
Reply

Very Nice
Reply

Quote:
Originally Posted by CracK
View Post
Haha, just yesterday I thought about Pghpunkid's Scriptplayer that "it would be awesome to play .mod, .it, .s3d, and .xm files(ah dreams)" and today I see this plugin!
Great job!
Still missing the xm support, but this plugin is great, just like the streamer plugin
Reply

So what I need to play a music?

I pasted the audiopacks folder on the server folder, and created the audio.ini into default_pack, and pasted on the default_pack folder the sound I want, and put on audio.ini that:

Код:
[default_pack]
1 = [asian+nation] high and mighty color - 12 tokyo nights.mp3
On gamemode:
pawn Код:
}
public OnGameModeInit()
{
    UsePlayerPedAnims();
    DisableInteriorEnterExits();
    SetGameModeText("High definition");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    LoadTexts();
    LoadPickups();
    FileCheck();
    LoadMaps();
    LoadGZ();
    Audio_SetPack("default_pack", true);
    return 1;
}
public Audio_OnClientConnect(playerid)
{
    // Transfer the audio pack when the player connects
    Audio_TransferPack(playerid);
}

public Audio_OnSetPack(audiopack[])
{
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        // Transfer the audio pack to all players when it is set
        Audio_TransferPack(i);
    }
}

public OnPlayerConnect(playerid)
{
    new ip[16];
    GetPlayerIp(playerid,ip,sizeof(ip));
    if(!strcmp(ip, "127.0.0.1", true))
    {
        ip="182.22.102.75";
    }
    AllNull(playerid);
    new announce[250];
    format(announce,sizeof(announce),""#red"| [SERVER]: "#blue"%s (id: %d) "#green"has "#gold"connected "#red"to "#ice"the "#pink"server | "#gold"(%s)",GetMyName(playerid),playerid,ip);
    MsgForAll(color,announce);
    GangZoneShowForPlayer(playerid, GangZones[0], 0x00DF0096);
    Audio_Play(playerid, 1, false, false, false);
    return 1;
}
It's not playing the audio. What's wrong?

How should that be? thanks,
Reply

it transfers to you when you connect, i dont think it would transfer that fast, try onplayerspawn and do some debugging, like OnAudioPlay or w/e callback is that
Reply

I have a problem, i did everything and now SAMP Server.exe tells me everything is good but
*** Audio_SetPack: Error opening audio.ini
Reply

Yeah and I got so lagged with this, Idk why. Geez it's good a week ago.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)