Bug 118269

Summary: games/slune: update and fix
Product: Ports & Packages Reporter: Max Brazhnikov <makc>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
slune-1.0.14.diff
none
py-soya3d.patch
none
slune.patch none

Description Max Brazhnikov 2007-11-26 21:30:01 UTC
slune fails to run:
~>slune
* Slune * Slune lives in /usr/local/share
* Soya * Using 8 bits stencil buffer

* Soya * version 0.13.2
* Using OpenGL 1.5.8 NVIDIA 96.43.01
*   - renderer : GeForce4 MX 440/AGP/SSE2
*   - vendor   : NVIDIA Corporation
*   - maximum number of lights        : 8
*   - maximum number of clip planes   : 6
*   - maximum number of texture units : 2
*   - maximum texture size            : 2048 pixels
fcntl: Device not configured
* Using OpenAL 1.1
*   - renderer  : Software
*   - vendor    : OpenAL Community

Traceback (most recent call last):
  File "/usr/local/bin/slune", line 159, in <module>
    slune.gui_gl.MainScreen()
  File "/usr/local/share/slune/gui_gl.py", line 594, in MainScreen
    action = gui_idler.idle()
  File "main_loop.pyx", line 110, in _soya.MainLoop.idle
  File "main_loop.pyx", line 162, in _soya.MainLoop.main_loop
  File "/usr/local/share/slune/gui_gl.py", line 555, in advance_time
    pub_banner.advance_time(proportion)
AttributeError: 'HorizontalBanner' object has no attribute 'advance_time'
* Soya3D * Quit...

Fix: update to 1.0.13

Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-11-26 21:30:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->acm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Max Brazhnikov 2008-03-13 15:35:08 UTC
Update to 1.0.14
Comment 3 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2008-03-28 03:02:53 UTC
Hi

I didn't update slune yet, because i'm still having problems when i
start the game, it crashes when i'm into campain mode, maybe it could
work if we test it with py-soya 1.4rc1. See the follow log

----- Begin log -----

[acm@HellFire]# slune
* Slune * Slune lives in /usr/local/share
* Soya * Using 8 bits stencil buffer

* Soya * version 0.13.2
* Using OpenGL 2.1.2 NVIDIA 169.12
*   - renderer : GeForce FX 5200/PCI/SSE/3DNOW!
*   - vendor   : NVIDIA Corporation
*   - maximum number of lights        : 8
*   - maximum number of clip planes   : 6
*   - maximum number of texture units : 4
*   - maximum texture size            : 4096 pixels
fcntl: Device not configured
* Using OpenAL 1.1
*   - renderer  : Software
*   - vendor    : OpenAL Community

* Soya * Using 16 bits stencil buffer
* Soya * Using 16 bits stencil buffer
* Soya * Using 16 bits stencil buffer
* Py2Play * IDLER created !
* Py2Play * creating active player Acm : ('Acm',
'HellFire.BSD.org.pe', 36079)...
* Soya * warning : drawing shadow for non-closed model (can't join segments=
)!
* Soya * warning : drawing shadow for non-closed model (can't join segments=
)!
* Soya * warning : drawing shadow for non-closed model (can't join segments=
)!
* Soya * warning : drawing shadow for non-closed model (can't join segments=
)!
* Soya * warning : drawing shadow for non-closed model (can't join segments=
)!
* Soya * warning : drawing shadow for non-closed model (can't join segments=
)!
* Soya * warning : drawing shadow for non-closed model (can't join segments=
)!
* Soya * warning : drawing shadow for non-closed model (can't join segments=
)!
* Soya * warning : drawing shadow for non-closed model (can't join segments=
)!
Error de segmentaci=F3n(se ha creado un `core')

----- End  log -----

Could you reproduce the same problem? I haven't much free time for
test it using py-soya 1.4rc1, maybe you could help me testing it.

Greetings
ACM
Comment 4 Max Brazhnikov 2008-03-29 10:26:51 UTC
Hi

> Could you reproduce the same problem? I haven't much free time for
>  test it using py-soya 1.4rc1, maybe you could help me testing it.

This is longstanding problem, don't remember exactly when it appeared (may be 
during python 2.4 -> 2.5 update). It can be avoided running slune 
with --no-sound argument. This may be py-ogg/vorbis/openall related, not soya 
or slune itself. Anyway slune-1.0.12 doesn't compatible with present py-soya, 
so the update should be committed with note about sound or slune should be 
marked as broken.

Max
Comment 5 Edwin Groothuis freebsd_committer freebsd_triage 2008-07-05 12:02:48 UTC
State Changed
From-To: open->feedback

Using the last version, I get this: 

collision_util.cpp: In function 'void dInfiniteAABB(dxGeom*, dReal*)': 
collision_util.cpp:458: error: expected primary-expression before ';' token 
collision_util.cpp:459: error: expected primary-expression before ';' token 
collision_util.cpp:460: error: expected primary-expression before ';' token 
collision_util.cpp:461: error: expected primary-expression before ';' token 
collision_util.cpp:462: error: expected primary-expression before ';' token 
collision_util.cpp:463: error: expected primary-expression before ';' token 

Which is in: 

void dInfiniteAABB (dxGeom *geom, dReal aabb[6]) 
{ 
aabb[0] = -dInfinity; 
aabb[1] = dInfinity; 
aabb[2] = -dInfinity; 
aabb[3] = dInfinity; 
aabb[4] = -dInfinity; 
aabb[5] = dInfinity; 
}
Comment 6 Max Brazhnikov freebsd_committer freebsd_triage 2008-12-13 10:23:06 UTC
Hi Jose,

I've updated slune to 1.0.15 and soya to 0.14. I had to disable pysdl_mixer in 
soya, cause it's broken.

Cheers,
Max
Comment 7 Pav Lucistnik freebsd_committer freebsd_triage 2009-03-26 16:01:40 UTC
State Changed
From-To: feedback->open

Feedback received
Comment 8 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2009-04-27 02:37:28 UTC
State Changed
From-To: open->closed

- Committed with few modificationes, thanks!!!