Subject: [] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 23 Jul 2007 15:44:02 GMT View Forum Message <> Reply to Message If somebody wish to try this buggy code :scary: ... Install subversion at first. Run console (you'll be in your home directory). Issue command to download the sources: svn co https://81.169.133.124/source/ja2/branches/Lesh/alpha/

Then go and read ~/lpja2/doc/install.txt. Hope, I didn't made any fatal errors. :bow:

NB: I cannot guarantee, that most recent revision of game directory will work with this exe. Personally, I am using rev.734 of game data.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Tue, 24 Jul 2007 19:39:34 GMT View Forum Message <> Reply to Message I've been using a windows version and until now, but that was almost unplayable (slow). Your version seems to function allright (even with sound, which never worked with WINE), though I didn't have the time for extended testing yet (I think I'll have to spend a night or two )... the noob-proof install.txt made it possible even for me

:bow: :bow: :bow:

How are the prospects, that this is kept up to the newest stable version or even SVN?

[edit] Mmmm... I can play now, but I can't save the game. All I get is an 'ERROR saving the game!' message, no CTDs or additional messages in the terminal.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 25 Jul 2007 14:27:56 GMT View Forum Message <> Reply to Message moki How are the prospects, that this is kept up to the newest stable version or even SVN?

Well, it takes some, maybe considerable, time. Though I already have 2.5 meg diff-patch (by rasz), but the author points, that it breaks the game execution. Probably, I'll cut this file to pieces

Page 1 of 91 ---- Generated from The Bears Pit and them after analyzing. moki [edit] Mmmm... I can play now, but I can't save the game. All I get is an 'ERROR saving the game!' message, no CTDs or additional messages in the terminal.

Hmmm... It seems, that only I can save/load normally... Need a look!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Wed, 25 Jul 2007 22:50:26 GMT View Forum Message <> Reply to Message Sounds OK to me... anything's better than nothing. This might be a reason for me to look into coding, although I don't expect to be able to help.

There's another annoying bug. Using face items (NVG, goggles, gas mask...) doesn't work, there's always a 'You can't wear your [item] and Nothing at the same time' message. Whatever this 'Nothing' is, I want it to get of my merc's face. :help:

[edit] The game seems to not find the right savegame directory. Even when there are are valid files in /Data-1.13/SavedGames the game shows no saved games ('continue saved game' is greyed out)... the game probably tries to access some directory, it doesn't have writing rights for, while saving (just my guess) [edit2] My failure... it doesn't even use /ja2-1.13/Data-1.13/SavedGames but /ja2-1.13/SavedGames, so this couldn't have been the problem. The only thing I understood of the savegame code is, that there are a whole lotta possibilities that could lead to an error... ugh...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Thu, 26 Jul 2007 22:25:30 GMT View Forum Message <> Reply to Message moki[edit] The game seems to not find the right savegame directory. Even when there are are valid files in /Data-1.13/SavedGames the game shows no saved games ('continue saved game' is greyed out)... the game probably tries to access some directory, it doesn't have writing rights for, while saving (just my guess) [edit2] My failure... it doesn't even use /ja2-1.13/Data-1.13/SavedGames but /ja2-1.13/SavedGames, so this couldn't have been the problem. The only thing I understood of the savegame code is, that there are a whole lotta possibilities that could lead to an error... ugh...

Maybe the case. it's important under linux. Have you tried to rename the savegame directory? Like "SaveGames" to "savegames".

Page 2 of 91 ---- Generated from The Bears Pit I'll maybe join you for testing. But i have the last version, so, i have to make a new installation.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Fri, 27 Jul 2007 00:01:47 GMT View Forum Message <> Reply to Message Sleepyfox Maybe the case. it's important under linux. Have you tried to rename the savegame directory? Like "SaveGames" to "savegames". I noticed how important case can be when I first tried to install and it wouldn't find any of the (wrong-named) .SLFs... I tried to rename the directory to savedgames, Savedgames and even SAVEDGAMES and none of them worked... the game creates /ja2-1.13/SavedGames at game start, when the old one is removed ( I even found the part of code that does it and begin to understand a few things... thanks to lots of comments )

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 27 Jul 2007 18:51:46 GMT View Forum Message <> Reply to Message mokiThere's another annoying bug. Using face items (NVG, goggles, gas mask...) doesn't work, there's always a 'You can't wear your [item] and Nothing at the same time' message. Whatever this 'Nothing' is, I want it to get of my merc's face. :help:

I confirm this bug.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Fri, 27 Jul 2007 20:51:01 GMT View Forum Message <> Reply to Message I have just installed all the stuff (build 812 from ja2v113.schtuff.com) and started a new game. Like moki, i can't save and i can't wear face's stuff.

Without the possibility to save, i can't go very far in the game. I'll re-verify files and directory and try different ways. Maybe, it's just a permission problem.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 28 Jul 2007 18:09:29 GMT View Forum Message <> Reply to Message Updates alpha sources.

Page 3 of 91 ---- Generated from The Bears Pit -Fixed face items incompatibility. -Added error messages to save game process.

Please, update and report error message from console, when failed to save game.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Sat, 28 Jul 2007 19:08:12 GMT View Forum Message <> Reply to Message - It's what i get when i'm trying to save :

Quote:SaveGame( slot = 0, desc = ) Failed to save arms dealer inventory

- I get this error but i don't know if that come from me or the game :

Quote:Error opening/creating file IgnoreShadeTables.txt: No such file or directory

- I can't give a nickname to my imp characters. I can give a full name, choose the gender but typing anything in the nickname box do nothing.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 28 Jul 2007 20:37:38 GMT View Forum Message <> Reply to Message

I found the reason of save game failure - uninitialized variable. Problem eliminated. Update from svn, please.

Sleepyfox- I can't give a nickname to my imp characters. I can give a full name, choose the gender but typing anything in the nickname box do nothing. Hmm... I had this too once. Pending investigation.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Sun, 29 Jul 2007 00:38:52 GMT View Forum Message <> Reply to Message Sleepyfox - I can't give a nickname to my imp characters. I can give a full name, choose the gender but typing anything in the nickname box do nothing.

Definitely reproducable... also loading an existing IMP via typing their nickname doesn't work

Page 4 of 91 ---- Generated from The Bears Pit (tried with an old one by me and the ones from the IMPDB). When I start a new game and try to load an IMP, I get 'Cannot load IMP character from disk'. However, when I first hire an AIM merc, then close the laptop, open it again and try to load an IMP, I get 'You have already the maximum number of IMP characters with that gender on your team.', though there are no IMPs at all.

Saving and using face items works allright now (as expected)... now the serious testing can begin for me (man, I love when 'serious testing' means popping some heads )

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Sun, 29 Jul 2007 01:12:00 GMT View Forum Message <> Reply to Message What 1.13 revision do you use, moki?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Sun, 29 Jul 2007 02:08:15 GMT View Forum Message <> Reply to Message SleepyfoxWhat 1.13 revision do you use, moki?

Whatever is available... when playing the windows build, it's rev845 (exe1080) at the moment. The data I use is for the Linux build is from rev 734, as recommended by Lesh.

False alarm by me... I just tried to load an IMP created with the Linux build and it worked. I didn't think the handling of IMP.dat (or .dat) had changed. I'll fiddle with the IMP creation some more tomorrow and maybe see what exactly works and what not. It's 4am and every bug could as well be my mind playing tricks on me -.-

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Sun, 29 Jul 2007 20:40:18 GMT View Forum Message <> Reply to Message Well, i have to figure out how to get the rev 734.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by lynxlynxlynx on Mon, 30 Jul 2007 10:03:45 GMT View Forum Message <> Reply to Message cool, progress. Keep it up.

Page 5 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Mon, 30 Jul 2007 10:23:20 GMT View Forum Message <> Reply to Message Join in if you want to!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Mon, 30 Jul 2007 11:09:20 GMT View Forum Message <> Reply to Message SleepyfoxWell, i have to figure out how to get the rev 734.

Assuming you use Linux (you do, do you?! )... just open a terminal and type cd svn co https://81.169.133.124/source/ja2_v1.13_data/GameDir -r 734 par

The number between '-r' and 'par' is the revision you want to download. Type 'svn help' or 'svn help co' for more info, what exactly you're doing.

Then get yourself a drink or play a game, because the download is about 600MB and will need a while. You could also get a SVN client (or GUI) like esvn, which does the same for you , but is more self-explanatory.

No more major bugs today, only good news: New maps and changed XMLs (map, army, wepons, items, everything) work without any problems (as far as I tested, at least)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Mon, 30 Jul 2007 15:13:49 GMT View Forum Message <> Reply to Message Thanks moki, i figured out by myself with rapidsvn.

I found a weird bug. when i right click on an object, i can't get the description box and it's make the interface mostly unusable ( "quit" button do nothing for example). If i right click on a gun, i get only the unload button. I also get theses errors :

Quote:IMAGE: Resource file FACES\114.sti does not exist VOBJECT: Invalid image filename given (FACES\114.sti) IMAGE: Resource file FACES\101.sti does not exist VOBJECT: Invalid image filename given (FACES\101.sti) IMAGE: Resource file INTERFACE\infobox_interface.sti does not exist VOBJECT: Invalid image filename given (INTERFACE\infobox_interface.sti)

Page 6 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Tue, 31 Jul 2007 14:33:39 GMT View Forum Message <> Reply to Message SleepyfoxThanks moki, i figured out by myself with rapidsvn.

I found a weird bug. when i right click on an object, i can't get the description box and it's make the interface mostly unusable ( "quit" button do nothing for example). If i right click on a gun, i get only the unload button. I also get theses errors :

Quote:IMAGE: Resource file FACES\114.sti does not exist VOBJECT: Invalid image filename given (FACES\114.sti) IMAGE: Resource file FACES\101.sti does not exist VOBJECT: Invalid image filename given (FACES\101.sti) IMAGE: Resource file INTERFACE\infobox_interface.sti does not exist VOBJECT: Invalid image filename given (INTERFACE\infobox_interface.sti)

I had this one too. I just went to ~/ja2-1.13/Data-1.13/Interface/ and renamed one file, that had similar name.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Tue, 31 Jul 2007 16:41:56 GMT View Forum Message <> Reply to Message yeah that's works! In the directory "~/ja2-1.13/Data-1.13/Interface/", i have renamed the file "INFOBOX.STI" to "infobox_interface.sti".

I still have the "FACES" errors but i suppose it's the same kind of problem.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by wanne (aka RoWa21) on Tue, 31 Jul 2007 18:05:54 GMT View Forum Message <> Reply to Message Sleepyfoxyeah that's works! In the directory "~/ja2-1.13/Data-1.13/Interface/", i have renamed the file "INFOBOX.STI" to "infobox_interface.sti".

I still have the "FACES" errors but i suppose it's the same kind of problem.

Yes that is right.

- Infobox_interface only contains the infobox-graphic (put it in the Data\Interface folder) - Infobox.sti contains the infobox-graphic + the different colored ammos (put it in the Data-1.13\Interface folder)

If you do not have this files download from here: https://81.169.133.124/source/ja2/branches/Wanne

Page 7 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Tue, 31 Jul 2007 18:08:13 GMT View Forum Message <> Reply to Message Faces is a different. They are simply absent even in vanilla game.

Should not impact the game. Just will be annoying. The same will be, when you are offered to place your mercs at sector border before attack (overhead screen). The game will generate dozens of non-existant filenames here. This is normal.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Tue, 31 Jul 2007 21:01:43 GMT View Forum Message <> Reply to Message Thanks RoWa21, it helped. bugs of the day :

- Can't use night vision goggles (or sun goggles) and extended ear at the same time. - CTD when, on the militia vs soldiers window, i click the button which instantly "end" the fight.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 01 Aug 2007 15:15:33 GMT View Forum Message <> Reply to Message Can you provide savegames for both situations? Send them to bug-report e-mail (look at RoWa21's subscription some posts above).

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 01 Aug 2007 16:12:00 GMT View Forum Message <> Reply to Message It seems, that it is safe to upgrade game data to revision 755. This also will eliminate all troubles with infobox_interface.sti.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Wed, 01 Aug 2007 21:09:46 GMT View Forum Message <> Reply to Message Should i start a new game?

Edit : forgot a bug :

Page 8 of 91 ---- Generated from The Bears Pit - On the mail box screen, subjects of mails have only the first 2 letters.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Thu, 02 Aug 2007 10:24:27 GMT View Forum Message <> Reply to Message Had a ctd today... the game just ended itself, leaving me a terminal full of error code. The log is ->here. I think it's something with the quicksaves, as massive quicksaving and -loading was the only unusual thing I did at that moment.

There are also frequent freezes, when I alt-tab between windows during a game. I don't mean the usual freeze like when enemy sniper takes his time, but complete freeze, stopping the cursor, that can only be ended by killing the terminal. Don't know if alt-tab is the reason though, because they sometimes happen instantly, sometimes minutes later and sometimes (but very seldom) without changing the windows or any other obvious reason. NOt very helpful, I know, but anyway...

Next one (man, the list is becoming long today): The terminal shows lots of messages like this: Error opening/creating file SOUNDS\STAND TO CROUCH.WAV: No such file or directory also with some different .wav files. Strange thing is, that the sounds are actually played (or my mind and ears are playing tricks on me...) and the game doesn't crash, freeze or in fact do anything unusual at all... I'll try a fresh install, fresh data and a new game today... maybe it helps.

Next one (absolutely not critical this time): When buying usd stuff from Bobby Ray's, the order form shows '*AAAAAAAAAAA...' , instead of the name. I'm not even sure if that maybe was a bug in all 1.13 versions...

Bug with the mail screen is confirmed. The one with goggles and extended ear too. That should be all for today...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Thu, 02 Aug 2007 11:18:56 GMT View Forum Message <> Reply to Message mokiThere are also frequent freezes, when I alt-tab between windows during a game. I don't mean the usual freeze like when enemy sniper takes his time, but complete freeze, stopping the cursor, that can only be ended by killing the terminal. Don't know if alt-tab is the reason though, because they sometimes happen instantly, sometimes minutes later and sometimes (but very seldom) without changing the windows or any other obvious reason. NOt very helpful, I know, but anyway...

I also get this. Happen to me mostly when I'm back to real time. I have to launch back the game, reload the savegame and kill the game several time to stop having theses freezes.

Page 9 of 91 ---- Generated from The Bears Pit edit: Is there a way to play in full screen?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 02 Aug 2007 18:33:07 GMT View Forum Message <> Reply to Message Sleepyfox - CTD when, on the militia vs soldiers window, i click the button which instantly "end" the fight. Damn! Can't reproduce this one! The battle ends as it should be. I'll add the trace messages in log.

Sleepyfox - Can't use night vision goggles (or sun goggles) and extended ear at the same time. - On the mail box screen, subjects of mails have only the first 2 letters.

These two are confirmed.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 02 Aug 2007 18:40:30 GMT View Forum Message <> Reply to Message mokiHad a ctd today... the game just ended itself, leaving me a terminal full of error code. The log is ->here. I think it's something with the quicksaves, as massive quicksaving and -loading was the only unusual thing I did at that moment.

That's surely memory corruption! Say, did you s/l in tactical or not?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Thu, 02 Aug 2007 19:18:39 GMT View Forum Message <> Reply to Message It was in tactical, during real time in an enemy sector to be exact. Didn't happen again, though, no matter how hard I tried.

Sleepyfox - CTD when, on the militia vs soldiers window, i click the button which instantly "end" the fight. This one happened to me too. Had some greenies stationed in Drassen and got attacked... when I press the button, the outcome is displayed for a moment, but the next instant, the game is gone. I saved before the battle, so it was fully reproducable. The fast forward button (>>) or wating for the fight to end, however, works fine.

Page 10 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Thu, 02 Aug 2007 23:52:13 GMT View Forum Message <> Reply to Message Lesh, i have a good example of a savegame fucked up with CTD and freezes. If you want it...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 03 Aug 2007 14:50:33 GMT View Forum Message <> Reply to Message SleepyfoxLesh, i have a good example of a savegame fucked up with CTD and freezes. If you want it... Send it, of course! And specify the sector, where battle occurs.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 03 Aug 2007 16:14:50 GMT View Forum Message <> Reply to Message moki Next one (absolutely not critical this time): When buying usd stuff from Bobby Ray's, the order form shows '*AAAAAAAAAAA...' , instead of the name. I'm not even sure if that maybe was a bug in all 1.13 versions...

Moki, can you made a screenshot of this glitch?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Fri, 03 Aug 2007 18:59:09 GMT View Forum Message <> Reply to Message Lesh 2Send it, of course! And specify the sector, where battle occurs.

Savegame sent! I have an interesting story about this one. I reloaded a Little bit earlier savegame.

There were 2 soldiers left. One on the roof top and one inside the building, near the northwest door of the central room (where the general is). I killed the soldiers on the roof ---> CTD. So i went back in the game, i killed first the soldier inside the building. No CTD. Then i killed the one on the roof. One shot, one killed (god bless AET), back to real time, no freezes no CTD. Maybe a AI problem (again). Geez, the AI code must be in a mess! You have courage working on it.

Lesh 2Moki, can you made a screenshot of this glitch?

Shot at 2007-08-03

Page 11 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 06 Aug 2007 18:01:18 GMT View Forum Message <> Reply to Message Updated sources:

- merged r.855 of main branch (shift-f feature). - bugfix: Subjects of mails have only the first 2, sometimes more, letters. - bugfix: Can't use night vision goggles (or sun goggles) and extended ear at the same time. - bugfix: When buying used stuff from Bobby Ray's, the order form shows '*AAAAAAAAAAA...' or CTD, instead of the name.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Mon, 06 Aug 2007 21:16:57 GMT View Forum Message <> Reply to Message Thanks a lot for the new version

There's a graphical glitch in the helicopter-map... a screenshot can be found ->here

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Tue, 07 Aug 2007 13:25:26 GMT View Forum Message <> Reply to Message Another freeze. Alma, sector I13, 2 opponents left, militia involved. I've reloaded the savegame several times without success to continue, it freezes after a few seconds. I can send you the savegame as well. It's a old rev. savegame. I think i'll start a new game. Maybe it will solve the problem.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Tue, 07 Aug 2007 16:42:31 GMT View Forum Message <> Reply to Message mokiThanks a lot for the new version

There's a graphical glitch in the helicopter-map... a screenshot can be found ->here

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Tue, 07 Aug 2007 16:44:05 GMT View Forum Message <> Reply to Message

Page 12 of 91 ---- Generated from The Bears Pit SleepyfoxAnother freeze. Alma, sector I13, 2 opponents left, militia involved. I've reloaded the savegame several times without success to continue, it freezes after a few seconds. I can send you the savegame as well. It's a old rev. savegame. I think i'll start a new game. Maybe it will solve the problem. I'd be glad to test it too! Alma is a problem generator even for win-version.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Tue, 07 Aug 2007 17:50:40 GMT View Forum Message <> Reply to Message Lesh 2mokiThere's a graphical glitch in the helicopter-map... a screenshot can be found ->here

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Tue, 07 Aug 2007 18:26:13 GMT View Forum Message <> Reply to Message TronGetVSurfacePaletteEntries() is unimplemented and you are therefore operating on uninitialised values. Dang! Indeed, I left this function unimplemented! Thanks Tron!

BTW, welcome to Bears Pit!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Tue, 07 Aug 2007 20:27:23 GMT View Forum Message <> Reply to Message Lesh 2SleepyfoxAnother freeze. Alma, sector I13, 2 opponents left, militia involved. I've reloaded the savegame several times without success to continue, it freezes after a few seconds. I can send you the savegame as well. It's a old rev. savegame. I think i'll start a new game. Maybe it will solve the problem. I'd be glad to test it too! Alma is a problem generator even for win-version.

Yeah, it's reminding me the moonwalking militia in the win version.

Savegame sent.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Wed, 08 Aug 2007 11:19:39 GMT View Forum Message <> Reply to Message So, i have started a new game. At Omerta, the game started to freeze during battle. But i managed to continue and clear the sector.

Page 13 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 08 Aug 2007 17:56:16 GMT View Forum Message <> Reply to Message Sleepyfox Another freeze. Alma, sector I13, 2 opponents left, militia involved. I've reloaded the savegame several times without success to continue, it freezes after a few seconds. I can send you the savegame as well. It's a old rev. savegame. I think i'll start a new game. Maybe it will solve the problem. I've applied diff from rev.867 of main trunk and this fixed your problem (I hope.)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Wed, 08 Aug 2007 20:18:09 GMT View Forum Message <> Reply to Message I have to update my data until rev.867 if i have understood.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 09 Aug 2007 15:31:46 GMT View Forum Message <> Reply to Message No. That diff for source code, not game gata.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Fri, 10 Aug 2007 13:25:16 GMT View Forum Message <> Reply to Message I have updated my files. I still get freezes. Happened a lot at Cambria mine. Even when the sector is cleared.

I also got CTD with this errors (same kind of moki's one):

Quote:*** glibc detected *** ./ja2lp: corrupted double-linked list: 0x0a4e3940 *** ======Backtrace: ======/lib/tls/i686/cmov/libc.so.6[0xb7bc468e] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7bc7e30] ./ja2lp[0x808a662] ======Memory map: ======08048000-0852e000 r-xp 00000000 16:41 734300 /home/sleepyfox/alpha/lpja2/bin/release/ja2lp 0852e000-08919000 rw-p 004e6000 16:41 734300 /home/sleepyfox/alpha/lpja2/bin/release/ja2lp 08919000-0ac8e000 rw-p 08919000 00:00 0 [heap] b5400000-b5421000 rw-p b5400000 00:00 0

Page 14 of 91 ---- Generated from The Bears Pit b5421000-b5500000 ---p b5421000 00:00 0 b5582000-b566d000 rw-p b5582000 00:00 0 b5758000-b5bd3000 rw-p b5758000 00:00 0 b5bd3000-b5bd4000 ---p b5bd3000 00:00 0 b5bd4000-b63d4000 rwxp b5bd4000 00:00 0 b63d4000-b63d5000 ---p b63d4000 00:00 0 b63d5000-b6bd5000 rwxp b63d5000 00:00 0 b6bd5000-b6bf5000 r-xp 00000000 16:41 180519 /usr/lib/libaudiofile.so.0.0.2 b6bf5000-b6bf7000 rw-p 00020000 16:41 180519 /usr/lib/libaudiofile.so.0.0.2 b6bf7000-b6c00000 r-xp 00000000 16:41 180629 /usr/lib/libesd.so.0.2.36 b6c00000-b6c01000 rw-p 00009000 16:41 180629 /usr/lib/libesd.so.0.2.36 b6c13000-b6c35000 rw-p b6c13000 00:00 0 b6c35000-b6c36000 ---p b6c35000 00:00 0 b6c36000-b7436000 rwxp b6c36000 00:00 0 b7436000-b76f7000 rw-p b7436000 00:00 0 b76f7000-b78cc000 rw-s 00000000 00:08 11796495 /SYSV00000000 (deleted) b78cc000-b78d0000 r-xp 00000000 16:41 180459 /usr/lib/libXfixes.so.3.1.0 b78d0000-b78d1000 rw-p 00003000 16:41 180459 /usr/lib/libXfixes.so.3.1.0 b78d1000-b78d9000 r-xp 00000000 16:41 180449 /usr/lib/libXcursor.so.1.0.2 b78d9000-b78da000 rw-p 00007000 16:41 180449 /usr/lib/libXcursor.so.1.0.2 b78da000-b78df000 r-xp 00000000 16:41 180477 /usr/lib/libXrandr.so.2.1.0 b78df000-b78e0000 rw-p 00005000 16:41 180477 /usr/lib/libXrandr.so.2.1.0 b78e0000-b78e7000 r-xp 00000000 16:41 180479 /usr/lib/libXrender.so.1.3.0 b78e7000-b78e8000 rw-p 00006000 16:41 180479 /usr/lib/libXrender.so.1.3.0 b78e8000-b78f5000 r-xp 00000000 16:41 180457 /usr/lib/libXext.so.6.4.0 b78f5000-b78f6000 rw-p 0000d000 16:41 180457 /usr/lib/libXext.so.6.4.0 b78f6000-b79e3000 r-xp 00000000 16:41 180436 /usr/lib/libX11.so.6.2.0 b79e3000-b79e7000 rw-p 000ed000 16:41 180436 /usr/lib/libX11.so.6.2.0 b79e7000-b79f0000 r-xp 00000000 16:41 1662715 /lib/tls/i686/cmov/libnss_files-2.5.so b79f0000-b79f2000 rw-p 00008000 16:41 1662715 /lib/tls/i686/cmov/libnss_files-2.5.so b79f2000-b79fa000 r-xp 00000000 16:41 1662719 /lib/tls/i686/cmov/libnss_nis-2.5.so b79fa000-b79fc000 rw-p 00007000 16:41 1662719 /lib/tls/i686/cmov/libnss_nis-2.5.so b79fc000-b7a0f000 r-xp 00000000 16:41 1662709 /lib/tls/i686/cmov/libnsl-2.5.so b7a0f000-b7a11000 rw-p 00012000 16:41 1662709 /lib/tls/i686/cmov/libnsl-2.5.so b7a11000-b7a13000 rw-p b7a11000 00:00 0 b7a1b000-b7a1c000 r-xp 00000000 16:41 212497 /usr/lib/gconv/ISO8859-1.so b7a1c000-b7a1e000 rw-p 00000000 16:41 212497 /usr/lib/gconv/ISO8859-1.so b7a1e000-b7a25000 r--s 00000000 16:41 212550 /usr/lib/gconv/gconv-modules.cache b7a25000-b7a27000 rw-p b7a25000 00:00 0 b7a27000-b7a35000 r-xp 00000000 16:41 180592 /usr/lib/libdirect-0.9.so.25.0.0 b7a35000-b7a36000 rw-p 0000e000 16:41 180592 /usr/lib/libdirect-0.9.so.25.0.0 b7a36000-b7a37000 rw-p b7a36000 00:00 0 b7a37000-b7a3c000 r-xp 00000000 16:41 180660 /usr/lib/libfusion-0.9.so.25.0.0 b7a3c000-b7a3d000 rw-p 00004000 16:41 180660 /usr/lib/libfusion-0.9.so.25.0.0 b7a3d000-b7a92000 r-xp 00000000 16:41 180594 /usr/lib/libdirectfb-0.9.so.25.0.0 b7a92000-b7a94000 rw-p 00055000 16:41 180594 /usr/lib/libdirectfb-0.9.so.25.0.0 b7a94000-b7a96000 r-xp 00000000 16:41 1662704 /lib/tls/i686/cmov/libdl-2.5.so b7a96000-b7a98000 rw-p 00001000 16:41 1662704 /lib/tls/i686/cmov/libdl-2.5.so

Page 15 of 91 ---- Generated from The Bears Pit b7a98000-b7b58000 r-xp 00000000 16:41 180507 /usr/lib/libasound.so.2.0.0 b7b58000-b7b5d000 rw-p 000bf000 16:41 180507 /usr/lib/libasound.so.2.0.0 b7b5d000-b7c98000 r-xp 00000000 16:41 1662698 /lib/tls/i686/cmov/libc-2.5.so b7c98000-b7c99000 r--p 0013b000 16:41 1662698 /lib/tls/i686/cmov/libc-2.5.so b7c99000-b7c9b000 rw-p 0013c000 16:41 1662698 /lib/tls/i686/cmov/libc-2.5.so b7c9b000-b7c9e000 rw-p b7c9b000 00:00 0 b7c9e000-b7cb1000 r-xp 00000000 16:41 1662724 /lib/tls/i686/cmov/libpthread-2.5.so b7cb1000-b7cb3000 rw-p 00013000 16:41 1662724 /lib/tls/i686/cmov/libpthread-2.5.so b7cb3000-b7cb6000 rw-p b7cb3000 00:00 0 b7cb6000-b7cc1000 r-xp 00000000 16:41 1628864 /lib/libgcc_s.so.1 b7cc1000-b7cc2000 rw-p 0000a000 16:41 1628864 /lib/libgcc_s.so.1 b7cc2000-b7ce7000 r-xp 00000000 16:41 1662706 /lib/tls/i686/cmov/libm-2.5.so b7ce7000-b7ce9000 rw-p 00024000 16:41 1662706 /lib/tls/i686/cmov/libm-2.5.so b7ce9000-b7dc8000 r-xp 00000000 16:41 181133 /usr/lib/libstdc++.so.6.0.8 b7dc8000-b7dcb000 r--p 000de000 16:41 181133 /usr/lib/libstdc++.so.6.0.8 b7dcb000-b7dcd000 rw-p 000e1000 16:41 181133 /usr/lib/libstdc++.so.6.0.8 b7dcd000-b7dd3000 rw-p b7dcd000 00:00 0 b7dd3000-b7e31000 r-xp 00000000 16:41 182670 /usr/lib/libfmod-3.75.so b7e31000-b7e40000 rw-p 0005d000 16:41 182670 /usr/lib/libfmod-3.75.so b7e40000-b7e6e000 rw-p b7e40000 00:00 0 b7e6e000-b7ed3000 r-xp 00000000 16:41 180430 /usr/lib/libSDL-1.2.so.0.11.0 b7ed3000-b7ed5000 rw-p 00065000 16:41 180430 /usr/lib/libSDL-1.2.so.0.11.0 b7ed5000-b7efd000 rw-p b7ed5000 00:00 0 b7efd000-b7f1b000 r-xp 00000000 16:41 180638 /usr/lib/libexpat.so.1.0.0 b7f1b000-b7f1d000 rw-p 0001d000 16:41 180638 /usr/lib/libexpat.so.1.0.0 b7f1d000-b7f1e000 rw-p b7f1d000 00:00 0 b7f1e000-b7f22000 r-xp 00000000 16:41 180453 /usr/lib/libXdmcp.so.6.0.0 b7f22000-b7f23000 rw-p 00003000 16:41 180453 /usr/lib/libXdmcp.so.6.0.0 b7f23000-b7f25000 r-xp 00000000 16:41 180442 /usr/lib/libXau.so.6.0.0 b7f25000-b7f26000 rw-p 00001000 16:41 180442 /usr/lib/libXau.so.6.0.0 b7f26000-b7f2d000 r-xp 00000000 16:41 1662711 /lib/tls/i686/cmov/libnss_compat-2.5.so b7f2d000-b7f2f000 rw-p 00006000 16:41 1662711 /lib/tls/i686/cmov/libnss_compat-2.5.so b7f2f000-b7f31000 rw-p b7f2f000 00:00 0 b7f31000-b7f4a000 r-xp 00000000 16:41 1628821 /lib/ld-2.5.so b7f4a000-b7f4c000 rw-p 00019000 16:41 1628821 /lib/ld-2.5.so bfdd2000-bfe09000 rwxp bfdd2000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] Abandon (core dumped)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 10 Aug 2007 15:44:01 GMT View Forum Message <> Reply to Message SleepyfoxI have updated my files. I still get freezes. Happened a lot at Cambria mine. Even when the sector is cleared.

