Difference between revisions of "Premium Play Darkness/Modding/Hex code"

From Hgames Wiki
Jump to: navigation, search
(Replacing hgame template with game template)
 
(29 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<p style="text-align: center;">[[File:Hex-Banner.png|left]]</p>
+
{{Premium_Play_Darkness}}
</br>
+
[[File:Hex-Banner.png|right]]<br /><br />
</br>
+
 
 
<h2 style="margin-left: 24px; text-align: center;">Foreword</h2>
 
<h2 style="margin-left: 24px; text-align: center;">Foreword</h2>
 +
'''Y'''''ou have probably been using Hexadecimal a few times in your life, most likely if you have been making a website or perhaps "piffing up" a User Profile. In those cases it have been to generate a color, the Hex in Illusion games works the same way. Now, however, we are generating a function, a way to tell how a mesh or a texture should behave. Should something be transparent? Perhaps glow? Reflect something?''
 +
 +
'''T'''''his section is most of all to learn the basics, but also to find out how a certain "effect" is generated. Note that we aren't all knowing about the Hex being used in Illusion Games such as PPD/PSP, this page will be updated as we progress in our search to use the Hex system to improve our modding ability.''
 +
==Tools==
 +
 +
*[http://www.hongfire.com/forum/showthread.php?p=3352965#post3352965 SB3UGS] by '''Alamar''', '''enimaroah''' (essential tool used for everything).
 +
==Valid Hex Values==
 +
To randomly type a value such as 'ZG-R9-L2-20' may result in that the object/costume may cause a crash. Here down below you can see a table of "valid" Hex values to use. These are unlikely to cause any crashes or other kinds of fatal errors.
 +
 +
[[File:Hexadecimal_table.gif|thumb|left]]<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
 +
Note that solo letters/digits such as 'A' should be e.g typed as '0A'. A value such as 00-A-00-00 is most likely to cause a fatal error. So, a correct segment can look like this: 00-9A-64-00.
 +
 +
To simply add a hex value to a single segment may not always be enough. Think of it as if you were doing math.
 +
 +
[Submesh Flags]Hex segment = Visual glitches.
 +
 +
To correct that we are most likely in need of altering a second Hex segment somewhere else. So our "math equation" gets correct:
 +
 +
[Submesh Flags]Hex segment + [Frame Flags]Hex segment = Working!<br />
 +
or [Submesh Flags]Hex segment + [Frame Flags]Hex segment + [Matrial tab T1-T4*]Hex segment = Working!<br />
 +
''(*T1-T4 equals to Texture 1, 2, 3 and 4.'')
 +
 +
==Transparency==
 +
 +
'''T'''here might come plenty of occasions where you want to add transparency to a object or part of a costume. If you haven't been fiddling with the SB3UGS Hex editor before, then take note of that there will be 3 tabs within it that we will be working with and these are;
 +
 +
*the <u>''Frame''</u> tab.
 +
 +
*the <u>''Submesh''</u> tab.
 +
*the <u>''Material''</u> tab.
 +
''Note that certain transparency effects may not require altering of the Material tab. One of those transparency effects is the [http://www.hongfire.com/forum/entry.php/2293-PPD-PSP-HEX-research-%E5%A4%9C%E7%A9%BA%E3%81%AE%E3%82%A4%E3%83%B3%E3%83%87%E3%83%83%E3%82%AF%E3%82%B9%E3%81%AF Goo Man Effect].''<br />
 +
<br />
 +
====''Common Transparency''<br />====
 +
 +
This kind of transparency is commonly used on Costumes. To apply it use the values down below in the example, note that a texture of the type .tga or .dds with a Alpha Channel is required for best reslut.
 +
 +
Submesh - Submesh Flags:<br />
 +
cw_O_bura_00_00[0] 0E-64-00-00 04-00-00-00 00-63-00-00[...]
 +
 +
Frame - Frame Flags:<br />
 +
cw_O_bura_00_00[0] 00-01-00-00 5F-00-00-00[...] <''This will cause a object/costume to load correctly without odd bugs.''<br />
 +
''(Note: There's at the time 2 know parts of this section that will have a impact''<br />on the result of this transparency. The first and the second segments.)
 +
 +
Material - Texture 1:<br />
 +
cw_M_pantu_00_01| 01-00-00-00[...]
 +
 +
Material - Texture 2-4:<br />
 +
cw_M_pantu_00_01| FF-00-00-00[...]<br />
 +
''(Note: the FF value is not always required, you can from time to time leave it as a 00 value.)''
 +
 +
 +
====''The Goo Man Effect''<br />====
 +
The Goo Man Effect does not require a .tga/.dds with a Alpha Channel. It will reacts with such things as the brightness/darkness of a texture. It also reacts to the brightness/darkness in Scenes(Maps).
 +
 +
Submesh - Submesh Flags:<br />
 +
cm_O_body_99_00[0] 04-64-00-00[...]
 +
 +
Frame - Frame Flags:<br />
 +
cm_O_body_99_00[0] 00-01-00-00 xx*-00-00-00[...]<br />
 +
(* xx ranges from 01 to 64.)
 +
 +
==Glow==
 +
'''W'''hat we do know about the glow at the time is that it is highley influed by the Map/Scene that we are using at the time. Some Maps/Scenes may not cause a object to glow while other will. Due to this it have so far been hard to perfect a glowing object (''More research about glow needs to be done'').
 +
 +
To turn glow on or off we need to locate the <u>''Mesh Flags''</u> section, it is located in the Frame tab and is the second section (right after Frame Flags). The Mesh Flags values might look similar to the example below.
 +
 +
cw_O_body_99_00|''Frame Flags''| '''00-02-00-00 00-00-00-00 00-08-00-00'''
 +
 +
To turn the Glow on for a certain object it's the second segment that we need to alter:
  
: You have probably been using Hexadecimal a few times in your life, most likely if you have been making a website or perhaps "piffing up" a User Profile. In those cases it have been to generate a color, the Hex in Illusion games works the same way. Now, however, we are generating a function, a way to tell how a mesh or a texture should behave. Should something be transparent? Perhaps glow? Reflect something?
+
: 00-02-00-00 '''00-00-00-00''' 00-08-00-00
  
: This section is most of all to learn the basics, and also to find out how a certain "effect" is generated. Note that we aren't all knowing about the Hex being used in Illusion Games such as PPD/PSP, this page will be updated as we progress in our search to use the Hexadecimal system to improve our modding.
+
The most common values to turn ON or OFF the glow are these:
<p style="margin-left: 24px; text-align: center;">'''''((Under Construction))'''''</p>
+
*00-02-00-00 '''00-02-00-00''' 00-08-00-00 - Glow ON
 +
*00-02-00-00 '''00-06-00-00''' 00-08-00-00 - Glow ON
 +
*00-02-00-00 '''00-00-00-00''' 00-08-00-00 - Glow OFF
  
<p style="margin-left: 24px; text-align: center;">
 
</p>
 
  
 
<p style="margin-left: 24px; text-align: right;">[[User:Syncroz|Syncroz]] ([[User talk:Syncroz|talk]]) 09:27, August 6, 2013 (UTC)</p>
 
<p style="margin-left: 24px; text-align: right;">[[User:Syncroz|Syncroz]] ([[User talk:Syncroz|talk]]) 09:27, August 6, 2013 (UTC)</p>

Latest revision as of 22:22, 28 March 2014

Illusion

all characters are at least 18


Premium Play Darkness [edit]

Gameplay

Story

Studio

Technical Help

Modding

Hex-Banner.png


Foreword

You have probably been using Hexadecimal a few times in your life, most likely if you have been making a website or perhaps "piffing up" a User Profile. In those cases it have been to generate a color, the Hex in Illusion games works the same way. Now, however, we are generating a function, a way to tell how a mesh or a texture should behave. Should something be transparent? Perhaps glow? Reflect something?

This section is most of all to learn the basics, but also to find out how a certain "effect" is generated. Note that we aren't all knowing about the Hex being used in Illusion Games such as PPD/PSP, this page will be updated as we progress in our search to use the Hex system to improve our modding ability.

Tools

  • SB3UGS by Alamar, enimaroah (essential tool used for everything).

Valid Hex Values

To randomly type a value such as 'ZG-R9-L2-20' may result in that the object/costume may cause a crash. Here down below you can see a table of "valid" Hex values to use. These are unlikely to cause any crashes or other kinds of fatal errors.

Hexadecimal table.gif










Note that solo letters/digits such as 'A' should be e.g typed as '0A'. A value such as 00-A-00-00 is most likely to cause a fatal error. So, a correct segment can look like this: 00-9A-64-00.

To simply add a hex value to a single segment may not always be enough. Think of it as if you were doing math.

[Submesh Flags]Hex segment = Visual glitches.

To correct that we are most likely in need of altering a second Hex segment somewhere else. So our "math equation" gets correct:

[Submesh Flags]Hex segment + [Frame Flags]Hex segment = Working!
or [Submesh Flags]Hex segment + [Frame Flags]Hex segment + [Matrial tab T1-T4*]Hex segment = Working!
(*T1-T4 equals to Texture 1, 2, 3 and 4.)

Transparency

There might come plenty of occasions where you want to add transparency to a object or part of a costume. If you haven't been fiddling with the SB3UGS Hex editor before, then take note of that there will be 3 tabs within it that we will be working with and these are;

  • the Frame tab.
  • the Submesh tab.
  • the Material tab.

Note that certain transparency effects may not require altering of the Material tab. One of those transparency effects is the Goo Man Effect.

Common Transparency

This kind of transparency is commonly used on Costumes. To apply it use the values down below in the example, note that a texture of the type .tga or .dds with a Alpha Channel is required for best reslut.

Submesh - Submesh Flags:
cw_O_bura_00_00[0] 0E-64-00-00 04-00-00-00 00-63-00-00[...]

Frame - Frame Flags:
cw_O_bura_00_00[0] 00-01-00-00 5F-00-00-00[...] <This will cause a object/costume to load correctly without odd bugs.
(Note: There's at the time 2 know parts of this section that will have a impact
on the result of this transparency. The first and the second segments.)

Material - Texture 1:
cw_M_pantu_00_01| 01-00-00-00[...]

Material - Texture 2-4:
cw_M_pantu_00_01| FF-00-00-00[...]
(Note: the FF value is not always required, you can from time to time leave it as a 00 value.)


The Goo Man Effect

The Goo Man Effect does not require a .tga/.dds with a Alpha Channel. It will reacts with such things as the brightness/darkness of a texture. It also reacts to the brightness/darkness in Scenes(Maps).

Submesh - Submesh Flags:
cm_O_body_99_00[0] 04-64-00-00[...]

Frame - Frame Flags:
cm_O_body_99_00[0] 00-01-00-00 xx*-00-00-00[...]
(* xx ranges from 01 to 64.)

Glow

What we do know about the glow at the time is that it is highley influed by the Map/Scene that we are using at the time. Some Maps/Scenes may not cause a object to glow while other will. Due to this it have so far been hard to perfect a glowing object (More research about glow needs to be done).

To turn glow on or off we need to locate the Mesh Flags section, it is located in the Frame tab and is the second section (right after Frame Flags). The Mesh Flags values might look similar to the example below.

cw_O_body_99_00|Frame Flags| 00-02-00-00 00-00-00-00 00-08-00-00

To turn the Glow on for a certain object it's the second segment that we need to alter:

00-02-00-00 00-00-00-00 00-08-00-00

The most common values to turn ON or OFF the glow are these:

  • 00-02-00-00 00-02-00-00 00-08-00-00 - Glow ON
  • 00-02-00-00 00-06-00-00 00-08-00-00 - Glow ON
  • 00-02-00-00 00-00-00-00 00-08-00-00 - Glow OFF


Syncroz (talk) 09:27, August 6, 2013 (UTC)