OpenTTD 1.2.1 - open source Transport Tycoon Deluxe

Play with your Puppy.
Message
Author
User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#16 Post by Keef »

No joy on Wary 5.3:

Code: Select all

*** 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 ***

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#17 Post by goingnuts »

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: Select all

Driver      "nv" #card0driver
VendorName  "nVidia Corporation"
BoardName   "NV44A [GeForce 6200]"

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#18 Post by Keef »

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.

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#19 Post by goingnuts »

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.

User avatar
TheYoungOne
Posts: 42
Joined: Sun 12 Feb 2012, 02:26

#20 Post by TheYoungOne »

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.

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#21 Post by goingnuts »

Added the possibility to download as a pet.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#22 Post by technosaurus »

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: Select all

#!/bin/bash
case "$1" in 
  '') exit
;;
  *://*) exec rox -U "$1"
;;
  *@*.*) exec rox -U "mailto:${1}"
;;
  *) exec rox "$1"
;;
esac
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#23 Post by goingnuts »

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...
Attachments
snap0006.png
default behavior if graphics not found and compiled WITHOUT Freetype
(6.81 KiB) Downloaded 541 times
snap0005.png
default behavior if graphics not found and compiled with Freetype
(4.06 KiB) Downloaded 514 times

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#24 Post by technosaurus »

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)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply