Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[New G2O][Client-Side] Music Module
#1
[Image: logo_bass.gif]

How to load module:

Add to config
Code:
<module src="music.dll" type="client" />

Functions:
userpointer handler = BASS_StreamCreateFile(string file, int start, int end);
userpointer handler = BASS_StreamCreateURL(string url);
bool BASS_StreamFree(userpointer handler);
int BASS_GetVolume(userpointer handler);
bool BASS_SetVolume(userpointer handler, int volume [0 - 100]);
bool BASS_ChannelStop(userpointer handler);
bool BASS_ChannelPlay(userpointer handler, bool restart);
bool BASS_ChannelPause(userpointer handler);
string BASS_ChannelGetTags(userpointer handler, int tags);

Consts:
BASS_TAG_ID3 0 // ID3v1 tags : TAG_ID3 structure
BASS_TAG_ID3V2 1 // ID3v2 tags : variable length block
BASS_TAG_OGG 2 // OGG comments : series of null-terminated UTF-8 strings
BASS_TAG_HTTP 3 // HTTP headers : series of null-terminated ANSI strings
BASS_TAG_ICY 4 // ICY headers : series of null-terminated ANSI strings
BASS_TAG_META 5 // ICY metadata : ANSI string
BASS_TAG_APE 6 // APE tags : series of null-terminated UTF-8 strings
BASS_TAG_MP4 7 // MP4/iTunes metadata : series of null-terminated UTF-8 strings
BASS_TAG_VENDOR 9 // OGG encoder : UTF-8 string
BASS_TAG_LYRICS3 10 // Lyric3v2 tag : ASCII string
BASS_TAG_CA_CODEC 11 // CoreAudio codec info : TAG_CA_CODEC structure
BASS_TAG_MF 13 // Media Foundation tags : series of null-terminated UTF-8 strings
BASS_TAG_WAVEFORMAT 14 // WAVE format : WAVEFORMATEEX structure
BASS_TAG_RIFF_INFO 0x100 // RIFF "INFO" tags : series of null-terminated ANSI strings
BASS_TAG_RIFF_BEXT 0x101 // RIFF/BWF "bext" tags : TAG_BEXT structure
BASS_TAG_RIFF_CART 0x102 // RIFF/BWF "cart" tags : TAG_CART structure
BASS_TAG_RIFF_DISP 0x103 // RIFF "DISP" text tag : ANSI string
BASS_TAG_APE_BINARY 0x1000 // + index #, binary APE tag : TAG_APE_BINARY structure
BASS_TAG_MUSIC_NAME 0x10000 // MOD music name : ANSI string
BASS_TAG_MUSIC_MESSAGE 0x10001 // MOD message : ANSI string
BASS_TAG_MUSIC_ORDERS 0x10002 // MOD order list : BYTE array of pattern numbers
BASS_TAG_MUSIC_INST 0x10100 // + instrument #, MOD instrument name : ANSI string
BASS_TAG_MUSIC_SAMPLE 0x10300 // + sample #, MOD sample name : ANSI string

1.0 Download:
Binares: https://bitbucket.org/Nubzior/music-modu...downloads/
Source code: https://bitbucket.org/Nubzior/music-module-for-g2o/src/
Reply
#2
How to fix it?


Attached Files Thumbnail(s)
   
Discord: I'm not a spy...#9943.
GG: 60474243.

[Image: OsmithREV.gif]
[Image: 76561198181768479.png]
Reply
#3
1.Move module (music.dll) to main server directory
2.Change src attribute in <module> tag to load module from main server directory
3.Go to your game directory, then go to: Multiplayer/Modules
4.If you don't have a "Modules" folder, create it
5.Paste your module there.

Your module path in <module /> tag(s) must be exacly the same, as localization in your game directory.
For example, your path in <module /> tag looks like this: gamemodes/prototype/modules/music.dll.
You can solve this problem, by simply creating folders: gamemodes/prototype/modules in Your_Directory_Game/Multiplayer/Modules
(It will look like this: Your_Directory_Game/Multiplayer/Modules/gamemodes/prototype/modules)
But this doesn't have any sense, as you can see, so i advise you to simply put module(s) in the main server directory.
Reply
#4
There is little bug in Linux server binary that's cause client modules doesnt work. I can give you fixed server binary if you want.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [New G2O][Client-Side] GUI Patrix 1 3,344 02.01.2021, 05:22
Last Post: Patrix
  [G2O] SpeedBlock Marbar 16 11,057 13.10.2020, 15:32
Last Post: Sative
  [New G2O][Client-Side] LocalStorage Patrix 0 2,424 08.05.2020, 16:38
Last Post: Patrix
  [New G2O] Module example Patrix 4 7,685 17.05.2019, 01:30
Last Post: Patrix
  G2O - Client Side Bots(0.0.4) KimiorV 16 17,010 16.01.2017, 10:47
Last Post: KimiorV
  [DEV] G2O Bot module Sative 64 59,211 25.11.2016, 20:13
Last Post: HammelGammel
  G2O Client side bots KimiorV 4 5,903 09.06.2016, 20:11
Last Post: KimiorV

Forum Jump:


Users browsing this thread: 1 Guest(s)