Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - A_dude

Pages: [1]
1
Hello everyone.
I've posted here a few times before, but I lost all of my account details and had to create a new account.

I want to say, I've been interested in Dwarf Fortress for a while now.  It was so interesting, I wanted to know how Toady One did it so I could try my hand at development.  This got me interested in Programming, and I started doing a lot of self-study.  I then changed my Major to Computer Science from Mathematics (after a little hiatus from school).  I'm set to graduate in December this year with a pretty decent job lined up now.

This thread helped me start my journey and motivated me when I didn't have much direction, and for that I thank you all!  I'm looking forward to many more years of this thread, and I hope to be more active in it, too.

Thanks again!

2
Creative Projects / Re: ASCII-based game about sailing ships.
« on: July 12, 2019, 01:02:27 pm »
You said you wanted some input for those on Linux.  I recorded my attempts to get the game to work (without using Wine), as follows:

  • Installed Casey Duncan's noise library
  • Errors in libtcod.so - Installed libtcod-devand libtcod0 (on Debian).
  • Still getting errors - no ./libtcod.so (relative path).  This is from the libtcodpy.py file referencing the .so file, not because of SeaWolves.
  • Created Symbolic link from the libtcod.so global file in local directory.
  • Get Segmentation fault.  Probably a library number mis-match.  Investigating.
  • The libtcodpy.py version shipped with SeaWolves is 1.5.1, whereas the latest version of tcod is 1.7.0.  Updating SeaWolves version to 1.7.0
  • Looking into libtcodpy.py use, we see that it is deprecated.  The latest version of libtcodpy.py I could find is 1.6 in an unofficial repo.  The recommended python libtcod package is python-tcod.  See https://python-tcod.readthedocs.io/en/latest/installation.html
  • Installing python-tcod using command: `python3 -m pip install --user tcod`
  • Updated all environs to python3
  • Fixed cPickle imports to just pickle (Python3 change)
  • Changed print commands to print functions
  • Re-installed Casey Duncan's noise library (for Python3)
  • Got issues with console_put_char_ex(...) function: "TypeError: initializer for ctype 'struct TCOD_ColorRGB' must be a list or tuple or dict or struct-cdata, not int".  It appears this has to do with:
    File "./SeaWolves004py/binstance.py", line 3841, in add_frame_to_panel
        libtcod.console_put_char_ex(panel, 0, 0, libtcod.CHAR_DNW, color, libtcod.BKGND_NONE)

    The color needs to be a tuple, which it appears to be.  I don't know if this is because of a SeaWolves call or a python-tcod call.  Note:  It uses the internal definition of what a color is.  Maybe this changed from 1.5.1 to 1.7.0?

This is as far as I could get today.  Between the changes and expectations that this is Python3 for the new python-tcod library, the 1.5.1 vs. 1.7.0 versions of libtcod, I'm not sure what other changes need to be made to be compatible with Python3 (again, the recommended version going forward.  Python2 EOL is 2020).

Conclusions
On Linux, try to run on WINE.  The older libtcod.so version is hard to find, and the change from Python2 to Python3, while future proofing the project a little bit, is outside of the scope of just trying to get it to work.  This is more a change OP needs to make if they wish.[/list]

Pages: [1]