Updated what? Game files? It won't work.

Page 16 of 91 ---- Generated from The Bears Pit I didn't transfer mentioned update (rev.867) to alpha sources yet, it is only in my inner repository.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Fri, 10 Aug 2007 15:50:21 GMT View Forum Message <> Reply to Message Oh ok, nevermind.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sun, 12 Aug 2007 15:23:13 GMT View Forum Message <> Reply to Message I have question: does these bugs still occur? Maybe they were influenced by already fixed errors?

- Sounds are played, but terminal shows failure on opening the wav-file. - CTD when, on the militia vs soldiers window, i click the button which instantly "end" the fight.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Sun, 12 Aug 2007 17:25:49 GMT View Forum Message <> Reply to Message I regret to inform you, your highness... the bugs still do occur. I think, I've been testing the 'Meanwhile...' sequences quite thoroughly for the last few days A small addition about the CTD after militia fight: it occurs even with my mercs in the sector (when using auto resolve), not only with militia. Also, the crash does not happen immediately, as I wrote before, but when pressing the 'done' button after the fight is finished...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Mon, 20 Aug 2007 12:48:38 GMT View Forum Message <> Reply to Message Any news?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 20 Aug 2007 15:55:34 GMT View Forum Message <> Reply to Message I am trying to find some time to upgrade alpha with the features of revision 872 of main branch.

Page 17 of 91 ---- Generated from The Bears Pit Also I've added to my task sheduler: - make command-line arguments handling; - add ini option for full-screen/windowed mode;

And thought about: - using mouse wheel and mid button in game;

Quote:but when pressing the 'done' button after the fight is finished... That's incredibly valuable 'small addition'.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Mon, 20 Aug 2007 17:42:37 GMT View Forum Message <> Reply to Message Lesh 2- using mouse wheel and mid button in game; I salivate in anticipation ... my only concern is, that it would be a completely new feature, which is not even in SVN trunk, AFAIK. I'm not a programmer, but I guess it would become harder to update trunk features, when there are completely new parts of code in your version.

Also, what exactly do you mean by 'command line arguments handling'? What about some examples of possible uses? I'm a bit dumb today... dumber than usual I mean... :silly:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by lynxlynxlynx on Mon, 20 Aug 2007 17:55:02 GMT View Forum Message <> Reply to Message make PREFIX=/ugug/g OPTION2=on OPTION3=644 install

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 20 Aug 2007 17:59:34 GMT View Forum Message <> Reply to Message I mean "ja2lp --fullscreen --nosound" will start fullscreen and without sound.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Mon, 20 Aug 2007 18:34:01 GMT View Forum Message <> Reply to Message Really nice! You do a great job on this port, Lesh.

Page 18 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Mon, 20 Aug 2007 18:37:51 GMT View Forum Message <> Reply to Message Lesh 2I mean "ja2lp --fullscreen --nosound" will start fullscreen and without sound. I wonder, where I've seen this before. (;

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by pyg on Mon, 20 Aug 2007 23:15:41 GMT View Forum Message <> Reply to Message Well, I'm hooked enough now to need to make it work. Is there somewhere to look/send bug reports/patches?

Anyway, I get a segfault in line 970 of alpha/lpja2/src/sgp/library_database.cpp as it calls the glibc strcasecmp _stricmp(pFilenameWithoutPath, openLibraryFiles->pFileName) if pFilenameWithoutPath is a non-existent file (for example: SPEECH\\054_055.WAV). I'm not properly sure what the problem is so I don't have a real patch just a detour. Why is it looking for 054_055.WAV anyway? I don't have anything like that in my Data*.

