|
|
|
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #187517]
|
Wed, 04 June 2008 19:28
|
|
Luftzig |
|
Messages:18
Registered:November 2007 |
|
|
Yes! I managed to compile on Gentoo 64bit. I had to change the Makefile so it will point to libraries at /usr/lib32/ instead of /usr/lib/, and I linked against libexpat.so.1.
And it works! I mean, it works until I press on the Email icon in the laptop screen. Say Segmantetion fault.
I can get the strategic display, but trying to open the laptop crashes the game, again.
[Updated on: Wed, 04 June 2008 19:34] by Moderator Report message to a moderator
|
Private
|
|
|
|
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #190075]
|
Thu, 03 July 2008 21:13
|
|
cdunigan |
|
Messages:132
Registered:September 2007 Location: Madison, Wisconsin, USA |
|
|
@Luftzig: Looks like the coders are busy with real life right now. I'm in much the same situation as you - I know a few languages, but C (the one JA2 is coded in) isn't one of them. I've looked over the source code several times, and I have to say that you'll find it a real challenge if you "have only the slightest idea of programming." Not that I want to discourage you, but I do want to be realistic.
If you really want to dive into a project that could easily consume every bit of spare time you now have, you should start by learning your way around in C, first. There are lots of tutorials on the web, but I really can't recommend any since I don't know anything about them beyond their existence. Once you feel comfortable with C, get the source code from SVN (details earlier in this thread), which you'll actually already have if you've installed the Linux port. Then fire up your favorite editor and start learning your way around the code itself.
The biggest trouble I have, at least at the beginning, is the fact that C doesn't have much of a concept of namespace in code. You'll suddenly come across a variable or function call that wasn't defined anywhere that you've seen and wonder how the heck it got in there. C doesn't require you to explicitly state what namespace (file, in this case) something comes from. You just throw an "include " at the top of your current file, and bingo, everything in the other file is now in your current namespace. Not only that, but everything in that other file's includes is also now in your namespace. Add to that the fact that C coders seem to throw most of the rest of the project in the includes, and you'll be searching for things all over the place, all the time. Make friends with grep; you'll be using it a lot. IDE's can do that sort of thing for you, but I tend to be a command-line kind of person, so I can't suggest any.
I probably haven't helped much, but that's all I really know right now. I've decided I can't really code, so I try to help by testing and reporting bugs I find. Use our Bugzilla for that - http://ja2.discusrock.org/bugzilla . That's the other thing I do to help; I run Bugzilla. Good luck!
[Updated on: Thu, 03 July 2008 21:15] by Moderator Report message to a moderator
|
Sergeant
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #190767]
|
Mon, 14 July 2008 19:41
|
|
Haffe |
Messages:1
Registered:July 2008 |
|
|
Hello. I thought this would be an approriate thread to ask in. How dependendent is JA2 V1.13 on the orginal JA2? The reason I am asking is that I am wondering if there is any hope of getting JA2 V1.13 running on Os X.
Report message to a moderator
|
Civilian
|
|
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #191418]
|
Mon, 21 July 2008 20:51
|
|
cdunigan |
|
Messages:132
Registered:September 2007 Location: Madison, Wisconsin, USA |
|
|
@Luftzig: Yeah, I know about tags, and emacs has them, too. I just haven't taken the time to set it up and learn how to use it.
@Erpe: I just noticed that I never responded to your questions. I'd say that the status of the port right now is "mostly playable." I haven't seen Lesh around here for a while, and I recall him writing that his time was limited. I also haven't seen InHuMan for a bit. I'm pretty sure that Lesh only merges main code bug fixes back into the trunk. I've heard that merging the changes for the port itself will be more difficulty than anyone is ready to take on right now. I can't say for sure, just commenting on what I've heard. I do know that the trunk has moved into significantly different new directions since Lesh branched from it. As for what needs to be done, I think only Lesh can answer that, sorry.
Report message to a moderator
|
Sergeant
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #198210]
|
Mon, 06 October 2008 07:27
|
|
fcj |
Messages:1
Registered:October 2008 |
|
|
I know some c and c++,may be do some help.
I am reading the code.
I like this game.
Report message to a moderator
|
Civilian
|
|
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #204651]
|
Mon, 22 December 2008 13:33
|
|
310 |
Messages:2
Registered:December 2008 Location: Russia |
|
|
It looks like media-libs/fmod:0 (3.xx) is required.
Here is the ebuild I made for myself. It is quite incomplete though -- it doesn't contain ALL the necessary dependencies, only those I was missing on my box. It also doesn't take care of the original data location. You need to manually prepare it ("make lowercase" from ja2-stracciatella project) and copy/symlink to /usr/share/ja2lp/base.
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils subversion
DESCRIPTION="Linux port of Jagged Aliance 2 + mod113"
HOMEPAGE="http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=150445"
ESVN_REPO_URI="https://81.169.133.124/source/ja2/branches/Lesh/lpja2"
LICENSE=""
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="media-libs/fmod:0
dev-games/physfs
media-libs/sdl-image"
RDEPEND="${DEPEND}"
src_compile() {
econf --prefix=/usr/local || die "econf failed"
emake || die "emake failed"
}
src_install() {
einstall || die "einstall failed"
}
Report message to a moderator
|
Civilian
|
|
|
|
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #221931]
|
Fri, 19 June 2009 01:20
|
|
Beeyotch |
Messages:1
Registered:June 2009 |
|
|
Hello!
My ./configure worked but "make" didn't, i got stuck at this point:
echo './'`slf.cpp
slf.cpp: In function 'BOOLEAN SLF_FindFilenameInDatabase(const CHAR8*, INT32*, INT32*)':
slf.cpp:567: error: invalid conversion from 'const char*' to 'CHAR8*'
make[3]: *** [libja_sgp_a-slf.o] Error 1
Any pointers?
[Updated on: Fri, 19 June 2009 01:24] by Moderator Report message to a moderator
|
Civilian
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #242160]
|
Mon, 18 January 2010 13:20
|
|
shazow |
Messages:1
Registered:January 2010 |
|
|
Hi there, I got the same error as Espectro.
The following patch fixed it for me:
--- slf.cpp (revision 3316)
+++ slf.cpp (working copy)
@@ -564,7 +564,7 @@
// now browse through library filelist, searching pFilename,
// but first cutoff first directory name
- pResourceName = strchr( pFilename, '/' );
+ pResourceName = strchr((CHAR8*)pFilename, '/' );
if ( !pResourceName ) pResourceName = (CHAR8*)pFilename;
else pResourceName++;
- shazow
Report message to a moderator
|
Civilian
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #305139]
|
Thu, 24 May 2012 15:51
|
|
pyg |
|
Messages:42
Registered:August 2007 |
|
|
Just in case any other Linux fans read this thread, Lesh2's Linux port is not worth bothering with at this point. Ja2 works very well under wine with one caveat. I'm currently playing a recent AIMNAS release (personal favorite flavor of ja2) under wine 1.5.x. The caveat is that most mods are developed on a brain dead case insensitive OS and need sanitizing before installing. I wrote a little python script to fix this by recursively lowercase a directory tree. Use with caution as this will create havoc if applied carelessly in the wrong place. Usage: lowercase.py directory
#!/usr/bin/env python
import os, sys
if __name__ == "__main__":
for (dirpath, dirnames, filenames) in os.walk(sys.argv[1], topdown = False):
for item in filenames+dirnames:
target = os.path.join(dirpath, item)
lower = os.path.join(dirpath, item.lower())
os.rename(target, lower)
Best order of operations is to do a clean install of ja2 base, lowercase it, extract SCI/mod into a separate directory, lowercase that, 'cp -r mod base_install', PLAY! Ja2 and wine 1.2.x was very slow on my machine, wine 1.5.x and pulseaudio do not get along.
Report message to a moderator
|
Corporal
|
|
|
Re: [Linux] ja2 1.13 linux port (alpha release)[message #305147]
|
Thu, 24 May 2012 17:37
|
|
bnolsen |
|
Messages:5
Registered:May 2012 |
|
|
wine might work okay on an x86. However something like the stracciatella build works just fine and smooth on one of these:
http://www.alibaba.com/product-gs/561021330/TV_box_Android_IP_TV_set.html
cortex a8 system with 512MB ram. We should start seeing more of these going for under 50USD this summer.
I don't have a raspberry pi to test it on but it should run on there. Not sure how smooth it will be though.
one liner for changing case:
for i in $(find . -type f); do mv "$i" "$(echo $i|tr A-Z a-z)"; done
also looks like lesh 2's source code repo is gone (or maybe moved).
[Updated on: Thu, 24 May 2012 17:57] by Moderator Report message to a moderator
|
Private
|
|
|
|