Homeworld Remastered Collection

Homeworld Remastered Collection

Not enough ratings
RM: Custom Hyperspace Effects
By Dragon93
This guide leads you through the process of changing the Hyperspace art in Homeworld Remastered to either a still image or animation.
   
Award
Favorite
Favorited
Unfavorite
How to edit Vaygr hyperspace effect


After copying and pasting an entire "art" folder from a mod to a new RM mod, the first change i noticed was broken hyperspace effects; from this I figured out that they are easily changeable as in classic.
FYI, I have no experience modding Classic, so some of this might seem obvious for those that do :D

So here is how to change the hyperspace effect for the Vaygr (not tested others yet):

1. Create a new Mod. - > Go to the bottom of the "How to upload a MOD to Workshop for Homeworld Remastered" to see how. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=398897438

2. Within your mod create the following file scructure: "art > fx"

3. Place the following file into your new "fx" folder, which can be found in the original HW2 .big file in the same location: "hyperspace_gate_vgr.lua".

OR

3.A. Create the file "hyperspace_gate_vgr.lua" (Note: in Notepad++ this is saved with "UTF-8 without BOM" encoding).

3.B. Copy the following code into your new file.
-- LuaDC version 0.9.19 -- 5/23/2004 11:09:46 PM -- LuaDC by Age2uN -- on error send source file (compiled lua) and this outputfile to Age2uN@gmx.net -- fx = { style = "STYLE_HYPERSPACE", properties = { property_09 = { name = "EdgeColour", type = "VARTYPE_ARRAY_TIMECOLOUR", value = { entry_00 = { 0, 0.10965, 0.41509, 0.24849, 1, }, entry_01 = { 0.10896, 0.05661, 0.5, 0.25815, 1, }, entry_02 = { 0.46866, 0.05358, 0.40566, 0.21362, 1, }, entry_03 = { 0.89851, 0.04005, 0.42453, 0.34064, 1, }, entry_04 = { 1, 0.06542, 0.46226, 0.26745, 1, }, }, }, property_14 = { name = "EdgeTexture2", type = "VARTYPE_STRING", value = "DATA:ART/FX/TEXTURES/HYPERSPACE_EDGE2.TGA", }, property_13 = { name = "EdgeTexture", type = "VARTYPE_STRING", value = "DATA:ART/FX/TEXTURES/HYPERSPACE_EDGE1.TGA", }, property_06 = { name = "EdgeTexture2_U_Offset", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 0.33333, 1, 0, }, }, property_05 = { name = "EdgeTexture_U_Repeat", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 1, 1, 1, }, }, property_08 = { name = "Colour", type = "VARTYPE_ARRAY_TIMECOLOUR", value = { entry_00 = { 0, 0.67925, 0.67925, 0.67925, 1, }, entry_01 = { 1, 0.65094, 0.65094, 0.65094, 1, }, }, }, property_07 = { name = "EdgeTexture2_U_Repeat", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 3, 1, 3, }, }, property_02 = { name = "Offset", type = "VARTYPE_ARRAY_TIMEVECTOR3", value = { entry_00 = { 0, 0, 0, 1, }, entry_01 = { 0.34328, 0, 0, 1, }, entry_02 = { 0.70299, 0, 0, -1, }, entry_03 = { 1, 0, 0, -1, }, }, }, property_01 = { name = "Height", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 0, 0.20125, 0, 0.22, 0.01458, 0.23179, 0.04583, 0.23679, 0.10519, 0.24307, 0.18793, 0.27763, 0.64228, 0.29082, 0.81876, 0.29875, 0.90833, 0.3128, 0.96273, 0.33039, 0.99292, 0.35249, 0.99567, 0.69022, 0.99477, 0.72533, 0.99182, 0.74234, 0.96817, 0.75481, 0.90906, 0.76455, 0.82631, 0.81242, 0.14361, 0.82125, 0.07083, 0.835, 0.01667, 0.85375, 0, 1, 0, }, }, property_04 = { name = "EdgeTexture_U_Offset", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 0, 1, 1.2, }, }, property_03 = { name = "LineWidth", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 0, 0.0175, 1.55834, 0.295, 1.55834, 0.3375, 2.41667, 0.80875, 2.41251, 0.8675, 1.21667, 1, 1.21667, }, }, property_12 = { name = "Texture", type = "VARTYPE_STRING", value = "DATA:ART/FX/HYPERSPACE FX/HYPERSPACE_EFFECT_BEAM_VGR.TGA", }, property_11 = { name = "Blending", type = "VARTYPE_INT", value = 2, }, property_00 = { name = "Width", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 0, 0.01734, 0, 0.03842, 0.025, 0.05965, 0.09167, 0.07519, 0.21667, 0.11462, 0.725, 0.12633, 0.84167, 0.14584, 0.92083, 0.16771, 0.9625, 0.19659, 0.975, 0.85251, 0.975, 0.87516, 0.95625, 0.89019, 0.91875, 0.90183, 0.8375, 0.91029, 0.7375, 0.94642, 0.15417, 0.95899, 0.06458, 0.97157, 0.025, 0.98582, 0.00208, 1, 0, }, }, property_10 = { name = "Duration", type = "VARTYPE_FLOAT", value = 12, }, }, }

4. At the bottom of the file, look for the line:
value = "DATA:ART/FX/HYPERSPACE FX/HYPERSPACE_EFFECT_BEAM_VGR.TGA", },

Change this to point to your new ".tga" or ".anim" file.

5. Done!

Note: Replacing...
DATA:ART/FX/TEXTURES/HYPERSPACE_EDGE1.TGA DATA:ART/FX/TEXTURES/HYPERSPACE_EDGE2.TGA

With ".tga" that is a plain black image, removes the border from the hyperspace effect.

Extra: An anim file looks like the following:
fps = 30 startFrame = 0 loopCount = -1 texture = { "data:/art/fx/hyperspace fx/WarpMap01_0000.tga", "data:/art/fx/hyperspace fx/WarpMap01_0001.tga", etc. etc. etc. "data:/art/fx/hyperspace fx/WarpMap01_0027.tga", "data:/art/fx/hyperspace fx/WarpMap01_0028.tga", "data:/art/fx/hyperspace fx/WarpMap01_0029.tga",}

And allows an animation to be run - such as spinning hyperspace image.