Currently I'm trying to figure out a hang in physics.cpp (maybe) but I can't fully unravel the code loops at my current level of understanding. If anyone (Lesh?) is interested try . Just end the turn and pass on the interupts. It should hang in the last third of opponents turn. The code involved is full of DebugMsg full of interesting profanity and my guess is this is not a porting bug. If it doesn't hang for you please resave and let me have it back, as I MUST RETAKE Drasen

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Tue, 21 Aug 2007 14:20:03 GMT View Forum Message <> Reply to Message pygWell, I'm hooked enough now to need to make it work. Is there somewhere to look/send bug reports/patches?

Quote:Bug reports: Send bug description and savegame to [email protected]

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by pyg on Tue, 21 Aug 2007 14:26:53 GMT View Forum Message <> Reply to Message Thanks SleepyFox. This is true for Linux port as well?

Page 19 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Tue, 21 Aug 2007 15:34:23 GMT View Forum Message <> Reply to Message Yeah, just mention it in the email.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 22 Aug 2007 18:45:21 GMT View Forum Message <> Reply to Message There was an update for alpha! Link is the same: https://81.169.133.124/source/ja2/branches/Lesh/alpha Changelog: - fixed: Graphical noise in the helicopter-map (thanks Tron) - fixed: first found jsd-file from tilecache dir is always skipped - dev: 2 improvements over VFS - had chased r872 release (bugfixes and features). This also will solve the bugs, found by Sleepyfox. - fixed: freeze in tactical - enemy soldier attempted to throw item at himself (pyg) - fixed: hidden bug in library database - possible read after array boundary (pyg)

Still in queue: CTD after auto battle (after pressing "done" button) and many other things.

NOTE: in order to run game, you'll need to update game data at least to rev.791 !!! This revision corresponds to 872 release. Otherwise - "run-time error" due to new xml file.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Wed, 22 Aug 2007 19:46:42 GMT View Forum Message <> Reply to Message Nice! Thks Lesh!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Wed, 22 Aug 2007 21:18:21 GMT View Forum Message <> Reply to Message Thanks, I'll fire it up tomorrow... only installed win XP again, cause I found no proper way to get my new WLAN running with linux (man, I do know why I changed in the first place ...no offence intended)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Hase on Thu, 23 Aug 2007 12:33:52 GMT

Page 20 of 91 ---- Generated from The Bears Pit View Forum Message <> Reply to Message Thanks for the great work! I will try it on OS X as soon as I have an Intel Mac (there is probably too much Endianess dependency to try it on PowerPC?).

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 23 Aug 2007 15:35:54 GMT View Forum Message <> Reply to Message HaseThanks for the great work! I will try it on OS X as soon as I have an Intel Mac (there is probably too much Endianess dependency to try it on PowerPC?). Thanks! It would be interesting to try it on Mac!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 23 Aug 2007 17:58:45 GMT View Forum Message <> Reply to Message Oops! Me sorry! Sources were updated again - I refixed bug in library database (can be the reason of CTD after autoresolve and also in other places) and added autoresolve log-tracking.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Mon, 27 Aug 2007 20:23:49 GMT View Forum Message <> Reply to Message I have played several days and i haven't got any crashes or freezes. Even with the auto-resolve battle screen. This version is very stable.

But i get theses bugs :

- Some problems when shooting tracer ammo. Cone of Light tend to stay a long time, spits (when bullets hit something) stay frozen, etc. - Sound problem when shooting more than 50 rounds of bullets. - Text pop up that appeared under cursor are sometime "annoying". It does not always work very well. - Sometime, i don't get anymore subtitles. Even with the subtitles enabled in the option screen.

I'll be very happy to run the game in a fullscreen mode. That'll save my eyes.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 29 Aug 2007 18:07:29 GMT View Forum Message <> Reply to Message

Page 21 of 91 ---- Generated from The Bears Pit SleepyfoxI have played several days and i haven't got any crashes or freezes. Even with the auto-resolve battle screen. This version is very stable. I am glad to hear that!.

Sleepyfox- Some problems when shooting tracer ammo. Cone of Light tend to stay a long time, spits (when bullets hit something) stay frozen, etc. Hmm... Need savegame to investigate!

Sleepyfox- Sound problem when shooting more than 50 rounds of bullets. OMG! More that 50 rounds! Ok. 1. AFAIK, no gun has burst sound for more than 50 rounds. 2. (This is true for ESD users, e.g. me) ESD sound subsystem produces noticable delay in sound playback. 3. Or you need to describe this problem more precisely.

Sleepyfox- Text pop up that appeared under cursor are sometime "annoying". It does not always work very well. If this means, that tooltip text stays on screen, when it should disappear, so I already noticed and fixed that.

Sleepyfox- Sometime, i don't get anymore subtitles. Even with the subtitles enabled in the option screen. Hmm... Maybe this somehow interact with previous bug?

SleepyfoxI'll be very happy to run the game in a fullscreen mode. That'll save my eyes. My develpoment (not alpha) svn branch already has version, where you can activate fullscreen via command line. I noticed, that in fullscreen mouse is less sensitive. Strange, but still playable.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by wanne (aka RoWa21) on Thu, 30 Aug 2007 06:59:08 GMT View Forum Message <> Reply to Message @Lesh: Do you also commit your bugfixes that you do on the Linux version to the main svn source code (e.g: Tooltips stays on the screen, ...). Is it planned to merge the Linux version so we only have "one" ja2 1.13 version?

Roman

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Thu, 30 Aug 2007 09:45:37 GMT View Forum Message <> Reply to Message I can only agree to what Sleepyfox said... I couldn't provoke a single CTD or freeze since the last update

Page 22 of 91 ---- Generated from The Bears Pit Sleepyfox- Some problems when shooting tracer ammo. Cone of Light tend to stay a long time, spits (when bullets hit something) stay frozen, etc. Confirmed, though I know it was also buggy in older windows versions... don't really know if there is any difference or simply the same old problem.

Quote: OMG! More that 50 rounds! Ok. Long live rod&spring (and the psychos)! Anyway, there are really only 50 sounds .. don't really see the reason, why we can't take, lets say, 1 or 5 or 15 sounds for each weapon and repeat them as many times as needed. I don't bother if shot 1 sounds the same as shot 16. Please enlighten me, if there is any good reason for having thousands of soundfiles but still a restriction to 50 shots.

Quote:If this means, that tooltip text stays on screen, when it should disappear, so I already noticed and fixed that. Thanks!

PS: I'll be moving this weekend, so there will not be much time for testing and I will probably have no internets ( ) for a week or two...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Thu, 30 Aug 2007 10:40:58 GMT View Forum Message <> Reply to Message Lesh the temerous coderHmm... Maybe this somehow interact with previous bug?

Yes, i think it's the same problem. Don't worry about that now. If i still get this problem after your next release (which will contain the "tooltip bug" fix, i suppose), i'll report it. mokiConfirmed, though I know it was also buggy in older windows versions... don't really know if there is any difference or simply the same old problem.

Yeah, i'm asking myself if the changes to the way of the tracer ammo works in the latest releases (moving source of light instead of cone of light) didn't solve the problem (or has been solved with it). mokiLong live rod&spring (and the psychos)! Anyway, there are really only 50 sounds .. don't really see the reason, why we can't take, lets say, 1 or 5 or 15 sounds for each weapon and repeat them as many times as needed. I don't bother if shot 1 sounds the same as shot 16. Please enlighten me, if there is any good reason for having thousands of sound files but still a restriction to 50 shots.

In fact, with an certain LMG (an early one, 7.62 ammo, don't remember the name) with rod&spring and reflex sight, i have reached 52 bullets (maybe even more). Without psycho.

Page 23 of 91 ---- Generated from The Bears Pit mokiPS: I'll be moving this weekend, so there will not be much time for testing and I will probably have no internets ( ) for a week or two...

Don't worry, i'll be there to submerge Lesh with bugs reports. :diabolical:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 30 Aug 2007 16:48:20 GMT View Forum Message <> Reply to Message SleepyfoxmokiConfirmed, though I know it was also buggy in older windows versions... don't really know if there is any difference or simply the same old problem.

Yeah, i'm asking myself if the changes to the way of the tracer ammo works in the latest releases (moving source of light instead of cone of light) didn't solve the problem (or has been solved with it). Currently there is cone of light tracer bursts. I just didn't handled that huge patch, made by Overhaul, where cone of light was replaced by moving light sources.

Sleepyfox Don't worry, i'll be there to submerge Lesh with bugs reports. :diabolical: :scary:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 30 Aug 2007 17:07:51 GMT View Forum Message <> Reply to Message mokiLong live rod&spring (and the psychos)! Anyway, there are really only 50 sounds .. don't really see the reason, why we can't take, lets say, 1 or 5 or 15 sounds for each weapon and repeat them as many times as needed. I don't bother if shot 1 sounds the same as shot 16. Please enlighten me, if there is any good reason for having thousands of soundfiles but still a restriction to 50 shots. Actually, in our mod shot1-sound isn't the same as shot16-sound. The last holds the sound of 16 bullets, flying out from barrel, while the first is only one.

Ideal solution, IMHO, is to use only shot1-sound and loop it's playback as many times, as we need. But not all current sounds suits well for such looping (well, I did't check this, I can't be sure). Additionally, we were trying to syncronize animation and sound of bursting. This is some kind of restriction for using unversal loop file: it can ruin the sound of burst, if shot-file is longer, than the time between two consecutive shots.

Interesting, thought... Should I try shot-sound looping?

Page 24 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Thu, 30 Aug 2007 17:15:38 GMT View Forum Message <> Reply to Message I'll be there to test it intensively anyway.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 30 Aug 2007 17:34:32 GMT View Forum Message <> Reply to Message RoWa21@Lesh: Do you also commit your bugfixes that you do on the Linux version to the main svn source code (e.g: Tooltips stays on the screen, ...). No, because it either my own bug or bugs, taken from main branch and fixed then, using the main branch again. Bugfixes in diff, related to main branch, are sent via e-mail to all developers. I concentrated on linux version and do not manage windows versions. I even don't have the latest revision on main branch, I am only using diffs from revision to revision.

RoWa21Is it planned to merge the Linux version so we only have "one" ja2 1.13 version? Hard to say. There is some problems, I've encountered, while porting. My version is "old" in compare with the current main branch (872 vs 1280+). I suppose, not all windows coders know, how to write cross-platform code (I already promised to Seargent Kolja cross-platform build issues document). I've made radical changes to project - mass renameing of current files and changes in the file naming policy. This would be my first condition in order to merge projects.

Many things to discuss...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Thu, 30 Aug 2007 20:55:20 GMT View Forum Message <> Reply to Message [quote=Lesh 2]mokiInteresting, thought... Should I try shot-sound looping? That would be interesting, but may be more difficult than simply looping the first shot as often as needed. With some guns there's an effect like ejected shells falling to the ground (the AUG, for example, many others too), which lasts longer than the time that is needed to fire the next shot... the result is, that the single shot sounds overlap, making it necessary to play the same sound 2 or 3 times at a given moment, only slightly offset... I would prefer downloading a few hundred MBs of sounds (once) over losing these small, realistic effects.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Marlboro Man on Thu, 30 Aug 2007 20:58:37 GMT View Forum Message <> Reply to Message I'll go ahead and sticky this. Add it to the long list of stickys here.

Page 25 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 31 Aug 2007 15:30:30 GMT View Forum Message <> Reply to Message Thanks MM! :cheers:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sun, 02 Sep 2007 15:32:18 GMT View Forum Message <> Reply to Message Sources were updated.

- command-line switches appeared (use --help to view them) - ini-option for fullscreen - mini-manual (overview, configuration): lpja2/doc/manual.txt

I think, it's time for our first release candidate.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Sun, 02 Sep 2007 18:49:10 GMT View Forum Message <> Reply to Message I found a box of old internets under my bed, so I'm back early

Yeah, Lesh, bring the full impact of v1.13 for Linux to the waiting masses! ...and as always: I'll test all the new stuff tomorrow (it's like saying 'I'll get up in 5 minutes' in the morning... anyway, I will test it, sooner or later

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Sun, 02 Sep 2007 19:09:12 GMT View Forum Message <> Reply to Message mokiI found a box of old internets under my bed, so I'm back early

At least, it's not the boogeyman.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Sun, 09 Sep 2007 17:11:18 GMT View Forum Message <> Reply to Message Well, i've played several hours with the recent release in fullscreen and i didn't get any problem.

Page 26 of 91 ---- Generated from The Bears Pit Look like a clean release once again

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Tue, 11 Sep 2007 14:54:50 GMT View Forum Message <> Reply to Message Introducing myself. I've played JA2

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Tue, 11 Sep 2007 14:57:16 GMT View Forum Message <> Reply to Message er, and I can't type today. I've played JA2 for years. Now trying the Linux port. I play almost every day over lunch (permissive employer), so would love to be a regular tester. Using Fedora Core v7, which I keep very up to date. I'm just saying "Hi" for now, so, Hi!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Tue, 11 Sep 2007 16:46:21 GMT View Forum Message <> Reply to Message Welcome, JAPH!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Tue, 11 Sep 2007 19:29:41 GMT View Forum Message <> Reply to Message Unfortunately, I have an install problem - header declaration conflicts. Would you like error details here, or in email to [email protected]?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Wed, 12 Sep 2007 01:03:28 GMT View Forum Message <> Reply to Message "Welcome to the new challenger!"

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 12 Sep 2007 17:48:38 GMT View Forum Message <> Reply to Message

Page 27 of 91 ---- Generated from The Bears Pit JAPHUnfortunately, I have an install problem - header declaration conflicts. Would you like error details here, or in email to [email protected]? Place it here.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Thu, 13 Sep 2007 17:24:09 GMT View Forum Message <> Reply to Message Okay, lets first make sure I have the right sources. I got them with:

'wget -w 1 -l 20 -np -nH -r --cut-dirs=5 --no-check-certificate https://81.169.133.124/source/ja2/branches/Lesh/alpha/lpja2'

If the URL is right, and the lpja2 dir is no more than fifteen levels deep (-l 20 minus 5 levels for the URL path), then I assume I have the correct and complete source.

If so, here's what happened. 'install_fmod.sh' and 'make user-dir' went fine. 'build_release.sh' ran fine up to (last successful line): gplusplus ../../src/sgp/debug.cpp -c -O3 -funroll-loops -fomit-frame-pointer -g -DJA2 -DENGLISH -I../../src/. -I../../src/sgp -I../../src/utils -I../../src/tile_engine -I../../src/tactical_ai -I../../src/tactical -I../../src/strategic -I../../src/laptop -I../../src/editor -I../../src/SDL_Config -I../../src/SDL -MD -pipe

I changed the actual command to 'gplusplus' because UBB gave me a Forbidden error every time I included the actual command, which I can't type here because UBB will not let me post it. then errored with (first error line):

../../src/sgp/debug.h:33: error: previous declaration of

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Thu, 13 Sep 2007 17:40:55 GMT View Forum Message <> Reply to Message One more full disclosure point - I accidentally had a umask of 013 on root for a while, so anything that I updated while that was true wasn't world readable. I think I found and fixed them all, but if you find this is related to being unable to read system files, then it may mean I've missed some.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by pyg on Fri, 14 Sep 2007 02:32:42 GMT View Forum Message <> Reply to Message Helicopter trouble.... try for an example (really available now). I've just landed a squad in Omerta and can't seem to exit the vehicle. Lots of strangeness including segfaults in vehicles.cpp and

Page 28 of 91 ---- Generated from The Bears Pit map_screen_helicopter.cpp as well as missing mercs (assign to squad and go west into occupied Omerta... hmmm) btw, nice work Lesh

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by pyg on Fri, 14 Sep 2007 02:48:14 GMT View Forum Message <> Reply to Message While I'm whining, quit won't quit for me, which is annoying when it's fullscreen, ontop, and sticky . Looks like fmod to me:

#0 0xffffe405 in __kernel_vsyscall () #1 0xf7c761b6 in nanosleep () from /lib32/libc.so.6 #2 0xf7cafdac in usleep () from /lib32/libc.so.6 #3 0xf7e850dd in FSOUND_DSP_Free () from /usr/lib32/libfmod.so #4 0x09aad440 in ?? () #5 0xf7e88db6 in FSOUND_Stream_ShutDown () from /usr/lib32/libfmod.so #6 0x00005c00 in ?? () #7 0xf7e83d29 in FSOUND_Close () from /usr/lib32/libfmod.so #8 0x09aad440 in ?? () #9 0x08094bba in ShutdownSoundManager () at ../../src/sgp/sound_man.cpp:1434 #10 0x0808d957 in ShutdownStandardGamingPlatform () at ../../src/sgp/sgp.cpp:286 #11 0x080627de in main (argc=1, argv=0xff82c334) at ../../src/./main.cpp:46

It will probably come as no suprise that the sound is rather messed up... constantly garbled but tolerable as I don't listen to the music anyway. Also if I play for a long time things get really strange (sounds like buffering problems). So how about SDL_Mixer? Anyway my crappy ati hda sound card could be most of the problem as some games require module params to sound ok although none of the usual tricks have worked here.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 14 Sep 2007 17:39:43 GMT View Forum Message <> Reply to Message JAPHOkay, lets first make sure I have the right sources. I got them with:

'wget -w 1 -l 20 -np -nH -r --cut-dirs=5 --no-check-certificate https://81.169.133.124/source/ja2/branches/Lesh/alpha/lpja2' This line works? Quite an original way, I must say. I recommend to use subversion (svn) package to get these sources.

JAPHI changed the actual command to 'gplusplus' because UBB gave me a Forbidden error every time I included the actual command, which I can't type here because UBB will not let me post it.

Page 29 of 91 ---- Generated from The Bears Pit Use code tags to put formatted text with any character combination (the word "code" in square brackets will be open tag, the word "/code" in square brackets will close block).

JAPHthen errored with (first error line):

../../src/sgp/debug.h:33: error: previous declaration of

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 14 Sep 2007 20:22:52 GMT View Forum Message <> Reply to Message Lesh 2JAPHOkay, lets first make sure I have the right sources. I got them with:

'wget -w 1 -l 20 -np -nH -r --cut-dirs=5 --no-check-certificate https://81.169.133.124/source/ja2/branches/Lesh/alpha/lpja2' This line works? Quite an original way, I must say. I recommend to use subversion (svn) package to get these sources. Yeah, I know. I'm a CVS guy, and this was my way to avoid having to learn to use SVN correctly. Lesh2JAPHthen errored with (first error line):

../../src/sgp/debug.h:33: error: previous declaration of

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 14 Sep 2007 20:41:07 GMT View Forum Message <> Reply to Message Re: Data dirs above - I think I found them in /trunk/GameData. But, since they're the current version, it looks like I'm in for a bit of SVN learning to get the one you're using. Still haven't located Ja2.ini, but I suppose I could copy it off a Windows install. Unless some kind soul wants to enable my intellectual laziness and post a link to them all somewhere? :naughty:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 14 Sep 2007 20:50:19 GMT View Forum Message <> Reply to Message Or perhaps some kind soul already did, in the very thread I'm posting to. Or at least a full SVN command so that I can once again postpone learning. Sorry for the useless extra posts.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Fri, 14 Sep 2007 22:20:37 GMT View Forum Message <> Reply to Message

Page 30 of 91 ---- Generated from The Bears Pit With rapidsvn, it's really easy, you know...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 15 Sep 2007 13:02:30 GMT View Forum Message <> Reply to Message JAPHRe: Data dirs above - I think I found them in /trunk/GameData. But, since they're the current version, it looks like I'm in for a bit of SVN learning to get the one you're using. Still haven't located Ja2.ini, but I suppose I could copy it off a Windows install. Unless some kind soul wants to enable my intellectual laziness and post a link to them all somewhere? :naughty: Of course, you need windows installation of this game. But you need *.slf files only. Put them to ja2-1.13/Data. All other necessary files is on svn link, you already found. user@host:~$ svn co -r 791 https://81.169.133.124/source/ja2_v1.13_data/GameDir

Warning, there is about 150 mb to download from there.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 15 Sep 2007 15:31:28 GMT View Forum Message <> Reply to Message New updates are available.

- made real shading instead of checkboard pixelating for inventory slots - fixed bug in function, that checks for end-of-file - rearranged gap-file reading loop - fixed long bursting problem (only 1 bullet instead of burst and locked user interface) - uncommented export C section due to compiler errors on Fedora - fixed loading of vehicles with passengers from saved game - fixed transparency of user interface messages and SURPRISE! - made mouse wheel and mid button support. Added control of aim time and burst length in turn-based mode via wheel just to be sure, it works.

Enjoy!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Sat, 15 Sep 2007 17:41:45 GMT View Forum Message <> Reply to Message Lesh 2and SURPRISE! - made mouse wheel and mid button support. Added control of aim time and burst length in

Page 31 of 91 ---- Generated from The Bears Pit turn-based mode via wheel just to be sure, it works.

The same feature exists for the windows version?! I don't remember that! Because it's a really great idea!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 15 Sep 2007 17:58:21 GMT View Forum Message <> Reply to Message No! It is exclusive linux port only feature! I am not kidding.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Mon, 17 Sep 2007 16:26:11 GMT View Forum Message <> Reply to Message Got it all now, thanks. Your new revision corrects the compilation problem, too, by the way. I haven't started playing yet, but the game now launches just fine.

I would humbly and respectfully like to suggest something. And that's with no sarcasm intended, I really do have a lot of respect for people who can do what you do, Lesh. But a programmer can be so close to a project that it's easy to forget that there are things you can take for granted that someone unfamiliar with the project just won't know. With that in mind, I'd like to submit a revision to your installation instructions. It just covers what I had to learn in this process so far, plus one or two extra hints to smooth the process for someone new.

If that's okay with you, I'll post an svn diff. I also have some skill with shell scripts, if I can help. I was thinking of modifying 'install_fmod.sh' so that it checks to see if it was run under sudo, exiting with instructions to do so if it wasn't. Let me know what you think.

Thanks again for putting in the effort to allow us all to enjoy the greatest game on the greatest platform!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 17 Sep 2007 17:27:47 GMT View Forum Message <> Reply to Message JAPHWith that in mind, I'd like to submit a revision to your installation instructions. It just covers what I had to learn in this process so far, plus one or two extra hints to smooth the process for someone new. Very good! Today I met difficulties with installing fmod on Debian Etch, using my own script (my account wasn't in the sudoers file, thus failed attemts to become root). So revising this script would be great.

