Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Apr 2014, 05:38
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
OpenTTD 1.2.1 - open source Transport Tycoon Deluxe
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [24 Posts]   Goto page: Previous 1, 2
Author Message
Keef


Joined: 20 Dec 2007
Posts: 562
Location: Staffordshire

PostPosted: Thu 20 Sep 2012, 12:39    Post subject:  

No joy on Wary 5.3:

Code:
*** OpenTTD Crash Report ***

Crash at: Thu Sep 20 16:19:40 2012
In game date: 0-01-01 (0)

Crash reason:
 Signal:  Segmentation fault (11)
 Message: <none>

OpenTTD version:
 Version:    1.2.1 (0)
 NewGRF ver: 12185ef2
 Bits:       32
 Endian:     little
 Dedicated:  no
 Build date: Sep 19 2012 09:29:51

Stacktrace:
 Not supported.

Operating system:
 Name:     Linux
 Release:  2.6.32.59
 Version:  #2 Sun Apr 15 00:26:20 BST 2012
 Machine:  i686
 Compiler: GCC 3.4.3 "3.4.3"

Configuration:
 Blitter:      8bpp-optimized
 Graphics set: none (4294967295)
 Language:     /usr/local/share/games/openttd/lang/english.lng
 Music driver: none
 Music set:    none (4294967295)
 Network:      no
 Sound driver: none
 Sound set:    none (4294967295)
 Video driver: sdl

AI Configuration (local: 0):

Libraries:
 FreeType:   2.4.10
 LZMA:       5.0.4
 LZO:        2.06
 PNG:        1.2.46
 SDL:        1.2.15
 Zlib:       1.2.5

---- gamelog start ----
---- gamelog end ----

*** End of OpenTTD Crash Report ***
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Thu 20 Sep 2012, 14:41    Post subject:  

TheYoungOne & Keef: Thanks for testing and reporting.
I am posting from Wary 5.3 now running Xorg with generic Nvidia driver.
openttd runs ok but if I remove content of
~/.openttd/content_download/baseset
(contain OpenGFX-0.4.4.tar which hold all the graphics) I get exactly same crash-report as you Keef...
From xorg.conf:
Code:
Driver      "nv" #card0driver
VendorName  "nVidia Corporation"
BoardName   "NV44A [GeForce 6200]"
Back to top
View user's profile Send private message Visit poster's website 
Keef


Joined: 20 Dec 2007
Posts: 562
Location: Staffordshire

PostPosted: Thu 20 Sep 2012, 15:24    Post subject:  

Yes, that did it. The directory was empty, so it didn't copy over. Actually I know why. I'd tested the binary in its unpacked directory to see if it worked. Doing that generates the .openttd directory, but without the graphics file - I never checked the contents fully after that.

I tried it on Slacko and found it works ok.

TheYoungOne: I have been trying to attach a pet for you to try, but the forum is not having it at the moment for some reason.
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Fri 21 Sep 2012, 09:52    Post subject:  

Nice...
The segfault when graphics not found is not default openttd behavior. The default is to offer download of graphics but I have not been able to get that working in the static build - and thats the main reason that the archive is shipped with graphics included.
Back to top
View user's profile Send private message Visit poster's website 
TheYoungOne


Joined: 11 Feb 2012
Posts: 40

PostPosted: Fri 21 Sep 2012, 10:19    Post subject:  

Hey Keef that's a shame. Do you reckon you could send it to my e-mail ? I can PM you it if it's alright with you.
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Fri 21 Sep 2012, 11:44    Post subject:  

Added the possibility to download as a pet.
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Fri 28 Sep 2012, 00:42    Post subject:  

OSOpenBrowser is called in openttd.cpp
it exists in os/unix/unix.cpp and calls the url with:
"/usr/bin/xdg-open"
try putting a symlink there (puppy uses either my Rox wrapper possibly with jemimah's URI fixes in /usr/local/bin for xdg-open, or a hacky nest of if-thens in a script)

for reference:
Code:
#!/bin/bash
case "$1" in
  '') exit
;;
  *://*) exec rox -U "$1"
;;
  *@*.*) exec rox -U "mailto:${1}"
;;
  *) exec rox "$1"
;;
esac

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Sat 29 Sep 2012, 07:37    Post subject:  

technosaurus; Thx for looking into this. The call to xdg-open seems to affect the "Visit website"-button when in the "Content Downloading"-window after choosing a package to download. If not present/functioning nothing happens using that button but if xdg-open present and working it opens the webpage in the browser.

Attached an image of the default behavior of openttd if no graphics found. This window is dependent on some Freetype fonts from the main system which does not work in the static build. Seems that the Freetype - although present - does not work correctly. If build without Freetype the game does not crash but gives a message - but you wont see it unless game is started from prompt (image below).
Game seems to work fine without Freetype and it reduce size from 4744K to 4364K unpacked.

Maybe one could change the failure-code in bottom of bootstrap_gui.cpp to use Xdialog (if present) to inform the user about what is wrong...Maybe reconstruct the dialog with offer of download is also possible...
snap0006.png
 Description   default behavior if graphics not found and compiled WITHOUT Freetype
 Filesize   6.81 KB
 Viewed   345 Time(s)

snap0006.png

snap0005.png
 Description   default behavior if graphics not found and compiled with Freetype
 Filesize   4.06 KB
 Viewed   333 Time(s)

snap0005.png

Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sat 29 Sep 2012, 15:20    Post subject:  

I'll be honest, I only downloaded the sources because it sounded like a problem I could find in 5 minutes ... I was wrong, it took less than 1 (grep "tp://" * */* */*/* and follow it back), but I never compiledit From your image it appears to have builtin dialog capabilities - seems a better choice than an external dialog. (btw if you recompile, just remove the path to xdg-open and it will use the existing xdg-open wrapper without symlinks as long as it is somewhere in the path)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [24 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0555s ][ Queries: 13 (0.0045s) ][ GZIP on ]