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

Linux Technical issues under Linux platform

Reply
 
Thread Tools Display Modes
Old 12-06-2007, 04:49 AM   #11
Miraculix
Count
 
Miraculix's Avatar
 
Join Date: Nov 2007
Location: Infinite Improbability Drive
Posts: 1,287
Miraculix will become famous soon enough
Default

and if I have understood correctly, isn't it supposed (in the future) to make it possible to have the regnum files ONCE installed, and then have the user files in each user's dir?
__________________
Hit me, nail me, make me God.
Panoramix :: Half Elf Hunter ## Miraculix :: Half Elf Marksman ## Aspirinix :: Wood Elf Conjurer
Syrtis :: Horus :: Antartes
Miraculix no ha iniciado sesión   Reply With Quote
Old 12-06-2007, 05:49 AM   #12
l33t_linux_h4x0r
Pledge
 
Join Date: Nov 2007
Posts: 49
l33t_linux_h4x0r is on a distinguished road
Default

Each user name is already in the users folder. The main game files such as textures images sounds etc. are shared system wide to reduce the load on NGD's servers so that each user doesn't have to download their own copy of these files. I would like to make it so that the file that holds the config for settings such as graphics detail and resolution was also user specific however I am unable to do this currently as NGD has not given me the code to the actual game. I could do a dirty hack something like the following and put it in regnum.sh

OK now all settings are stored per user!!! change your regnum.sh to this and copy the default game.cfg to default_game.cfg in the same directory.

Code:
#!/bin/sh
if [ "`ls ~/.ngdstudios/game.cfg`" != ~/.ngdstudios/game.cfg ]; then
cp "`pwd`/default_game.cfg ~/.ngdstudios/game.cfg"
fi
ln -fs ~/.ngdstudios/game.cfg `pwd`/game.cfg
cd "`pwd`"
./rolauncher
Short description what that does is if there is not a game.cfg in the users ngdstudios directory then it makes one using the default regnum settings. Then it makes a shortcut to the game.cfg from the ngdstudios folder. It will allow the game to switch to different configs for each user.
note: with this script you need to copy the default game.cfg from the default install to default_game.cfg in the same location.

This will be included with the archive which will also be updated with the latest regnum release 0.9.24

Last edited by l33t_linux_h4x0r; 12-06-2007 at 06:01 AM.
l33t_linux_h4x0r no ha iniciado sesión   Reply With Quote
Old 12-06-2007, 06:25 AM   #13
l33t_linux_h4x0r
Pledge
 
Join Date: Nov 2007
Posts: 49
l33t_linux_h4x0r is on a distinguished road
Default

Things to be added in the new 2.0 release.
1. The latest files from Regnum Online 0.9.24 (done)
2. The above script to allow different users to have different settings (done)
3. An uninstall script. (done)
4. A GUI (This is the hardest to implement and may be held off until 3.0)
Also changed the archive name from Regnum_Archive.tar.bz2 to Regnum_Archive_0.9.24.tar.bz2 (this will be changed with each release of Regnum to reduce confusion and is very easy to do with find and replace)

As always feel free to add suggestions and improved code.

Last edited by l33t_linux_h4x0r; 12-06-2007 at 07:43 AM.
l33t_linux_h4x0r no ha iniciado sesión   Reply With Quote
Old 12-06-2007, 11:14 AM   #14
Znurre
Marquis
 
Join Date: Jan 2007
Location: RA
Posts: 1,897
Znurre will become famous soon enoughZnurre will become famous soon enough
Default

Quote:
Originally Posted by l33t_linux_h4x0r
Things to be added in the new 2.0 release.
1. The latest files from Regnum Online 0.9.24 (done)
2. The above script to allow different users to have different settings (done)
3. An uninstall script. (done)
4. A GUI (This is the hardest to implement and may be held off until 3.0)
Also changed the archive name from Regnum_Archive.tar.bz2 to Regnum_Archive_0.9.24.tar.bz2 (this will be changed with each release of Regnum to reduce confusion and is very easy to do with find and replace)

As always feel free to add suggestions and improved code.
I could maye help creating a gui.
I am used to create user interfaces with Ruby and Qt.
__________________
Winning a fight is not what makes you a good player, it's how you do it.
http://home.znur.re/screenshot%20201...2011_39_37.jpg
Znurre no ha iniciado sesión   Reply With Quote
Old 12-06-2007, 03:37 PM   #15
Miraculix
Count
 
Miraculix's Avatar
 
Join Date: Nov 2007
Location: Infinite Improbability Drive
Posts: 1,287
Miraculix will become famous soon enough
Default

