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

Dank Rafft

  • Founder
  • Named
  • **
  • Posts: 225
  • Karma: 15
  • but friends call me daft
    • Youtube Channel
Re: Need help replacing textures
« Reply #15 on: Dec 08, 2015; 09:11 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.
The install.xml doesn't have anything to do with your issues and is completely irrelevant for you. As I said, you basically just need the one I posted before - to make your mod package work. The crucial part is what's inside the the data folders of the mod. There are all the mod files which might override your changes. The install.xml is just important when you want to specify some optional changes for your mod.

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #16 on: Dec 09, 2015; 12:07 AM »
Followed your instructions and installed my mod trough the launcher. Just as I thought it makes no difference and still inventory texture reverts to vanilla because of Revival mod. Options and hud textures are working though. My mod has only textures, no xmls yet. I have no idea why this is happening. Maybe it has something to do with extended stash? Or Revival somehow forces the game trough xml to use original file instead modded one?

Malachor

  • Developer
  • Eldest
  • ****
  • Posts: 1984
  • Karma: 25
Re: Need help replacing textures
« Reply #17 on: Dec 09, 2015; 12:55 AM »
Did you install Revival first? How are your ui files installed?
The game uses a time/date stamp priority, so it will use files with a later time/date over those with an earlier one.
You could use Hellpack.exe, then copy the created .dat/.idx(ensure they have a different name, just change the numbers) files into the game's data directory and load the mod that way for testing.

The <heightbasis> stuff is probably what the developers used as their starting resolutions for creating the ui. 1600 by 1200 for non widescreen, 1920 by 1200 for widescreen.
So I imagine you're going to have a bit of trouble trying to use a nonscaled ui, since yours is lower.

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #18 on: Dec 09, 2015; 01:10 AM »
I think I found the problem. Why is widescreen texture commented out in Revival?

    <!-- js --<ws_texture>WSinventory_atlas</ws_texture>-->


Regarding ui scaling: I know there's always scaling if resolution is lower than xml. The problem is that game scales ui for 16:9 resolutions same as for 16:10. So everyone who has 16:9 monitor gets some stretching and ui elements are a bit misaligned. I want to find a way to fix scaling for 16:9 without breaking ui coordinates.

edit:

GOOD NEWS (for 16:9 monitor owners)

I've managed to fix the ui scaling bug. The game is showing ui properly now :)

proof:
« Last Edit: Dec 09, 2015; 06:23 PM by Xyloritus »

Malachor

  • Developer
  • Eldest
  • ****
  • Posts: 1984
  • Karma: 25
Re: Need help replacing textures
« Reply #19 on: Dec 09, 2015; 06:56 AM »
I think I found the problem. Why is widescreen texture commented out in Revival?

    <!-- js --<ws_texture>WSinventory_atlas</ws_texture>-->

Because we're using the multiplayer version of the file, which has that and some of these comments
        <!-- js --<ws_x>198</ws_x>-->

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #20 on: Dec 09, 2015; 02:32 PM »
It loads non ws version of inv texture for some reason. Now I have all problems sorted out, back to retexturing. You can expect a beta version of my mod soon. Cheers!

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #21 on: Dec 09, 2015; 06:22 PM »
Update:
After fixing scaling and aligning ui in the middle of the screen radial menu is still on the right because I had to move everything left by changing line 9 to    <x>83</x>      in main_screen.xml.
if anyone has more experience in editing ui xmls in Hellgate I really would appreciate some help. If someone has a better idea how to do this pm me.
« Last Edit: Dec 09, 2015; 06:27 PM by Xyloritus »

Malachor

  • Developer
  • Eldest
  • ****
  • Posts: 1984
  • Karma: 25
Re: Need help replacing textures
« Reply #22 on: Dec 10, 2015; 03:44 AM »
... I had to move everything left by changing line 9 to    <x>83</x>      in main_screen.xml....
This would move everything right because
    <x>0</x>
    <y>0</y>
is the top left corner of the screen.

EDIT: I think you'll need to revert that change, and adjust each sub-element individually.
Since you've used line 9 to move everything right, those elements that are aligned with that can't be moved left. Or you can try using a negative value for the radial menu's <x></x>, which it doesn't normally have but you can insert it, say on line 4365, moving everything afterwards down a line.
« Last Edit: Dec 10, 2015; 08:11 AM by Malachor »

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #23 on: Dec 11, 2015; 01:06 AM »
... I had to move everything left by changing line 9 to    <x>83</x>      in main_screen.xml....
This would move everything right because
    <x>0</x>
    <y>0</y>
is the top left corner of the screen.

Sorry I meant right but wrote left  ;)

I've tried many different ways but no success. There's too many elements and not just in one file. I wasn't able to find all elements of the radial menu. Then I've reverted <x>83</x> back to zero and tried moving stuff separately but it's really hard to find and align elements.  Maybe I'll try once again from a fresh file but now I'm back to texturing.

If anyone  would like to experiment with scaling just change this line in any xml:   <ws_widthbasis>2080</ws_widthbasis>
instead of 1920
The game scales as 16:10 so the nearest resolution is 1440x900 so I added 166 pixels to compensate scaling for 1600x900. Don't know how will that work with 1920x1080 though.
« Last Edit: Dec 11, 2015; 01:42 AM by Xyloritus »

michel741

  • Nameless
  • *
  • Posts: 13
  • Karma: 0
Re: Need help replacing textures
« Reply #24 on: Dec 31, 2015; 04:26 PM »
What pack in Hellgate Global contains icons for items? I can't found them with Reanimator, otherwise they generate ingame directly from models...

Dank Rafft

  • Founder
  • Named
  • **
  • Posts: 225
  • Karma: 15
  • but friends call me daft
    • Youtube Channel
Re: Need help replacing textures
« Reply #25 on: Dec 31, 2015; 10:22 PM »
What pack in Hellgate Global contains icons for items? I can't found them with Reanimator, otherwise they generate ingame directly from models...
AFAIK there are no specific icons. The game creates the "icons" from the item textures.

Xyloritus

  • Nameless
  • *
  • Posts: 21
  • Karma: 1
  • Memento mori.
Re: Need help replacing textures
« Reply #26 on: Feb 05, 2016; 08:17 PM »
Item ui icons are in fact small 3D models.

Sumerisle

  • Nameless
  • *
  • Posts: 34
  • Karma: 0
Re: Need help replacing textures
« Reply #27 on: Mar 30, 2016; 12:08 PM »
shit, I followed Malachor explains many time!! many !many! but failed. if anybody has success and applied changes on game,Please upload files

Malachor

  • Developer
  • Eldest
  • ****
  • Posts: 1984
  • Karma: 25
Re: Need help replacing textures
« Reply #28 on: Mar 30, 2016; 01:09 PM »
What changes were you trying to make?