Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: Easy graphics installer  (Read 3019 times)

Das123

  • Bay Watcher
    • View Profile
Easy graphics installer
« on: November 12, 2007, 08:15:00 am »

Hello,

+++++++++++++++++++++++UPDATE++++++++++++++++++++++++++

Easy Install Graphics Set (220kb)

The Graphics Installer has been updated so that it edits the init.txt file rather than replacing it. This will allow new options to remain unaffected by the this installer. It will only change the relevant graphic options.

The previous version made other changes to the init.txt file such as reducing the sound volume, turning off the intro movie, autosaving seasonally and others that are not part of this installer. These will need to be set manually.

Hope you all have a merry Christmas   :)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

I have really enjoyed playing Dwarf Fortress, but like many others I found the graphics confusing. At first I shied away from customising the graphics but eventually I started playing with the different sets.

My favourite font set is the Guybrush 16x16 set because the font is very clear and the graphics for trees, beds, doors etc look great.

My favourite graphics set is Dystopian Qantas because of the breadth and depth of the characters and animals.

Kudos to the producers of both these tile sets. These sets really improved the gameplay for me.

I want to support the project in some way so thought I would create an easy installer for both these sets. The link is here...

Link to old installer (Don't use)

First, make sure you have installed Dwarf Fortress and that you know the directory it is installed to.

Then you simply execute the graphics installer, browse and install it into the root directory of Dwarf Fortress.

When you play the game the graphic sets will have been updated. This really simplifies the conversion and installation of the tile sets and I hope it makes the games more accessible to other newbies like me.

This installer writes over the init.txt file and the sample graphics text file. It installs bmp files for the tilesets into the correct directories.

Enjoy!

PS. I didn't upload this to the Wiki because I'm not sure where it fits.

[ December 22, 2007: Message edited by: Das123 ]

[ December 24, 2007: Message edited by: Das123 ]

Logged

Tormy

  • Bay Watcher
  • I shall not pass?
    • View Profile
Re: Easy graphics installer
« Reply #1 on: November 12, 2007, 09:57:00 am »

Hm....isn't there a trojan or keylogger in this? Sorry but you are a new user, and I am really paranoid when I install / run unknown programs.

PS. I didnt wanted to offend you, but we can never be careful enough.

Logged

SD

  • Escaped Lunatic
    • View Profile
Re: Easy graphics installer
« Reply #2 on: November 12, 2007, 10:16:00 am »

quote:
Originally posted by Tormy:
<STRONG>Hm....isn't there a trojan or keylogger in this? Sorry but you are a new user, and I am really paranoid when I install / run unknown programs.
</STRONG>

Yeah, better be careful. He might steal your Dwarf Fortress cdkey.

Logged

Tormy

  • Bay Watcher
  • I shall not pass?
    • View Profile
Re: Easy graphics installer
« Reply #3 on: November 12, 2007, 10:36:00 am »

quote:
Originally posted by SD:
<STRONG>

Yeah, better be careful. He might steal your Dwarf Fortress cdkey.</STRONG>


 :roll:

Logged

Vanan

  • Bay Watcher
    • View Profile
Re: Easy graphics installer
« Reply #4 on: November 12, 2007, 11:05:00 am »

Just for kicks, scanned it with AVG Anti-virus, no threats reported.  :D
Logged

Red Jackard

  • Bay Watcher
    • View Profile
    • Wiki Page
Re: Easy graphics installer
« Reply #5 on: November 12, 2007, 11:26:00 am »

That happens to be same combination of tilesets I use. It is a very nice one, easy to understand and clean looking.
Logged
My dwarves are not your dwarves.

Tormy

  • Bay Watcher
  • I shall not pass?
    • View Profile
Re: Easy graphics installer
« Reply #6 on: November 12, 2007, 11:37:00 am »

quote:
Originally posted by Vanan:
<STRONG>Just for kicks, scanned it with AVG Anti-virus, no threats reported.   :D</STRONG>

Thanks.   :D

Logged

Metal Chao

  • Bay Watcher
    • View Profile
Re: Easy graphics installer
« Reply #7 on: November 12, 2007, 12:10:00 pm »

I already have them.
My computer won't support them at full resolution for some reason though.
I always have to have them at half their intended size, so they still just look like blobs ):
Logged

