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.


Topics - lehjr

Pages: [1]
1
Development Deliberation / CS Linux plugin question
« on: June 27, 2012, 07:01:36 pm »
I'm working on an XRANDR plugin for CrystalSpace to replace the XFREE86VideoMode extensions plugin. Is there anything I'd have to do to get it to work with PlaneShift?

To give you a bit more detail, I started working from inside CrystalSpace's XF86VM plugin and wrote the code in there and tested it, and it worked. I was able to get PlaneShift to run in fullscreen hassle free without any of the dreaded error messages that we would normally see with the XF86VM plugin. I then moved the code out into its own plugin, keeping the same API as the XF86VM plugin, just with a different class and plugin name. I swapped out the "xf86vm" references in CS's xwindow.cpp and xwindow.h for refrences to the XRANDR plugin. The only references to "xf86vm" I could find in PlaneShift were in a couple of the Jam files. If you'd like, I can throw the plugin files as well as the modified CS files up on a pastebin. I know this seems like more of a CS issue than PS, but as far as I can tell, the plugin is building fine, but isn't being loaded by PlaneShift, as I only get a windowed version when trying to load fullscreen and my numerous print messages aren't showing up.

Edit: the references in PlaneShift are "xext86vm" not "xf86vm"

2
General Discussion / ATI drivers and the changes ahead
« on: June 05, 2012, 01:52:56 pm »
There appears to be some conflicting information about when drivers will be released and what devices are going to be supported. There were rumors that AMD was going to drop support for cards older than the RadeonHD 5000, while AMD refuted that saying they were going to release quarterly updates for those devices. There was also talk that they were going to do an as-needed release schedule.

