Author Topic: Need help replacing textures  (Read 6262 times)

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Need help replacing textures
« on: Dec 04, 2015; 02:22 AM »
I'm planning on replacing hud textures and maybe entire UI. But I'm new to modding this game and I need some basic instructions. Already tried to cook test texture with Reanimator and put the files in Data but I can't see it in the game. What am I missing?
« Last Edit: Dec 07, 2015; 08:03 PM by Xyloritus »

Malachor

  • Developer
  • Eldest
  • ****
  • Posts: 1996
  • Karma: 25
Re: Need help replacing textures
« Reply #1 on: Dec 04, 2015; 03:22 AM »
What is your test texture? That's probably more of a rhetorical question.
Anyway, I'll go through the basics from extracting a file to packaging it.

Extracting.
Open Reanimator(assuming the use of version 1135).
Click on View->File Explorer
A new window appears, labeled Hellgate File Explorer. The File Explorer tab should be selected.
Down the left side is a folder structure starting with data and it's child folders, and then data_common with it's.
Go down to uix, and click on the + to expand it.
There a couple of folders, but they're probably not necessary at this stage.
Check the boxes of all of the .dds files since they're the texture files (obvious comment is obvious).
Click on the button to the right labeled Extract to...
Select where you want the files to be selected, which will in your Reanimator folder. Keep folder structure intact. Ensure you have the files in data/uix/
Close Reanimator.

Open the file(s) in your image editing program, and edit to your hearts content.
Once you're happy, save them using the same format as the original (obviously).

Run Hellpack.exe.
Go into Reanimator/data/ you should see a folder named uix, and a .dat and a .idx file, both named the same.
Move them into your games data folder.
Start the game, look for your changes.

I think I've covered the main parts, any questions let me know.
I look forward to seeing what you create.

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #2 on: Dec 04, 2015; 04:33 PM »
I had this idea after coming back to play Hellgate after a long break. But since the last time I played I got used to modern huds that don't cover 20% of the screen  ;)

It works now :D

First step is removing hud masks. Then I'll start making new graphics. 


Is it possible to move gui elements around? I could make it use the entire screen for 16:10 and 16:9 resolutions. And maybe I could prevent the ui from streching. I saw some xmls but they're encrypted and I'm not sure they have hud coordinates.
« Last Edit: Dec 05, 2015; 04:53 PM by Xyloritus »

Dank Rafft

  • Founder
  • Named
  • **
  • Posts: 225
  • Karma: 15
  • but friends call me daft
    • Youtube Channel
Re: Need help replacing textures
« Reply #3 on: Dec 04, 2015; 05:45 PM »
Welcome Xyloritus,

just a question that has nothing to do with the topic: Do you use SweetFX or something alike? If so, would you share your preset?

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #4 on: Dec 04, 2015; 07:57 PM »
Welcome Xyloritus,

just a question that has nothing to do with the topic: Do you use SweetFX or something alike? If so, would you share your preset?

Yes, I'm working on a preset for reshade framework. I will share it when it's finished because it will probably include a mask for my hud to exlude it from postprocessing.


Some progress:


Energy shield bar prototype. Should I leave it yellow? Share your thoughts. Using material design icons to replace the old ones.
« Last Edit: Dec 05, 2015; 04:53 PM by Xyloritus »

Dank Rafft

  • Founder
  • Named
  • **
  • Posts: 225
  • Karma: 15
  • but friends call me daft
    • Youtube Channel
Re: Need help replacing textures
« Reply #5 on: Dec 04, 2015; 08:45 PM »
Welcome Xyloritus,

just a question that has nothing to do with the topic: Do you use SweetFX or something alike? If so, would you share your preset?

Yes, I'm working on a preset for reshade framework. I will share it when it's finished because it will probably include a mask for my hud to exlude it from postprocessing.


Some progress:
(click to show/hide)

Energy shield bar prototype. Should I leave it yellow? Share your thoughts. Using material design icons to replace the old ones.
Great, I like it. :)

Malachor

  • Developer
  • Eldest
  • ****
  • Posts: 1996
  • Karma: 25
Re: Need help replacing textures
« Reply #6 on: Dec 05, 2015; 04:16 AM »
I had this idea after coming back to play Hellgate after a long break. But since the last time I played I got used to modern huds that don't cover 20% of the screen  ;)

It works now :D

First step is removing hud masks. Then I'll start making new graphics. 


Is it possible to move gui elements around? I could make it use the entire screen for 16:10 and 16:9 resolutions. And maybe I could prevent the ui from streching. I saw some xmls but they're encrypted and I'm not sure they have hud coordinates.
Yes, you can move gui elements around, use the File Explorer in Reanimator to look in data/uix/xml. The xml files ending in _atlas.xml describe what elements(position and size) are in the .dds files a level up.

And please don't use spoiler tags in your images, it's too hard to scroll across the image, especially if it's zoomed in. As soon as I move my cursor down to the scrollbar, the picture's gone.

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #7 on: Dec 07, 2015; 08:07 PM »
Apparently Revival mod reverts my changes in inventory panel textures. How can I make my changes compatible with Revival mod?