Page 32 of 91 ---- Generated from The Bears Pit I sent a private message to you. Look for mail icon near "My Stuff".

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Mon, 17 Sep 2007 22:13:58 GMT View Forum Message <> Reply to Message Okay, I responded to that, now back to testing. The latest revision won't let me enter a nickname for my IMP merc. The cursor goes to the field, but nothing I type shows up. I can complete the merc, and his nickname becomes whatever first name I entered.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Tue, 18 Sep 2007 14:54:08 GMT View Forum Message <> Reply to Message I also get no response from the mouse wheel - is there a command line switch I should use for that? There's no new ones in ja2lp --help. Or (more likely) am I just doing something wrong?

@Sleepyfox: I realized I never responded to you, and didn't want you to think I was ignoring you. Thanks for the welcome, and once I realized that svn would respond to a command line URL, with no need to properly set up an SVNROOT env var (if indeed there is such a thing, I don't know), I lost a lot of my aversion to it. It took me long enough to grasp the relatively easy complexities of a cvs setup, and I've gotten old enough that I don't want to spend time learning something that I may not continue using. Now I just have to get a grip on UBB, since it looks like I'll actually be using this for a while.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Tue, 18 Sep 2007 19:20:09 GMT View Forum Message <> Reply to Message JAPHI also get no response from the mouse wheel - is there a command line switch I should use for that? There's no new ones in ja2lp --help. Or (more likely) am I just doing something wrong?

Strange! That works for me. No specific command line required.

- Some problems with auto fire. Maybe the new bullet sound system. bullets are shots "discontinuously".

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Tue, 18 Sep 2007 19:59:14 GMT View Forum Message <> Reply to Message

Page 33 of 91 ---- Generated from The Bears Pit Game just blew up - "Runtime error. Press to exit." It happened when I tried to clean a bloody throwing knife by throwing it at the ground in real time. Console says

IMAGE: Resource file TILECACHE\KNIFING.STI does not exist

Oops - is that a backslash in that case-insensitive path? Not that it really matters, because the file genuinely doesn't exist in any upper/lower case combination.

I haven't paid much attention to sound yet, but the little I did play seemed "hollow." I'll try to actually listen some and give a better description.

On the mouse wheel, am I supposed to do something more than just place the cursor over the target and turn the wheel?

Map scrolling in windowed mode is difficult to trigger - it seems like I only have about a one pixel area on the edge of the window that my cursor must be in for scrolling to happen. It's very easy to miss that area. I've seen some threads complaining about this in Windows, too, so I'll have to try it there and see if my experience is the same.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Tue, 18 Sep 2007 20:19:12 GMT View Forum Message <> Reply to Message Thought these might be interesting, too. From the startup messages in the console:

Game ready! GetExecutableDirectory() Error opening/creating file IgnoreShadeTables.txt: No such file or directory IMAGE: Resource file FACES\114.sti does not exist VOBJECT: Invalid image filename given (FACES\114.sti) Error opening/creating file SPEECH\003_012.gap: No such file or directory

They don't appear to interfere with the game, at least not immediately. Again, path case and separator are wrong for Linux, but the files don't appear to exist anyway. Beginning to think something is wrong with my installation, so I'm going to try it again.

Page 34 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Tue, 18 Sep 2007 20:34:16 GMT View Forum Message <> Reply to Message JAPHThought these might be interesting, too. From the startup messages in the console:

Game ready! GetExecutableDirectory() Error opening/creating file IgnoreShadeTables.txt: No such file or directory IMAGE: Resource file FACES\114.sti does not exist VOBJECT: Invalid image filename given (FACES\114.sti) Error opening/creating file SPEECH\003_012.gap: No such file or directory

They don't appear to interfere with the game, at least not immediately. Again, path case and separator are wrong for Linux, but the files don't appear to exist anyway. Beginning to think something is wrong with my installation, so I'm going to try it again.

Or maybe not so interesting. Should have re-read the thread before posting. These have already been covered, so please ignore.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Tue, 18 Sep 2007 22:20:37 GMT View Forum Message <> Reply to Message JAPHOn the mouse wheel, am I supposed to do something more than just place the cursor over the target and turn the wheel?

Map scrolling in windowed mode is difficult to trigger - it seems like I only have about a one pixel area on the edge of the window that my cursor must be in for scrolling to happen. It's very easy to miss that area. I've seen some threads complaining about this in Windows, too, so I'll have to try it there and see if my experience is the same.

For the mouse, I don't think there are any other things to do but what you have just written.

For the map scrolling, i have the same problem but you can use arrow keys or launch the game in fullscreen to work around the problem.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by dzaro on Wed, 19 Sep 2007 10:00:45 GMT View Forum Message <> Reply to Message hi every1,

