Updated Installer for Robin Hood

Installers we are searching testers for.
rettichschnidi
liflg member
Posts: 218
Joined: Mon Mar 27, 2006 2:07
Location: CH

Updated Installer for Robin Hood

Postby rettichschnidi » Mon Jul 27, 2009 7:53


eriktorbjorn
Posts: 7
Joined: Tue May 18, 2010 21:04

Postby eriktorbjorn » Tue May 18, 2010 21:10

I'm afraid the patch doesn't work with my English version of the game. It asks me to insert the CD, and then it appears to be looking for the file RobinLiesMich.html. For reference, the files on my English CD are:

Code: Select all

|-- inst
|   |-- rh-inst.tgz
|   |-- rh.png
|   |-- robin.gnome
|   `-- robin.kdelnk
|-- Manual Robin Hood PDF Linux.pdf
|-- ReadMe.html
`-- setup.sh

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Tue May 18, 2010 21:16

Thanks for the feedback eriktorbjorn,
with your information we can build an installer for the English version.

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Mon May 24, 2010 13:53

@eriktorbjorn

rettichschnidi has updated the Robin Hood installer, it should work with the German and the English version now, would you be so kind and give it a try?

Thanks in advance.

eriktorbjorn
Posts: 7
Joined: Tue May 18, 2010 21:04

Postby eriktorbjorn » Mon May 24, 2010 19:19

As far as I can tell, the updated installer works fine with my English version.

There are a couple of issues, but I had them with my old installation as well so they're not regressions caused by the installer: The picture isn't quite steady on the highest resolution (maybe it picks some less than ideal refresh rate, or something like that -- I wish I could play in windowed mode instead...), and the font for savegames is all messed up unless I run the statically linked version.

eriktorbjorn
Posts: 7
Joined: Tue May 18, 2010 21:04

Postby eriktorbjorn » Tue May 25, 2010 20:22

I'm probably not the first one to have this idea, but it occurs to me that if it's possible to get the dynamically linked version to work properly, it should also be possible to simulate some of the niceties of the Loki and LGP ports by patching SDL a bit.

A rather untested patch against SDL 1.2.14 to toggle mouse grabbing with Ctrl-G, and prevent fullscreen mode. I guess it could be extended to allow toggling fullscreen mode as well, but it's mainly a proof (?) of concept:

Code: Select all

diff -ur SDL-1.2.14/src/events/SDL_keyboard.c SDL-1.2.14+hack/src/events/SDL_keyboard.c
--- SDL-1.2.14/src/events/SDL_keyboard.c   2009-10-13 01:07:14.000000000 +0200
+++ SDL-1.2.14+hack/src/events/SDL_keyboard.c   2010-05-25 20:08:30.000000000 +0200
@@ -516,6 +516,14 @@
    switch (state) {
       case SDL_PRESSED:
          event.type = SDL_KEYDOWN;
+         if (SDL_getenv("SDL_HACK_GRAB_MOUSE")) {
+            if (keysym->sym == SDLK_g && (modstate & (KMOD_LCTRL | KMOD_RCTRL))) {
+               if (SDL_WM_GrabInput(SDL_GRAB_QUERY) == SDL_GRAB_OFF)
+                  SDL_WM_GrabInput(SDL_GRAB_ON);
+               else
+                  SDL_WM_GrabInput(SDL_GRAB_OFF);
+            }
+         }
          break;
       case SDL_RELEASED:
          event.type = SDL_KEYUP;
diff -ur SDL-1.2.14/src/video/SDL_video.c SDL-1.2.14+hack/src/video/SDL_video.c
--- SDL-1.2.14/src/video/SDL_video.c   2009-10-13 01:07:15.000000000 +0200
+++ SDL-1.2.14+hack/src/video/SDL_video.c   2010-05-25 19:58:16.000000000 +0200
@@ -586,6 +586,11 @@
    int is_opengl;
    SDL_GrabMode saved_grab;
 
+   if (SDL_getenv("SDL_HACK_NO_FULLSCREEN")) {
+      if (flags & SDL_FULLSCREEN)
+         flags &= ~SDL_FULLSCREEN;
+   }
+
    /* Start up the video driver, if necessary..
       WARNING: This is the only function protected this way!
     */

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Wed May 26, 2010 18:15

Thanks again for testing eriktorbjorn.

I like the idea of your SDL patch but we will not include a "patched" SDL library in the installer.

march
liflg beta tester
Posts: 22
Joined: Mon Jun 22, 2009 21:57
Contact:

Re: Updated Installer for Robin Hood

Postby march » Thu May 10, 2012 20:59

Hi :)

Installer shows no problems under Ubuntu 12.04 (64-Bit). Game crashes after showing Wanadoo and Spellbound with the following error:

Code: Select all

./robin
Reading 1 profiles
Serializing profile datas...32
Serializing keys...60
Serializing custom keys...136
Serializing sound...212
Serializing player name...276
Serialize profile for <Robin> completed at 314
Video surface: 800x600/16 pitch:1600 R:f800 G:7e0 B:1f
Reading 134 dictionaries.
Reading 404855 sprites
Resource Data/Text/Level.res attached.
*** Openining case insensitive: Data/Interface/default.res
Resource Data/Interface/DEFAULT.RES attached.
Resource Data/Sounds/Exclamations/actors.res attached.
Serializing 27 hand2hand weapons...Ok.
Serializing 4 shoot weapons profiles...Ok.
Serializing 10 characters...Ok.
Serializing 68 soldiers...Ok.
Serializing 63 missions...Ok.
Serializing 24 civilians...Ok.
Create 63 missions...Ok.
Create Gang: ...Ok.
Creating 13 sectors...Ok.
Serializing 12 musics from Data/Sounds/Menu/menu.fxg...Ok.
*** Openining case insensitive: Data/Sounds/Robin Hood.fxg
Serializing 417 FX...Ok.
After sound initialization...
After Input startup
Video surface: 640x480/16 pitch:1280 R:f800 G:7e0 B:1f
Speicherzugriffsfehler (Speicherabzug geschrieben)

Do you need additional informations?

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Re: Updated Installer for Robin Hood

Postby kratz00 » Sat May 12, 2012 9:14

Hi march,

that's sad :cry:

Does any of these suggestions help (Be careful it's in German)?
http://wiki.linuxgaming.de/index.php/Ro ... eployed.29

Otherwise you could try "strace" which might give a glue whats going on.


Regards
-kratz00

rettichschnidi
liflg member
Posts: 218
Joined: Mon Mar 27, 2006 2:07
Location: CH

Re: Updated Installer for Robin Hood

Postby rettichschnidi » Sat May 12, 2012 16:54

I'm able to reproduce the error. Will have a deeper look at it ASAP (which may take some days)

Edit: It crashes in Color565DitherYV12MMX1X, within the inline asm stuff :/

rettichschnidi
liflg member
Posts: 218
Joined: Mon Mar 27, 2006 2:07
Location: CH

Re: Updated Installer for Robin Hood

Postby rettichschnidi » Mon Jul 30, 2012 0:36

@march: I have a workaround:

Code: Select all

SDL_VIDEO_YUV_DIRECT=0 ./robin.sh

Does this work for you?

@eriktorbjorn: There is a switch to run the game in windowed mode: -NOFULLSCREEN

@all: There will be an updated installer which includes the workaround (or a real fix, depends) and the note about the windowed mode switch.


Who is online

Users browsing this forum: No registered users and 1 guest