Malachor

  • Developer
  • Eldest
  • ****
  • Posts: 1996
  • Karma: 25
Re: Need help replacing textures
« Reply #8 on: Dec 08, 2015; 01:01 AM »
It would help if you posted a bit more information about what you're doing.
Are you installing your changes before or after installing Revival?

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #9 on: Dec 08, 2015; 01:18 AM »
Revival installed all the time. There's 7 ui textures in my mod now and all of them seem to replace the vanilla ones but wsinventory_atlas.dds is replaced only when I delete sp_hellgate_1337_1.5.0.*
I don't know how Revival changes the ui so I don't know how to work around this.


Another thing I've noticed - there's a bug for some resolutions. My monitor is 1600x900 and ui elements are a bit stretched and misaligned. It's hard to mod the ui because of this. I've looked through the xmls and  found out there are some kind of scaling attributes in first lines of files, e.g. main_new_atlas.xml

<atlas>
<file>data\uix\main_new_atlas.png</file>
<widthbasis>1600</widthbasis>
<heightbasis>1200</heightbasis>
<ws_widthbasis>1920</ws_widthbasis>

tried to experiment with different values but can't see any logic in that yet. If anyone cracked it already I'd appreciate some help  ;D

WIP


« Last Edit: Dec 08, 2015; 01:35 AM by Xyloritus »

bleedingapathy

  • Nameless
  • *
  • Posts: 49
  • Karma: 3
Re: Need help replacing textures
« Reply #10 on: Dec 08, 2015; 02:10 AM »
I think I like what your doing with the ui than the original looks. best luck with your endevors

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #11 on: Dec 08, 2015; 02:26 AM »
Thank you. Hellgate is one of my favourite games ever and this mod is my tribute.
« Last Edit: Dec 08, 2015; 02:32 AM by Xyloritus »

Dank Rafft

  • Founder
  • Named
  • **
  • Posts: 225
  • Karma: 15
  • but friends call me daft
    • Youtube Channel
Re: Need help replacing textures
« Reply #12 on: Dec 08, 2015; 01:35 PM »
Revival installed all the time. There's 7 ui textures in my mod now and all of them seem to replace the vanilla ones but wsinventory_atlas.dds is replaced only when I delete sp_hellgate_1337_1.5.0.*
I don't know how Revival changes the ui so I don't know how to work around this.


Another thing I've noticed - there's a bug for some resolutions. My monitor is 1600x900 and ui elements are a bit stretched and misaligned. It's hard to mod the ui because of this. I've looked through the xmls and  found out there are some kind of scaling attributes in first lines of files, e.g. main_new_atlas.xml

<atlas>
<file>data\uix\main_new_atlas.png</file>
<widthbasis>1600</widthbasis>
<heightbasis>1200</heightbasis>
<ws_widthbasis>1920</ws_widthbasis>

tried to experiment with different values but can't see any logic in that yet. If anyone cracked it already I'd appreciate some help  ;D
I don't about directly putting your files in the game's folder but you could also apply your changes by putting them in a standalone mod file and install it afterwards you've installed Revival. For a base frame you could extract the Revival mod zip (or any other mod which works similar: Nagahaku, NagaOptionals, etc.). You basically need an install.xml and the folder structure beginning with data, data_common, etc., just like in Reanimator. You should check if there are any files in the Revival data structure that you use for your mod. If there are any use them (copy them) to apply your changes on them.

The basic install.xml should look like this:
Code: [Select]
<?xml version="1.0" encoding="utf-8" ?>
<revival>
<modification id="sp_hellgate_1234_1.0">
<release>MyModName</release>
<version>1.0</version>
<author>Your Name</author>
<website></website>
<revert>false</revert><!--Automatically revert all modifications without warning. Not recommended for fan mods.-->
<dependencies>
<patch>sp_hellgate_1.10.180.3416_1.18074.70.4256</patch><!-- FSS SP 1.2 -->
</dependencies>
<description>For when you want a description of your mod.
</description>
<script type="optional"><!--Possible types are optional, recommended, hidden and disabled.-->
<title>Just a placeholder option</title>
<description>Here you can describe the placeholder option.</description>
</script>
</modification>
</revival>

Then repack the install.xml and the folder structure with your dds and xml files in a zip file which has the format "mymodname.mod.zip" and install it with the Revival launcher like you did with Revival. It overrides necessary files and the game uses your changes on #1 priority.

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #13 on: Dec 08, 2015; 01:43 PM »
Thanks very much, I'll do that.

Still looking for solution for unsupported resolutions ui stretching.

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #14 on: Dec 08, 2015; 08:01 PM »
I've analysed install.xml and I don't see any benefit of using it for my mod. It has extraction scripts for the updates and installation of optionals. Apart from that there's no magic in the installer, it simply extracts mod files to data folder. Correct me if I'm wrong. And Revival mod doesn't have any inventory textures so I'm still trying to figure out why it reverts my textures to default.

WIP


« Last Edit: Dec 08, 2015; 08:04 PM by Xyloritus »