Page 35 of 91 ---- Generated from The Bears Pit i'm a long time player of ja2 and recently moved to linux... thats how i got here i have a problem with game: what datafiles version to use? in install.txt version 734 is recommended but for me does not work properly. i wanted to try different version (791) but forgot to specify it in svn command and downloaded version 876... d'oh. it works beter than 734 but have some bugs that make it hard to play (i don't mean crepitus ). if i have to use older version, is there a way to downgrade 876 without downloading all files again? btw u do a great job Lesh. TY

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by dzaro on Wed, 19 Sep 2007 13:09:06 GMT View Forum Message <> Reply to Message i'm impatient so i just downloaded it all again, this time rev. 791 and i have the same problems - missing some files. when using throwing knife: IMAGE: Resource file TILECACHE\KNIFING.STI does not exist or grenade: IMAGE: Resource file TILECACHE\ZGRAV_D.STI does not exist ... it makes the game crash is this standard feature of linux port or i missed something?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 19 Sep 2007 14:32:31 GMT View Forum Message <> Reply to Message I saw the same thing on the throwing knife, and I just downloaded and installed a fresh copy of both GameDir r.791 and Lesh's alpha. No offense intended, but you're right about being impatient. Give the man a chance to respond. This isn't his job, it's a hobby. And the thread warns you that it's still an alpha.

In the meantime, use gunpowder instead of muscle power to propel death towards the enemy. :wrysmiley:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by dzaro on Wed, 19 Sep 2007 14:53:33 GMT View Forum Message <> Reply to Message i know, i know. i'm just so happy to have a chance to play my fav game on linux than i can't wait to

Page 36 of 91 ---- Generated from The Bears Pit make it work and its not only about knives and grenades. when crows fly away from corpse (i didn't mention i don't see corpses) the game crashes too. so i can't attack sector when there are corpses with crows (disabling crows does not work). so i can play the game but without using nades and so, but enemy does and i can't make him not to (still can kill him before he use it ) and thats only what i figured out during my not too long gameplay.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 19 Sep 2007 14:56:42 GMT View Forum Message <> Reply to Message JAPHI also get no response from the mouse wheel - is there a command line switch I should use for that? Mouse wheel should work only when you are aiming at enemy.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 19 Sep 2007 15:16:37 GMT View Forum Message <> Reply to Message dzarowhen using throwing knife: IMAGE: Resource file TILECACHE\KNIFING.STI does not exist or grenade: IMAGE: Resource file TILECACHE\ZGRAV_D.STI does not exist ... it makes the game crash is this standard feature of linux port or i missed something? It's a bug! :computer2: Can someone provide saved game for this? Send either zipped, gzipped or bzipped file to [email protected] or host it somewhere. If you are sending it by e-mail, write "Linux port" in letter.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 19 Sep 2007 15:24:53 GMT View Forum Message <> Reply to Message Lesh 2JAPHI also get no response from the mouse wheel - is there a command line switch I should use for that? Mouse wheel should work only when you are aiming at enemy. Right, but on my system, it does nothing. I place the aiming cursor over the enemy, turn the mouse wheel in either direction, and nothing happens. Same result in windowed or full screen mode. My mouse is USB run thru a KVM, if you think that might matter.

Page 37 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 19 Sep 2007 15:42:22 GMT View Forum Message <> Reply to Message JAPH, can you find a PS/2 mouse to test it?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by dzaro on Wed, 19 Sep 2007 16:12:24 GMT View Forum Message <> Reply to Message Lesh 2 It's a bug! :computer2: Can someone provide saved game for this? Send either zipped, gzipped or bzipped file to [email protected] or host it somewhere. If you are sending it by e-mail, write "Linux port" in letter. sure i can post savegame but i'm not sure if it's not only my problem because i guess someone would notice he can't use grenades btw mid button works well for me (usb mouse)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 19 Sep 2007 16:25:00 GMT View Forum Message <> Reply to Message Lesh 2JAPH, can you find a PS/2 mouse to test it? Sure, hang on.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 19 Sep 2007 16:29:29 GMT View Forum Message <> Reply to Message dzaroLesh 2 It's a bug! :computer2: Can someone provide saved game for this? Send either zipped, gzipped or bzipped file to [email protected] or host it somewhere. If you are sending it by e-mail, write "Linux port" in letter. sure i can post savegame but i'm not sure if it's not only my problem because i guess someone would notice he can't use grenades

Not everyone uses every tool. I can confirm it, though. Grenades, er, 'blow up' for me, too.

Page 38 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by dzaro on Wed, 19 Sep 2007 16:36:52 GMT View Forum Message <> Reply to Message well i don't use grenades myself but enemy does - thats how i figured it out. for throwing knives a made a workaround for me by renaming one file in tilecache directory to KNIFING.STI. i don't see knife fly but at least it does not crash.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 19 Sep 2007 16:39:48 GMT View Forum Message <> Reply to Message JAPHLesh 2JAPH, can you find a PS/2 mouse to test it? Sure, hang on. I spoke too soon. This machine doesn't have a PS/2 port. I'll get one with a PS/2 port installed with Fedora and get back to you.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 19 Sep 2007 16:49:54 GMT View Forum Message <> Reply to Message Emailed a savegame for the throwing bug.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by dzaro on Wed, 19 Sep 2007 17:00:37 GMT View Forum Message <> Reply to Message JAPHEmailed a savegame for the throwing bug. i did already. added frag, smoke, stun, flash nades in inventory and rpg too.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 19 Sep 2007 17:13:51 GMT View Forum Message <> Reply to Message Aaargh! :headbanger:

Current installation procedure still isn't ideal. In order to install ja2 1.13 properly, you need to take from windows ja2 installation not only *.slf, but contents of TILECACHE\ directory too!!! Thats the reason of your crashes. SVN game data does not contain all tilecache files.

Page 39 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by dzaro on Wed, 19 Sep 2007 17:22:14 GMT View Forum Message <> Reply to Message just tested and it works now :cheers: would be good idea to edit install.txt file

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 19 Sep 2007 17:27:08 GMT View Forum Message <> Reply to Message I had a feeling something was missing when I couldn't find the referenced files in GameDir. But it's really no problem, that's what testing is for.

Copying the files over fixes it, thanks.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 19 Sep 2007 17:28:09 GMT View Forum Message <> Reply to Message dzarowould be good idea to edit install.txt file Already did!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 19 Sep 2007 17:29:35 GMT View Forum Message <> Reply to Message dzarojust tested and it works now :cheers: would be good idea to edit install.txt file

Yes, that's in the works. Lesh, I don't mind taking responsibility for install.txt if you'd like. You don't even have to give me write access to SVN, I'll just PM or email the updates to you.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 19 Sep 2007 18:19:45 GMT View Forum Message <> Reply to Message To minimize confusion from installing the game by newcomers I updated the alpha sources.

Updated:

Page 40 of 91 ---- Generated from The Bears Pit - added revision to install.txt from JAPH, made changes to installation steps, fixed game dir svn url mistype - added revision to install_fmod.sh from JAPH

But I had time to do also this: - fixed soldier tooltips (partial info only was shown) - fixed sector check: is sam in sector? (modmaker Scorpion asked this) - editor has been ported: now editor can be compiled and run under debug version. It is not tested part of project, so it has bugs. I already got one segfault. - added command line help descriptions for editor switches

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Wed, 19 Sep 2007 18:36:08 GMT View Forum Message <> Reply to Message Lesh 2Aaargh! :headbanger:

Current installation procedure still isn't ideal. In order to install ja2 1.13 properly, you need to take from windows ja2 installation not only *.slf, but contents of TILECACHE\ directory too!!! Thats the reason of your crashes. SVN game data does not contain all tilecache files.

I was asking myself if i had a supernatural installation because i don't get any problems with knifes or grenades.

Quote:- fixed sector check: is sam in sector? (modmaker Scorpion asked this)

Oh ho! Already a mod for the linux version?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 19 Sep 2007 18:45:36 GMT View Forum Message <> Reply to Message It seems the URL at the start of this thread is no longer valid. I found the updates in https://81.169.133.124/source/ja2/branches/Lesh/lpja2/ and not in https://81.169.133.124/source/ja2/branches/Lesh/alpha/lpja2/

Subject: Re: [Linux] ja2 1.13 linux port (alpha release)

Page 41 of 91 ---- Generated from The Bears Pit Posted by cdunigan on Wed, 19 Sep 2007 18:54:43 GMT View Forum Message <> Reply to Message JAPHIt seems the URL at the start of this thread is no longer valid. I found the updates in https://81.169.133.124/source/ja2/branches/Lesh/lpja2/ and not in https://81.169.133.124/source/ja2/branches/Lesh/alpha/lpja2/

Which of course also accounts for the mouse failing to work - I hadn't actually gotten the new revision yet. It works great now that I have the right code.

Thanks again, Lesh. That's a pretty cool feature. :super:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 19 Sep 2007 19:07:58 GMT View Forum Message <> Reply to Message SleepyfoxOh ho! Already a mod for the linux version? In theory, any mod can be run, using this port. Scorpion's Renegade Republic Mod works. Ok, at least, it runs

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by dzaro on Wed, 19 Sep 2007 19:08:27 GMT View Forum Message <> Reply to Message sure it's :bluecool: but after the years of playing ja2 without it i need some time to get used to it

:clap: for Lesh

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 19 Sep 2007 19:15:25 GMT View Forum Message <> Reply to Message JAPHIt seems the URL at the start of this thread is no longer valid. I found the updates in https://81.169.133.124/source/ja2/branches/Lesh/lpja2/ and not in https://81.169.133.124/source/ja2/branches/Lesh/alpha/lpja2/

Page 42 of 91 ---- Generated from The Bears Pit Actually, the first is my development dir, where I do my things at first. Code from this dir may not compile, game may not run or work strangely. The second is the "public" dir. It changes not very often, but do not contain "features", as the first one.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Arikon on Thu, 20 Sep 2007 05:59:44 GMT View Forum Message <> Reply to Message Lesh, you need to replace 'cp' to 'ln' in this line in install_fmod.sh cp -s /usr/lib/libfmod-3.75.so /usr/lib/libfmod.so Also it is not bad to run ldconfig after adding new lib.

Btw, new install_fmod.sh generates errors on Ubuntu. I can send my working version of it to you.

P.S.: Don't know, why I can't post shell-script code in [ code ] tag =( When I press Submit or Preview Post button, I recieve following error: Forbidden You don't have permission to access /board/ubbthreads.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.37 Server at http://www.ja-galaxy-forum.com Port 80

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Thu, 20 Sep 2007 18:07:03 GMT View Forum Message <> Reply to Message ArikonLesh, you need to replace 'cp' to 'ln' in this line in install_fmod.sh cp -s /usr/lib/libfmod-3.75.so /usr/lib/libfmod.so Also it is not bad to run ldconfig after adding new lib.

Either-or. 'cp' is fine, just unorthodox. I also mentioned ldconfig to Lesh, but it's his project, so it's his call whether to add it. On modern hardware, it doesn't hurt much to leave it out (no link cache update for compiling, that's all).

Arikon Btw, new install_fmod.sh generates errors on Ubuntu. I can send my working version of it to you.

I'd actually be interested to see that, too (I did the modification). What errors does the current one cause? Arikon P.S.: Don't know, why I can't post shell-script code in [ code ] tag =( When I press Submit or Preview Post button, I recieve following error: Forbidden

Page 43 of 91 ---- Generated from The Bears Pit You don't have permission to access /board/ubbthreads.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.37 Server at http://www.ja-galaxy-forum.com Port 80 I have the same problem. I found that putting in a space between '/' and 'bin' let it be posted. I wonder if it's browser/OS specific - I'm using Firefox 2.0.0.5 on Fedora 7.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 20 Sep 2007 18:22:22 GMT View Forum Message <> Reply to Message ArikonLesh, you need to replace 'cp' to 'ln' in this line in install_fmod.sh cp -s /usr/lib/libfmod-3.75.so /usr/lib/libfmod.so Also it is not bad to run ldconfig after adding new lib. Ok

ArikonBtw, new install_fmod.sh generates errors on Ubuntu. I can send my working version of it to you. Send error message and your script to bugreport e-mail (see my signature).

ArikonP.S.: Don't know, why I can't post shell-script code in [ code ] tag =( When I press Submit or Preview

Probably UBB reacts to character sequence: #!/ bin/sh (if I remove space before 'bin', I'll get same result, as you)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Tue, 25 Sep 2007 15:54:20 GMT View Forum Message <> Reply to Message ArikonBtw, new install_fmod.sh generates errors on Ubuntu. I can send my working version of it to you. Thanks mate! Your version has been committed to svn 22 september 2007.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 26 Sep 2007 15:59:53 GMT View Forum Message <> Reply to Message New possible bug, and it's one of those frustrating to debug, "only happens sometimes," issues. In windowed mode, when I switch from the virtual desktop containing the ja2lp window to another desktop and come back (Gnome function mapped to Alt-1, Alt-2, etc. on my machine), occasionally my mercs all will want to move backwards or sidestep, as if they're facing the opposite direction of where I left them, and as if I still have the Alt key depressed when I don't.

Page 44 of 91 ---- Generated from The Bears Pit The implicit direction turn that normally happens when plotting a movement path away from the current facing does not happen. Explicitly turning one of them towards the desired direction of motion, even if he's already facing that way, makes the effect go away. That means I have to waste the APs for one merc to "turn" towards the direction he's already facing in combat, or take the time in real time mode to explicitly turn someone. I'm not sure a savegame would help reproduce this, since the effect also goes away when I reload from a save. But you'll get one anyway, as you'll see in a second.

Heh, another issue appeared as I was writing this. When I returned to the desktop containing the ja2lp window, I couldn't change focus from one merc to another, with either spacebar or by selecting the new merc with the mouse. Quick-save and reload made the effect go away, as with the first issue, but this time, the effect returned when I switched away from that desktop again. I'll email that Quick-save to the bug report address, and include the text of this post in case you get that before reading this.

One more or less the same topic, how difficult would it be to make fullscreen mode honor Gnome/KDE/X11 keyboard shortcuts like the Alt-1 I mentioned? It's a very common (used to be a default) key mapping. Right now it gets ignored, although I don't recall that it causes the weird merc movement problem like it does in windowed mode.

I'll also try to narrow down exactly what circumstances the first issue happens under, or at least identify a pattern better than "sometimes."

As always, thank you so much for putting in this effort!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 26 Sep 2007 17:55:57 GMT View Forum Message <> Reply to Message Quote:... and as if I still have the Alt key depressed when I don't. It is known issue to me. The game registers, when user pressed alt key (and when he released it). Then user presses F1, but ja2 isn't getting this keypress, because windows manager intercepts it and do its work. Now, when the game isn't active user can release alt, but game will not register it (it is not active). But game still remember, that user has pressed alt before. So, when user switches back to game screen, he amazingly finds out, that alt key is still pressed, while don't.

The only way I see here it is to do some clearing job over keyboard input queue and table of pressed keys, when application loses focus.

Quote:One more or less the same topic, how difficult would it be to make fullscreen mode honor Gnome/KDE/X11 keyboard shortcuts like the Alt-1 I mentioned? It is not difficult. Currently, I am testing alt+enter to switch fullscreen/windowed mode right in game. Alt+F1 (F2, F3, ...) can be reserved for future shortcuts to act with mercs in tactical screen. AFAIK, currently F1-F6 only used for merc selecting.

Page 45 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Wed, 26 Sep 2007 18:45:31 GMT View Forum Message <> Reply to Message It looks like the "can't switch mercs" issue is also because of the Alt key. It's okay - now that I know what causes it, I can work around it by selecting desktops with the mouse instead.

My Windows nVidia graphics card driver at home supports multiple virtual desktops, too, and the main branch doesn't appear to have this problem. I forget the v1.13 build number, but it's the one currently on the wiki in an installer package. Rather, it was "current" as of when I downloaded it, which was last week sometime. That may not help you at all, because the nVidia feature is implemented at the driver level, not the window manager level. But I thought I'd at least mention it.

Lesh 2The only way I see here it is to do some clearing job over keyboard input queue and table of pressed keys, when application loses focus.

I can think of a suggestion, but it may make no sense in C programming, which I only know enough of to cause trouble, not enough to actually do anything useful. It would probably also involve a design change, which could be a major pain. But it seems to me that the game shouldn't store keypress events for modifier keys in a table. It should ignore those keypress events, and instead poll the hardware for modifier key status on all other keypress and mouseclick event, to determine if they're depressed when the main event occurs. It would mean that people used to being able to press modifiers separately would have to get used to pressing them concurrently, but they have to do that anyway with the Shift key during normal typing, so it may not be that much to ask. Although it occurs to me that human actions are often not as precise as the program would like, so you may have many people who thought they were pressing the modifier concurrently with the main key/button, but had actually released it a fraction of a second before. So, ignore the suggestion if it doesn't really make sense or seems otherwise impractical.

Thanks again!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Thu, 27 Sep 2007 21:37:30 GMT View Forum Message <> Reply to Message Another bug report coming in email. Militia appeared in a sector I hadn't entered yet, but had taken in a previous game - as if the game had somehow partially saved the militia state from the previous game, even after loading a new one, or that it ignored me when I said no to requesting reinforcements. Details and savegames in the email.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Tue, 02 Oct 2007 18:52:31 GMT View Forum Message <> Reply to Message Game lockup. I'm not emailing a bug report because I really don't have anything to attach to it. I

Page 46 of 91 ---- Generated from The Bears Pit just took the SAM site next to Drassen, and started "training" Barry by setting and disarming a mine. I stopped when I got him to 99. Then I went to the strategic map, right-clicked Barry to reassign him, and the screen froze. I have a quick save from a little bit of time before the freeze, but I'm not sure how useful that will be. I'm leaving the game frozen for now, so I can collect additional information if requested. Let me know when I can kill it and restart.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 03 Oct 2007 20:01:11 GMT View Forum Message <> Reply to Message Try to repeat lockup, using this save. If it is reproduceable, then send it.

Ghost militia were present in windows version and this bug is already fixed. I only need to find nad apply patch. But currently, I have no time to lead my project.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Thu, 04 Oct 2007 15:50:57 GMT View Forum Message <> Reply to Message Lesh 2Try to repeat lockup, using this save. If it is reproduceable, then send it. Sorry, I tried but couldn't reproduce. I'll keep an eye out for it in future. Lesh 2Ghost militia were present in windows version and this bug is already fixed. I only need to find nad apply patch. But currently, I have no time to lead my project. I hope this doesn't mean you're going to have to stop permanently. I'll stop reporting bugs until you say so, if it'll help. Don't worry about the ghost militia until you have time - it doesn't ruin the game.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 05 Oct 2007 15:22:45 GMT View Forum Message <> Reply to Message JAPHI hope this doesn't mean you're going to have to stop permanently. I'll stop reporting bugs until you say so, if it'll help. Don't worry about the ghost militia until you have time - it doesn't ruin the game. No. I just started to get tired very quickly everyday. I need to rest.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 05 Oct 2007 15:57:00 GMT View Forum Message <> Reply to Message Rest, then, please. And see a doctor, if you can. Although vague, what you describe could be nothing, or could be a sign of a serious health problem. I'll hold off on reporting anything until I

Page 47 of 91 ---- Generated from The Bears Pit hear from you again.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Fri, 12 Oct 2007 13:21:19 GMT View Forum Message <> Reply to Message Hi, I had a problem with nickname in I.M.P. I can't typed in it. I believe this problem is causing file "src/laptop/imp_begin_screen.cpp" on line number 46 "#define NICK_NAME_REGION_WIDTH 100" I increased value from 100 to 180 and it is working fine now...

Can anyone confirm this?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 12 Oct 2007 16:21:04 GMT View Forum Message <> Reply to Message Yes, it works for me, too.

Forget about your English - you speak C++! That's way more important around here. Can you help Lesh? I'm here to do all the testing and bug reporting you can handle, if you can.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Fri, 12 Oct 2007 21:51:48 GMT View Forum Message <> Reply to Message InHuManHi, I had a problem with nickname in I.M.P. I can't typed in it. I believe this problem is causing file "src/laptop/imp_begin_screen.cpp" on line number 46 "#define NICK_NAME_REGION_WIDTH 100" I increased value from 100 to 180 and it is working fine now...

Can anyone confirm this?

Nice! It's a old bug. Lesh will be happy to know that.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sat, 13 Oct 2007 09:40:05 GMT View Forum Message <> Reply to Message JAPHYes, it works for me, too.

Page 48 of 91 ---- Generated from The Bears Pit Forget about your English - you speak C++! That's way more important around here. Can you help Lesh? I'm here to do all the testing and bug reporting you can handle, if you can.

I think I can help, but my knowledge of C is limited. I never work on such big project. (Only small apps for console or microcontrollers)

At least I can try...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sun, 14 Oct 2007 01:18:24 GMT View Forum Message <> Reply to Message I add new feature.

If some item broke, it will be displayed now. There is only one problem, as you can see on screenshot 2 word "broken" is too wide and doesn't fit the box. Has anyone know any better word, that will fit?

You need to change 3 files src/tactical/interface_items.cppsrc/utils/text.hsrc/utils/english_text.cpp These file could be found here: http://ottd.v-server.cz/ja2/patch/broken/

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 15 Oct 2007 15:27:16 GMT View Forum Message <> Reply to Message I see newcomers here! Hello, InHuMan. I grabbed your patch. I will process it in November. Thanks!

Very soon I'll go for a trip. So I'll be off line till November.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Mon, 15 Oct 2007 15:48:26 GMT View Forum Message <> Reply to Message Good idea, i think.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Mon, 15 Oct 2007 16:53:13 GMT View Forum Message <> Reply to Message

Page 49 of 91 ---- Generated from The Bears Pit Lesh 2I see newcomers here! Hello, InHuMan. I grabbed your patch. I will process it in November. Thanks!

That's great. I am glad I could help...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Dougster on Fri, 02 Nov 2007 00:46:50 GMT View Forum Message <> Reply to Message I figured I'd try and build on my Gentoo amd64 system just to see how far it got. The build process aborted on the very first file that it tried to compile, complaining something about size_t being redefined. No big surprise there.

I installed my native fmod package, which was version 4.0.3 or somesuch. I might take a look at your build system and see if I could set it up for JAM or Autotools one of these days. I also might see if I can produce a 32bit binary using the -m32 compiler flag, and then just run it under the 32bit emulation libs.

Anyways, well done! Great to see JA2 starting to come back online in Linux. I purchased the original Loki Linux JA2 version years ago, but it hasn't worked for quite some time due to being linked against obsolete libraries or something. Cheers!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Fri, 02 Nov 2007 20:25:24 GMT View Forum Message <> Reply to Message DougsterI installed my native fmod package, which was version 4.0.3 or somesuch.

I have gentoo too, but 32-bit. I try to compile ja2 with fmod version 4.08.05 and it won't work for me. Fmod version 3.75 works fine...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 03 Nov 2007 14:53:44 GMT View Forum Message <> Reply to Message Guys! You are trying to use _FMOD Ex_ library instead of FMOD. I fear, that in FMOD Ex API has been changed. So, it isn't work.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sat, 03 Nov 2007 15:32:17 GMT View Forum Message <> Reply to Message

Page 50 of 91 ---- Generated from The Bears Pit Lesh 2Guys! You are trying to use _FMOD Ex_ library instead of FMOD. I fear, that in FMOD Ex API has been changed. So, it isn't work. Yes, API changed so we can't use FMOD 4 (Ex). But according this page http://www.soundshader.com/ifmodcomp.html FMOD 3 doesn't support 64-bit Linux (FMOD 4 (ex) does).

So if we want to see JA2 on 64-bit Linux, code must be ported to FMOD 4 or another sound library...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by lynxlynxlynx on Sat, 03 Nov 2007 15:46:31 GMT View Forum Message <> Reply to Message 64-bit is far away. It is more likely the ja2-stracciatella folks will have it first, due to all the code cleanup; see: http://gilden.dragonriders.de/foren/gwbb.php?mode=view&forumid=313&threadid=7015

And most people have some kind of multilib setup, so another 32-bit lib isn't that much of a problem. Chroots can help aswell.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 05 Nov 2007 15:18:39 GMT View Forum Message <> Reply to Message @InHuman: Your "item is broken" path has been merged into development svn.

@All: Sorry guys! I don't have 64bit Linux installed. I only can provide, that sources is able to compile and link under x86_64.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Mon, 05 Nov 2007 21:32:02 GMT View Forum Message <> Reply to Message Lesh 2@InHuman: Your "item is broken" path has been merged into development svn. Cool... And what about "I.M.P. can't type in" patch?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 07 Nov 2007 16:16:09 GMT

Page 51 of 91 ---- Generated from The Bears Pit View Forum Message <> Reply to Message This one doesn't guarantee, that bug will be fixed. Yes, it works, but the thing, causing it, isn't fixed. But I saw true problem with it. I'll patch it later. So, thanks twice!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by pyg on Wed, 14 Nov 2007 03:01:12 GMT View Forum Message <> Reply to Message I use x86_64 as well and everything (except fmod) builds fine with -m32. This should be added to the build scripts as it doesn't affect 32 bit builds.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by kitten on Wed, 21 Nov 2007 04:31:59 GMT View Forum Message <> Reply to Message great port

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Luftzig on Wed, 12 Dec 2007 13:41:24 GMT View Forum Message <> Reply to Message Say, if I accidentally downloaded the 920 revision, it may still work, or should I clean install it and start all over? Additionally, I've got 64bit gentoo as well, and I'm not quite sure I understood what you guys did to compile and install.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Thu, 13 Dec 2007 19:16:45 GMT View Forum Message <> Reply to Message Just try it with rev.920. If it doesn't work, update to another revision. Do you have difficulties with compiling?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by darkanjel on Thu, 13 Dec 2007 20:50:29 GMT View Forum Message <> Reply to Message Hey all

I have a lot of success running JA2 1.13 on linux by doing the following:

Page 52 of 91 ---- Generated from The Bears Pit I installed JA2 and patched it up on a windows XP machine I moved the whole game folder over to my /home/ directory I used cedega to play the game.

Sound works, game works smoothly in windowed mode and the Drassen counterattack still rocks you

.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Thu, 13 Dec 2007 22:26:16 GMT View Forum Message <> Reply to Message You don't have any sound problem?!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by moki on Thu, 13 Dec 2007 23:11:16 GMT View Forum Message <> Reply to Message I think the sound problems only occured with wine, along with general slowness and instability... didn't try cedega, though (don't want to pay 15$ and don't have the nerve to find a way to run it without paying...)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Fri, 14 Dec 2007 20:32:54 GMT View Forum Message <> Reply to Message Didn't have tried either. But, I'm still surprised...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by darkanjel on Sat, 15 Dec 2007 16:10:32 GMT View Forum Message <> Reply to Message Hi Sleepyfox

No I do not have any sound problems. I can even run it in windowed mode and watch TV or a movie while it is playing....cedega is a good investment!

Or

Page 53 of 91 ---- Generated from The Bears Pit You could possibly find it on places on the internet which may exist if you looked

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Sat, 15 Dec 2007 18:18:33 GMT View Forum Message <> Reply to Message Yeah, i'll search for it when i'll have some time (and space on my hard disk to put fedora on it). Thanks spike, it's always good to know that.

However, i hope this project will continue. It's a very great idea imho.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Luftzig on Mon, 17 Dec 2007 21:22:57 GMT View Forum Message <> Reply to Message Can't compile: Log:

../../src/SDL/SDL_config_minimal.h:38: error: conflicting declaration

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Luftzig on Mon, 17 Dec 2007 21:37:00 GMT View Forum Message <> Reply to Message ok, I Installed fmod-3.75 as well. no use. Apparrently, it dislikes my SDL library. Can you publish dependecies?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Tue, 18 Dec 2007 20:19:56 GMT View Forum Message <> Reply to Message It conflicts with SDL headers, shipped with this sources. They were generated long ago, when I was under Windows. So now they are "slightly" invalid For next release I deleted SDL directory from project, so sdl-development package will be "must have".

As I can see, you have 64-bit system and trying to compile 64-bit code. My sources aren't ready for pure 64-bit, so find and edit Makefile: after the line "%.o: %.cpp " append to the end of command line switch "-m32". It will look somewhat like this:

%.o: %.cpp

Page 54 of 91 ---- Generated from The Bears Pit g + + $< -c $(compile_flags) $(sdl_flags) $(defines) $(addprefix -I, $(include_dirs)) -MD -pipe -m32

Then type in console: make clean make

In previous Makefiles I misplaced this switch in linking section. Sorry for inconvenience. :headbanger:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by haydent on Wed, 09 Jan 2008 01:55:56 GMT View Forum Message <> Reply to Message InHuMan Has anyone know any better word, that will fit? http://ottd.v-server.cz/ja2/patch/broken/ broke

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Luftzig on Wed, 30 Jan 2008 04:36:31 GMT View Forum Message <> Reply to Message haydentInHuMan Has anyone know any better word, that will fit? http://ottd.v-server.cz/ja2/patch/broken/ broke

The word was "Jammed", pretty sure it was.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by mythwisper on Wed, 30 Jan 2008 07:56:08 GMT View Forum Message <> Reply to Message why not Use Wine. =/

Subject: Re: [Linux] ja2 1.13 linux port (alpha release)

Page 55 of 91 ---- Generated from The Bears Pit Posted by Sleepyfox on Wed, 30 Jan 2008 09:29:09 GMT View Forum Message <> Reply to Message I haven't tried the latest version of wine but with earlier versions, there were a well known "sluttering sound" bug. If the problem is fixed, it's good alternative until this project continue.

The game seems to work well with cedega as a someone posted it earlier.

But for me, it's still important to have a linux port of the mod.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Jacrus on Thu, 31 Jan 2008 23:46:01 GMT View Forum Message <> Reply to Message SleepyfoxI haven't tried the latest version of wine but with earlier versions, there were a well known "sluttering sound" bug. If the problem is fixed, it's good alternative until this project continue.

In Wine 9.54 the sound bug is as it was earlier but you can almost completely solve this problem by running JA with nice set to 15, at least on my PC it's the correct nice.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Fri, 01 Feb 2008 09:57:11 GMT View Forum Message <> Reply to Message It took me several minutes to understand the "nice" thing you are were talking about. :headscratch:

And then "ding" : "yeaaah nice.... process priority...... system monitor....".

I'll try that. Thanks jacrus.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Jacrus on Fri, 01 Feb 2008 12:48:08 GMT View Forum Message <> Reply to Message I'm using Linux but I don't know much about it, so I can be sometimes not understandable.

To be precise I'm starting JA with this command 'nice -15 wine ja2.exe'

Subject: Re: [Linux] ja2 1.13 linux port (alpha release)

Page 56 of 91 ---- Generated from The Bears Pit Posted by Luftzig on Fri, 15 Feb 2008 09:19:22 GMT View Forum Message <> Reply to Message Well, I tried running it with wine as I don't seem to be able to compile on my 64bit machine. Used the lastest version, and it works all fine but one annoying bug: when scrolling the tactical screen left or up, the left-most or upper most tiles are duplicated all over the screen until you stop scrolling. Gives me the headache, and making the game very annoying to play.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sat, 15 Mar 2008 16:49:53 GMT View Forum Message <> Reply to Message @Lesh 2: Hi, I have problem with physfs. When I try to start game it writes: "INI: file doesn't exist Ja2_Options.INI". But I have it in data directory. I probably done something wrong. So can you please update installation docs, as they are no longer up to date? Thanks...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 15 Mar 2008 18:57:25 GMT View Forum Message <> Reply to Message Ehhh... Physfs should not be in alpha. You are using development svn link, right? (https://81.169.133.124/source/ja2/branches/Lesh/lpja2/)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sat, 15 Mar 2008 19:02:25 GMT View Forum Message <> Reply to Message Right, I want development build...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 15 Mar 2008 19:06:48 GMT View Forum Message <> Reply to Message Ok, it will take some time...

Done. Update from svn, recompile and give it a try.

Page 57 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sun, 16 Mar 2008 15:49:38 GMT View Forum Message <> Reply to Message I finally get it to work... And I had a problem - game doesn't load profile from profile.ini. This patch should fix it...

Index: profile_man.cpp ======--- profile_man.cpp (revision 1891) +++ profile_man.cpp (working copy) @@ -186,6 +186,10 @@ { return FALSE; } + if ( CFG_SelectGroup( current_profile_section, TRUE ) == CFG_ERROR ) + { + return FALSE; + } profileName = CFG_ReadText( "profile", GAME_DEFAULT_PROFILE ); strncpy(profile, profileName, 512); CFG_CloseFile( &cfg );

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sun, 16 Mar 2008 18:17:00 GMT View Forum Message <> Reply to Message @InHuMan: My mistake... Thanks a lot! Fixed!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sun, 16 Mar 2008 18:33:04 GMT View Forum Message <> Reply to Message I found another bug - Data files could not be symbolic links. It writes: Error opening library ambient.slf. Reason: Symbolic links are disabled Failed to add slf-file ambient.slf.

Here is the patch:

Index: resource_db.cpp ======--- resource_db.cpp (revision 1890) +++ resource_db.cpp (working copy)

Page 58 of 91 ---- Generated from The Bears Pit @@ -51,6 +51,8 @@ fprintf(stderr, "Unable to init PhysicsFS. Reason: %s ", PHYSFS_getLastError() ); return FALSE; } + + PHYSFS_permitSymbolicLinks( TRUE );

if ( !Profile_Init( NULL ) ) return FALSE;

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sun, 16 Mar 2008 19:32:33 GMT View Forum Message <> Reply to Message Implemented!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sun, 16 Mar 2008 20:14:51 GMT View Forum Message <> Reply to Message I have question about src/laptop/files.cpp, line 870 if( pFilesList->ubFormat < ENRICO_BACKGROUND ) { LoadEncryptedDataFromFile("BINARYDATA\\Files.edt", sString, FILE_STRING_SIZE * (iOffSet) * 2, FILE_STRING_SIZE * iLength * 2); } ubFormat is UINT8 and ENRICO_BACKGROUND is 0. (Could be found in src/laptop/files.h)

So, that if is useless, because UINT can't be smaller than 0.

And there is another just cosmetic patch:

Index: game_settings.cpp ======--- game_settings.cpp (revision 1890) +++ game_settings.cpp (working copy) @@ -36,7 +36,7 @@

STRING512 gameSettingsFilePath;

Page 59 of 91 ---- Generated from The Bears Pit -#define GAME_EXTERNAL_OPTIONS_FILE "Ja2_Options.INI" +#define GAME_EXTERNAL_OPTIONS_FILE "ja2_options.ini"

GAME_SETTINGS gGameSettings; GAME_OPTIONS gGameOptions;

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 17 Mar 2008 15:43:41 GMT View Forum Message <> Reply to Message InHuManI have question about src/laptop/files.cpp, line 870

... ubFormat is UINT8 and ENRICO_BACKGROUND is 0. (Could be found in src/laptop/files.h)

So, that if is useless, because UINT can't be smaller than 0.

There are many such "pearls" in ja2 code. Maybe Sir-Tech programmers were paranoid? :bluesuspect:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sleepyfox on Mon, 17 Mar 2008 15:53:00 GMT View Forum Message <> Reply to Message Eh Lesh, you'll get more time to work on the port now or you are still busy?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 17 Mar 2008 16:06:59 GMT View Forum Message <> Reply to Message I am still learning GNU autoconf together with gettext to internalise (i18n) the project. So there isn't much time left to do other things.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by lynxlynxlynx on Mon, 17 Mar 2008 19:04:55 GMT View Forum Message <> Reply to Message it's internationalise. What's the point though, ja2 already has some crappy system in place. and autotools are a big mess, why not use plain makefiles or something leaner. You could

Page 60 of 91 ---- Generated from The Bears Pit probably use the build system of ja2-stracciatella with some tweaks for new/removed files.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Fri, 21 Mar 2008 23:38:27 GMT View Forum Message <> Reply to Message I found a bug - The game do not create profiles/mod113/shadetables directory, which cause game crash when loading map. The problem is in tile_engine/shade_table_util.cpp in "DirectoryExists" function call. It always return 1, because there is another shadetables directory "base/data/shadetables"

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 22 Mar 2008 13:17:16 GMT View Forum Message <> Reply to Message That another "shadetables" directory should be deleted. The game will automaticly create it and it contents during game process in profile. It will need write access to directory where "shadetables" will be located.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Mon, 31 Mar 2008 13:02:33 GMT View Forum Message <> Reply to Message @Lesh 2: Ok, my fault...

Another bug - History and finances in laptop do not work.

These patches should fix it: Index: ../src/sgp/file_man.cpp ======--- ../src/sgp/file_man.cpp (revision 1907) +++ ../src/sgp/file_man.cpp (working copy) @@ -435,6 +435,13 @@ result = handler != NULL; useSLF = FALSE; } + else if (uiOptions & FILE_ACCESS_APPEND) + { + // open for append through PhysFS + handler = PHYSFS_openAppend(name); + result = handler != NULL; + useSLF = FALSE;

Page 61 of 91 ---- Generated from The Bears Pit + } else { // open for read through PhysFS first, then try SLF

Index: ../src/laptop/finances.cpp ======--- ../src/laptop/finances.cpp (revision 1941) +++ ../src/laptop/finances.cpp (working copy) @@ -219,6 +219,8 @@

// clear list ClearFinanceList( ); + + OpenAndReadFinancesFile();

pFinance=pFinanceListHead;

@@ -1215,11 +1217,11 @@ while( pFinanceList != NULL ) { // write in other data - FileRead( hFileHandle, &pFinanceList->ubCode, sizeof(UINT8), NULL ); - FileRead( hFileHandle, &pFinanceList->ubSecondCode, sizeof(UINT8), NULL ); - FileRead( hFileHandle, &pFinanceList->uiDate, sizeof(UINT32), NULL ); - FileRead( hFileHandle, &pFinanceList->iAmount, sizeof(INT32), NULL ); - FileRead( hFileHandle, &pFinanceList->iBalanceToDate, sizeof(INT32), NULL ); + FileWrite( hFileHandle, &pFinanceList->ubCode, sizeof(UINT8), NULL ); + FileWrite( hFileHandle, &pFinanceList->ubSecondCode, sizeof(UINT8), NULL ); + FileWrite( hFileHandle, &pFinanceList->uiDate, sizeof(UINT32), NULL ); + FileWrite( hFileHandle, &pFinanceList->iAmount, sizeof(INT32), NULL ); + FileWrite( hFileHandle, &pFinanceList->iBalanceToDate, sizeof(INT32), NULL ); pFinanceList = pFinanceList->Next; }

Index: ../src/laptop/history.cpp ======--- ../src/laptop/history.cpp (revision 1900) +++ ../src/laptop/history.cpp (working copy) @@ -1568,7 +1568,7 @@

// open file - hFileHandle=FileOpen( gzHistoryDataFile, FILE_ACCESS_WRITE|FILE_CREATE_ALWAYS, FALSE); + hFileHandle=FileOpen( gzHistoryDataFile, FILE_ACCESS_APPEND, FALSE);

Page 62 of 91 ---- Generated from The Bears Pit // if no file exits, do nothing if(!hFileHandle)

EDIT: Maybe is a good idea to rewrite and clean some function in laptop/finances.cpp file...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 31 Mar 2008 17:15:21 GMT View Forum Message <> Reply to Message I hope you made reuse of append file access, appeared recently, to fix these bugs. I was slightly confused, when I saw physfs append function call, written recently, in your patch.

Ok, patched. Need to test!

Quote:EDIT: Maybe is a good idea to rewrite and clean some function in laptop/finances.cpp file... I believe, most of the game code requires refactoring, but my resources are limited. :wb:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Mon, 31 Mar 2008 17:57:40 GMT View Forum Message <> Reply to Message Problem with PHYSFS_openWrite() is, that it delete file contents first. And with PHYSFS_openAppend(name), that you can write only at end of the file.

Quote:I believe, most of the game code requires refactoring, but my resources are limited

I will try to do something by myself. I hope it won't be even worst...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 31 Mar 2008 18:41:59 GMT View Forum Message <> Reply to Message InHuManProblem with PHYSFS_openWrite() is, that it delete file contents first. And with PHYSFS_openAppend(name), that you can write only at end of the file. Yea, I know. Documentation didn't lie to me.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Tue, 01 Apr 2008 19:40:48 GMT View Forum Message <> Reply to Message

Page 63 of 91 ---- Generated from The Bears Pit Another bug - I can't type in nickname field in IMP begin screen. (It is strange similar bug was fixed 11.11.2007 and I am sure, that "nickname type in" were functional).

Quote:Index: imp_begin_screen.cpp ======--- imp_begin_screen.cpp (revision 1900) +++ imp_begin_screen.cpp (working copy) @@ -669,7 +669,7 @@ }

// make sure we haven't moved too far - if( ( uiNickNameCursorPosition + StringPixLength( (CHAR16 *)&(uiKey ), FONT14ARIAL ) ) > (UINT32)NICK_NAME_REGION_WIDTH + 196 + LAPTOP_SCREEN_UL_X ) + if( ( uiNickNameCursorPosition + CharPixLength( (CHAR16)&(uiKey ), FONT14ARIAL ) ) > (UINT32)NICK_NAME_REGION_WIDTH + 196 + LAPTOP_SCREEN_UL_X ) { // do nothing for now, when pop up is in place, display break;

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Wed, 02 Apr 2008 16:00:40 GMT View Forum Message <> Reply to Message That patch fixed only full name entry. I didn't notice, that nickname switch-section was using the same buggy code. Patch applied. Thanks!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Thu, 03 Apr 2008 17:59:41 GMT View Forum Message <> Reply to Message Found another bug - If ja2.ini doesn't exist, game will crash with segmentation fault This patch fix it and load default settings (800x600, windowed)

Index: sgp.cpp ======--- sgp.cpp (revision 1980) +++ sgp.cpp (working copy) @@ -293,6 +293,8 @@ // Runtime settings - for now use INI file - later use registry STRING512 INIFile; // Path to the ini file CFG_File cfg;

Page 64 of 91 ---- Generated from The Bears Pit + + iResolution = -1;

// Get Executable Directory GetHomeDirectory( INIFile ); @@ -300,26 +302,34 @@ strcat(INIFile, "ja2.ini");

printf("Reading run-time settings from: %s ", INIFile); - if ( CFG_OpenFile( INIFile, &cfg ) != CFG_OK ) + if ( CFG_OpenFile( INIFile, &cfg ) == CFG_OK ) { - printf("Failed to open run-time ini "); + if ( CFG_SelectGroup( "Ja2 Settings", CFG_False ) == CFG_OK ) + { + gfFullScreen = CFG_ReadInt("FULLSCREEN", 0); +#ifndef JA2EDITOR + iResolution = CFG_ReadInt("SCREEN_RESOLUTION", 1); +#else + iResolution = CFG_ReadInt("EDITOR_SCREEN_RESOLUTION", 1); +#endif + + } + else + { + printf("Failed to select Ja2 Settings group in ini "); + + } + + CFG_CloseFile( &cfg ); + } - - if ( CFG_SelectGroup( "Ja2 Settings", CFG_False ) != CFG_OK ) + else { - printf("Failed to select Ja2 Settings group in ini "); + printf("Failed to open run-time ini "); } - - iResolution = -1;

-

Page 65 of 91 ---- Generated from The Bears Pit -#ifndef JA2EDITOR - iResolution = CFG_ReadInt("SCREEN_RESOLUTION", 1); -#else - iResolution = CFG_ReadInt("EDITOR_SCREEN_RESOLUTION", 1); -#endif

- int iResX; + int iResX; int iResY;

switch (iResolution) @@ -355,9 +365,6 @@ SCREEN_HEIGHT = GetPrivateProfileInt( "SGP", "HEIGHT", iResY, INIFile ); #endif

- gfFullScreen = CFG_ReadInt("FULLSCREEN", 0); - - CFG_CloseFile( &cfg );

iScreenWidthOffset = (SCREEN_WIDTH - 640) / 2; iScreenHeightOffset = (SCREEN_HEIGHT - 480) / 2;

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 04 Apr 2008 15:17:19 GMT View Forum Message <> Reply to Message Patched. Thanks again!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Fri, 04 Apr 2008 18:53:54 GMT View Forum Message <> Reply to Message Lesh 2InHuManProblem with PHYSFS_openWrite() is, that it delete file contents first. And with PHYSFS_openAppend(), that you can write only at end of the file. Yea, I know. Documentation didn't lie to me.

I wrote to Physfs mailing list and they fix it it in the latest svn revision. (revision #940 for the 1.1 branch and #941 for the 1.0 branch.) So it is now possible to seek and write with PHYSFS_openAppend()

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Thu, 10 Apr 2008 19:16:59 GMT

Page 66 of 91 ---- Generated from The Bears Pit View Forum Message <> Reply to Message Another bug - After enemy attack a city with militia, temp/tactical/r_XYY.dat gets corrupted. It's caused by FILE_ACCESS_READWRITE flag. Opening a file with this flag is same like with FILE_ACCESS_WRITE flag (It will blank file all contents).

This patch fix it... Index: tactical_save.cpp ======--- tactical_save.cpp (revision 2006) +++ tactical_save.cpp (working copy) @@ -2351,7 +2351,7 @@ if( FileExists( zMapName ) ) { //Open the file for reading - hFile = FileOpen( zMapName, FILE_ACCESS_READWRITE | FILE_OPEN_EXISTING, FALSE ); + hFile = FileOpen( zMapName, FILE_ACCESS_READ, FALSE ); if( hFile == 0 ) { //Error opening map modification file,

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 11 Apr 2008 15:06:21 GMT View Forum Message <> Reply to Message Very nice! I patched the code.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Fri, 11 Apr 2008 15:48:08 GMT View Forum Message <> Reply to Message By the way, FILE_ACCESS_READWRITE flag is not used anywhere else, so it could by removed from sgp/file_man.h...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Fri, 11 Apr 2008 19:54:16 GMT View Forum Message <> Reply to Message Another bug - Wrong re-initialization of history. (Start game -> quit to main menu -> start new game). In pHistoryListHead remains data from previous game. This will cause, that first record is displayed twice.

Page 67 of 91 ---- Generated from The Bears Pit Index: history.cpp ======--- history.cpp (revision 2006) +++ history.cpp (working copy) @@ -230,7 +230,7 @@ }

void GameInitHistory() -{ +{ ClearHistoryList(); OpenAndWriteHistoryFile(); AddHistoryToPlayersLog(HISTORY_ACCEPTED_ASSIGNMENT_FROM_ENRICO, 0, GetWorldTotalMin( ), -1, -1); }

Another bug - First record in History has date from previous game. (Load game -> quit to main menu -> start new game)

Index: strategic/quests.cpp ======--- strategic/quests.cpp (revision 2006) +++ strategic/quests.cpp (working copy) @@ -1296,8 +1296,9 @@ memset(gubQuest, 0, sizeof(gubQuest)); memset(gubFact, 0, sizeof(gubFact));

+ // InHuMan: This is not needed anymore // semi-hack to make the letter quest start right away - CheckForQuests( 1 ); + //CheckForQuests( 1 );

if ( gGameOptions.ubGameStyle == STYLE_SCIFI ) { @@ -1323,19 +1324,20 @@ #ifdef TESTQUESTS ScreenMsg( MSG_FONT_RED, MSG_DEBUG, L"Checking For Quests, Day %d", uiDay ); #endif - - // ------+ + // InHuMan: Moved to InitNewGame() in game_init.cpp + // ------// QUEST 0 : DELIVER LETTER // ------// The game always starts with DELIVER LETTER quest, so turn it on if it hasn't // already started - if (gubQuest[QUEST_DELIVER_LETTER] == QUESTNOTSTARTED)

Page 68 of 91 ---- Generated from The Bears Pit - { - StartQuest( QUEST_DELIVER_LETTER, -1, -1 ); -#ifdef TESTQUESTS - ScreenMsg( MSG_FONT_RED, MSG_DEBUG, L"Started DELIVER LETTER quest"); -#endif - } +// if (gubQuest[QUEST_DELIVER_LETTER] == QUESTNOTSTARTED) +// { +// StartQuest( QUEST_DELIVER_LETTER, -1, -1 ); +//#ifdef TESTQUESTS +// ScreenMsg( MSG_FONT_RED, MSG_DEBUG, L"Started DELIVER LETTER quest"); +//#endif +// }

// This quest gets turned OFF through conversation with Miguel - when user hands // Miguel the letter

Index: strategic/game_init.cpp ======--- strategic/game_init.cpp (revision 2006) +++ strategic/game_init.cpp (working copy) @@ -405,15 +405,16 @@ // IF our first time, go into laptop! if ( gubScreenCount == 0 ) { - DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"InitNewGame: first time: init laptop"); + DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"InitNewGame: first time: init strategic layer"); + + printf("Initializing strategic layer "); + InitStrategicLayer(); + printf("Initializing laptop "); - - //Init the laptop here InitLaptopAndLaptopScreens();

- printf("Initializing strategic layer "); - InitStrategicLayer();

+ // Set new game flag SetLaptopNewGameFlag( );

@@ -431,9 +432,13 @@ {

Page 69 of 91 ---- Generated from The Bears Pit AddEmail(MERC_INTRO, MERC_INTRO_LENGTH, SPECK_FROM_MERC, GetWorldTotalMin( ), -1 ); } + + // InHuMan: Start QUEST 0 : DELIVER LETTER + // This quest gets turned OFF through conversation with Miguel - when user hands + // Miguel the letter + StartQuest( QUEST_DELIVER_LETTER, -1, -1 );

- // ATE: Set starting cash.... switch( gGameOptions.ubDifficultyLevel ) {

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Sat, 12 Apr 2008 09:24:02 GMT View Forum Message <> Reply to Message The wrong date for the first history entry is a vanilla bug. I just resolved this in JA2-Stracciatella, too. Good catch!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sat, 12 Apr 2008 12:01:16 GMT View Forum Message <> Reply to Message TronThe wrong date for the first history entry is a vanilla bug. I just resolved this in JA2-Stracciatella, too. Good catch!

Hi I have just download JA2-Stracciatella and I like it how fast is it.

By the way, you have bug in JA2-Stracciatella in History doesn't appear second record (DELIVER LETTER quest).

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Sat, 12 Apr 2008 14:50:43 GMT View Forum Message <> Reply to Message InHuManHi I have just download JA2-Stracciatella and I like it how fast is it. What exactly do you mean?

Quote:By the way, you have bug in JA2-Stracciatella in History doesn't appear second record (DELIVER LETTER quest).

Page 70 of 91 ---- Generated from The Bears Pit I resolved this regression, thanks for the report.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sat, 12 Apr 2008 15:05:31 GMT View Forum Message <> Reply to Message TronInHuManHi I have just download JA2-Stracciatella and I like it how fast is it. What exactly do you mean?

Well, loading times are smaller, animations and fading in menu are faster and smoother.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Sat, 12 Apr 2008 16:32:43 GMT View Forum Message <> Reply to Message InHuManWell, loading times are smaller, animations and fading in menu are faster and smoother.

The latter is explained easily: There is an in-game clock (accessed via GetJA2Clock()), which gets updated in a separate thread. The main thread uses this clock to time several animations (like the zoom in of the laptop). So the main thread is in a busy loop redrawing the animation and thus starves the other thread, which should update the clock. The animation takes one second according to this clock, but because its update cycles are starved, it takes much longer in reality. Depending on the threading policy this effect is more dramatic one some systems than others. This pseudo-clock is one of the many conceptual WTFs in the JA2 source code and is of course broken by misdesign. I resolved this particular issue for the zoom/fade animations in r1426 and further corrected many problems like this, memory leaks, out of bounds accesses, crashes, graphics glitches etc. and cleaned up small parts of the code (to this date the source code has about 140.000 lines of code less than the vanilla source code!), but there is still much to do to improve stability and maintainability.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Sun, 13 Apr 2008 10:32:38 GMT View Forum Message <> Reply to Message Another bug - Shade tables regenerating every game. Bug from revision 1577.

Index: shade_table_util.cpp ======--- shade_table_util.cpp (revision 2017) +++ shade_table_util.cpp (working copy) @@ -32,8 +32,6 @@

Page 71 of 91 ---- Generated from The Bears Pit void DetermineRGBDistributionSettings() { - STRING512 DataDir; - STRING512 TempDir; STRING512 file1, file2; UINT32 uiRBitMask, uiGBitMask, uiBBitMask; UINT32 uiPrevRBitMask, uiPrevGBitMask, uiPrevBBitMask; @@ -110,7 +108,7 @@ { //The RGB distribution is going to be saved in a tiny file for future reference. As long as the //RGB distribution never changes, the shade table will grow until eventually, all tilesets are loaded, //shadetables generated and saved in this directory. - hfile = FileOpen( file2, FILE_ACCESS_WRITE | FILE_CREATE_ALWAYS, FALSE ); + hfile = FileOpen( file1, FILE_ACCESS_WRITE | FILE_CREATE_ALWAYS, FALSE ); if( !hfile ) { AssertMsg( 0, "Couldn't create RGBDist.dat for writing!" );

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Sun, 13 Apr 2008 11:12:46 GMT View Forum Message <> Reply to Message InHuManAnother bug - Shade tables regenerating every game. Bug from revision 1577.

I recommend removing saving/loading shade tables. Its sole purpose is to waste a few megabytes of disk space.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sun, 13 Apr 2008 17:33:38 GMT View Forum Message <> Reply to Message Arghhh! InHuMan, you are my second eyes!

Quote:I recommend removing saving/loading shade tables. Its sole purpose is to waste a few megabytes of disk space. Though shadetable purpose was to save time by using pre-calculated data long ago, in present modern computers can perform without shadetables with no noticable slowdown (just checked). So I agree with you, Tron.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Mon, 14 Apr 2008 11:08:34 GMT View Forum Message <> Reply to Message

Page 72 of 91 ---- Generated from The Bears Pit Lesh 2Arghhh! InHuMan, you are my second eyes!Thanks... Lesh 2Quote:I recommend removing saving/loading shade tables. Its sole purpose is to waste a few megabytes of disk space.Though shadetable purpose was to save time by using pre-calculated data long ago, in present modern computers can perform without shadetables with no noticable slowdown (just checked). So I agree with you, Tron.

Question is how fast it is on older computers or for example on Maemo Internet Tablets from Nokia...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Mon, 14 Apr 2008 12:21:16 GMT View Forum Message <> Reply to Message The question rather is, how fast loading 300 (!) separate files each 8kB in size is. Assuming a sustained data rate of about 5MB per second (remember: 300 scattered files!) and a clock frequency of 250MHz (Nokia 770 Tablet PC) you have about 100 cycles to calculate per single 16bpp palette entry, which mainly consists of scaling. Plus you save some mumbo jumbo for maintaining the caching info (ugly stuff) - see r3755 for what has been removed.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Mon, 14 Apr 2008 15:20:33 GMT View Forum Message <> Reply to Message TronThe question rather is, how fast loading 300 (!) separate files OK, you have convinced me...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 18 Apr 2008 14:36:22 GMT View Forum Message <> Reply to Message Wow! I turn my back for a bit, and the thing that brought me back to JA2 just explodes with activity!

:super:

I'd like to claim I was staying away from this thread because I was trying to give you a break, Lesh, but of course it was just as much my own laziness as anything else. I'm going to get the new development branch and start testing again, especially since you're helping so much, InHuman and Tron. Thanks so much, and I wish I could do more myself. I can only help with shell scripting and a bit with autotools if Lesh decides to use them. The argument for using them is that "./configure; make; make install" is practically hardwired into every Linux user who doesn't do yum or apt.

Page 73 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Fri, 18 Apr 2008 17:10:55 GMT View Forum Message <> Reply to Message JAPHI'm going to get the new development branch and start testing again, especially since you're helping so much, InHuman and Tron.

I want to emphasize, that I maintain a separate project (see signature), which is not affiliated with JA2 1.13 in any way. In fact this JA2 1.13 Linux port uses parts of the code I wrote.

Quote:The argument for using them is that "./configure; make; make install" is practically hardwired into every Linux user who doesn't do yum or apt. autotools are more trouble than they're worth. I just use a small Makefile, which works well on several configurations (FreeBSD, several Linuxes, Windows with MinGW/MSYS, OSX)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 18 Apr 2008 17:12:33 GMT View Forum Message <> Reply to Message Whoops, can't compile. branches/Lesh/lpja2/project/build_release.sh failed: make: Entering directory `/opt/ja2svn/ja2/branches/Lesh/lpja2/bin/release' make: *** No rule to make target `../../src/SDL/SDL.h', needed by `ani_view_screen.o'. Stop. make: Leaving directory `/opt/ja2svn/ja2/branches/Lesh/lpja2/bin/release'

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 18 Apr 2008 17:23:02 GMT View Forum Message <> Reply to Message TronJAPHI'm going to get the new development branch and start testing again, especially since you're helping so much, InHuman and Tron.

I want to emphasize, that I maintain a separate project (see signature), which is not affiliated with JA2 1.13 in any way. In fact this JA2 1.13 Linux port uses parts of the code I wrote.

Quote:The argument for using them is that "./configure; make; make install" is practically hardwired into every Linux user who doesn't do yum or apt. autotools are more trouble than they're worth. I just use a small Makefile, which works well on several configurations (FreeBSD, several Linuxes, Windows with MinGW/MSYS, OSX)

I hope I didn't offend you. I already knew about Stracciatella, I just saw your posts here and assumed you'd decided to help Lesh, too. Sorry about that. And I don't mean to get into a debate

Page 74 of 91 ---- Generated from The Bears Pit over the value of autotools, I was just pointing out that many users will expect them. I'll happily accept whatever Lesh decides to do.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Fri, 18 Apr 2008 17:38:37 GMT View Forum Message <> Reply to Message JAPHWhoops, can't compile. branches/Lesh/lpja2/project/build_release.sh failed: make: Entering directory `/opt/ja2svn/ja2/branches/Lesh/lpja2/bin/release' make: *** No rule to make target `../../src/SDL/SDL.h', needed by `ani_view_screen.o'. Stop. make: Leaving directory `/opt/ja2svn/ja2/branches/Lesh/lpja2/bin/release' Have you got SDL devel package installed?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 18 Apr 2008 17:41:15 GMT View Forum Message <> Reply to Message Um, probably not. I'll go check on that and install it. Thanks.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Fri, 18 Apr 2008 17:58:33 GMT View Forum Message <> Reply to Message JAPHI hope I didn't offend you. I already knew about Stracciatella, [...]

No offense taken, I just want to make sure, that different things aren't confused with each other.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 18 Apr 2008 18:19:01 GMT View Forum Message <> Reply to Message Actually I do have it installed. I'm using Fedora 7, rpm -qa SDL-devel shows SDL-devel-1.2.12-1.fc7. If I remember make correctly, and I was never that good at it to begin with, doesn't "no rule to make target" mean there's a dependency that doesn't have the necessary target set up in the makefile? I should probably not talk too much about things I don't have solid skills with, but I'm just throwing out ideas for consideration.

Page 75 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Tron on Fri, 18 Apr 2008 18:25:36 GMT View Forum Message <> Reply to Message JAPHmake: *** No rule to make target `../../src/SDL/SDL.h', needed by `ani_view_screen.o'. Stop.

This looks like it searches for a SDL header in the source tree of JA2. This seems wrong.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Fri, 18 Apr 2008 20:19:44 GMT View Forum Message <> Reply to Message TronThis looks like it searches for a SDL header in the source tree of JA2. This seems wrong. Yes, JAPH, you're probably trying to build updated project when old depency information still exists. Issue "make clean" in project directory, then build again. This should help.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 18 Apr 2008 20:39:07 GMT View Forum Message <> Reply to Message A different error this time, so you're right, I forgot to make clean the last time. But it still failed when I did. I even removed the entire Lesh/lpja2 directory and got another copy from svn, with the same result.

The entire set or error lines is too long, but it starts with (including last successful line for context): usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DJA2 -DENGLISH -I../../src/. -I../../src/sgp -I../../src/utils -I../../src/xml -I../../src/tile_engine -I../../src/tactical_ai -I../../src/tactical -I../../src/strategic -I../../src/laptop -I../../src/editor -I../../src/SDL_Config -MD -pipe -m32 In file included from ../../src/sgp/file_man.cpp:35: ../../src/sgp/slf.h:5:20: error: physfs.h: No such file or directory ../../src/sgp/slf.h:10: error:

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Fri, 18 Apr 2008 20:46:18 GMT View Forum Message <> Reply to Message JAPHA different error this time, so you're right, I forgot to make clean the last time. But it still failed when I did. I even removed the entire Lesh/lpja2 directory and got another copy from svn, with the same result.

... ../../src/sgp/slf.h:5:20: error: physfs.h: No such file or directory

Page 76 of 91 ---- Generated from The Bears Pit ...

Do you have physfs devel package installed?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 18 Apr 2008 20:55:24 GMT View Forum Message <> Reply to Message Um, no, I forgot that the installation instructions might have changed, and I didn't read them. My God, how many times have I told people to read the instructions? :silly:

Trying again, this time the right way....

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Fri, 18 Apr 2008 21:01:35 GMT View Forum Message <> Reply to Message Okay, I'm compiling now. Sorry for wasting your time.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Thu, 24 Apr 2008 20:22:49 GMT View Forum Message <> Reply to Message Couple of minor bugs, I put them in JaggZilla. I also had to copy *.sha from my original shadetables dir to get ja2lp to work, if that matters.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Luftzig on Wed, 04 Jun 2008 10:10:20 GMT View Forum Message <> Reply to Message hmmm, I tried to recompile and I think I should edit the makefile so it'll point to the 32bit lib and not to /usr/lib (which is symlink to /usr/lib64). I also found out that fmod was only compiled for 64bit.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Luftzig on Wed, 04 Jun 2008 16:28:30 GMT View Forum Message <> Reply to Message 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.

Page 77 of 91 ---- Generated from The Bears Pit 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.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by InHuMan on Wed, 04 Jun 2008 20:36:19 GMT View Forum Message <> Reply to Message LuftzigYes! 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.

Same problem here with 64bit Gentoo...

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Luftzig on Thu, 05 Jun 2008 15:13:01 GMT View Forum Message <> Reply to Message How do I start making something useful out of this? I'd really like to help if I can.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Luftzig on Fri, 13 Jun 2008 12:30:41 GMT View Forum Message <> Reply to Message Sorry for the bump, but I'd really like to help porting it to linux, but I don't have a clue how. I have only the slightest idea of programming and only in python, but am willing to learn... I just don't know where or how to start.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by rp- on Mon, 30 Jun 2008 07:14:41 GMT View Forum Message <> Reply to Message LuftzigHow do I start making something useful out of this? I'd really like to help if I can. I guess the same way like in any other open source project, get the source, look at it, play a bit around with it, spot bugs and try to fix them, and after a while if you are more comfortable with the source try to fix bigger regressions. thats the way i will try to help, just recently started to play ja2 again, currently with wine(which actually works very well), but having a native version is always a better solution.

Page 78 of 91 ---- Generated from The Bears Pit how is the current status of this port? whats needed? what isn't working? how often is this branch merged with the 1.13 trunk?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Thu, 03 Jul 2008 18:13:27 GMT View Forum Message <> Reply to Message @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!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Haffe on Mon, 14 Jul 2008 16:41:49 GMT View Forum Message <> Reply to Message 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.

Page 79 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Mon, 14 Jul 2008 21:23:32 GMT View Forum Message <> Reply to Message Hope? Sure, there's always hope. If you can get the required libraries installed and get the thing to compile, I can't think of an obvious technical reason it couldn't work.

To answer the question, v1.13 depends heavily on original files. You can get a list of what's required from the install instructions on this port. You wouldn't have to run the install program to get them, you'd just copy them from an existing Windows installation. Hope this helps!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Luftzig on Sun, 20 Jul 2008 12:47:57 GMT View Forum Message <> Reply to Message I actually started learning C already. Goes really slowly, as I have almost no spare time, but I do manage to learn a little in the time I find.

JAPH, about having to look for functions or variables defined at some other place, vim has a tool named "ctags" just for that. I haven't tried using it, as I'm learn vim side by side with C, but it seems like it is worth a try. Emacs and probably other advanced editors probably have some similar too.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by cdunigan on Mon, 21 Jul 2008 17:51:14 GMT View Forum Message <> Reply to Message @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.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by fcj on Mon, 06 Oct 2008 04:27:57 GMT View Forum Message <> Reply to Message I know some c and c++,may be do some help.

Page 80 of 91 ---- Generated from The Bears Pit I am reading the code. I like this game.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Sat, 25 Oct 2008 16:44:34 GMT View Forum Message <> Reply to Message Do you have linux box?

Try to compile development branch https://81.169.133.124/source/ja2/branches/Lesh/lpja2/

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by MrGreen on Sun, 07 Dec 2008 21:35:44 GMT View Forum Message <> Reply to Message here's another amd64 gentoo'er! i can't seem to pass the ./configure i hv the libfmod but it keeps failing to find it. i've also ran install_fmod but the same error appears. checking for FSOUND_Init in -lfmod... no configure: error: echo Fmod library not found!

# whereis libfmod libfmod: /usr/lib/libfmod.so /usr/lib64/libfmod.so any hints?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by 310 on Mon, 22 Dec 2008 11:33:21 GMT View Forum Message <> Reply to Message 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.

Page 81 of 91 ---- Generated from The Bears Pit # 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=15 0445"

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" }

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by 310 on Mon, 22 Dec 2008 11:47:10 GMT View Forum Message <> Reply to Message Also noticed that emerged version runs distinctly faster (saving, loading, animations, etc.) vs. manually built one. Obviously make.conf does matter

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by MrGreen on Sat, 27 Dec 2008 12:30:22 GMT View Forum Message <> Reply to Message ummmm, thanks!! i'll try it and see if i can compile. i already hv those packages installed.

Page 82 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by devoid on Fri, 23 Jan 2009 18:13:27 GMT View Forum Message <> Reply to Message HaffeHello. 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.

It is indeed possible:

You have to install a lot of extra packages (darwinports is your friend) and know your way around the GNU build tools to get there however. I only had to hack up a few places in the source to get it to compile.

It is quite a bit easier to compile the JA2-Stracciatella on OSX as all it needs is SDL and already has hooks in the code for compiling on mac, but this can be made to work if you want to play with the full 1.13 mod.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Lesh 2 on Mon, 02 Feb 2009 16:04:11 GMT View Forum Message <> Reply to Message Wow! Can I get diff patch you made in order to compile it under OSX?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Beeyotch on Thu, 18 Jun 2009 22:20:57 GMT View Forum Message <> Reply to Message 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?

Page 83 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by shazow on Mon, 18 Jan 2010 11:20:54 GMT View Forum Message <> Reply to Message 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

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by buggerbot on Sun, 07 Feb 2010 17:58:15 GMT View Forum Message <> Reply to Message Hey.

I have a problem with the sound. I compiled the developer version (https://81.169.133.124/source/ja2/branches/Lesh/lpja2/, r3319) and installed the game. Everything is fine, but I have no background sound! In my bash I get the error "MUS music\menumix.ogg not found". I've opened the music.slf and there is a "menumix.wav".

Whats wrong? Where do I get this *.ogg file?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by pyg on Sat, 20 Mar 2010 18:47:51 GMT View Forum Message <> Reply to Message Is this project still alive? I've been trying the dev version and have found some bugs and build problems. The sound does work better than when I last tried it with libfmod.

TRACE map_status_load(). File: save_load_map.cpp, line: 111

Program received signal SIGSEGV, Segmentation fault.

Page 84 of 91 ---- Generated from The Bears Pit 0x083491ff in FindStructure (sGridNo=-20376, fFlags=1) at structure.cpp:1230 1230 if ((pCurrent->fFlags & fFlags) != 0)

#0 0x083491ff in FindStructure (sGridNo=-20376, fFlags=1) at structure.cpp:1230 #1 0x08344a77 in DamageStructsFromMapTempFile (pMap=0xa2fd650) at save_load_map.cpp:915 #2 0x083432b0 in map_status_apply_patch (data=0xa2fd650, user_data=0x0) at save_load_map.cpp:316 #3 0x00191307 in g_slist_foreach () from /lib/libglib-2.0.so.0 #4 0x08343d62 in LoadAllMapChangesFromMapTempFileAndApplyThem () at save_load_map.cpp:558 #5 0x082c17f5 in LoadCurrentSectorsInformationFromTempItemsFile () at tactical_save.cpp:1227 #6 0x08067e5d in LoadSavedGame (ubSavedGameID=0 '\000') at save_load_game.cpp:2716 #7 0x0806ea21 in DoneFadeOutForSaveLoadScreen () at save_load_screen.cpp:2083 #8 0x0804e66e in HandleFadeOutCallback () at fade_screen.cpp:115 #9 0x0806bc65 in SaveLoadScreenHandle () at save_load_screen.cpp:369 #10 0x08051cfc in GameLoop () at game_loop.cpp:299 #11 0x0804f887 in GameCycle () at game.cpp:144 #12 0x0805dde2 in main (argc=1, argv=0xbffff9e4) at main.cpp:52

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by loonyphoenix on Thu, 07 Oct 2010 22:10:11 GMT View Forum Message <> Reply to Message Even with shazow's patch I hit a similar error in another file: g++ -DHAVE_CONFIG_H -I. -I../.. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DJA2 -DJA2EDITOR -DENGLISH -DDATADIR=\"/usr/local/share/ja2lp\" -I.. -I../editor -I../laptop -I../strategic -I../tactical -I../tactical_ai -I../tile_engine -I../xml -I../sgp -O0 -g -m32 -pthread -pipe -MT libja_utils_a-text.o -MD -MP -MF .deps/libja_utils_a-text.Tpo -c -o libja_utils_a-text.o `test -f 'text.cpp' || echo './'`text.cpp text.cpp: In function

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by lynxlynxlynx on Thu, 07 Oct 2010 22:19:37 GMT View Forum Message <> Reply to Message That looks trivial to fix, but the linux version is an old snapshot anyway, so there's not much to be gained.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release)

Page 85 of 91 ---- Generated from The Bears Pit Posted by Shank on Mon, 23 Apr 2012 02:43:40 GMT View Forum Message <> Reply to Message I know this thread is really really old, almost two years, but I must state this for whoever finds this thread in search machine. A historical note to say so.

To run ja 1.13 on Linux (or any other OS), please use JA2 1.13 Straciatella. http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=240035

Not this one.

JA2 1.13 runs on Linux today thanks to collective efforts. Thank you!!!

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by DepressivesBrot on Mon, 23 Apr 2012 08:32:17 GMT View Forum Message <> Reply to Message Hello Shank, Welcome to the Pit :wave: Straciatella is not 1.13, it's just a ported Vanilla version with additional bugfixes.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Shank on Mon, 21 May 2012 01:43:15 GMT View Forum Message <> Reply to Message Hello, Bread.

Damn, I almost hoped its not ... :/ Damn.

Why are vanilla not using SDL? I mean, they are going Windows-only, this can't be serious!

I probably should have named myself depressive too

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by bnolsen on Mon, 21 May 2012 04:53:57 GMT View Forum Message <> Reply to Message Shank Why are vanilla not using SDL? I mean, they are going Windows-only, this can't be serious!

Page 86 of 91 ---- Generated from The Bears Pit a mixture of insanity and stupidity. windows isn't really an interesting platform anymore. mobile and tablet are and they tossed these interesting platforms by what they did. I noticed the SMP project stalled. I also notice there haven't been any source code drops for the 1.13 branch in forever. Is there any way to make them drop the latest 1.13 code in something simple like a zip file? (no lame windows install packages pls!)

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by DepressivesBrot on Mon, 21 May 2012 05:11:54 GMT View Forum Message <> Reply to Message Hello bnolsen, Welcome to the Pit :wave: What's wrong with SVN? Gets you the most current 1.13 source.

Also, you two realize that Vanilla was developed when the standard 'mobile platform' was your good ol' indestructible Nokia cell phone phone booth?

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by bnolsen on Mon, 21 May 2012 13:02:40 GMT View Forum Message <> Reply to Message gogle has not been my friend for finding instructions for getting any source. The best I've found is a source code drop for 4452 and dead subversion links.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Sam Hotte on Mon, 21 May 2012 14:44:48 GMT View Forum Message <> Reply to Message There's a thread in "1.13 dev center" about new SVN Address: http://www.bears-pit.com/board/ubbthreads.php/topics/293324/New_SVN_address.html#Post293 324

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by pyg on Thu, 24 May 2012 12:51:27 GMT View Forum Message <> Reply to Message 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

Page 87 of 91 ---- Generated from The Bears Pit #!/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.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by bnolsen on Thu, 24 May 2012 14:37:35 GMT View Forum Message <> Reply to Message 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).

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Scheinworld on Thu, 24 May 2012 17:08:38 GMT View Forum Message <> Reply to Message Hello, bnolsenalso looks like lesh 2's source code repo is gone (or maybe moved).

I hope Lesh's last data is saved in the JA2 archive:

Page 88 of 91 ---- Generated from The Bears Pit http://kermi.pp.fi/JA_2/Mods_v1.13/Lesh/Linux_Port_Alpha/

Edit: I found it! The repository is located here now: https://ja2svn.dyndns.org/source/ja2/branches/Lesh/

Maybe interesting for some Linux users as well the vanilla source files for Linux: http://kermi.pp.fi/JA_2/Mods_Vanilla/Source/Linux/

Best regards; Schein

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by pyg on Fri, 25 May 2012 17:34:54 GMT View Forum Message <> Reply to Message bnolsen one liner for changing case: for i in $(find . -type f); do mv "$i" "$(echo $i|tr A-Z a-z)"; done

Not recursive, needs to do directories as well, possibly other issues. I can oneline the python as well, but obfuscated python is antithetical.

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Shank on Fri, 06 Jul 2012 14:14:02 GMT View Forum Message <> Reply to Message Thats pretty bad approach. I have my bash-written tool for this, however I'm currently having issue with "while" not reporting rename statistic due to being launched in external process. When I update it, I will provide it - so hopefully there will be reliable low/upcase utility at last.

There is python-based GUI renamer already. Or there is other, reliable way, simply by copying stuff over to windows, booting into it (or VMing) and copying stuff over, then copying it back.

As for the mod, I desperately want to fix it, because original win-only 1.13 is plain unplayable in wine due to slowness.

Lesh' version had Bug bug if I recall correctly, with bugs being released, but never actually attacking.

Page 89 of 91 ---- Generated from The Bears Pit Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Shank on Fri, 06 Jul 2012 14:16:32 GMT View Forum Message <> Reply to Message ScheinworldHello, bnolsenalso looks like lesh 2's source code repo is gone (or maybe moved).

I hope Lesh's last data is saved in the JA2 archive: http://kermi.pp.fi/JA_2/Mods_v1.13/Lesh/Linux_Port_Alpha/

Edit: I found it! The repository is located here now: https://ja2svn.dyndns.org/source/ja2/branches/Lesh/

Maybe interesting for some Linux users as well the vanilla source files for Linux: http://kermi.pp.fi/JA_2/Mods_Vanilla/Source/Linux/

Best regards; Schein

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by Scheinworld on Mon, 09 Jul 2012 12:57:22 GMT View Forum Message <> Reply to Message Hello Shank,

Sorry, I'm afraid that I can not help you very much with your questions. I'm not a Linux/GNU user.

Shank... or maybe you can help me track down which win-version his conversion was based off? Using this, it would be easy to track the diffs, then either port more modern ja 1.13 on linux, or something better.

The only information about that I've found in the "Install" instruction:

LeshNB: I cannot guarantee, that most recent revision of game directory will work with this exe. Personally, I am using rev.734 of game data.

Maybe Madd Mugsy knows how a more updated 1.13 version could be merged in the scope of the Stracciatella project? http://www.bears-pit.com/board/ubbthreads.php/topics/274694/.html#Post281882

Page 90 of 91 ---- Generated from The Bears Pit Best regards; Schein

Subject: Re: [Linux] ja2 1.13 linux port (alpha release) Posted by niculinux on Mon, 03 Jun 2013 18:14:27 GMT View Forum Message <> Reply to Message It'a real pity the linux port is dead, any chance to resuscitate it, please? :/

Page 91 of 91 ---- Generated from The Bears Pit