Giter Site home page Giter Site logo

Linux compatability about armcom2 HOT 9 CLOSED

sudasana avatar sudasana commented on August 28, 2024
Linux compatability

from armcom2.

Comments (9)

sudasana avatar sudasana commented on August 28, 2024

Both of those changes are fine with me! I can make the renderer automatically default to SDL if it detects as Linux OS.

from armcom2.

Stew-rt avatar Stew-rt commented on August 28, 2024

Great - I'll try to get enough work done to send you a pull request over the weekend.
Thanks

from armcom2.

sudasana avatar sudasana commented on August 28, 2024

I've added the default to SDL for linux OS to the master branch:

cf0693b

from armcom2.

wart-github avatar wart-github commented on August 28, 2024

Tried this on my archlinux machine this evening. python armcom2.py loads the main screen. I can adjust options. But when I hit 'N' it bails with:
Starting Armoured Commander II version 0.4.0
Current keyboard layout: QWERTY
Traceback (most recent call last):
File "armcom2.py", line 9673, in
result = campaign.CampaignSelectionMenu()
File "armcom2.py", line 581, in CampaignSelectionMenu
campaign_list = sorted(campaign_list, key = lambda x : (x['start_date']['year'],
File "armcom2.py", line 581, in
campaign_list = sorted(campaign_list, key = lambda x : (x['start_date']['year'],
TypeError: string indices must be integers

Will be able to look closer tomorrow...

from armcom2.

wart-github avatar wart-github commented on August 28, 2024

Great stuff!

Managed to get the very latest version (pulled today) to work. I had to do a few things to get it to work under linux (archlinux).

(1) I had to install precisely libtcod 1.6.5 --- newer versions throw errors.
(2) I had to copy /usr/lib/libtcod*.so.* into libtcodpy_local/
(3) I had to modify xp_loader.py per the diff below (basically, add an if check for 'linux').

from sys import platform
if platform == 'darwin':
import tcod as libtcod
elif platform == 'linux':
import libtcodpy_local as libtcod

else:
import libtcodpy as libtcod
import binascii

from armcom2.

sudasana avatar sudasana commented on August 28, 2024

Thanks for the info; I can modify xploader but I don't have access to the /usr/lib/libtcod*.so.* files; can you submit a pull request to add them to libtcodpy_local/ ?

from armcom2.

wart-github avatar wart-github commented on August 28, 2024

I'd just add to README (which was in the README for libtcodpy anyway) to cp the libtcod so files to that directory, since those are linked files.

from armcom2.

sudasana avatar sudasana commented on August 28, 2024

Sounds good!

from armcom2.

sudasana avatar sudasana commented on August 28, 2024

I've added these instructions to readme.md, so I'm going to mark this issue as closed for now.

from armcom2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.