Go Back   Champions of Regnum > English > Technical Support > Linux

Linux Technical issues under Linux platform

Reply
 
Thread Tools Display Modes
Old 09-01-2009, 01:50 PM   #11
tauc
Pledge
 
tauc's Avatar
 
Join Date: Jan 2009
Location: Sochi, Russia
Posts: 12
tauc is on a distinguished road
Default

Very nice solution!

I use nostromo speedpad for RO and bind all actions as i want, but it will be good if NGD realize free keys bind mapping and separate floating shotcuts pannels.
__________________
Horus/Alsius taucuu/barb as easy frag
tauc no ha iniciado sesión   Reply With Quote
Old 09-01-2009, 02:23 PM   #12
Arafails
Baron
 
Arafails's Avatar
 
Join Date: Nov 2007
Location: Not where it looks like, to either of us.
Posts: 706
Arafails will become famous soon enough
Default

The LD_PRELOAD will only affect apps that launch it with that environment set.

Should also point out that if you do it like this (which is slightly wasteful IMO) you don't need to preload, simply set LD_LIBRARY_PATH to the .libs directory you compiled in.
__________________
If you can't detect sarcasm yourself, please pay attention when it's pointed out to you.
Arathael :: Wyrd Sceote :: Gwn M'gerSoul Taker, Imperial Guard of Ignis
Arafails no ha iniciado sesión   Reply With Quote
Old 09-01-2009, 04:23 PM   #13
Zas_
Count
 
Zas_'s Avatar
 
Join Date: Jun 2009
Location: France
Posts: 1,024
Zas_ is on a distinguished road
Default

Quote:
Originally Posted by tauc View Post
Very nice solution!

I use nostromo speedpad for RO and bind all actions as i want, but it will be good if NGD realize free keys bind mapping and separate floating shotcuts pannels.
How did you configure the nostromo speedpad under Linux ?
__________________
Annavilya / War-Luck (Haven)
Zas_ no ha iniciado sesión   Reply With Quote
Old 09-02-2009, 04:30 PM   #14
Eli2
Apprentice
 
Eli2's Avatar
 
Join Date: Jun 2007
Posts: 73
Eli2 is on a distinguished road
Default

Quote:
Originally Posted by onemyndseye View Post
... I will include a patched lib in the RO package ...
If you like to, do it, but i would only include the "not Sticking" patch.
The rest is based on user preference and should not be applied to all users. I will make a trimmed down version later if you need it.
__________________
Regnum: It's Highly Addictive!
Eli2 no ha iniciado sesión   Reply With Quote
Old 09-03-2009, 09:18 PM   #15
_Nel_
Master
 
_Nel_'s Avatar
 
Join Date: Feb 2009
Location: France
Posts: 414
_Nel_ is on a distinguished road
Default

Hello Zas_

I have tried to apply your patch to my RO on Ubuntu Jaunty, but I got an error :
  • I have applied your patch : ro-keymap-hack-0.2-zas.patch.txt
  • Then I launched ./configure but have an error with xcb-proto
  • I have tried to applied your patch for Jaunty unsuccessfully, it still asks for xcb-proto 1.5
  • So I installed xcb- proto 1.5 for Karmic
  • Now ./configure is ok, but it fails on make :
    Code:
    Failed to load the xcbgen Python package!
    Make sure that xcb/proto installed it on your Python path.
    If not, you will need to create a .pth file or define $PYTHONPATH
    to extend the path.
    Refer to the README file in xcb/proto for more info.
    
    Traceback (most recent call last):
      File "./c_client.py", line 1022, in <module>
        from xcbgen.state import Module
    ImportError: No module named xcbgen.state
    make[1]: *** [xproto.c] Erreur 1
    make[1]: quittant le répertoire « /home/regnum64/binding/libxcb-1.4/src »
    make: *** [all-recursive] Erreur 1

I don't know what I have to do now. So, if you can help me, it would be nice.
__________________
Nel's VidZ
_Nel_ no ha iniciado sesión   Reply With Quote
Old 09-04-2009, 08:59 AM   #16
Zas_
Count
 
Zas_'s Avatar
 
Join Date: Jun 2009
Location: France
Posts: 1,024
Zas_ is on a distinguished road
Default

Quote:
Originally Posted by _Nel_ View Post
Hello Zas_

I have tried to apply your patch to my RO on Ubuntu Jaunty, but I got an error :
[*] I have applied your patch : ro-keymap-hack-0.2-zas.patch.txt[*] Then I launched ./configure but have an error with xcb-proto[*] I have tried to applied your patch for Jaunty unsuccessfully, it still asks for xcb-proto 1.5
If you have xcb-proto 1.4 installed, and the patch on configure.ac worked, then you have to regenerate configure script using ./autogen.sh (just run it, no option needed).

Quote:
[*] So I installed xcb- proto 1.5 for Karmic
I didn't try.

Quote:
[*] Now ./configure is ok, but it fails on make :
Code:
Failed to load the xcbgen Python package!
Make sure that xcb/proto installed it on your Python path.
If not, you will need to create a .pth file or define $PYTHONPATH
to extend the path.
Refer to the README file in xcb/proto for more info.

