Sims4Tools icon indicating copy to clipboard operation
Sims4Tools copied to clipboard

New feature request - decimal value of the Instance

Open KhArtNJava opened this issue 10 years ago • 4 comments

Hello. In https://github.com/Kuree/Sims4Tools/issues/38 you made button "Set High Bit". Thank you. But now too often needed to get Decimal Value of the Instance, not only Hex Value of the Instance. Can you add new textBox for the Instance Decimal Value? It must auto fills when calculated value by buttons "Set High Bit" and "FNV64".

KhArtNJava avatar Feb 21 '15 10:02 KhArtNJava

Would you please explain the usage of decimal numbers? Currently you can input decimal number into the textbox and the program will automatically convert it into hexadecimal value.

Kuree avatar Feb 21 '15 14:02 Kuree

Decimal values of the value (after "Set High Bit") needed for s attribute in XML files:

<?xml version="1.0" encoding="UTF-8"?>
<I c="CommandSuperInteraction" i="interaction" m="interactions.base.immediate_interaction" 
   n="MTS_Scumbumbo_Pregnancy_Scan" s="17608706005782878675">

Now my steps are: 1 - Resource - add - fill Type, group, Name 2 - Button for FNV64 3 - button "Set High Bit" 4 - copy value from the Instance field 5 - open app Hpmbcalc (http://www.hexprobe.com/hpmbcalc/) 6 - paste copied value to the Hpmbcalc 7 - convert from hex to dec 8 - copy dec value 9 - paste dec value to the xml's s attribute 10 - import xml file to the S4PE It will be useful, if S4PE will have not only textBox with hex value of the Instance, but also have textBox with the dec value of the Instance. I will cut steps 5-8 and save time on adding new Resource item.

KhArtNJava avatar Feb 21 '15 15:02 KhArtNJava

Okay got it. Working on it.

Kuree avatar Feb 21 '15 16:02 Kuree

Thank you.

KhArtNJava avatar Feb 21 '15 17:02 KhArtNJava