~FoxBlog


RubyGFE

Posted in Uncategorized by grayfox on the April 23rd, 2006

A Game File Extractor
RubyGFE

RubyGFE is based on GFElite and is written in Ruby.
RubyGFE handles the installation of Game files. Using RubyGFE you
can easily install Map Packs, for instance the Community Bonus Packs
for UT200x.
Additionaly RubyGFE features uninstalling of installed files and
an installation log.

Note: The RubyGFE sources are now located @ RubyForge: https://rubyforge.org/projects/rubygfe/
Current version: 0.3.4

Base Features:

  • Curses interface for headless servers
  • Zip file installing
  • Cache file installing
  • Listing of installed files(GTK2 only)
  • Search for installed files(GTK2 only)
  • Installation log
  • Double click installed Map or Music file to play(GTK2 only)
  • UT200x game plugin

Information:

RubyGFE is now included in the official gentoo portage tree. So you just have to `emerge –sync && emerge rubygfe’ !

Screenshots

Howto use RubyGFE

Source tarball(ebuild)
RubyGFE Readme

ChangeLog

GFE Plugins

GFE Nautilus Script

Miscellaneous:

To run the RubyGFE source use the bash script(RubyGFE_gtk) or execute
$ ruby setup.rb
$ rubygfe -t [toolkit] -g [game]
For more options type
$ ruby setup.rb help
$ rubygfe –help

Requirements:

For the GTK2 interface:

The original GFElite Java code is (c) Brian Hearn.
You can modify and/or redistribute RubyGFE under the terms of the GNU General Public License(GPLv2).

8 Responses to 'RubyGFE'

Subscribe to comments with RSS or TrackBack to 'RubyGFE'.

  1. Omniwolf said,

    on September 12th, 2006 at 6:50 pm

    no matter what I do after install rubyGFE always says my install folder is invalid whether it’s /home/user/ut2004 or /home/user/.ut2004

  2. grayfox said,

    on September 13th, 2006 at 12:55 pm

    Yes I forgot to write that anywhere.
    RubyGFE requires you to have some directories ut uses but are not created when you install ut. That’s on my todo list already.
    The folders in your /home/user/ut2004 or /home/user/.ut2004 that have to exist are:

    “Animations”, “KarmaData”, “Maps”, “Music”,
    “Sounds”, “StaticMeshes”,
    “System”, “Textures”, “Demos”

    The folders RubyGFE checks are defined in RubyGFE/ut-plugin/whitelist-ut.xml.
    All path=”Directory” directories have to exist.

    hth and wow somebody is reading this!

  3. Omniwolf said,

    on September 13th, 2006 at 6:57 pm

    thanks, I’ve been using this prog since version 0.2 I found it at the linux gamers forums after having used a umodbrowser-like prog in windows, back when I still had winblows installed on my comp in 2003 for ut2003.

    BTW: *.ucl files go into the /home/user/.ut2004/system some mods won’t work unless these files are copied. I had made the addition to the ruby code but I could find the official site for this prog thus I didn’t know what to do with it ;) but just use myself

  4. Omniwolf said,

    on September 13th, 2006 at 7:06 pm

    well the weird thing is that the folders

    “System” are in both ~/.2004 for user config while ~/ut2004 contains game installed files and mods, while “Demos” is only in ~/.ut2004

    “Animations”, “KarmaData”, “Maps”, “Music”,
    “Sounds”, “StaticMeshes”,
    “System”, “Textures”, are in the ~/ut2004 folder

    back in version .2.1 it worked fine I just had to add the UCL extraction code after reading your comment within your code stating you didn’t know where they went :) (found out from a few readme files within some mods that wouldn’t work without their UCL files)

    also your prog wouldn’t run until after I installed ruby GEMS so you might wanna list that as a requirement as well

  5. Omniwolf said,

    on September 13th, 2006 at 7:14 pm

    issue fixed, in between .2.1 and .3.2 you lost the period before .ut2004 for the user config folder so the app was looking in the wrong placed for the demo folder. I did a workaround by making a symling from ~/.ut2004/demos to ~/ut2004/demos

  6. grayfox said,

    on September 13th, 2006 at 10:55 pm

    I didn’t include the .ucl files because they are cache files and ut generates them usually for me when I delete them. But good to know that some mods need them I’ll include the code in the next version. I’m sure rugems is not required by rubygfe. But it is for my installation of rubyzip. That’s why the installer installes the file /usr/bin/rubygfe that reads:
    RUBYOPT=’rubygems’ /usr/bin/ruby18 -X/usr/share/RubyGFE RubyGFE.rb $*

    Otherwise ruby won’t see my rubyzip install for some reason… So I guess consider this a bug for now ;).

    But I don’t get what was wrong :p.
    Your configuration for the game folder was /home/user/.ut2004
    But rubygfe was looking in /home/user/ut2004?
    I changed the config files names around the 2.x -> 3.x step so maybe you forgot to reset all your settings?

    Thanks for the feedback!

  7. Omniwolf said,

    on September 14th, 2006 at 6:04 am

    Your configuration for the game folder was /home/user/.ut2004
    But rubygfe was looking in /home/user/ut2004?

    no but when I recorded my first demo the game put in ~/.ut2004 rubygfe looks for it in ~/ut2004 where the game didn’t put it. version .2.1 didn’t care about demos AFAIK and thus worked without anyworkaround.

    So I guess consider this a bug for now ;) .

    I would “link” statically as in include .5.6 with your archive because that way future upgrader (right now rubyzip is in .9) won’t break you prog and gems wouldn’t be required.

    also I managed to run your prog on windows with rubywin for a linux challenged friend of mine, ran flawlessly, this version might not bc of the gem issue

  8. grayfox said,

    on September 14th, 2006 at 1:36 pm

    Ah ok I get it.

    Btw I just found out that rubygfe 0.3.x _is_ installing ucl files ;).

    rubyzip:
    The way rubyzip was included before 0.3 might result in a license conflict but I’m not sure how well ruby’s license and gpl work together. I use rubyzip-0.5.12 right now and it works fine api hasn’t changed at all only bug fixes. So keeping rubyzip seperately is the way to go imo. I have to look into 0.9 and check if the api has changed and if so I need to think of something. On gentoo the new rubyzip is not stable and not even testing yet.

    gems:
    I think that I will just modify the bash launcher and exclude the rubygem stuff… if you install rubyzip using rubygems you just have to tell ruby to use it (RUBYOPT=’rubygems’ /usr/bin/rubygfe).
    I already tested rubygfe on windows (http://fox.gentoo-clan.org/files/gfe/rubygfe-win2.jpg) some time ago. 0.3.2 should work the same although There already is a better GFE tool for win from Brian Hearn (http://brian.gentoo-clan.org/gfe/). Need .net though afaik.

    Oh and btw rubygfe always only looks for the folders in the directory you specified in “Game Path”. I suggest you set it to ~/.ut2004 that way you have a clean ut install in /home/user/ut2004 and a user specific dir with additional maps,files etc in ~/.ut2004

    So thanks again (didn’t even notice the rubyzip 0.9 version!)
    and would be cool if you can get me some win screenshots of rubygfe 0.3.x in win :).
    The rubygem stuff shouldn’t be a problem since you can’t use bash scripts in windows anyway you have to launch the RubyGFE.rb by double clicking it. And RubyGFE doesn’t use any gem related code or library includes.

    You can also email me insead if commenting here. My email is in the README (at the end).

    #EDIT: I checked rubyzip 0.9 the api hasn’t changed it works just fine and is a lot faster!

Leave a Reply