From c4ecdcc93882a80b72d696ee3e88119abd138738 Mon Sep 17 00:00:00 2001 From: NinjaWeedle <37186521+NinjaWeedle@users.noreply.github.com> Date: Fri, 1 Oct 2021 07:11:57 -0400 Subject: [PATCH] V1.1 add some extra notes about the car data compression seen only in the Demo --- CSRacing documentation.txt | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/CSRacing documentation.txt b/CSRacing documentation.txt index 2b2bae7..3de94ad 100644 --- a/CSRacing documentation.txt +++ b/CSRacing documentation.txt @@ -1,4 +1,4 @@ -Calculator Street Racing DEVELOPER'S DOCUMENTATION V1.0 +Calculator Street Racing DEVELOPER'S DOCUMENTATION V1.1 STRINGS USED: Str1: Car name @@ -60,7 +60,7 @@ List CAR: 12: Acceleration level (maximum increase in pixels moved per cycle) 13: Amount of rpm (x1000) lost per cycle while revving 14: Reduction in speed gained in gears above first gear (1.1 - (LCAR(14)* Current Gear) * Acceleration level) -15: Car color (AFFECTS CE ONLY) (10=Blue, 11=Red, 12=Black, 13=Magenta, 14=Green, 15=Orange, 16=Brown, 17=Navy, 18=LtBlue, 19=Yellow, 20=White, 21=LtGray, 22=MedGray, 23=Gray, and 24=DarkGray) +15: Car color (AFFECTS CE VERSION ONLY) (10=Blue, 11=Red, 12=Black, 13=Magenta, 14=Green, 15=Orange, 16=Brown, 17=Navy, 18=LtBlue, 19=Yellow, 20=White, 21=LtGray, 22=MedGray, 23=Gray, and 24=DarkGray) 16: Car Tier List L1: @@ -151,10 +151,22 @@ This crew is the first you'll meet. This crew loves to modify their cars. Tier 2 first opponent: Ker - Drives a CRX SIR Tier 2 second opponent: Mayeo - Drives a Supra - Tier 2 leader: Kenido + Tier 2 leader: Kenido - Drives a GTR R34 - Tier 3 - Team Oxiti This final crew seems to be short a member. - Tier 3 First opponent: Goomzo - Tier 3 second opponent: Muncher - Tier 3 leader: IT'S A SECRET TO EVERYONE. \ No newline at end of file + Tier 3 First opponent: Goomzo - Drives a 458 Italy + Tier 3 second opponent: Muncher - Drives a McL F1 + Tier 3 leader: IT'S A SECRET TO EVERYONE. + + +Detailing the "Mr. Womp Womp Optimization method" used in the Demo for the car data in CSR Garage: + +All entries should be converted to base-18 normally, with the following exceptions for entries 2, 12, 13, and 14: +"basically, just multiply the 2nd one by 10 +and the 12th, 13th and 14th by 100 before converting those to base 18 +that gets rid of the decimals and the decompressor will divide it out later" + +The result should be something like this (the Sivic Si is used here): "0148048B061C3G5A7498B25A120A0B01->Str2 + +Not used in the final due to being slow but it does save 12 bytes after using it on at least 10 cars \ No newline at end of file