Menu

Show posts

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

Show posts Menu

Messages - JawCross

#1
Quote from: Electroshokker on Tue 17/05/2011 14:08:13
Hmm... this thread is getting cluttered with people trying to build the source for windows, linux, mac, ... I propose using a section in the AGS wiki to coördinate this stuff, rather than lots of people setting up their own project site.

This is only coordination attempt I have seen so far. But is there more project site than svn.adventuregamestudio.co.uk and https://gitorious.org/ags ? I think two is not yet fatal at all. And I hope official ('blessed') codebase will move to gitorious as well.

RedDwarf, what is your target and plans? I can see you have removed almp3 and added some gstreamer -stuff on your branches. Bero, you started cmake-clone for easy building (under Linux), and you have wrote about 64bit systems. Everybody else can also answer: "What is your goal? Short term all long term". I haven't see new commits on https://svn.adventuregamestudio.co.uk:7743/svn/ags/trunk/ nor any sings that 'community effort will be merged to it'. I think they should be merged and I think there should be some plan (or hope) that they will be merged.
#2
Quote from: RedDwarf on Sat 21/05/2011 03:27:48
Code: ags

  if (gfxDriver->UsesMemoryBackBuffer())  // make sure all borders are cleared
    gfxDriver->ClearRectangle(0, 0, final_scrn_wid - 1, final_scrn_hit - 1, NULL);

With this modification game (Kq3Redux) is not segfaultting on ARM, but it just ends. Debugger says: Program exited with code 0133.

Quote from: RedDwarf on Sat 21/05/2011 03:27:48
You could also look at the backtrace of all the threads (that one isn't the main one) and search for the quit call (which will contain the message explaining why it was called).

Code: ags

gdb) thread apply all backtrace

Thread 9 (Thread 0x46cfb490 (LWP 1707)):
#0  0x403b0798 in poll () from /lib/libc.so.6
#1  0x424676b8 in ?? () from /usr/lib/libpulse.so.0
#2  0x424676b8 in ?? () from /usr/lib/libpulse.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (Thread 0x454fb490 (LWP 1704)):
#0  0x403b0798 in poll () from /lib/libc.so.6
#1  0x424676b8 in ?? () from /usr/lib/libpulse.so.0
#2  0x424676b8 in ?? () from /usr/lib/libpulse.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x4105a490 (LWP 1700)):
#0  0x0018f258 in _linear_hline16 ()
#1  0x0020564c in _xwin_hline ()
#2  0x0015a508 in _normal_rectfill ()
#3  0x0020515c in _xwin_rectfill ()
#4  0x00053c88 in rectfill (bmp=0x645d70, x1=0, y_1=0, x2=319, y2=199, color=0) at /usr/include/allegro/inline/draw.inl:88
#5  0x00054280 in AllegroGFXFilter::ClearRect (this=0x644888, x1=0, y1=0, x2=319, y2=199, RGB=0)
    at ags_maemo/Engine/acgfx.cpp:439
#6  0x000de038 in ALSoftwareGraphicsDriver::ClearRectangle (this=0x644918, x1=0, y1=0, x2=319, y2=199, colorToUse=0x0)
    at ags_maemo/Engine/ali3dsw.cpp:340
#7  0x0005f040 in display_switch_in () at ags_maemo/Engine/ac.cpp:15574
#8  0x0015435c in _switch_in ()
#9  0x001b7998 in _xwin_private_handle_input ()
#10 0x001b8028 in _xwin_handle_input ()
#11 0x001aea1c in _xwin_bg_handler ()
#12 0x001e1a2c in bg_man_pthreads_threadfunc ()
#13 0x40559934 in start_thread () from /lib/libpthread.so.0
#14 0x403b9be8 in clone () from /lib/libc.so.6
#15 0x403b9be8 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x40021c90 (LWP 1697)):
#0  0x4055d27c in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x403c5cc8 in pthread_mutex_lock () from /lib/libc.so.6
#2  0x001e1774 in _unix_lock_mutex ()
#3  0x00201c50 in x_set_leds ()
#4  0x001609d8 in set_leds ()
#5  0x00161434 in remove_keyboard ()
#6  0x0014045c in allegro_exit ()
#7  0x0007bab4 in quit (quitmsg=0x21a3c0 "|You have exited.")
    at ags_maemo/Engine/ac.cpp:9341
#8  0x000a0af8 in QuitGame (dialog=0) at ags_maemo/Engine/ac.cpp:17995
#9  0x000ecb04 in call_function (addr=658100, numparm=1, parms=0xbefeb128, offset=0)
    at ags_maemo/Common/csrun.cpp:1224
#10 0x000f0aa0 in cc_run_code (inst=0x628588, curpc=101913)
    at ags_maemo/Common/csrun.cpp:1798
#11 0x000f1704 in ccCallInstance (inst=0x656d6167, funcname=0x0, numargs=1)
    at ags_maemo/Common/csrun.cpp:2026
#12 0x000bcaf4 in run_script_function_if_exist (sci=0x628588, tsname=0x2e1a10 "game_start", numParam=0, iparam=0, iparam2=0, iparam3=0)
    at ags_maemo/Engine/ac.cpp:3273
