atarionline.pl problem s action! - Forum Atarum

Jeśli chcesz wziąć udział w dyskusjach na forum - zaloguj się. Jeżeli nie masz loginu - poproś o członkostwo.

  • :
  • :

Vanilla 1.1.4 jest produktem Lussumo. Więcej informacji: Dokumentacja, Forum.

    • 1: CommentAuthorw1k
    • CommentTime1 Feb 2010 zmieniony
     
    hello..
    why i cant compile file to D1:

    C "D1:FILE.EXT"

    ERROR 130
    or
    in win emulator - ERROR 170
    • 2:
       
      CommentAuthorKaz
    • CommentTime1 Feb 2010
     
    EXET? It should have 3 letters, I think.

    Error 130 means "nonexistent device", error 170 - "file not found". Are you sure you started Action! with DOS?
    • 3: CommentAuthorw1k
    • CommentTime1 Feb 2010
     
    i use this action:

    are you have version of action, that can i use compiling to D1:?
    • 4: CommentAuthorw1k
    • CommentTime1 Feb 2010
     
    help me anybody
    • 5:
       
      CommentAuthorYosh
    • CommentTime2 Feb 2010
     
    I have never used an C "D1:FILE.EXT" syntax. It gives me ERROR 170 too.

    try to C your program (compile only)
    and W "D1:A.COM"
    will write out compiled one to disk (tested on emu).

    You shouldn't be using Action!.atr anyway. It is said that this is ripped from cart version ("yay! it works without cart! hurra!") and it has bugs.

    ->link<-

    should be better. You will need .atr with dos too.
    • 6:
       
      CommentAuthortdc
    • CommentTime2 Feb 2010
     
    "C "D1:FILE.EXT"" - this option compile from source "FILE.EXT" (without source in editor).
    • 7: CommentAuthorw1k
    • CommentTime2 Feb 2010 zmieniony
     
    ok..
    i try save file with W (w "d1:test.obj")

    questions:
    how i save act file (plain text)?
    how i compile this program to d1?

    thanks
    • 8:
       
      CommentAuthortdc
    • CommentTime2 Feb 2010
     
    > i try save file with W (w "d1:test.obj")

    It is correct.

    > how i save act file (plain text)?

    In editor: control+shift+w (enter file name)

    > how i compile this program to d1?

    if source is in editor: control+shift+m, command: "C" and "W" (like Yosh).
    • 9: CommentAuthorw1k
    • CommentTime3 Feb 2010
     
    TDC: ok, but how i compile file to disk? i now about C command, but i cant save compiled file to disk..
    • 10:
       
      CommentAuthorKaz
    • CommentTime3 Feb 2010
     
    wk1 - you should start reading tutorials or/and manuals. This is good point to start:

    ->link<-

    especially this tutorial:

    ->link<-
    • 11: CommentAuthorw1k
    • CommentTime3 Feb 2010
     
    i read everything, i have slovak action! book, but no information how save compiled file to disk.. :(
    • 12:
       
      CommentAuthortdc
    • CommentTime4 Feb 2010
     
    It is simple:

    if source is in editor: compile "C" and write obj file to disk with "W "dx:filename.obj"". That's all.

    "C" 21 page on manual, "W" 24;)
    • 13: CommentAuthorw1k
    • CommentTime4 Feb 2010
     
    proc test()
    printe ("hello!")
    return

    compile,
    save w "d1:file.obj"

    i go to dos and run file.obj - not work..
    • 14:
       
      CommentAuthorjhusak
    • CommentTime5 Feb 2010 zmieniony
     
    I'd rather use real cartridge file. I've checked differences between Action!.rom taken from atarionline roms section, the only difference beetween it and attached file is in texts edited (cut off) and one byte at the beginning. Of course there's CART header in my version.

    Use it like real cartridge, you'l see THE DIFFERENCE.

    There's sometimes an issue that somebody uses action library (about 3 kb from the beginning of the cartridge). There must exist the library in memory in that case. The second issue is that as I remember prinft function exists in the other bank of the cartridge. Many years ago Gizmo have written the printf procedure that does not use the library.

    What to do:

    Insert the cartridge, insert the dos disk, reboot atari emulator.
    go to editor (unless you are in it already) write your code, go to monitor (shift ctrl M), compile (C), write to disk (W "D1:FILE.EXE"), go to dos (D), load FILE.EXE, and voilla! (do not remove the cart unless you're coding no-library code).
    There is some magic, for example you can set address to place your compiled code:
    SET 14=$8000
    SET $491=$8000

    If you do not wand to use the lib, you must:
    not use more than 3 bytes in parameters passed to procedures (CARD takes 2 bytes)
    do not use division, multiplication.
    Do not use any of the lib procedures (PEEK, POKE, etc)
    It IS possible with a little effort. Trust me, i've written several games in Action.
    Simply treat the Action! like super-duper macro assembler.

    Kaz, Would you please place the cart file in appropriate place?
    • 15:
       
      CommentAuthorKaz
    • CommentTime5 Feb 2010
     
    Done, my friend!
    • 16:
       
      CommentAuthortdc
    • CommentTime5 Feb 2010 zmieniony
     
    Kuba już myślałem że zamieściłeś coś na co z chłopakami czekamy, ale niestety jest to Action! w popularnej w necie wersji 0,2. Przydała by się jakaś wersja 3,x.

    Chodzi o to, że niebawem pojawi się na AOL artykuł o błędzie w tym kompilatorze, który najprawdopodobniej umoczył parę gierek na Atari (w tym być może Five to Five - ale nie znam historii tej gry, tu więcej Ty możesz powiedzieć).
    Dlatego męczy mnie pytanie, czy błąd ten dotyczy wszystkich actionów czy tylko tych 0,2 ? Chętnie to przetestuję.

    Ma ktoś nowszą wersję w pliku ?
    • 17:
       
      CommentAuthortdc
    • CommentTime5 Feb 2010 zmieniony
     
    Kuba chyba znalazłem te procedurki Arka na zgranej do ATR dyskietce. Oto zawartość dyskietki (może nazwy plików coś Tobie powiedzą):
    allib.act 3
    geoinc.act 48 - to chyba moje
    geoinit.act 17 - --"--
    ggraph.act 14
    ginit.act 17
    inputs.act 8
    tgeo.act 169 - to też może być moje
    tgeoinc.act 51 - --"--
    io.act 5
    move.act 2
    pause.act 3
    plot8.act 13
    pmgmig.act 35
    printf.act 32
    rtpi.act 14
    rtplib.act 20
    sprite.act 20 - sprite w 8 tr. gr. (by Mirage Software Ltd.)
    uncomp.act 15
    vbli.act 7 (MCMXC by Mirage Software Ltd.)
    actlibr.2 58
    fill.act 4
    txtc.act 2
    (obok podana jest ilość sektorów)

    Pod częścią z tych procedur podpisany jest Arek, ale printf:

    "(...) an highly advanced improvement of the Library PrintF
    Copyright (c) 1984 OSS,Inc. and Mark Rose"

    Pisze o tym bo wraz z Yoshem prowadzimy coś na kształt kursu Action! na AOL i chętnie opublikujemy te procedurki - jeśli Ty i Arek nie będziecie mieli nic przeciwko (najprawdopodobniej na tych procedurach powstała ortografia itp.). Następnie możemy wspólnie napisać jakiś artek o Action! i tych funkcjach.
    Więc jak ?;)
    • 18:
       
      CommentAuthorjhusak
    • CommentTime5 Feb 2010 zmieniony
     
    Jeśli o mnie chodzi, to nie ma problemu. Ortografia już nie jest sprzedawana, więc tu też nie ma problemu. Arek pewnie też się zgodzi, zwłaszcza, że to on był autorem/współautorem/zdobywcą tych bibliotek. Ja pisałem wszystko pod konkretne potrzeby od nowa.

    Przejrzę jeszcze swoje zbiorki, może też coś się znajdzie.
    Mam też oryginalną podróbę Action! z giełdy z grzybowskiej, zobaczę co to za wersja w wolnym czasie (jak rozpakuję atari).
    • 19: CommentAuthortatqoo
    • CommentTime5 Feb 2010
     
    @jhusak, Kuba, mistrzu, powiedz napisałeś sobie jakieś narzędzie do komponowania a Action, czy też pieczołowicie wpisywałeś dane w kodzie Action?? Za muzykę do Five To Five masz u mnie wieczny szacunek :) (jak dla mnie TOP 3 na Atari)

    Przyjdziesz w końcu kiedyś na warszawskiego sztaba?
    • 20: CommentAuthorw1k
    • CommentTime5 Feb 2010
     
    hm, this is great, but i use real atari hardware, not atari emulator.. and i dont have action cartridge :(
    • 21: CommentAuthorw1k
    • CommentTime5 Feb 2010
     
    and now i write that code in emulator, compile, save and nothing work..
    • 22: CommentAuthorw1k
    • CommentTime5 Feb 2010
     
    like this..?


    SET 14=$8000
    SET $491=$8000

    proc test()
    printe ("hello!")
    return
    • 23: CommentAuthorw1k
    • CommentTime5 Feb 2010
     
    why that example dont work? (binary file)
    • 24:
       
      CommentAuthortdc
    • CommentTime5 Feb 2010
     
    jhusak: no to ja mam podobne podejście bo jakoś własne biblioteki mi się nie sprawdzały w praktyce;)

    > Przejrzę jeszcze swoje zbiorki, może też coś się znajdzie.

    Ok, to daj znać i przygotujemy te procedurki do publikacji.

    > Mam też oryginalną podróbę Action! z giełdy z grzybowskiej

    Mój cartridge też pochodził z giełdy i Arek go właśnie dla mnie załatwił, więc pewnie są identyczne. Ja swojego carta nie mogę w tej chwili znaleźć ale gdzieś jest.

    > zobaczę co to za wersja w wolnym czasie (jak rozpakuję atari).

    Czekamy z niecierpliwością na rezultaty;)
    Z tego co pamiętam to była to wersja 3,x.

    Też jestem zdania że muza do Five To Five jest rewelacyjna!;)
    • 25:
       
      CommentAuthortdc
    • CommentTime5 Feb 2010
     
    w1k:
    You must have cartridge. Other options are very odd and are't work correctly.

    Printe() is from Action library. It will not work without cartridge.

    Try code without procedures from Action library:

    MODULE

    PROC ANIMRUMRU()
    BYTE COL=712

    COL=$FF

    RETURN


    if You need print, use lib.com from:
    ->link<-

    but without cartridge, You will have odd problems in future.
    • 26: CommentAuthorw1k
    • CommentTime6 Feb 2010
     
    i try that code:

    proc test()
    printe ("hello!")
    return

    with cartidge action on emulator..
    then i compile/save it, reboot, load dos, load binary.. and nothing
    • 27:
       
      CommentAuthortdc
    • CommentTime6 Feb 2010 zmieniony
     
    Are You used lib.com ?

    not only lib.com but also You can use runtime:
    ->link<-
    I think this RT have a several bugs, but maybe it will be enough for You.
    • 28: CommentAuthorw1k
    • CommentTime6 Feb 2010 zmieniony
     
    ok, i have it.. with library is working fine.. thank you..

    i must buy original action cart, because file version is too slow :)
    • 29:
       
      CommentAuthorjhusak
    • CommentTime6 Feb 2010 zmieniony
     
    @tatqoo - wtedy nie było _wszechstronnych_ programów muzycznych. Wprawki do pisania kodu grającego muzykę miałem jeszcze z czasów, gdy pisałem muzę pod Atari Basic.

    Reasumując - pisane w Action! bez bibliotek. Generalnie kod z muzyki na muzykę był niewiele zmieniany, raczej po to, aby dodać nowe brzmienia/możliwości. Tak naprawdę pisanie w edytorze tekstowym muzyki jest szybsze, niż w tych wszystkich wypasionych edytorach... Dlatego też później polubiłem się z SoftSynth.

    Wyjątek stanowi The Warsaw Tetris napisany w jakimś Sound Studio pieczołowicie dzierganymi nutkami.
    • 30:
       
      CommentAuthorjhusak
    • CommentTime6 Feb 2010 zmieniony
     
    @w1k: There is _no difference_ in speed comparing action.rom to real cartridge in real Atari.

    It's better to write something under Atari800 Emulator, you have several tools to debug your code (ex: monitor with every tool you might need or not), fasten/ slowen(?) your machine, store files on your HD, etc etc. For example compile time shrinks to second or two with full speed (F7) enabled.
    • 31: CommentAuthorw1k
    • CommentTime6 Feb 2010
     
    @jhusak.. cartridge version includes all libraries? because compiled binary it's not possible to load.. when i include in file version ACTION! RUNTIME.ACT libraty, everything is ok.. why i cant load binary file on cart version?
    • 32:
       
      CommentAuthortdc
    • CommentTime6 Feb 2010 zmieniony
     
    jhusak: z czasów, gdy pisałem muzę pod Atari Basic.

    Jest kilka niepodpisanych programów w Atari Basic z tamtego okresu co odgrywają jakieś szlagiery;) Czy któryś z Twoich programów w Basicu jest ogólnie dostępny ?

    Czy były jakieś inne, które teraz można udostępnić ?

    > Tak naprawdę pisanie w edytorze tekstowym muzyki jest szybsze

    No nieźle 8-O
    Rob Hubbard wymięka ;):)

    ja mam na swoim koncie mini trackera w Action! operującego na dwóch kanałach digitalizacji, który wykorzystuje do edycji edytor Action!, ale to co innego bo ja nutek nie musiałem tam wpisywać!
    no i faktycznie nieźle się to sprawowało.

    > Dlatego też później polubiłem się z SoftSynth.

    To była rewelacja ! Bardzo bym chciał abyś coś zrobił w SS. Np. to:

    Albo coś innego;)

    > Wyjątek stanowi The Warsaw Tetris napisany w jakimś Sound Studio pieczołowicie dzierganymi nutkami.

    Też kiedyś starałem się coś zrobić nutkami w podobnym programie to była ergonomiczna katastrofa...

    > It's better to write something under Atari800 Emulator,

    Nie przekonuj gościa do używania emulatora, skoro widać, że on ceni używanie real Atari;) Emulator jest usprawiedliwiony jedynie gdy ktoś chce korzystać z Action! bo on jest obecnie chyba nieosiągalny.
    • 33:
       
      CommentAuthorKaz
    • CommentTime6 Feb 2010
     
    TDC - do cytowania polecam [ quote = kto ] oraz [ /quote ] , bedzie znacznie czytelniej.
    • 34:
       
      CommentAuthorjhusak
    • CommentTime9 Feb 2010 zmieniony
     
    @tdc:

    Ściągnąłem swojego kartridża na dysk. Napisane ma 1987 i wersja 3.6.
    Przy okazji wyczaiłem ze schematu i artykułu Zenona, jak przełączać 4KB banki.

    I co się okazało? Że to jest znowu TA SAMA wersja z podmienionymi napisami i owym nieszczęsnym bajtem z wersją.

    Mały tip dla ściągających dane z carta Action. Ja mam qmega, więc:

    wkładam kartridz atari i butuję komputer dyskietki z dosem (16 kb wolnego)
    wchodzę do monitora qmega.

    i teraz:

    kopiuję pierwszy bank, on zawsze jest aktywny i pod b000
    b000.c000 m 4000

    kopiuję drugi bank:
    d500;0
    a000.b000 m 5000

    kopiuję trzeci bank:
    d509;0
    a000.b000 m 6000

    kopiuję trzeci bank:
    d501;0
    a000.b000 m 7000

    idę do dosa i zapisuję 4000-7fff na dysku
    potem ten plik przerzucam na maka i już tam vimem obcinam 6 pierszych bajtów.

    Proste, nie?

    W przypadku braku qmega trzeba sobie napisać coś w asemblerze, albo w ... Action!

    I jeszcze jedno. Po wpisaniu pod d508 dow. wartości odłączany jest CAŁY Action i zwalnia pamięć pod spodem (a000-bfff).
    • 35:
       
      CommentAuthorjhusak
    • CommentTime9 Feb 2010 zmieniony
     
    Kurka, jaki ten trans-X kiczowaty ...

    A taki był m(i)odny kiedyś...
    • 36:
       
      CommentAuthorjhusak
    • CommentTime9 Feb 2010
     
    @w1k

    AFAIK there is printf procedure you will not find in standard lib. If you use it, you must have it written from scratch.

    I have had such a procedure somewhere ...
    • 37:
       
      CommentAuthorKaz
    • CommentTime9 Feb 2010
     
    Trans-X zrobil kiedys na Atari Cedyn:
    • 38: CommentAuthorilr
    • CommentTime9 Feb 2010
     
    @w1k:

    printf (and other stuff) you can find on the Action! Toolkit disc.