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)
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
 +
<!--
 
==Text Editing==
 
==Text Editing==
 
===Functions (Placeholder)===
 
===Functions (Placeholder)===
{{Fixbox|1=
+
{{Fixbox|description=CTRL+F|ref={{cn|{{subst:DATE}}}}
{{Fixbox/fix|CTRL+F}}
 
}}
 
  
 
===[http://brackets.io/ Brackets]===
 
===[http://brackets.io/ Brackets]===
 
===[https://www.sublimetext.com/ Sublime Text]===
 
===[https://www.sublimetext.com/ Sublime Text]===
 +
-->
  
 
==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/fix|Converting Custom Resolutions}}
 
# Push {{key|Win|R}} and type <code>Calc</code> then select '''OK'''.
 
# Click on the button with the three lines on it, then switch to the '''Programmer''' mode.
 
# Click on '''DEC''' and type the desired '''Width''' then write down the value written next to '''HEX'''.
 
# Click on '''DEC''' and type the desired '''Height''' then write down the value written next to '''HEX'''.
 
  
'''Conversion'''
+
{{Fixbox|description=Custom Height|ref={{cn|date=June 2017}}|fix=
{{ii}} Replace '''ABC''' (3 Digits HEX) or '''ABCD''' (4 Digits HEX) with the converted '''Width''' or '''Height''' values.
+
# Click on '''DEC'''. Type the '''Height'''.  
* For '''HEX''' values with three digits use ''0x''A'''BC''' and change them to '''BC''' ''0x''A to '''BC''' ''0''A.
+
# Copy the '''HEX''' Number. See [[#Conversion|Conversion]].
* For '''HEX''' values with four digits use ''0x''AB CD and change them to CD AB. 
+
}}
  
'''Notes'''
+
==Conversion==
{{ii}} The '''0x''' can be used a guideline in order to see where a 0 needs to be added before the A value.
+
{{ii}} '''HEX''' Number with Three Digits.
{{ii}} The '''ABC''' and '''ABCD''' formats show how the values from the '''HEX''' field look like when written down, such as ''0x''4'''80''' to '''80''' ''0''4.
+
{{Fixbox|description=Three Numbers (ABC Format)|ref={{cn|date=June 2017}}|fix=
 +
# Type the '''HEX''' Number. Add 0 at the Beginning. Result: 0 '''ABC'''.
 +
# Move '''BC''' at the Beginning. Result: '''BC''' 0A.
 +
# Copy the '''Result'''.
 
}}
 
}}
<!-- Confusing looking.
 
{{Fixbox|1=
 
{{Fixbox/fix|Examples}}
 
* Converting 1 (DEC) to 1 (1 Digit HEX) written as ''0x''00'''1''' to '''01''' ''0''0.
 
* Converting 16 (DEC) to 10 (2 Digits HEX) written as ''0x''0'''10''' to '''10''' ''0''0.
 
* Converting 256 (DEC) to 100 (3 Digits HEX) written as ''0x''1'''00''' to '''00''' ''0''1.
 
* Converting 4096 (DEC) to 1000 (4 Digits HEX) written as ''0x''10'''00'''  to '''00''' 10.
 
}}-->
 
  
===Step Two===
+
{{ii}} '''HEX''' Number with Four Digits.
{{Fixbox|1=
+
{{Fixbox|description=Four Numbers (ABCD Format)|ref={{cn|date=June 2017}}|fix=
{{Fixbox/fix|File Editing}}
+
# Type the '''HEX''' Number. Move '''CD''' at the Beginning. Result: CD '''AB'''.
# Download the [http://community.pcgamingwiki.com/files/file/693-hxd-hex-editor-windows/ Hex Editor] then extract it and run it.
+
# Copy the '''Result'''.
# On the top left, select '''File''' and '''Open''', then navigate to the desired file, check the desired wiki game article for the file.
+
}}
# Change values by clicking on any lines from the left side, then write the converted '''Width''' or '''Height''' values.  
 
  
'''Notes'''
+
==Using the Hex Editor==
{{ii}} While editing any changed values will become red.
+
{{Fixbox|description=Instructions|ref={{cn|date=June 2017}}|fix=
{{ii}} Values cannot be deleted, if a mistake is made use the arrow keys to move left and right, then type the number again.
+
# Download the [https://community.pcgamingwiki.com/files/file/693-hxd-hex-editor-windows/ Hex Editor].
 +
# Open the Hex Editor. Select '''File''' and '''Open''' (Top Left). Find the '''Game Installation Location'''.
 
}}
 
}}

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.