New Ambient Version MimeTypes!!!
  • Paladin of the Pegasos
    Paladin of the Pegasos
    ThePlayer
    Posts: 1069 from 2003/3/24
    From: Hamburg/Germany
    There is a new Ambient Compile available, you can find the links to the compiles in the MorphOS Thread
    Now you can edit the Mimetypes to your gusto. And the Listers are now more usable.

    @ Gunne: Which functions are Rave3D accelerated?
    PowerMac G5 Quad 2.5 running UWQHD Resolution
  • »11.01.06 - 13:18
    Profile
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    A couple of hints:

    You can make ShowGirls resident in memory using the resident-commands FORCE-switch. I haven't noticed any special instability so it's a worth trying for people who watch xxx-pictures daily. This way the pictures load instant as SG is already in the memory.

    Second, if you want to play MP3's or OGG's from Ambient using SongPlayer, you have to do it by a small Arexx-script. There is no commandline option to add songs to playlist I'm afraid.
    Instead of AMIGADOS command in filetype, use AREXX to execute the script. I am not at home now but will post the script later today.

    Third, submenus are handy for unarchiving. You DID know that you can put several options which show up when you press right-mousebutton over the file? :-) For example "Extract here..." "Extract to ram: ... "Ask where to extract..." etc.



    Please share opinions and filetypes here. I ditched Magellan already .. and the possibilities are endless with the filetypes!
    www.mikseri.net/hooligan <- Free music
  • »11.01.06 - 13:52
    Profile Visit Website
  • Moderator
    gunne
    Posts: 441 from 2003/2/25
    From: Sweden
    ThePlayer,

    Im not absolutely sure which functions is Rave3D accelerated, if any ? I just made som different compilations using different flags.

    But will try to find out, or you can try to find out perhaps :-)

    Anyway, progressing in Ambient have been very nice recently, haven't it ? Just understand it is work in progress also.

    As Hooligan writes also, filetypes is very useful.

    Gunne
    Best wishes, Gunne
  • »11.01.06 - 14:14
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Robin
    Posts: 741 from 2003/2/24
    Is there a way to add a certain menu entry for all files ?
    (I'm using whatis.library to perform certain tasks
    depending on filetypes already ...)
  • »11.01.06 - 14:21
    Profile Visit Website
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    as promised, here they come:

    filetype, which goes to MOSSYS:Ambient/filetypes as "MP3_OGG"

    AMTD
    1
    Name Archive
    Type archive/mp3
    Match
    Name #?.mp3
    OR
    Name #?.ogg
    End
    Action
    Event DoubleClick
    Command AREXX sys:rexxc/songplayer.rexx %sp
    End
    End



    and this is the Arexx script which goes to SYS:rexxc/ as "Songplayer.rexx"

    /* */

    options results
    parse arg mp3

    P = ' ' || ADDRESS() || ' ' || SHOW('P',,)
    IF POS(' SONGPLAYER.1', P) = 0 then do
    address command
    'run work:sfxtools/songplayer/songplayer gui'
    'WaitForPort SONGPLAYER.1'
    end
    address SONGPLAYER.1

    add mp3
    next
    play
    exit

    Both files also as an attachment. Happy listening!

     Attached file(s) 
    www.mikseri.net/hooligan <- Free music
  • »11.01.06 - 14:51
    Profile Visit Website
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    *BUMP*


    Come on guys.. share some cool filetypes.. I'll keep on keeping this on frontpage no matter what :lol:
    www.mikseri.net/hooligan <- Free music
  • »13.01.06 - 10:24
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Stevo
    Posts: 896 from 2004/1/24
    From: #AmigaZeux
    Okay, here's one for three kinds of cheese:

    filetype, which goes to MOSSYS:Ambient/filetypes as "CHEESE"

    AMTD
    1
    Name Archive
    Type archive/cheese
    Match
    Name #?.gouda
    OR
    Name #?.cheddar
    OR
    Name #?.edam
    End
    Action
    Event DoubleClick
    Command SLICE %sp
    End
    End

    ;-)
    ---
    http://www.iki.fi/sintonen/logs/its_only_football.txt
  • »13.01.06 - 10:50
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    catohagen
    Posts: 297 from 2003/5/20
    when you have to reboot to make changes available, its
    abit boring playing around with the possibilities
  • »14.01.06 - 12:46
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    klesterjr
    Posts: 196 from 2005/4/1
    @gunne

    I'd like to give Ambient another go -- are your compliles publically available?
  • »14.01.06 - 14:55
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Framiga
    Posts: 363 from 2003/7/11
    From: Milan-Italy
    already tired about Scalos "little glitches"? :-)

    I have both Ambient and Scalos installed on 2 different boot partitions and,although Scalos offers an AmigaOS-like enviroment, Ambient is faster :-( (on Classic)

    Beeing on Scalos since a while, i "can't" switch back on Ambient for obvious reasons. (the speed gain given by Ambient, isn't enough to compensate the higher Scalos functions)

    ah . . . on MOS-PuP of course!
  • »14.01.06 - 16:17
    Profile
  • Moderator
    guruman
    Posts: 461 from 2003/7/21
    Hooligan: here we go!

    CPP_Doc
    AMTD
    1
    Name CPP Document
    Type text/cpp
    Match
    Name #?.cpp
    OR
    Name #?.cc
    OR
    Name #?.c
    OR
    Name #?.h
    End
    Action
    Name Edit with MorphEd
    Event DoubleClick
    Command Workbench SDK:morphed/morphed %sp
    End
    End


    HTM_Doc
    AMTD
    1
    Name HTML Document
    Type text/html
    Match
    Name #?.html
    OR
    Name #?.htm
    End
    Action
    Name Open with V
    Event DoubleClick
    Command AMIGADOS run >NIL: MorphOS:Apps/Voyager/V %sp
    End
    Action
    Name Open with AWeb
    Event Menu
    Command AMIGADOS run >NIL: Work:Internet/AWeb_MorphOS/AWeb local %sp
    End
    Action
    Name Read HTML Source
    Event Menu
    Command Workbench SDK:morphed/morphed %sp
    End
    End


    MP3_Sound (requires the famous ARexx script in S:, and all the players
    linked on the ANR home page at #AmigaZeux)
    AMTD
    1
    Name MP3 Audio Stream
    Type audio/mp3
    Match
    Name #?.mp3
    OR
    Name #?.mp2
    OR
    Name #?.mod
    OR
    Name #?.mid
    OR
    Name #?.ogg
    OR
    Name #?.xm
    OR
    Name #?.s3m
    OR
    Name #?.ym
    OR
    Name #?.gym
    OR
    Name #?.sc68
    OR
    Name #?.spc
    OR
    Name #?.nsf
    OR
    Name #?.gbs
    OR
    Name #?.hes
    OR
    Name fc13.#?
    End
    Action
    Name Play with AmiNetRadio
    Event DoubleClick
    Command AMIGADOS rx Sys:S/ANR.rexx url %sp
    End

    End


    PDF_Doc
    AMTD
    1
    Name PDF Document
    Type text/pdf
    Match
    Name #?.pdf
    End
    Action
    Name Show PDF
    Event DoubleClick
    Command Workbench sys:Apps/Apdf/apdf %sp
    End
    End


    LHA_Archive
    AMTD
    1
    Name LHA Archive
    Type archive/lha
    Match
    Name #?.lha
    End
    Action
    Event DragNDrop
    Command AMIGADOS lha x %sp %D
    Command INTERNAL LoadURI %D
    Flag cd destination
    End
    Action
    Name Extract to...
    Event DoubleClick
    Command AMIGADOS lha x %sp
    Command INTERNAL LoadURI %D
    Flag cd destination
    End
    Action
    Name List archive contents
    Event Menu
    Command AMIGADOS lha l %sp
    End
    Action
    Name Extract to Ram Disk
    Event Menu
    Command AMIGADOS lha x %sp ram:
    Command INTERNAL LoadURI ram:
    End
    End


    ZIP_Archive and LZX_Archive are more or less the same. In BZ2_Archive
    and TAR_Archive I implemented only the double click.
    In AVI_Video_Stream I put the option -ao ahi_dev , so I can launch
    multiple instances of MPlayer (one at a time in overlay) and hear all
    the audio streams.
    Obviuosly you might need to change the paths.

    @Framiga: I guess you're not referring to a recent Ambient compile,
    right?

    Kind regards,
    Andrea
  • »15.01.06 - 15:16
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    ThePlayer
    Posts: 1069 from 2003/3/24
    From: Hamburg/Germany
    Has someone a working Mimetype for RAR-Archives?
    I tryed it with Unrar and the following script but i had no success.

    AMTD
    1
    Name RAR Archive
    Type archive/lha
    Match
    Name #?.rar
    End
    Action
    Event DragNDrop
    Command AMIGADOS run >nil: unrar x %sp %D
    Command INTERNAL LoadURI %D
    Flag cd destination
    End
    Action
    Event DoubleClick
    Command AMIGADOS run >nil: unrar x %sp
    Command INTERNAL LoadURI %D
    Flag cd destination
    End
    End
    PowerMac G5 Quad 2.5 running UWQHD Resolution
  • »15.01.06 - 15:31
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Sprocki
    Posts: 128 from 2005/2/23
    From: Berlin - Germany
    Have a look at the options you have to enter for unrar. There exist different unrar packages. Mine uses an 'e' for extraction, so maybe yours too and you have to replace your 'x' with it.
  • »15.01.06 - 16:25
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    GK_LKA
    Posts: 481 from 2004/3/28
    From: Hungary
    Could you tell me where is this build of Ambient? I didn't find it in the linked thread, even on the offical home page (http://morphosambient.sourceforge.net/).

    EDIT: Sorry, I've found it :)

    [ Edited by GK_LKA on 2006/1/15 19:42 ]
    [ GK / LKA Team ]
  • »15.01.06 - 17:40
    Profile Visit Website
  • Moderator
    gunne
    Posts: 441 from 2003/2/25
    From: Sweden
    Hi,

    Nice scripts :-)

    I made a slightly change to ANR.rexx script, so it waits for the port, and not shows the error message if ANR not already started.

    See the other threads about filetypes.

    Gunne
    Best wishes, Gunne
  • »15.01.06 - 18:03
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    klesterjr
    Posts: 196 from 2005/4/1
    The only reason I tried Ambient again was to try out the mimetype support -- but two quick crashes scared me away (got crashes when choosing "about" and when trying to "put away" a shortcut on the desktop).

    Anyway -- since I had gone to all the trouble to do a new install of MOS, I went ahead and installed the most recent version from the "official" site. That version didn't crash at those two places -- so I stuck with it.

    I also ignored the things that I don't like about Ambient and ended up having a lot of fun with it! It really IS very stable and whereas I'd like better (or different) icon handling, it gets the job done.

    When I first tried out MOS last year -- I never got past desktop configuration stuff before I gave up in frustration. THIS time, I ignored all that and just started messing around with software!

    After I got internet access working & the internet apps installed, the first thing I wanted to try was MPlayer. Amazingly, it just WORKS! Stuck an encrypted Harry Potter DVD in and it worked flawlessly. I was blown away.

    I also tried Showgirls -- but didn't have much luck -- main screen was a hugh black box, and it couldn't display glow icons correctly (just black dots) so maybe I'm missing a icon dataype or something. I've heard great things about Showgirls, so I won't give up on it!

    I wish I had more time today, because I'd also like to try out 3D support, that F1 driving game, Quake, Scumm, and a few other things I can't think of right now.

    I put the desktop PC in my daughter's room, and put the Peg in it's place (it now has the LCD display!) -- so it'll be a LOT easier to play around with now.

    Now I can't wait for the "official" Ambient build to support mimetypes!

    Nice work, guys! :-)

    P.S. I also spent a few of hours on the "look" too! -- still the only "Ken's Icons" MOS box around! ;)
  • »15.01.06 - 18:21
    Profile
  • mk
  • Butterfly
    Butterfly
    mk
    Posts: 72 from 2004/5/24
    From: Germany Gera
    MimeTypes

    AMTD
    1
    Name Text File
    Type txt
    Match
    Match sAMTD
    END
    Action
    Name Edit whit Golded
    Event DoubleClick
    Command WORKBENCH Golded:Golded %sp
    End
    End
  • »15.01.06 - 18:32
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Robin
    Posts: 741 from 2003/2/24
    Ok, today I've put some time into Mimetypes,too :-)

    AMTD
    1
    Name HollywoodScript
    Type text/hwscript
    Match
    Name #?.hws
    End
    Action
    Name Edit ...
    Event DoubleClick
    Command AMIGADOS run >nil: rxs sys:utilities/miao/MUINDIC %sp
    End
    Action
    Name Start ...
    Event Menu
    Command AMIGADOS run >nil: Hollywood:system/Hollywood window %sp
    End
    End

    AMTD
    1
    Name Archive
    Type archive/lzx
    Match $4C5A58
    OR
    Name #?.lzx
    End
    Action
    Name Extract LZX
    Event DoubleClick
    Command AMIGADOS run >nil: c:lzx x %sp dh2:
    End
    End

    AMTD
    1
    Name MP3
    Type sound/mp3
    Match $494433
    OR
    Match $FFFA92
    OR
    Match $FFFB50
    OR
    Match $FFFB90
    OR
    Name #?.mp3
    End
    Action
    Name Play ...
    Event DoubleClick
    Command AMIGADOS run >nil: rx songpl %sp
    End
    End

    The arexx-script songpl is used to
    send the file to songplayer and makes sure
    only this one file is played :-D

    PS: Not one of my best ;-) It's looking
    for the env-variable "Toolbar.Songplayer"
    so you need to

    setenv save Toolbar.Songplayer User:Sound/songplayer/SongPlayer

    (Use your path) ...

    /* */

    parse arg name

    if ~show('L',"rexxtricks.library") then call addlib('rexxtricks.library',0,-30,0)

    if name = '' then do
    address command
    'requestfile NOICONS POSITIVE=Play >t:songpl.tmp'
    call readfile('t:songpl.tmp',file)
    name = file.1
    end

    signal on error

    call checksp()
    call checkst()
    if mode = 'PLAY' then call spm('STOP')
    call spm('OPEN' name)
    call spm('PLAY')
    exit
    checksp:
    if show('p','SONGPLAYER.1') then return
    songplayer = getenv('Toolbar.Songplayer')
    if songplayer = '' then songplayer = 'SongPlayer:SongPlayer'
    if exists(songplayer) then do
    address command
    line = 'run >nil:' songplayer 'AHI=0x0012000c ICONIFIED GUI'
    line
    do while ~show('P','SONGPLAYER.1')
    address command 'wait 2'
    end
    if ~show('P','SONGPLAYER.1') then exit1('Songplayer not launched')
    end
    else call exit1('Songplayer not found')
    return

    spm:
    parse arg mode
    address 'SONGPLAYER.1'
    mode
    return

    checkst:
    address 'SONGPLAYER.1'
    GET_STATE
    spstatus = result
    return

    error:
    exit1:
    parse arg ermsg

    if ermsg = '' then ermsg = 'Fatal Error'
    say ermsg
  • »15.01.06 - 18:57
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Bladerunner
    Posts: 418 from 2004/2/19
    Hooligan:
    You posted somewhere in another Thread a nice mimetype definition for archives, if I understood that correctly it was supposed to browse archive files on douebleklick as if they where drawers. However I tried that script, but all that happend was an empty drawer to be oppened.
    So I wonder whether I need some additional tools to get this working? XAD is allready installed (currently I use it together with VoodooX). This "VFD" Thingy, is it Ambient internal or a separte Programm? Or what went wrong here?
  • »16.01.06 - 10:33
    Profile
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    Guruman had this script, my personal mimetype just shows the listing of archive in a window. How ever, it might be doable to implement actual movement inside the archive.. I use a script in Magellan which does this... wonder if this could be used.
    www.mikseri.net/hooligan <- Free music
  • »16.01.06 - 11:25
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Wishmaster
    Posts: 342 from 2003/6/29
    That would be cool.
    Pegasos PPC
  • »16.01.06 - 12:56
    Profile
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    Hmm.. the script for Dopus is quite lengthy.. I was hoping it would be 3-4 times smaller :-)

    It can prove to be impossible to do ..

    The script is an attachment if some Rexx-god want to have a go with it.

     Attached file(s) 
    www.mikseri.net/hooligan <- Free music
  • »16.01.06 - 13:33
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Bladerunner
    Posts: 418 from 2004/2/19
    Hooligan:
    *Ouch* thats too much ;) Especially when, according to that filedefiniton you posted, it is just a single line:

    Command INTERNAL loaduri vfs:///%sp?type=xad&mode=list NEWWIN

    After a bit of trying I found out that vfs is indeed an internal Ambient thingy (guess I am going to play a bit with it, perhaps this way its also possible to mount iso files ;) ) However that xad part seems to fail here. As if you said Guruman made this, perhaps he can comment how that is supposed to work?
  • »16.01.06 - 13:46
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Bladerunner :
    This thing is just an empty shell for now, just providing an interface for later changes, and it is not finished. So better stick with voodoo-x or whatever in the meanwhile.

    Adapting magellan's arcdir is also not possible for now. Ambient lacks some interface to add virtual entries.

    [ Edited by Fab on 2006/1/16 16:40 ]
  • »16.01.06 - 15:39
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Bladerunner
    Posts: 418 from 2004/2/19
    Fab:
    Thank you :) So I won`t spent anymore time to find out whether this method actually works or not. However If I understood you correct, this feature may be available sometime? Very cool then.
  • »16.01.06 - 16:40
    Profile