![]() |
[New G2O][Client-Side] Music Module - Printable Version +- Gothic Online Forums (https://archive.gothic-online.com) +-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html) +--- Forum: Resources (https://archive.gothic-online.com/forum-14.html) +---- Forum: Modules (https://archive.gothic-online.com/forum-32.html) +---- Thread: [New G2O][Client-Side] Music Module (/thread-2458.html) |
[New G2O][Client-Side] Music Module - Nubzior - 15.04.2018 ![]() 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-module-for-g2o/downloads/ Source code: https://bitbucket.org/Nubzior/music-module-for-g2o/src/ RE: [New G2O][Client-Side] Music Module - Osmith - 23.05.2018 How to fix it? RE: [New G2O][Client-Side] Music Module - Patrix - 24.05.2018 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. RE: [New G2O][Client-Side] Music Module - Nubzior - 24.05.2018 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. |