October 23, 2017, 09:53:36 AMLatest Member: doctorBagel2

Author Topic: Custom Graphic packs  (Read 8309 times)

0 Members and 1 Guest are viewing this topic.

rikkit

  • Registered member
  • *
  • Posts: 10
  • i do computers
    • View Profile
    • Web design portfolio
Custom Graphic packs
« on: November 25, 2010, 05:41:58 PM »
Is it possible for someone to replace all of the existing TH graphics with their own? If not, that would be quite a good addition, and would negate the need to have an existing install (unless there are other dependencies?).

tobylane

  • Registered member
  • *
  • Posts: 53
    • View Profile
Re: Custom Graphic packs
« Reply #1 on: November 25, 2010, 10:47:16 PM »
CorsixTH gets the maps and difficulties from the original too, though that could be replaced more easily than the graphics. Judging by other similar projects (OpenTTD), a fully functioning clone is made, then graphics and extra functions are added. Like the filesystem abstraction maybe there can be a graphics abstraction so that it doesn't matter if it is in original .smk format or something modern like png/apng/svg/gif.

At the moment you'd have to find which file contained the graphics you want to replace, decompress it (Dragon Dungeon file decompressor), edit it and recompress it.

markhobley

  • Registered member
  • *
  • Posts: 47
    • View Profile
Re: Custom Graphic packs
« Reply #2 on: January 25, 2011, 08:28:01 PM »
I think it is a good idea to unpack the files and convert to a .png format. The software could then be modified to work with the .png files, rather than the archives. This would make the graphics development work easier.

Ben Dyson

  • Registered member
  • *
  • Posts: 27
    • View Profile
Re: Custom Graphic packs
« Reply #3 on: January 25, 2011, 08:41:18 PM »
Does anybody know where I can download (Dragon Dungeon file decompressor), i have had a look online and cannot seem to be able to find it.

markhobley

  • Registered member
  • *
  • Posts: 47
    • View Profile
Re: Custom Graphic packs
« Reply #4 on: January 30, 2011, 06:29:55 PM »
I think these files use Rob Northern Compression. I managed to finf some source code by googling for dernc.cpp, but I don't know how this can be wielded to decompress the files. I think we need a C++ programmer to convert this into a working utility.

Lego3

  • Project Owner
  • *****
  • Posts: 398
    • View Profile
Re: Custom Graphic packs
« Reply #5 on: January 30, 2011, 07:46:20 PM »
The CorsixTH wiki page about RNC links to Dungeon Keeper Utilities: http://www.yoda.arachsys.com/dk/utils.html

The last time I extracted the graphics was a long time, but I think I used that tool.
For the end of the world spell, press Control, Alt, Delete.

markhobley

  • Registered member
  • *
  • Posts: 47
    • View Profile
Re: Custom Graphic packs
« Reply #6 on: January 30, 2011, 11:53:56 PM »
Right that is useful. I wonder if the source will compile under Linux ...

markhobley

  • Registered member
  • *
  • Posts: 47
    • View Profile
Re: Custom Graphic packs
« Reply #7 on: February 09, 2011, 04:15:38 PM »
Does anyone know how to run these tools? I have just had a quick go using a friends Microsoft Windows XP machine, and I get an error as follows:

C:\THUNZIP>exanim *.SMK
Stack Fault at eip=506d
eax=00000301 ebx=00006136 ecx=00000000 edx=0000ffff esi=00000364 edi=0000ac21
ebp=0000ffa2 esp=00051a3c cs=19f ds=17f es=17f fs=0 gs=0 ss=1b7 cr2=00001fd8
Call frame traceback EIPs:
  0x0000506d
  0xffc20001


Wolter

  • Registered member
  • *
  • Posts: 48
    • View Profile
Re: Custom Graphic packs
« Reply #8 on: February 10, 2011, 02:42:48 PM »
I don't get them to run either, I get the same error

markhobley

  • Registered member
  • *
  • Posts: 47
    • View Profile
Re: Custom Graphic packs
« Reply #9 on: February 10, 2011, 06:15:24 PM »
I installed dosbox, and the error does not occur when using that. However, nothing happens. I don't seem to be able to extract any files. We probably have to type the command line in a specific way. I don't know what we should be typing though. Any ideas?

MarkL

  • Moderator
  • ***
  • Posts: 359
    • View Profile
Re: Custom Graphic packs
« Reply #10 on: February 10, 2011, 08:24:54 PM »
It's my guess that you are using the wrong programme there. Files ending in SMK are the short bits of film like the one at the start and when you lose etc.  There is a programme to run them and its not the one you are using.
If you are using this to open up the game animations, then you are selecting the wrong files.

markhobley

  • Registered member
  • *
  • Posts: 47
    • View Profile
Re: Custom Graphic packs
« Reply #11 on: February 11, 2011, 02:03:56 AM »
Right. I'm not sure which archives contain which data. Is there a listing tool. I quickly tried:

EXANIM *.ANI
Can't open creature.tab.

I guess that I am missing some switches.

 

markhobley

  • Registered member
  • *
  • Posts: 47
    • View Profile
Re: Custom Graphic packs
« Reply #12 on: February 11, 2011, 07:39:44 PM »
I have also tried:

DERNC *.TAB
DERNC *.ANI

This does not give any errors, but I don't see any extracted data files.

markhobley

  • Registered member
  • *
  • Posts: 47
    • View Profile
Re: Custom Graphic packs
« Reply #13 on: February 13, 2011, 12:50:15 PM »
The game is obviously reading these files ok. Maybe someone could butcher the game code to get a working extractor.

MarkL

  • Moderator
  • ***
  • Posts: 359
    • View Profile
Re: Custom Graphic packs
« Reply #14 on: February 13, 2011, 07:06:13 PM »
have you tried

HOSPITAL\DATAM\MSPR-0.DAT 

I think this is where you will find the animations, don't know about extracting them as I have never bothered.