Garry's Mod

Garry's Mod

MIDI Player
37 条留言
Jcw87  [作者] 2023 年 3 月 24 日 下午 1:36 
nil 2023 年 3 月 23 日 上午 1:31 
github?
Jcw87  [作者] 2021 年 5 月 21 日 下午 9:41 
Technically, it does, but if the server didn't install it, you have to jump through a few hoops.


1. The server needs to enable sv_allowcslua.
2. Even with client-side Lua allowed, autorun scripts are not executed. You will have to run the loader yourself with lua_openscript_cl.
3. Due to bugs that existed in gmod's built-in VGUI controls at the time, I had to bundle my own versions of those controls with the bugs fixed. These files are normally executed by gmod automatically, except of course when you are trying to run client-side code that the server did not send you. You need to run these files too.
4. The spawnmenu initializes itself before you have a chance to enter anything into your console, so you will have to issue a spawnmenu_reload command.
GamePlayer9678 2021 年 5 月 17 日 上午 9:23 
So the MIDI player doesn't work in multiplayer servers apparently
GamePlayer9678 2021 年 5 月 16 日 上午 10:35 
i found out the problem don't worry about it
GamePlayer9678 2021 年 5 月 16 日 上午 10:26 
[MIDI Player] lua/midiplayer/player.lua:84: attempt to index global 'stream' (a nil value)
1. LoadMidiFromFile - lua/midiplayer/player.lua:84
2. OnDoubleClick - lua/midiplayer/ui.lua:72
3. DoDoubleClick - lua/vgui/dfilebrowser_midi.lua:183
4. OnClickLine - lua/vgui/dlistview.lua:410
5. unknown - lua/vgui/dlistview_line.lua:81
A little help please?
Strix Spookluddz 2020 年 4 月 27 日 上午 11:50 
nice >:]
Souper 2020 年 4 月 5 日 下午 8:34 
Feel free to make the HTML5 implementation, since Chromium's soon replacing Awesomium (if it hasn't already done so).
VMan_2002 2019 年 8 月 13 日 下午 10:53 
GMod can use Chromium. Right click in library -> Properties -> Click Betas tab -> Choose "chromium -" from the drop-down box. Please make a version using chromium
fggfhfgdhjgdsf 2019 年 6 月 24 日 上午 8:32 
who's been drawing dicks
Beelzebub 2018 年 12 月 27 日 上午 3:12 
Thank you I got it working now :)
Jcw87  [作者] 2018 年 12 月 26 日 下午 7:03 
@Nate 'midiplayer\stream.lua' is absolutely included in the addon, so your download must be corrupted in some way. Make sure you delete the workshop file from your addons folder, as well as from steam's workshop downloads.

For this specific addon, that would be in 'steamapps\workshop\content\4000\935799359'
Beelzebub 2018 年 12 月 18 日 上午 5:58 
Whenever I try to use the midi player nothing happens and I get this lua error in the console

[MIDI Player] lua/midiplayer/soundfont.lua:310: attempt to index global 'stream' (a nil value)
1. LoadSF - lua/midiplayer/soundfont.lua:310
2. LoadMidi - lua/midiplayer/player.lua:71
3. onsuccess - lua/midiplayer/player.lua:98
4. unknown - lua/includes/modules/http.lua:29

also this

Couldn't include file 'midiplayer\stream.lua' (File not found) (@lua/autorun/midiplay_loader.lua (line 1))

[MIDI Player] lua/midiplayer/player.lua:84: attempt to index global 'stream' (a nil value)
1. LoadMidiFromFile - lua/midiplayer/player.lua:84
2. OnDoubleClick - lua/midiplayer/ui.lua:72
3. DoDoubleClick - lua/vgui/dfilebrowser_midi.lua:183
4. OnClickLine - lua/vgui/dlistview.lua:410
5. unknown - lua/vgui/dlistview_line.lua:81

What do?

I have tried reinstalling.
chomik ******* 2018 年 11 月 4 日 上午 1:18 
idi
Jcw87  [作者] 2018 年 11 月 3 日 下午 1:05 
@linux_canadajeff Your download must be corrupted in some way, as that file definitely exists. Try to get steam to download it again. You may have to delete it from both GarrysMod\garrysmod\addons and steamapps\workshop\content\4000\935799359
1986Hz 2018 年 11 月 2 日 上午 3:20 
Couldn't include file 'midiplayer\stream.lua' (File not found) (@lua/autorun/midiplay_loader.lua (line 1))
chomik ******* 2018 年 10 月 27 日 上午 1:44 
ohh 🅱️lyat ;c
chomik ******* 2018 年 10 月 27 日 上午 1:44 
Umm... I know.. I just it for someone that don't knows it... I know it Midi Player...
Jcw87  [作者] 2018 年 10 月 26 日 下午 9:32 
@Doge_Avaken Ok, there's a few thing wrong with what you just said. Why would you think I don't know about the chromium development branch when I literally just told you about it? Did you not get the hint earlier that this addon has nothing to do with internet video playback, thus your question about working with youtube is completely nonsensical? It's not a video player just because it has "Player" in the title. The addon plays MIDI files using the sound playback options available to Lua and has nothing to do with the internet or internet browsers. The current available version of the addon works just fine on either branch, and is not the yet-to-be-released HTML5 version I mention in the description.
chomik ******* 2018 年 10 月 26 日 上午 4:11 
Jcw87, if you want to your mod work, you need to download the beta version of Gmod.

Library > Garry's Mod > Abilities (or how its on england) > Versions > Chromium - now, ignore the code and click "Check the Code" and you now have the Chromium version, that equals you now have WORKING media players.
chomik ******* 2018 年 10 月 26 日 上午 4:09 
Yeah i know, I now using Chromium version of Garry's Mod, now it working.
Jcw87  [作者] 2018 年 10 月 25 日 下午 7:01 
It's not that gmod is "blocking HTML5". It uses a REALLY old chromium browser that just doesn't support many HTML5 features. It did support flash, but my understanding is that youtube stopped supporting flash somewhat recently, thereby leaving addons such as Cinema with no recourse for video playback. There is a development version with a newer chromium, but some video formats don't work with it due to patent bullshit.
chomik ******* 2018 年 10 月 25 日 上午 5:01 
It's so sad they Garry's Mod blocking HTML5 now :C


chomik ******* 2018 年 10 月 25 日 上午 5:01 
penis :C
Jcw87  [作者] 2018 年 10 月 25 日 上午 1:54 
@Doge_Avaken Youtube serves up videos in streaming formats that have the full information of the visuals and sounds and will look and sound the same no matter where you play them, where as MIDI is more like sheet music that must be played by a musician, and can sound different depending on who is performing it. So, I'm gonna say that it doesn't work with Youtube.
chomik ******* 2018 年 10 月 24 日 下午 12:38 
do it works with utube
Alarm 2018 年 8 月 29 日 上午 3:20 
ТРК ЗИМНЯЯ ВИШНЯ НЕ ГОРИТ
MEESTER SoupCan 2018 年 8 月 7 日 上午 5:22 
hmm.. okay.
Jcw87  [作者] 2018 年 8 月 6 日 下午 9:32 
I assume the playable piano is some other addon? One of the goals of this addon was to make it easy for other addon developers to control midi playback and receive note events. I don't actually remember if I added support for hooking note events or not, but in any case, you should be asking the author of the piano addon to make use of the midi player.
MEESTER SoupCan 2018 年 8 月 5 日 下午 12:59 
Do you think you could add the ability to play these songs on the Playable Piano and it's counterparts?
Jcw87  [作者] 2018 年 2 月 23 日 下午 6:12 
It actually already supports soundfonts, but it takes a bit of effort to prepare it. I've updated the addon description with instructions on how to do it. Just be aware that Source has some really dumb limitations on how it can play sounds, and many soundfonts will sound horrible as a result.
a cow that likes cookies 2018 年 2 月 20 日 上午 8:22 
do you think you'll be able to add soundfont support in the future?
cactuschips 2018 年 1 月 7 日 下午 3:55 
ok.
Jcw87  [作者] 2018 年 1 月 7 日 下午 3:44 
Yes. Addons cannot read files outside of the garrysmod folder.
cactuschips 2018 年 1 月 7 日 下午 2:53 
Do they have to be in the garrysmod folder?
Jcw87  [作者] 2017 年 6 月 11 日 下午 8:19 
I'm well aware of that development. It is because of that development that I created an HTML5 MIDI player. As mentioned in the known issues section about volume, this HTML5 version works much better. However, that is on the dev branch only right now. Until CEF is on the main branch, it won't be in this addon. It sounds absolutely awful in Awesomium, and I don't want to subject anyone to that.
2017 年 6 月 11 日 下午 2:46 
@Jcw87 Well, well, well, say hello to CEF! I am sure you have read about it.. Or not? :)
Either way, CEF is now available in GMod:

http://gmod.facepunch.com/commits/2017/April/
https://facepunch.com/showthread.php?t=1560743&p=52116156&viewfull=1#post52116156

How about to improve MIDI Player?