RapidFellow Posted August 13, 2017 Share Posted August 13, 2017 I started save editing 2 weeks ago, and there is still one thing that I don't understand... Some attributes have percentage values, e.g. wear. I know that 0=0% and 1=100%, but every value between is given in a cryptic code: Does anyone know how to translate this value into a normal float? Or is there a tool to convert it? Link to comment Share on other sites More sharing options...
Guest Posted August 13, 2017 Share Posted August 13, 2017 Try to use another format with ''notepad++'' or convert the data with scs-sconverter Link to comment Share on other sites More sharing options...
RayRay5 Posted August 13, 2017 Share Posted August 13, 2017 ^That has nothing to do with the format that you can adjust in Notepad++ The values given are in a hex notation There is a tool linked in this topic, look under "color" EDIT: Direct link: https://ets2.lt/en/rgb-to-ets2-color-code-converter/ "Just because others break rules, does not grant you the permission to break the rules as well" Please drive respectful on the servers. Thank you! Link to comment Share on other sites More sharing options...
RapidFellow Posted August 13, 2017 Author Share Posted August 13, 2017 20 minutes ago, RayRay5 said: The values given are in a hex notation This was also my guess, but I don't know what its value is. How to translate this hex code into a percentage/float? 22 minutes ago, RayRay5 said: There is a tool linked in this topic, look under "color" I know this tool, but I don't want to convert a rgb color into floats, I want to convert this hex code into a float or a percentage or similar. Link to comment Share on other sites More sharing options...
RayRay5 Posted August 13, 2017 Share Posted August 13, 2017 The tool converts hex values to float and back. "Just because others break rules, does not grant you the permission to break the rules as well" Please drive respectful on the servers. Thank you! Link to comment Share on other sites More sharing options...
RapidFellow Posted August 13, 2017 Author Share Posted August 13, 2017 And where do I have to enter the hex code? Red, Green, or Blue? Link to comment Share on other sites More sharing options...
Elysia ELF Posted August 16, 2017 Share Posted August 16, 2017 Hi, I save editing too. I have the same weird Code like you but i know this Code means "0" if i have a good memory... You can replace this Code to a number but don't do it at codes where your not sure what they means... If you have this Code in a line where you can write every number you want like in cargo mass when everything is fine but if you write a number like at cargo cog height offset then you will broke your trailer you can't move or the acceleration is very slow... So please don't change something if your not 100% sure. Link to comment Share on other sites More sharing options...
HumaneWolf Posted August 17, 2017 Share Posted August 17, 2017 On 13.8.2017 at 5:31 PM, DrEGZo said: And where do I have to enter the hex code? Red, Green, or Blue? Hex (or more accurarely hexadecimal) is a way to write/say the values of bits more easily (for humans). Those values are not color codes (although the hex color codes do use hex notation). See https://en.m.wikipedia.org/wiki/Hexadecimal HumaneWolf - Website - Twitter - GitHub Ex-Developer Link to comment Share on other sites More sharing options...
RapidFellow Posted August 17, 2017 Author Share Posted August 17, 2017 ^ That's this program: On 13.8.2017 at 4:56 PM, RayRay5 said: EDIT: Direct link: https://ets2.lt/en/rgb-to-ets2-color-code-converter/ Link to comment Share on other sites More sharing options...
Game Developer mwl4 Posted August 25, 2017 Game Developer Share Posted August 25, 2017 This is hexadecimal representation of IEEE-754. https://www.h-schmidt.net/FloatConverter/IEEE754.html &3d9b3a94 = 0.07579532 1 2 Link to comment Share on other sites More sharing options...
RapidFellow Posted August 25, 2017 Author Share Posted August 25, 2017 Thank you very much Link to comment Share on other sites More sharing options...
LordBenji Posted August 28, 2017 Share Posted August 28, 2017 @DrEGZo As the author of the tutorial, and a save editing expert. I will give you all the information you need. First, you only need the color converter to get the color, nothing else. I have my own personal tool which can get the "normal" hex value, the RGB, and the hex and RGB in the format that ETS 2 and ATS recognize. The formula behind it is simple: (X * X / 255 * 255), so basically your red/green/blue from 0 to 255, squared, then divided by 255 squared. For example, 63 will yield 0.0610, which is also accepted when you save the game. Second, anything like wear, and fuel relative, is in percentage, which works differently from the color system! Why? Because all you need to do is convert the hex to float and you'll get the percentage. I did a test with my DAF with 1400L fuel tank. It wasn't full so I stopped the engine at the fuel station and saved the game, then decrypted it. I got this value "&3f390fd2", which gives me 0.722898 (%) with the hex to float converter. With some math, it means I have around 1012.0572L of fuel in my truck. After filling my tank, it said I fueled up with 387.94L. Doing more math, it results with 1399.9972L of fuel. So let's say you want fuel for a very very long time (as long as you don't do WoT external contracts), just type down 200 instead of the weird hex value and you're good for years! I've tried to put a number far in the negative for wear, not worth it as it'll still increase. If you don't want to deal with a damaged truck/load, It's just better to use a no damage hack (which is allowed under some conditions, according to some IGA and CM). Works with external contract too, as long as you activate it before accepting the load. Link to comment Share on other sites More sharing options...
[TTT] Emre [28] Posted September 6, 2017 Share Posted September 6, 2017 On 28.08.2017 at 8:51 AM, LordBenji said: @DrEGZo As the author of the tutorial, and a save editing expert. I will give you all the information you need. First, you only need the color converter to get the color, nothing else. I have my own personal tool which can get the "normal" hex value, the RGB, and the hex and RGB in the format that ETS 2 and ATS recognize. The formula behind it is simple: (X * X / 255 * 255), so basically your red/green/blue from 0 to 255, squared, then divided by 255 squared. For example, 63 will yield 0.0610, which is also accepted when you save the game. Second, anything like wear, and fuel relative, is in percentage, which works differently from the color system! Why? Because all you need to do is convert the hex to float and you'll get the percentage. I did a test with my DAF with 1400L fuel tank. It wasn't full so I stopped the engine at the fuel station and saved the game, then decrypted it. I got this value "&3f390fd2", which gives me 0.722898 (%) with the hex to float converter. With some math, it means I have around 1012.0572L of fuel in my truck. After filling my tank, it said I fueled up with 387.94L. Doing more math, it results with 1399.9972L of fuel. So let's say you want fuel for a very very long time (as long as you don't do WoT external contracts), just type down 200 instead of the weird hex value and you're good for years! I've tried to put a number far in the negative for wear, not worth it as it'll still increase. If you don't want to deal with a damaged truck/load, It's just better to use a no damage hack (which is allowed under some conditions, according to some IGA and CM). Works with external contract too, as long as you activate it before accepting the load. What a great tutorial 1 Link to comment Share on other sites More sharing options...
LordBenji Posted September 7, 2017 Share Posted September 7, 2017 Always welcome to help in terms of save editing, and to make things clear. Link to comment Share on other sites More sharing options...
BrandynClarke Posted November 12, 2017 Share Posted November 12, 2017 No idea what that means haha maybe try messaging one of the developers? Link to comment Share on other sites More sharing options...
RapidFellow Posted November 12, 2017 Author Share Posted November 12, 2017 ^ My question On 13.8.2017 at 3:21 PM, DrEGZo said: Does anyone know how to translate this value into a normal float? Or is there a tool to convert it? has been anwered months ago. Scroll up next time. Link to comment Share on other sites More sharing options...
Recommended Posts