Menu

Build problems (Linux x86_64)

Anonymous
2018-01-12
2019-08-06
  • Anonymous

    Anonymous - 2018-01-12

    These are the steps I had to take to successfully build on Linux. I hit similar snags on MinGW but I decided to try Linux instead.

    cd vendor/libhfs/
    ./configure
    make
    
    cd -
    
    cd vendor/librsrc/
    ./configure
    make
    
    cd -
    
    make
    

    After that there were various undefined references caused by inline functions. After removing inline from them it linked fine.

    They were:

    KB_loc
    KB_Pause
    KB_Wait
    KB_lh
    KB_getpos
    KB_curs
    SDL_CreatePALSurface
    SDL_ClonePalette
    

    I hope this helps.
    P.S. I've been watching this project for a long time and I'm glad it's seeing some activity again. I'm also developing a clone of the Genesis version, although my code is a lot messier. :)

     

    Last edit: Anonymous 2018-01-12
  • driedfruit

    driedfruit - 2018-04-05

    Thank you very much for those notes! I'll commit this ASAP.

    Any link to your project? I'm especially interested in Genesis resources you can read.

     
    • Anonymous

      Anonymous - 2018-04-29

      Wrote a small program to extract the maps from the Genesis ROM: https://i.imgur.com/nlw8s8t.png

      Code https://pastebin.com/2wjHAC34

       
      • driedfruit

        driedfruit - 2018-05-04

        Excellent! Every bit of info counts.

        BTW, have you seen https://sourceforge.net/p/openkb/code/ci/master/tree/src/lib/md-rom.c ? Is that something you could use?

         

        Last edit: driedfruit 2018-05-04
        • Anonymous

          Anonymous - 2018-05-04

          I haven't seen that, but that's very interesting. I also have a list of offsets we could possibly use.

          Also, I've been trying to extract an image from the ROM. I've almost done it but there seems to be a bug because the output isn't quite right.
          Code
          (Apologies for the tiny images)
          Example output
          How it should look

          Feel free to try it yourself but it's a very simple program, I thought maybe you or someone else could spot the bug.

          Edit: wait, does your code there read the villains etc from the rom? If so you seem to have already figured this out

           

          Last edit: Anonymous 2018-05-04
          • driedfruit

            driedfruit - 2018-05-04

            It does, but I haven't found the pallette (argh, looking at your code, neither did you), and I failed to even find (or decode) worldmap tiles and other images.

            So yeah, let's share and document as much research as possible. Although, I don't have anything else on the Genesis version, so anything you could add would be much appreciated.

             
            • Anonymous

              Anonymous - 2018-05-05

              Sure. Do you have a suggestion on a place to share stuff?

               
              • driedfruit

                driedfruit - 2019-08-06

                Well, sourceforge itself is one such place, github is also a good (or even better) choice, and if you don't want to create a full repo, github has something called 'gists', for copy-pasting code bits quickly.

                Failing all that, pastebin.com, or some similar service, is also a nice way to go.

                Taken your map offset and incorporated into md-rom.c (to be commited soonish), thanks!

                 
            • Anonymous

              Anonymous - 2018-05-05

              Oops, forgot to login. The Anonymous post is me.

               
            • Anonymous

              Anonymous - 2018-05-05

              By the way what happened to the code? It's missing? Or maybe sourceforge is having issues. Edit: it's back now anyway

               

              Last edit: Anonymous 2018-05-06
  • Anonymous

    Anonymous - 2018-04-26

    I haven't uploaded it. Mostly because the textures I'm using are ripped from the emulated version (using screenshots) so I'm not sure about the legality of that. I'll try to replace those with my own resources at some point though and upload it.

    Also if you mean reading resources from the game ROM, I don't have the skills for that unfortunately.

     

    Last edit: Anonymous 2018-04-27
    • driedfruit

      driedfruit - 2018-05-04

      Yes, I meant extracting resources from the ROM.

      IIRC, Genesis and DOS versions use same tile sizes. If that is true, we should definitly join our efforts. Part of the OpenKB project is to create a graphics pack every KB-clone-author could use, and release his game without violating any copyrights.

      https://sourceforge.net/p/openkb/wiki/Missing%20Art/

      So if you ever get some art going, please consider releasing it under a similar license :) And feel free to use this horrible, horrible programmer art, that is currently part of openkb.

       
  • alex milar

    alex milar - 2018-04-27

    How far have you gotten with it, is is playable? If you can send me a working copy I could probably make the artwork for it over the summer.

     
    • Anonymous

      Anonymous - 2018-04-28

      I'll be honest, it's undergone some drastic code changes since these videos and it's not functional at the moment, but here's what I had a while ago:

      Roaming around: https://www.youtube.com/watch?v=coY3xrLH2j4
      Battle: https://www.youtube.com/watch?v=jOopguI1lmA

      I appreciate you offering but I might take a while to get it back to this state.

       
      • alex milar

        alex milar - 2018-05-13

        ok, if you ever get it working again let me know, i would love to see it.

         

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.