12-06-2007, 04:49 AM | #11 |
Count
Join Date: Nov 2007
Location: Infinite Improbability Drive
Posts: 1,287
|
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 |
12-06-2007, 05:49 AM | #12 |
Pledge
Join Date: Nov 2007
Posts: 49
|
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 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. |
12-06-2007, 06:25 AM | #13 |
Pledge
Join Date: Nov 2007
Posts: 49
|
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. |
12-06-2007, 11:14 AM | #14 | |
Marquis
Join Date: Jan 2007
Location: RA
Posts: 1,897
|
Quote:
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 |
|
12-06-2007, 03:37 PM | #15 |
Count
Join Date: Nov 2007
Location: Infinite Improbability Drive
Posts: 1,287
|
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 |
12-06-2007, 05:29 PM | #16 | |
Count
Join Date: Jul 2007
Location: France
Posts: 1,416
|
Quote:
__________________
|
|
12-06-2007, 08:11 PM | #17 |
Pledge
Join Date: Nov 2007
Posts: 49
|
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. |
12-06-2007, 09:22 PM | #18 | |
Count
Join Date: May 2007
Posts: 1,452
|
Quote:
a python one? just a though
__________________
⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺ |
|
12-06-2007, 10:23 PM | #19 |
Pledge
Join Date: Nov 2007
Posts: 49
|
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. |
12-06-2007, 10:47 PM | #20 |
Count
Join Date: Mar 2007
Location: Germany
Posts: 1,164
|
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. |
Thread Tools | |
Display Modes | |
|
|