Installing mods

Technical support for all issues relating to Defcon Linux

Moderator: Defcon moderators

User avatar
zouhair
level1
level1
Posts: 12
Joined: Tue Dec 26, 2006 5:19 pm

Installing mods

Postby zouhair » Tue Jul 24, 2007 12:16 pm

Just a simple question : How can I install some mods under Linux??

Not that obvious :(
User avatar
shinygerbil
level5
level5
Posts: 4667
Joined: Wed Dec 22, 2004 10:14 pm
Location: Out, finding my own food. Also, doing the shinyBonsai Manoeuvre(tm)
Contact:

Postby shinygerbil » Tue Jul 24, 2007 2:21 pm

No, it's not obvious. The mod folder should be /path/to/defcon/lib/mods/ :)
Here is my signature. Make of it what you will.
Image
User avatar
zouhair
level1
level1
Posts: 12
Joined: Tue Dec 26, 2006 5:19 pm

Postby zouhair » Sat Jul 28, 2007 3:34 am

Here's what the Ubuntu debs install :

zouhair@ubuntu:~$ sudo dpkg -L defcon
/.
/usr
/usr/games
/usr/share
/usr/share/man
/usr/share/man/man6
/usr/share/man/man6/defcon.6.gz
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/scalable
/usr/share/icons/hicolor/scalable/apps
/usr/share/icons/hicolor/scalable/apps/defcon.svgz
/usr/share/games
/usr/share/games/defcon
/usr/share/games/defcon/main.dat
/usr/share/games/defcon/open-www.sh
/usr/share/games/defcon/defcon.bin.x86
/usr/share/doc
/usr/share/doc/defcon
/usr/share/doc/defcon/copyright
/usr/share/doc/defcon/changelog.Debian.gz
/usr/share/doc/defcon/manual.pdf
/usr/share/applications
/usr/share/applications/defcon.desktop
/usr/games/defcon
zouhair@ubuntu:~$ sudo dpkg -L defcon-sounds
/.
/usr
/usr/share
/usr/share/games
/usr/share/games/defcon
/usr/share/games/defcon/sounds.dat
/usr/share/doc
/usr/share/doc/defcon-sounds
zouhair@ubuntu:~$


where should I add the lib folder??
User avatar
shinygerbil
level5
level5
Posts: 4667
Joined: Wed Dec 22, 2004 10:14 pm
Location: Out, finding my own food. Also, doing the shinyBonsai Manoeuvre(tm)
Contact:

Postby shinygerbil » Sat Jul 28, 2007 7:20 am

Hmm, that deb changes the file structure. Damn Ubuntu's penchant for fiddling with files :?

Well, in that case, try /usr/share/games/defcon/mods and it should work - if that fails to work, try /usr/share/games/defcon/lib/mods :)

Remember to get the structure of the mods right; a lot of people extract the mod on directory too 'deep'; you should have:

/usr/share/games/defcon/mods/<modname>/data/
/usr/share/games/defcon/mods/<modname>/data/earth
/usr/share/games/defcon/mods/<modname>/data/graphics
/usr/share/games/defcon/mods/<modname>/data/gui

and so on. Not all of those folders may be present, but that's dependant on the mod.
Here is my signature. Make of it what you will.

Image
User avatar
zouhair
level1
level1
Posts: 12
Joined: Tue Dec 26, 2006 5:19 pm

Postby zouhair » Sat Jul 28, 2007 9:49 am

shinygerbil wrote:Well, in that case, try /usr/share/games/defcon/mods and it should work :)


This one worked perfectly :)

Thnak you very much

zouhair

Return to “Linux Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests