1. Forum moved (you can use login and pass from old forum)
  2. Many discussions moved to the bugtracker

apoc'd

Discussion in 'Tools' started by jordos, Dec 22, 2016.

  1. jordos

    jordos Registered
    64/112

    Joined:
    Dec 22, 2016
    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Hi,

    Reading some of the posts here and looking at the Openapoc_data header files I got the impression that people seem to be using an outdated version of apoc'd. The latest version is 3.10b. You used to be able to find it on the xcomufo.com forums but that site seems to be having problems, so I'll post a link here:
    <link removed>

    I'm glad to see this project up and running! :)
     
    FilmBoy84 likes this.
  2. pmprog

    pmprog Well-Known Member Official Developer Administrator
    54/56

    Joined:
    Jul 8, 2014
    Messages:
    175
    Likes Received:
    11
    Best Answers:
    0
    I've removed your link, I don't know if it's genuine or not. It probably is, but a first post with a URL...

    Besides, most people will use the CD image that comes with Steam/GOG, and that's what's working (as is my original CD contents).
     
  3. jordos

    jordos Registered
    0/28

    Joined:
    Dec 22, 2016
    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    I'm not talking about X-COM apocalypse, but about the editor apoc'd :) I'd attach it to the post, but there is a limit of only 128kb for attachments...
     
  4. Treonin

    Treonin Registered
    26/28

    Joined:
    Feb 1, 2015
    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Ye I always had a hard time finding a download link for it.
     
  5. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    59
    Likes Received:
    10
    Best Answers:
    0
    where the link?
     
  6. Kammerer

    Kammerer Administrator Administrator Translator/Writer
    31/56

    Joined:
    Jun 12, 2015
    Messages:
    32
    Likes Received:
    6
    Best Answers:
    0
    pmprog, please, apoc'd as a program is used to study and edit game resources and has nothing to do with any sort of piracy. Moreover, j'ordos is well known across the Internet as its author and modder of the original game.
     
  7. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    59
    Likes Received:
    10
    Best Answers:
    0
    Hello jordos! Thank you for this wonderful tool! And I'm glad you're back! Also I wanted to say that you can often see the wrong address and the wrong interpretation of the offset variable. I would like to see in the editor the ability to add or change fields. Alternatively, it is possible to make the description of the fields and layout of an external text file.
     
  8. JonnyH

    JonnyH Well-Known Member Official Developer Administrator
    64/112

    Joined:
    Jul 17, 2014
    Messages:
    181
    Likes Received:
    31
    Best Answers:
    0
    I think I have 3.10b here:

    http://s2.jonnyh.net/pub/apocd_3.10b/Apoc_src.zip
    http://s2.jonnyh.net/pub/apocd_3.10b/Apoc_d.zip

    They claim to be 3.10b in the readme and the apoc'd.bas has "const as string title="Apoc'd v3.10b"

    I guess that means it's the latest? Jordos: If you could double check that would be great :)

    BTW sorry Jordos, your work here is appreciated, but I think pmprog has spend quite a bit of time trying to cleanup some spam recently so this might have accidently triggered his mental filter :p


    EDIT: I slightly relaxed the attachment file size limit and attached the zips
     
  9. jordos

    jordos Registered
    0/28

    Joined:
    Dec 22, 2016
    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Yep, that looks like it's the latest version :) Thanks!
    Hey skin36, congratulations on your disassembly work on apocalypse! It's a good suggestion but I don't know if I will be doing any more work on apoc'd. Feel free to edit the source code though, field descriptions can be found in apoc'd.cfg :)
     
  10. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    59
    Likes Received:
    10
    Best Answers:
    0
    I created a repository here and offer to work in it.
    https://bitbucket.org/Skin36/apoc_d/
     
  11. jordos

    jordos Registered
    0/28

    Joined:
    Dec 22, 2016
    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Great! If you have any questions, feel free to ask :)
     
  12. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    59
    Likes Received:
    10
    Best Answers:
    0
    yet I could not understand how to specified field sizes
     
  13. jordos

    jordos Registered
    0/28

    Joined:
    Dec 22, 2016
    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Field sizes are defined in apoc'r.bas, where I do the actual reading of the data. Each read_... sub there contains a for loop like this
    Code:
    dim as ubyte btmp
    for record=0 to sel3max
            posidata(record,0)=loc(mainfile(0))     'offset
            get #mainfile(0), ,btmp
            maindata(record,0)=btmp                 'main data
            'ideally these should get their own loop
            othrdata(0,0,0)=1                       'record length
            othrdata(0,0,1)=1                       'input modifier (1 = cycle up)
     ...
    
    sel3max is the number of records
    btmp is an unsigned byte, so the get operation reads one byte and puts it in the maindata array.
    othrdata(0,0,0)=1 also defines the length of this field as one byte. This is later used for saving and also for showing the hex value in the editor.

    So to change the length of a field you will have to change othrdata(0,X,0) and also use the proper variable in the get operation (byte/short/int/...)
    When you change the length you will probably also need to add or remove existing fields. For this you need to change sel4max, which defines the number of fields. Then you remove or add a few gets, and review the misc_... sub to make sure the linktext and misctext references are still good.

    Obviously this is not as trivial as it should be :)
     
  14. pmprog

    pmprog Well-Known Member Official Developer Administrator
    54/56

    Joined:
    Jul 8, 2014
    Messages:
    175
    Likes Received:
    11
    Best Answers:
    0
    Sorry jordos, and welcome. I don't get to spend as much time as I would like (hence why my name hasn't been listed on a github commit for a loooong time), so everything I do kind of a quickfire "pop in and pop out", which does mean I do misread/misjudge things.
     
  15. jordos

    jordos Registered
    0/28

    Joined:
    Dec 22, 2016
    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Don't worry about it, no offense taken :)
     
  16. endersblade

    endersblade Registered
    3/28

    Joined:
    Nov 13, 2017
    Messages:
    1
    Likes Received:
    1
    Best Answers:
    0
    Sorry to necro this, but is there any way to get Apoc'd to work with OpenApoc?
     
    makus likes this.
  17. makus

    makus Designer, forum admin Administrator Designer/Artist
    64/112

    Joined:
    Sep 24, 2014
    Messages:
    206
    Likes Received:
    31
    Best Answers:
    2
    Hey endersblade =]
    no its have different engines
     

Share This Page