#13 0x000bd8ec in run_text_script (sci=0x628588, tsname=0x21d578 "game_start")
    at ags_maemo/Engine/ac.cpp:3323
#14 0x000bda20 in start_game () at ags_maemo/Engine/ac.cpp:26661
#15 0x000be6ac in initialize_start_and_play_game (override_start_room=0, loadSaveGameOnStartup=0x0)
    at ags_maemo/Engine/ac.cpp:26818
#16 0x000c7d4c in initialize_engine (argc=2, argv=0xbefec2e4)
    at ags_maemo/Engine/ac.cpp:28045
#17 0x000c8ae8 in main (argc=2, argv=0xbefec2e4) at ags_maemo/Engine/ac.cpp:27243


Maybe that ARM 'port' should wait till all big know issues are solved e.g. 64bit Linux works flawlessly. Maybe some old fancy dependencies should also be thrown away (like libcda).
#3
JJS, thanks for PSP-patch. It doesn't change user experience, but now it does not silently die, but it is Segmentation Fault always.

I'm not sure about optimization flags, I'm currently trying with Debug release.

I got first backtrace, which seems almost useless to me:
Code: ags

#0  0x0018f258 in _linear_hline16 ()
#1  0x0020564c in _xwin_hline ()
#2  0x0015a508 in _normal_rectfill ()
#3  0x0020515c in _xwin_rectfill ()
#4  0x00053c88 in rectfill (bmp=0x645a40, x1=0, y_1=0, x2=319, y2=199, color=0) at /usr/include/allegro/inline/draw.inl:88
#5  0x00054280 in AllegroGFXFilter::ClearRect (this=0x644868, x1=0, y1=0, x2=319, y2=199, RGB=0)
    at ags_maemo/Engine/acgfx.cpp:439
#6  0x000de038 in ALSoftwareGraphicsDriver::ClearRectangle (this=0x6448f8, x1=0, y1=0, x2=319, y2=199, colorToUse=0x0)
    at ags_maemo/Engine/ali3dsw.cpp:340
#7  0x0005f040 in display_switch_in () at ags_maemo/Engine/ac.cpp:15574


(None of those three Engine/ files were touched by psp-patch)

Allegro is not widely used on Maemo, but at least very simple test is working: http://wiki.allegro.cc/index.php?title=ExampleExHello

#4
I tested AGS on Linux-ARM. I got it compiled and it can be started, but it is not really working yet.

I collected every build warnings to: https://gitorious.org/ags/pages/StateOfArmSupport

Currently I know only one game, which is working with AGS-3.21: Kings Quest III Redux. Can you suggest some more test cases?

This is what I get in terminal:
./ags Kq3Redux.exe
Code: ags

Adventure Creator v3.21 Interpreter
Copyright (c) 1999-2001 Chris Jones

ACI version 3.21.1115
Speech sample file found and initialized.
Audio vox found and initialized.
Checking sound inits.
install_sound(-1,-1)

Unable to initialize your audio hardware.
[Problem: ALSA: snd_pcm_hw_params_set_format(pcm_handle, hwparams, format) : Invalid argument]


On the screen I get Game's logo, but after half a second it will be messed (see: http://imageshack.us/f/801/screenshot2011051815332.png ). Then nothing happens until I press key or mouse and then it dies silently.

So there are issues with (at least) audio and graphics, but are some of them fatal (why it shutdowns)?
#5
I tried compile Editor under Ubuntu (10.10) using mono.
There were some trivial issues* I fixed and pushed my git clone.

Compiling stops on error "Compiler crashed with code: 1"
I do not know how to proceed with it.

*Fixed:
- error CS1587: XML (error about comments)
- "value never used"-warnings are treated as error
- used small d, but filename has capital D.

-
Steps to reproduce
sudo apt-get install mono-xbuild mono-2.0-devel libmono-winforms*

git clone git://gitorious.org/~aaporantalainen/ags/aaporantalainens-ags.git ags
cd ags/Editor
xbuild AGS.Editor.NoNative.sln

#6
I tested under Ubuntu 10.10 (Maverick).

cmake gives "package allegro not found"? But it doesn't brake and make will also pass.

#7
I have also problems with Ubuntu. I first tried under 64 bit, but now I'm trying with 32 bit.

I copied instructions from forum to the wiki:
https://gitorious.org/ags/pages/HowToBuild#Building+under+Ubuntu
I fixed one non-printing character and ln -s libalfont.so.2.0.9. (Are these correct now?)


My problem is cmake is not founding alfont and libcda. Is there still some details missing in instructions?
#8
Hi I'm interested in to get AGS compiled and working under (64-bit) Ubuntu.

I got Bero's ags-20110501-linux.tar.xz compiled (with add_definitions(-m32) ) but not linked yet. Problem is with libcda and libalfont, thanks Bero for links, I got them both compiled but not installed (they do not use 'make install' and I do not know what to do.

Bero, are you familiar with git and gitorious? Your patches are good, but it would be difficult to handle and use them when they scatter around forum. I haven't yet see any plans for merging them to the svn, so maybe they should be collected one place just now.

*
File libcda/libcda-0.5/COPYING contains zlib-license, but also some fuzzy license which covers files: djgpp.c, bcd.doc.
SMF spam blocked by CleanTalk