eeewww, Qt?

gtk ftw.
__________________
Hit me, nail me, make me God.
Panoramix :: Half Elf Hunter ## Miraculix :: Half Elf Marksman ## Aspirinix :: Wood Elf Conjurer
Syrtis :: Horus :: Antartes
Miraculix no ha iniciado sesión   Reply With Quote
Old 12-06-2007, 05:29 PM   #16
magnet
Count
 
magnet's Avatar
 
Join Date: Jul 2007
Location: France
Posts: 1,416
magnet is on a distinguished road
Default

Quote:
Originally Posted by Miraculix
eeewww, Qt?

gtk ftw.
Amen brother.
__________________
magnet no ha iniciado sesión   Reply With Quote
Old 12-06-2007, 08:11 PM   #17
l33t_linux_h4x0r
Pledge
 
Join Date: Nov 2007
Posts: 49
l33t_linux_h4x0r is on a distinguished road
Default

Znurre Thanks for offering to help i will probably use your help for the QT gui if we decide to use it.

I knew that there would be a GTK vs QT war.
Personally of the two I like GTK however I was thinking so that neither side would win maybe using a desktop independent gui such as tcl/tk. Or we could implement a environment check such as

if the user is running gnome then use gtk
elif the user is running KDE then use QT
else if the user us running in terminal then use CLI

If anyone knows of any desktop independant GUI's other than tcl/tk please let me know. Thanks.
l33t_linux_h4x0r no ha iniciado sesión   Reply With Quote
Old 12-06-2007, 09:22 PM   #18
theotherhiveking
Count
 
Join Date: May 2007
Posts: 1,452
theotherhiveking has a spectacular aura abouttheotherhiveking has a spectacular aura abouttheotherhiveking has a spectacular aura about
Default

Quote:
Originally Posted by l33t_linux_h4x0r
Znurre Thanks for offering to help i will probably use your help for the QT gui if we decide to use it.

I knew that there would be a GTK vs QT war.
Personally of the two I like GTK however I was thinking so that neither side would win maybe using a desktop independent gui such as tcl/tk. Or we could implement a environment check such as

if the user is running gnome then use gtk
elif the user is running KDE then use QT
else if the user us running in terminal then use CLI

If anyone knows of any desktop independant GUI's other than tcl/tk please let me know. Thanks.

a python one?


just a though
__________________
⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
theotherhiveking no ha iniciado sesión   Reply With Quote
Old 12-06-2007, 10:23 PM   #19
l33t_linux_h4x0r
Pledge
 
Join Date: Nov 2007
Posts: 49
l33t_linux_h4x0r is on a distinguished road
Default

I have always wanted to write a program in python. However the syntex is much harder than bash (for me anyway). And this would require an entire rewrite as I want to keep the installer as one file. However if we did use python I would write some code to make the installer work on both Windows and Linux!!! Also the windows installer part would probably be the last priority of the project. This of course would make the uninstall.sh and regnum.sh only be written if using linux which I could do in the current installer but decided to include them in the archive to keep the installer to a minimum.

Also don't python gui's just call gtk,qt,tcl/tk anyway? If so I/We would still need to decide on a gui. Therefore porting the ROGPLI to python would just be extra work although I am sure that there are some benifits of python such as cross platform compatibility.

OK I think that I have decided. I would like to uses wxWidgets as it uses the default gui of the current OS. From what I understand (correct me if I am wrong) If you are using gtk it makes a gtk gui. If you are using qt it makes a qt gui. If you are using MS windows it makes a windows gui. so forth and so on.

If I am unable to figure out how to program this then I will try tcl/gnocl yes it is gtk only but we can impliment an if then like stated earlier and someone else can write a qt gui.

Last edited by l33t_linux_h4x0r; 12-06-2007 at 10:45 PM.
l33t_linux_h4x0r no ha iniciado sesión   Reply With Quote
Old 12-06-2007, 10:47 PM   #20
Myxir
Count
 
Myxir's Avatar
 
Join Date: Mar 2007
Location: Germany
Posts: 1,164
Myxir is on a distinguished road
Default

If you would rewrite this into python I think I could help you. I know python but I don't know , yet how good^^
I think there is an independent GUI called Tkinter. As far as I know it's the default GUI library...
There is also a gui builder for it.
I did not program a gui yet...
__________________
French Warriors of Syrtis: Nessa Telrunya (Hunter) - Myxir (Warlock) - Estra (Conjurer)
In War it does not matter who is right, but who is left.
Myxir 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 06:48 PM.


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