Traceback (most recent call last):
  File "./c_client.py", line 1022, in <module>
    from xcbgen.state import Module
ImportError: No module named xcbgen.state
make[1]: *** [xproto.c] Erreur 1
make[1]: quittant le répertoire « /home/regnum64/binding/libxcb-1.4/src »
make: *** [all-recursive] Erreur 1

I don't know what I have to do now. So, if you can help me, it would be nice.
Try:

Code:
apt-get install python-xcbgen

After those steps it should work.

I'm using a small script to ease the launch (attached).

I improved the patch a bit (attached).

So to apply:

Code:
cd ~
wget http://xcb.freedesktop.org/dist/libxcb-1.4.tar.bz2
tar xjvf libxcb-1.4.tar.bz2
cd libxcb-1.4
patch -p1 < ~/regnum_hack_v0.5.zas.patch.txt
./autogen.sh
make
~/ro.sh
Important note: you need to modify src/hack.h to suit your needs.

2009-11-18 edit:
New version 0.5 of the hack, it adds the possibility to map
mouse buttons 8 and 9 (tested on Logitech G5) to keyboard keys.

By default, i mapped:
- spacebar to keypad 0 (same effect)
- button UP on mouse to keypad 8 (cast spell 8)
- button DOWN on mouse to keypad 9 (cast spell 9)


2009-11-23 edit:
Version 0.6 of the patch which is more clean and solve an issue
when you click on chat dialog entry instead of using enter.

You have to modify hack.h to suit your needs, especially HACK_RES_Y
and HACK_CHAT_WIDTH.

Thanks to Nel for tests and bug reports.
Attached Files
File Type: txt ro.sh.txt (132 Bytes, 35 views)
File Type: txt regnum_hack_v0.6.zas.patch.txt (9.1 KB, 41 views)
__________________
Annavilya / War-Luck (Haven)

Last edited by Zas_; 11-23-2009 at 08:18 PM. Reason: Updated patch (mouse buttons 8 and 9 can be remapped)
Zas_ no ha iniciado sesión   Reply With Quote
Old 09-04-2009, 05:19 PM   #17
_Nel_
Master
 
_Nel_'s Avatar
 
Join Date: Feb 2009
Location: France
Posts: 414
_Nel_ is on a distinguished road
Default

Impeccable !!!

It works really fine.
__________________
Nel's VidZ
_Nel_ no ha iniciado sesión   Reply With Quote
Old 09-04-2009, 08:41 PM   #18
Zas_
Count
 
Zas_'s Avatar
 
Join Date: Jun 2009
Location: France
Posts: 1,024
Zas_ is on a distinguished road
Default

Quote:
Originally Posted by _Nel_ View Post
Impeccable !!!

It works really fine.
Thanks to Eli2

BTW, use Enter -> Backspace -> Enter sequence to re-activate the keyboard hack if you clicked on chat dialog, because entering in it by mouse is not counted.

I hope NGD will make this hack useless soon.
Controls should be fully configurable in-game.
__________________
Annavilya / War-Luck (Haven)
Zas_ no ha iniciado sesión   Reply With Quote
Old 09-07-2009, 12:53 AM   #19
onemyndseye
Master
 
onemyndseye's Avatar
 
Join Date: Jul 2008
Location: South Central USA
Posts: 260
onemyndseye is on a distinguished road
Default

Quote:
Originally Posted by Eli2 View Post
If you like to, do it, but i would only include the "not Sticking" patch.
The rest is based on user preference and should not be applied to all users. I will make a trimmed down version later if you need it.


Sure, please do.

Just a trimmed down version of the patch would be fine.. I think is OK to include the arrow keys as well. They are dead in RO right now so even as a user preference it will not matter if you dont use them. I'll compile and test and get it included by the next update. Looking at Zas patch while it is certainly nice work is abit too much for a repo candidate...

I really must say this is excellent work from all of you - I've thought of doing this myself by havnt had the time. Not much time for RO in general lately lol, I just got a new laptop (YAAAYY!!!! No more crappy chroot hack) and have been spending my time getting it tweaked "just so"
__________________
RA/Syrtis Hunter LVL50: Elusis
RA/Syrtis Barba LVL50: Artemisia
RA/Syrtis Conju Lvl45: Nellas Miriel

Last edited by onemyndseye; 09-07-2009 at 01:05 AM.
onemyndseye no ha iniciado sesión   Reply With Quote
Old 09-09-2009, 01:53 PM   #20
ieti
Count
 
ieti's Avatar
 
Join Date: Oct 2008
Location: Sofia, Bulgaria
Posts: 1,374
ieti is on a distinguished road
Default

I tried to build libxcb in debian lenny, but ./configure fails because xcb-proto is version 1.1 there and is rather old compared to 1.4, 1.5 version needed to build.

Can someone upload prebuild library if it will work or give me some hints how make this configure and build. I'm really not so good at linux stuff
__________________
RA | Ignis | Lilla My | Conjurer | EVIL IGNIS ROCK
Horus | Syrtis | ieti | Conjurer | INQUISITION | LONG GONE
ieti no ha iniciado sesión   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved