Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Programming"

From PCGamingWiki, the wiki about fixing PC games
m (updated template usage)
m (updated template usage)
 
(19 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
==Text Editing==
 
==Text Editing==
 
===Functions (Placeholder)===
 
===Functions (Placeholder)===
{{Fixbox|1=
+
{{Fixbox|description=CTRL+F|ref={{cn|{{subst:DATE}}}}
{{Fixbox/fix|CTRL+F|ref={{cn|{{subst:DATE}}}}}}
 
}}
 
  
 
===[http://brackets.io/ Brackets]===
 
===[http://brackets.io/ Brackets]===
Line 12: Line 10:
  
 
==Hex Editing Resolutions (Windows)==
 
==Hex Editing Resolutions (Windows)==
<!-- 0x means base 16 - 0x123 = 1 * (16^2) + 2 * (16^1) + 3 * (16^0)
+
<!-- Win+R Works on Any Windows Language. -->
 +
===Custom Width===
 +
{{Fixbox|description=Setup|ref={{cn|date=June 2017}}|fix=
 +
# Push {{key|Win|R}}. Type '''Calc'''. Select '''OK'''.
 +
# Click on the Button with the Three Lines (Top Left). Select '''Programmer'''.
 +
}}
  
Write the values from below in a calculator to see what happens in order. Look at the HEX value.
+
{{Fixbox|description=Custom Width|ref={{cn|date=June 2017}}|fix=
0 => X <= 15
+
# Click on '''DEC'''. Type the '''Width'''.
16 => X <= 255
+
# Copy the '''HEX''' Number. See [[#Conversion|Conversion]].
256 => X <= 4,095
+
}}
4,096 => X <= 65,535
 
-->
 
  
===Step One===
+
===Custom Height===
<!-- This guide only covers values using up to three or four digits which fit between 256, 4096 and 65535 when converted.-->
+
{{Fixbox|description=Setup|ref={{cn|date=June 2017}}|fix=
<!-- The 0x is there to help with weird numbers such as 010, this could be taught logically, but it actually becomes harder to remember and explain, this on the other hand is very easy to understand, remember and explain to anyone, you just add the 0x and you easily see where everything goes. -->
+
# Push {{key|Win|R}}. Type '''Calc'''. Select '''OK'''.
<!-- Alternative explanation
+
# Click on the Button with the Three Lines (Top Left). Select '''Programmer'''.
# Add ''0x'' before '''HEX''' values with three digits such as A'''BC''' to look like ''0x''A'''BC''', then change them to '''BC''' ''0''A.
+
}}
# Add ''0x'' before '''HEX''' values with four digits such as '''ABBC''' to look like ''0x'''''ABCD''', then change them to '''CD AB'''.
 
-->
 
  
{{Fixbox|1=
+
{{Fixbox|description=Custom Height|ref={{cn|date=June 2017}}|fix=
{{Fixbox/fix|Converting Custom Resolutions|ref={{cn|date=May 2017}}}}
+
# Click on '''DEC'''. Type the '''Height'''.  
# Open the Start menu, type <code>Calc</code>, then press {{key|Enter}}.
+
# Copy the '''HEX''' Number. See [[#Conversion|Conversion]].
# Click on the button with the three lines on it, then switch to the '''Programmer''' mode.
 
}}
 
{{Fixbox|1=
 
{{Fixbox/fix|Width|ref={{cn|date=May 2017}}}}
 
# Click on '''DEC''', type the desired '''Width''', then copy the number next to '''HEX'''.  
 
# See [[#Conversion|Conversion]].
 
}}
 
{{Fixbox|1=
 
{{Fixbox/fix|Height|ref={{cn|date=May 2017}}}}
 
# Click on '''DEC''', type the desired '''Height''', then copy the number next to '''HEX'''.  
 
# See [[#Conversion|Conversion]].
 
 
}}
 
}}
  
====Conversion====
+
==Conversion==
{{ii}} If '''HEX''' has three numbers do this.
+
{{ii}} '''HEX''' Number with Three Digits.
 
+
{{Fixbox|description=Three Numbers (ABC Format)|ref={{cn|date=June 2017}}|fix=
{{Fixbox|1=
+
# Type the '''HEX''' Number. Add 0 at the Beginning. Result: 0 '''ABC'''.
{{Fixbox/fix|Three Numbers|ref={{cn|date=May 2017}}}}
+
# Move '''BC''' at the Beginning. Result: '''BC''' 0A.
# Add 0 in front of the HEX value, such as 0'''ABC'''.
+
# Copy the '''Result'''.
# Put '''BC''' at the beginning, such as '''BC''' 0A.
 
# Write down the converted value.
 
 
}}
 
}}
  
{{ii}} If '''HEX''' has four numbers do this.
+
{{ii}} '''HEX''' Number with Four Digits.
{{Fixbox|1=
+
{{Fixbox|description=Four Numbers (ABCD Format)|ref={{cn|date=June 2017}}|fix=
{{Fixbox/fix|Four Numbers|ref={{cn|date=May 2017}}}}
+
# Type the '''HEX''' Number. Move '''CD''' at the Beginning. Result: CD '''AB'''.
# For '''AB''' CD, move CD at the beginning, such as CD '''AB'''.
+
# Copy the '''Result'''.
# Write down the converted value.
 
 
}}
 
}}
  
===Step Two===
+
==Using the Hex Editor==
{{Fixbox|1=
+
{{Fixbox|description=Instructions|ref={{cn|date=June 2017}}|fix=
{{Fixbox/fix|File Editing|ref={{cn|date=May 2017}}}}
+
# Download the [https://community.pcgamingwiki.com/files/file/693-hxd-hex-editor-windows/ Hex Editor].
# Download the [https://community.pcgamingwiki.com/files/file/693-hxd-hex-editor-windows/ Hex Editor] then extract it and run it.
+
# Open the Hex Editor. Select '''File''' and '''Open''' (Top Left). Find the '''Game Installation Location'''.
# On the top left, select '''File''' and '''Open''', then navigate to the desired file, check the wiki article for the name of the file.
 
# Change values by clicking on any lines from the left side, then write the converted '''Width''' or '''Height''' values.
 
 
 
'''Notes'''
 
{{ii}} While editing any changed values will become red.
 
{{ii}} Values cannot be deleted, if a mistake is made use the arrow keys to move left and right, then type the number again.
 
 
}}
 
}}

Latest revision as of 02:07, 23 November 2017

This page is a stub: it lacks content and/or basic article components. You can help to expand this page by adding an image or additional information.

Hex Editing Resolutions (Windows)

Custom Width

Setup[citation needed]
  1. Push Win+R. Type Calc. Select OK.
  2. Click on the Button with the Three Lines (Top Left). Select Programmer.
Custom Width[citation needed]
  1. Click on DEC. Type the Width.
  2. Copy the HEX Number. See Conversion.

Custom Height

Setup[citation needed]
  1. Push Win+R. Type Calc. Select OK.
  2. Click on the Button with the Three Lines (Top Left). Select Programmer.
Custom Height[citation needed]
  1. Click on DEC. Type the Height.
  2. Copy the HEX Number. See Conversion.

Conversion

HEX Number with Three Digits.
Three Numbers (ABC Format)[citation needed]
  1. Type the HEX Number. Add 0 at the Beginning. Result: 0 ABC.
  2. Move BC at the Beginning. Result: BC 0A.
  3. Copy the Result.
HEX Number with Four Digits.
Four Numbers (ABCD Format)[citation needed]
  1. Type the HEX Number. Move CD at the Beginning. Result: CD AB.
  2. Copy the Result.

Using the Hex Editor

Instructions[citation needed]
  1. Download the Hex Editor.
  2. Open the Hex Editor. Select File and Open (Top Left). Find the Game Installation Location.