Core Xii

  • Bay Watcher
    • View Profile
Re: Easy graphics installer
« Reply #8 on: November 12, 2007, 01:59:00 pm »

Personally I don't like installers because, well, there's just no point in them... but of course there are computards who don't know how to unzip an archive and which file to double-click. If you make an installer, I recommend Nullsoft's.
Logged
Reality is for people who lack imagination

Das123

  • Bay Watcher
    • View Profile
Re: Easy graphics installer
« Reply #9 on: November 12, 2007, 02:07:00 pm »

Can't be too careful, Tormy. I certainly understand your misgivings especially since this was my first post.

This was created in NSIS. Below is the NSIS code used to make it. This may also help other contributors to package their contributions. You will need to make your own graphic front panel but otherwise it is just a matter of changing the file locations.

EDIT: I had to split the description lines to make the post read better. You may need to put these back on a single line.

Cheers

NSIS CODE:

code:

Name "DF Various Graphics Packs"

# Defines
!define REGKEY "SOFTWARE\$(^Name)"
!define VERSION 1.0
!define COMPANY Das
!define URL ""

# MUI defines
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_WELCOMEFINISHPAGE_BITMAP "\\Zeus\C\Temp\Dwarf Fortress Panel.bmp"
!define MUI_BGCOLOR 8497ae
!define MUI_WELCOMEPAGE_TITLE $(welcome_title)
!define MUI_WELCOMEPAGE_TEXT $(welcome_text)
!define MUI_DIRECTORYPAGE_TEXT_DESTINATION "Choose your Dwarf Fortress directory"

# Included files
!include Sections.nsh
!include MUI.nsh

# Installer pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_DEFAULT MUI_DIRECTORYPAGE_TEXT_TOP $(directory_text)
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

# Installer languages
!insertmacro MUI_LANGUAGE English

# Installer attributes
OutFile graphics_setup.exe
InstallDir "$PROGRAMFILES\Dwarf Fortress\"
BrandingText "for Dwarf Fortress"
LangString welcome_title ${LANG_ENGLISH} "\r\n$(^NameDA)\r\n"
LangString welcome_text ${LANG_ENGLISH} "This wizard will install new graphics \
into Dwarf Fortress and change the initialisation settings.\r\n\r\nThe tilesets \
and graphics are...\r\nGuybrush Semi-Graphic 16x16\r\nDystopian Qantas v0.94 \
set\r\n\r\nThis will overwrite some existing files and Dwarf Fortress will need \
to be reinstalled to get it back to vanilla if you don't like the \
changes.\r\n\r\nIt is recommended that you close all other applications before \
starting Setup. This will make it possible to update relevant system files \
without having to reboot your computer.\r\n\r\n$_CLICK"
LangString directory_text ${LANG_ENGLISH} "Browse and locate the root directory \
for your installation of Dwarf Fortress$\r$\n(the directory that contains \
dwarfort.exe).$\r$\n$\r$\n$_CLICK"
CRCCheck on
XPStyle on
ShowInstDetails show
VIProductVersion 1.0.0.0
VIAddVersionKey ProductName "DF Various Graphics Packs"
VIAddVersionKey ProductVersion "${VERSION}"
VIAddVersionKey CompanyName "${COMPANY}"
VIAddVersionKey FileVersion "${VERSION}"
VIAddVersionKey FileDescription ""
VIAddVersionKey LegalCopyright ""

# Installer sections
Section -Main SEC0000
   SetOutPath $INSTDIR\raw\graphics
   SetOverwrite on
   File /r "C:\Program Files\Dwarf Fortress\raw\graphics\*"
   SetOutPath $INSTDIR\data\art
   File "C:\Program Files\Dwarf Fortress\data\art\GuybrushSemiGraphic_curses_square_16x16.bmp"
   SetOutPath $INSTDIR\data\init
   File "C:\Program Files\Dwarf Fortress\data\init\init.txt"
   WriteRegStr HKLM "${REGKEY}\Components" Main 1
