Jump to content
Sign in to follow this  
HulkingUnicorn

Music player - HULK_OggPlayer

Recommended Posts

Version 0.85 is out - the player should now also be added to units starting inside a vehicle (see the main post for the link, as usual).

As for the extra actions, removing them efficiently and not interfering with script may be tricky. One solution may be to ditch the action menu entirely and use keypresses instead.

Share this post


Link to post
Share on other sites

THis looks promising...though ive tried to get my own music in there...but seems to be difficult...though im not a computer genius;P...anyway posibly if anybody has the time to thougholy explain how to do this...and how to convert music to ogg?... Mucho Thanks:)

Share this post


Link to post
Share on other sites

Dude, this is freakin excellent work!

Only problem is the size, I cannot get it hooked up to my blackhawks instrument panel... huh.gif

wink_o.gif

No seriously awesome job! Good for the pilots! biggrin_o.gif

Share this post


Link to post
Share on other sites

CodyLang, sent PM.

manhunter09, what exactly are you trying to do? Integrating the player in the cockpit on your BH addon?

Edit: Seems my infantry action has a respawn related problem - atleast using instant respawn, the action seems to go away.

Share this post


Link to post
Share on other sites
rofl.gif This is one of the most ROCKing addons yet to ArmA fun to listen a music while in game.

Share this post


Link to post
Share on other sites

It kills me to say this, and I hope I'm just missing the obvious, but it doesn't seem to run with XAM.

Share this post


Link to post
Share on other sites

Version 0.9 can now be found in main post. This time:

- Added volume slider

- Added a small loop which readds the player action on respawn

- Tweaked action system (Actions now only added to the player unit and vehicles - should get rid of multiple actions when looking at other soldiers)

- Added player to static weapons and parachuting soldiers

Let's hope I didn't forget anything else...

Uzii, you may be correct about the incompatibilities with the XAM mod. If you are familiar with config work, you could probably change the config there so that it uses the extended init as well (for the ones using 6th sense stuff, I heard an extended init-powered version may be right around the corner).

Share this post


Link to post
Share on other sites

I'm not too familiar with the Config, but I'll have a poke around.

Edit: Could you tell me what file I need to play around with, and what to add? I've unPBO'ed one of the file in XAM and found the config.CCP file, but I'm not sure what to add.

Share this post


Link to post
Share on other sites

is there any Arma ogg converters so i can put some of myown music into your player?

Share this post


Link to post
Share on other sites

Hoot1988, downoad Audacity. You can open more or less every sound format with it. Just click export to ogg when you've opened a file wink_o.gif

Uzii, the config.cpp is the most likely hiding place. Look for any init eventHandlers class in cfgVehicles (if it's not there, look for any #include "filename", and check those files too).

Try changing them into extended init eventhandlers instead (see Solus's example files or my own config.cpp). Good luck!

Share this post


Link to post
Share on other sites

Roger that, I had a play around, but to no avail. Now I know what to change, I'll have another bash tomorrow. If I get any success, you'll be the first to know. wink_o.gif

Share this post


Link to post
Share on other sites

Yeah Uzii I'm trying to get this working with XAM too haha!

Tell us if you get anywhere with it, I want this working so bad!

Share this post


Link to post
Share on other sites

Could someone please give me baby-step instructions and/or downloadable examples on how in the heck you're supposed to get your own music into the player?

I have now, unfruitfully, tried the following:

Make my own folder (names MyMusic) and my own config.cpp (copied the contents directly from this thread). Changed the config.cpp paths etc (including the cfgPatch) to match. Imported my OGG Vorbis songs (in this case 10 Rage Against the Machine songs). This should all be up to scratch.

Yet, no new songs. Nothing. Still the old ArmA ones, they work fine, but I can't get the new songs in. As in: the Oggplayer works FINE with standard music. Problem is new. I have tried to:

1) Put the config.cpp file in the MyMusic folder.

2) Have the config.cpp file OUTSIDE MyMusic folder

3) Have the MyMusic folder (with and without config.cpp inside) right inside the @HULK_OggPlayer folder (next to the Addons folder) [@HULK_OggPlayer/MyMusic/]

4) Have the MyMusic folder (with and without config.cpp inside) inside the Addons folder of the @Hulk_OggPlayer [@HULK_OggPlayer/Addons/MyMusic/]

Also, I've taken a "real" config.cpp file and replaced its contents with my own custom config.cpp, so there shouldn't even be any problems with any possible file-formats and the like. Used Notepad to do the edits.

Here's my config.cpp. The filenames match:

Quote[/b] ]class CfgPatches

{

class MyMusic

{

units[] = {};

weapons[] = {};

requiredVersion = 1.08;

requiredAddons[] = {};

};

};

class CfgMusic