However, after looking at the AMD Catalystâ„¢ 12.6 Beta Driver ( http://support.amd.com/us/kbarticles/Pages/AMDCatalyst126beta.aspx ), it appears the initial rumors could have been correct after all, meaning if you have a card from just a couple years ago, you could be out of luck, and those of us with AGP devices (yes these are still being sold) are definitely out of luck. For Windows users this may not be that big of an issue, but for Linux users, this could be a disaster. And yes, I did actually install that driver to test it and my card (RadeonHD 3450 AGP) was not supported. I realize there's the need to drop support for older devices, but some of the devices being dropped are currently still being sold or were only sold a couple (less than 5) years ago. I don't know how many of you this will effect, but I can't see this having a positive impact on the PS community. 

3
Development Deliberation / Compiling on Ubuntu 12.04 / Mint 13
« on: June 05, 2012, 12:12:24 pm »
Just a heads up on the compiling guide at http://planeshift.svn.sourceforge.net/viewvc/planeshift/trunk/docs/compiling.html

It looks like libglu1-xorg-dev no longer exists in Ubuntu and installing libjpeg62-dev will trigger the removal of libjepeg-dev, libjepeg-turbo8-dev, libjpeg8-dev, and libmng-dev. However, you can simply skip the installation of libjpeg62-dev and everything will compile just fine.

4
Linux Specific Issues / Fullscreen issue
« on: May 21, 2012, 11:44:47 am »
For some reason, I can only get fullscreen working in 1280 x 1024. And I know what you're thinking, you have to set the game to your desktop resolution for that to work, and that is what I'm doing, only it's not working. For those interested, the distro is Mint 13 x64 (ubuntu 12.04 based) , kernel is 3.2.0-24-generic.

Code: [Select]
fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Radeon HD 3450
OpenGL version string: 3.3.11627 Compatibility Profile Context

Here's the output of xrandr, so as you can see plenty of other modes are supported.
Code: [Select]
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1600 x 1600
DFP1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024      60.0*+   75.0 
   1152x648       60.0 +
   1280x960       75.0     60.0 
   1280x800       75.0     60.0 
   1152x864       75.0     60.0 
   1280x768       74.9     59.9 
   1280x720       60.0 
   1024x768       75.0     70.1     60.0 
   800x600        72.2     75.0     70.0     60.3     56.2 
   720x480        60.0 
   640x480        75.0     72.8     60.0 
DFP2 disconnected (normal left inverted right x axis y axis)
CRT1 disconnected (normal left inverted right x axis y axis)
CRT2 disconnected (normal left inverted right x axis y axis)
For the sake of clarity, I'm setting the desktop resolution from the command line so you can see what the output is for each attempt. And for the sake of simplicity, I'm showing the output of only 3 different resolution settings.
Code: [Select]
clear;xrandr -s 1280x768; /opt/PlaneShift/psclient -fs -mode=1280x768

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  130 (XFree86-VidModeExtension)
  Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
  Value in failed request:  0x2e00002
  Serial number of failed request:  115
  Current serial number in output stream:  119
Code: [Select]
clear;xrandr -s 800x600; /opt/PlaneShift/psclient -fs -mode=800x600

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  130 (XFree86-VidModeExtension)
  Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
  Value in failed request:  0x2e00002
  Serial number of failed request:  115
  Current serial number in output stream:  119
Code: [Select]
clear;xrandr -s 640x480; /opt/PlaneShift/psclient -fs -mode=640x480

Your configuration files are in... /home/leon/.PlaneShift

crystalspace.pluginmgr.loadplugin:
  could not load plugin ‘crystalspace.sndsys.renderer.null’
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  130 (XFree86-VidModeExtension)
  Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
  Value in failed request:  0x2e00002
  Serial number of failed request:  115
  Current serial number in output stream:  119

Playing windowed at those resolutions does work. I just really don't like playing windowed. I have tried changing the ownership of the files, which didn't help, nor did running as root. I don't want to file a bug report until I know for certain that the issue is in the game and not an OS issue.

5
This error doesn't prevent me from loading the game, as far as I can tell, but I can't tell if it has any adverse effects.
Code: [Select]
Couldn't write to file! (/home/leon/.PlaneShift/updatecache/13376040451681692777.download)
This is the last console output after the launcher loads. I know that if I create the updatecache directory manually either before or after loading the launcher, so cleanup is being handled. Is it possible the file is trying to be created either before the directory is being created or without the directory being created? I seem to remember having this error in a previous build and making it go away simply by creating that directory manually. I put this in the Linux area because as I understand it, recursive directory creation is not handled automatically in Linux (and that's where I'm seeing the error), but is in Windows. It is possible however that the error is something completely unrelated and/or of little or no consequence.

6
Machine 1:
OS: Ubuntu 12.04 (64bit with fglrx 12.4); Mint 12 x64 (with fglrx 12.3) yielded the same results
CPU: AMD Athlon 64 4200+ (socket 939)
RAM: 2GB PC3200 DDR
Graphics: RadeonHD 3450 512MB (AGP) using only 1 head out
Asus A8V Deluxe
Sound: VIA Realtek ALC850 (onboard)

Machine 2:
Gateway NV53 Laptop
OS: Windows 7 (64 bit)
CPU: AMD Athlon II M300 (64 Bit Dual Core)
RAM: 4GB
Graphics: RadeonHD 4200
Sound: Conexant with most recent drivers

I have an issue with crashing in the arena area, which I've been able to reproduce (far more often than I'd like) in both Windows and Linux, each on a different machine. This crash occurs when sound is enabled and set to OpenAL, and when engaging in combat, and drops back to the launcher. I even went as far as wiping my Mint 12 installation in favor of Ubuntu 12.04 just so I could eliminate anything there as part of the problem (despite it occurring on Windows as well) and with that I got a fresh install of the game as well. Since I can't seem to get any console output from the Windows version, and the error log doesn't contain any useful information, all I have to fall back on is console output from the Linux version. This is where the crash occurs, first spitting out a random number of (maybe a 100 or more) errors pointing to the same line but with different EID's:
Code: [Select]
Thu Apr 19 11:38:21 2012, <src/client/psclientdr.cpp:223 HandleDeadReckon SEVERE>
Thu Apr 19 11:38:21 2012, Got DR message for unknown entity EID:25709.
Thu Apr 19 11:38:21 2012, <src/client/psclientdr.cpp:223 HandleDeadReckon SEVERE>
Thu Apr 19 11:38:21 2012, Got DR message for unknown entity EID:31189.
and after that, spitting out this error after which it drops back to the launcher:
Code: [Select]
Thu Apr 19 11:39:22 2012, <src/plugins/common/soundmanager/data.cpp:167 LoadSoundFile SEVERE>
Thu Apr 19 11:39:22 2012, Can't load file 'combat.arena'!
NOTIFY: loading plugin instance for crystalspace.sndsys.renderer.openal
DEBUG: Initializing OpenAL sound system

All I have to do to reproduce this error is log in and attack something in the arena area, although I did manage to attack 1 rat on the first login after updating, but after that the error occurs every time with sound enabled.

I did file a bug report http://70.32.40.136/flyspray/index.php?do=details&task_id=5579, but I fear there isn't enough useful information in there for a dev to know where to start. The only thing I know is that this bug existed before the most recent updates and I haven't seen anyone else with the same issue, so far anyway.

Pages: [1]