SectionEnd

# Installer functions
Function .onInit
   InitPluginsDir
FunctionEnd


[ November 12, 2007: Message edited by: Das123 ]

[ November 12, 2007: Message edited by: Das123 ]

Logged

Das123

  • Bay Watcher
    • View Profile
Re: Easy graphics installer
« Reply #10 on: November 12, 2007, 02:22:00 pm »

quote:
Originally posted by Core Xii:
<STRONG>Personally I don't like installers because, well, there's just no point in them... but of course there are computards who don't know how to unzip an archive and which file to double-click. If you make an installer, I recommend Nullsoft's.</STRONG>

In the case of Dwarf Fortress, it isn't just a case of replacing a few files. Many of the tile sets are in png format and need to be converted across to bmp before they will work. The init.txt file needs a number of changes before the tile sets will work. The files are spread in different areas of the directory structure.

I think that many players won't make these sort of changes themselves for fear of stuffing up their install. If it makes life easier then it makes the game more accessible.

Logged

Zhentar

  • Bay Watcher
    • View Profile
Re: Easy graphics installer
« Reply #11 on: November 12, 2007, 03:15:00 pm »

quote:
Originally posted by Core Xii:
<STRONG>Personally I don't like installers because, well, there's just no point in them... </STRONG>

Just no point? Why the hell should I do manually what a computer can easily do automatically? I have better things to do with my time than pretend to be an extremely slow computer.

Logged

Das123

  • Bay Watcher
    • View Profile
Re: Easy graphics installer
« Reply #12 on: November 12, 2007, 04:42:00 pm »

quote:
Originally posted by Metal Chao:
<STRONG>I already have them.
My computer won't support them at full resolution for some reason though.
I always have to have them at half their intended size, so they still just look like blobs ):</STRONG>

Your init.txt file may not be set correctly. Or you monitor may not be able to render graphics at 1280px (which is probably unlikely).

Here are the specs for replacing the graphic options in the init.txt file (or you can simply use the installer).

code:

[GRAPHICS:YES]
[GRAPHICS_WINDOWEDX:1280]
[GRAPHICS_WINDOWEDY:400]
[GRAPHICS_FONT:GuybrushSemiGraphic_curses_square_16x16.bmp]
[GRAPHICS_FULLSCREENX:1280]
[GRAPHICS_FULLSCREENY:800]
[GRAPHICS_FULLFONT:GuybrushSemiGraphic_curses_square_16x16.bmp]
[GRAPHICS_BLACK_SPACE:YES]

Good luck

Logged

Geofferic

  • Bay Watcher
    • View Profile
Re: Easy graphics installer
« Reply #13 on: November 12, 2007, 06:15:00 pm »

quote:
Originally posted by Core Xii:
<STRONG>Personally I don't like installers because, well, there's just no point in them... but of course there are computards who don't know how to unzip an archive and which file to double-click. If you make an installer, I recommend Nullsoft's.</STRONG>

I love that you a) enjoy spending the time it takes to do all of this for DF so much that those of us who don't are necessarily "computards" and that b) you have used installers enough to have a preference.

Sticks and stones ...

Logged

Core Xii

  • Bay Watcher
    • View Profile
Re: Easy graphics installer
« Reply #14 on: November 13, 2007, 11:38:00 am »

quote:
Just no point? Why the hell should I do manually what a computer can easily do automatically?

Because when you have the computer do it for you, you have no idea what it's actually doing. And I certainly know what I want it NOT to be doing: Writing crap into my registry, installing rootkits and the like.

   

quote:
b) you have used installers enough to have a preference.

Indeed I have. On my old computer the Windows registry was nearing its maximum size because of all the crap all those installations left there. Not to even get started on StarForce...

Here's an idea. Dwarf Fortress could include a feature in itself to "install" a graphics set.

[ November 13, 2007: Message edited by: Core Xii ]

Logged
Reality is for people who lack imagination
Pages: [1] 2 3