{

class BombTrack

{

name = "01 RATM - Bombtrack";

sound[] = {"\MyMusic\01_Bombtrack.ogg",1,1 };

};

class KillingInTheName

{

name = "02 RATM - Killing In The Name Of";

sound[] = {"\MyMusic\02_Killing_in_the_Name.ogg",1,1 };

};

class TakeThePowerBack

{

name = "03 RATM - Take The Power Back";

sound[] = {"\MyMusic\03_Take_the_Power_Back.ogg",1,1 };

};

class SettleforNothing

{

name = "04 RATM - Settle For Nothing";

sound[] = {"\MyMusic\04_Settle_For_Nothing.ogg",1,1 };

};

class BulletInTheHead

{

name = "05 RATM - Bullet In The Head";

sound[] = {"\MyMusic\05_Bullet_In_The_Head.ogg",1,1 };

};

class KnowYourEnemy

{

name = "06 RATM - Know Your Enemy";

sound[] = {"\MyMusic\06_Know_Your_Enemy.ogg",1,1 };

};

class WakeUp

{

name = "07 RATM - Wake Up";

sound[] = {"\MyMusic\07_Wake_Up.ogg",1,1 };

};

class FistFulOfSteel

{

name = "08 RATM - Fistful of Steel";

sound[] = {"\MyMusic\08_Fistful_of_Steel.ogg",1,1 };

};

class TownshipRebellion

{

name = "09 RATM - Township Rebellion";

sound[] = {"\MyMusic\09_Township_Rebellion.ogg",1,1 };

};

class SettleforNothing

{

name = "10 RATM - Freedom";

sound[] = {"\MyMusic\10_Freedom.ogg",1,1 };

};

};

Also, whenever I've moved the folder/config.cpp around, I've naturally restarted ArmA. So. What in the good gracious name of LORD am I doing wrong? Hell - I even had Audacity re-export one of the .ogg files to .ogg again just to see if that somehow was the problem. crazy_o.gif

I am stumped, good fellows. Aid me? I desire to listen to Rage Against the Machine whilst shooting wildly around me.

Kind regards,

Wolfrug

Share this post


Link to post
Share on other sites
Dude, this is freakin excellent work!

Only problem is the size, I cannot get it hooked up to my blackhawks instrument panel... huh.gif

wink_o.gif

No seriously awesome job! Good for the pilots! biggrin_o.gif

Yes its really nice!

is it possible to be movable? And what about resized if player want?

Great Job.

Share this post


Link to post
Share on other sites

@Wolfrug

I had exactly the same problem. Did everything I could, then as a final attempt I PBO'ed the folder so it packed up as another Addon. Bingo, it worked. Search google or somewhere similar for a pbo packer and unpacker, then use it to pack up the music folder with the .CPP inside so it is just like any other Addon. Place it in the OGG players addon folder and hey presto, it should work.

Share this post


Link to post
Share on other sites

Wolfrug, your config seems to be all ok. So there are two possible problems that I can see:

- The config.cpp is really called config.cpp.txt (check if windows hides common extensions)

- The folder isn't turned into a pbo file

If it's the second (sounds like the most probable, as you didn't mention pbo'ing), download kegetys cpbo, if you don't have it already. Have it associate with pbo files, and right click the MyMusic folder - then select 'create pbo'. Put the resulting MyMusic.pbo in either the main arma addons folder or in @HULK_OggPlayer\Addons (recommended).

bravo 6, making it movable is just a matter of adding a single line in the hpp file - not sure if there is much point considering the size of it though (but I can add it for the next version).

As for resizing, I don't know about a simple technique - as far as I know, you'd have to scale the picture down first and realign the controls (or recreate the gui completely).

Share this post


Link to post
Share on other sites

That was it biggrin_o.gif Thanks! Problem solved! Excellent, and very rocking addon indeed!

Regards,

Wolfrug

Share this post


Link to post
Share on other sites

Hi,

i just finished my replacement pack for the musicplayer.

it´s an iPod nano !!

iPod1.gif

features:

- fully moveable per drag & drop

- 100% clear screen

- works like the original addon, but with a new design

i removed the easteregg from the original version, as i didnt know how to put it up in my replacement. hope this is not a big issue wink_o.gif

installation:

- get the packed file

--readme included

- depbo the original addon

- make a backup of following file(s): HULK_OggPlayer.hpp

- copy the two files from my pack into the depboed folder (iPod231.paa & the modified HULK_OggPlayer.hpp)

- pbo the folder back

- have an iPod in ArmA

known issues:

- iPod image ingame looks a bit stretched maybe (maybe change maybe not, tired of trial & error)

- the real iPod has a "click wheel" for the volume thingy biggrin_o.gif

pls report bugs, ideas etc. in this thread.

regards

rocko

Armaholic mirror

armedassault.info mirror

Share this post


Link to post
Share on other sites

I have noticed some stuff with the iPod skin:

1. It has no stop button.

2. It is poorly cut out so you see white edges.

Apart from that it is great wink_o.gif

Share this post


Link to post
Share on other sites

@Flat!!!

hey thanks for reporting

to 1. : the stop button is next to the play button, err the small white square ...maybe the hidden button is to small. i will look for it. but works for me as i click the square directly.

to 2. : hum...it´s GIMPS fault biggrin_o.gif

i ll check it

regards

rocko

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×