Skip to content

Commit

Permalink
V1.1
Browse files Browse the repository at this point in the history
add some extra notes about the car data compression seen only in the Demo
  • Loading branch information
NinjaWeedle authored Oct 1, 2021
1 parent 30d6ee5 commit c4ecdcc
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions CSRacing documentation.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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.
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

0 comments on commit c4ecdcc

Please sign in to comment.