![[yakuza] [yakuza]](./images/smilies/gangs/yakuza.png)
![[zaibatsu] [zaibatsu]](./images/smilies/gangs/zaibatsu.png)

Hello everyone!
In this project I want to create an equivalent to the source code of wil.scr. We know we already have the bil.MIS and all missions of Industrial District in our hands, but the source code of Downtown District and Residential District are missing.
I'm doing this because I want to mod Downtown District, such as make it more difficult. Furthermore, I want to learn more how the devs made the main districts. I don't want to passively read tons of code written by Billy Thomson, I will learn more efficiently if I rewrite the code. Also, I'm making a big (not full-size) and special map and I want to put some missions there.
We know that each district were made (mostly) by three (near) independent devs. As to Downtown District I want to know how William Mills did it.
I started with T.M. SCR decompiler which do all the hard work but all IF's, ELSE's, NOT's and WHILE's are broken, since T.M. never finished his decompiler.
Still, T.M.'s decompiler left in the partially decompiled .MIS some comments indicating that there is a use of IF or WHILE. It is possible to rebuild the IF's and WHILE's from these comments.
It's possible and feasible.
All you have to do is to solve puzzles of where and how the variables (COUNTERs) are used in the code. I initially thought it would be way too difficult, but isn't that hard.
I'm find tons of leftover variables that aren't used or that they are meant to be used but they were left unfinished.
Discover the how +170 variables are used is possible and feasible too. Just taken a whole day, but it worths it.
This is what the decompiler yields:
This is the same code but reworked:
The version 1.1.0 has been released:
Older versions: https://github.com/Valps/Project_Open_D ... tag/v1.0.3
All things of Downtown District I'm aware of can be replicated compiling the main file wil.mis
Its files:
wil.MIS (the main script)
wil_end.MIS (the final job script)
wil_tra.MIS (the training mission, namely tutorial)
Loonies Missions:

wil_le1.MIS ("Radio Za-Za!")
wil_le2.MIS ("Pizza Cake!")
wil_lm1.MIS ("Who is mad?")
wil_lm2.MIS ("Destroy J-Lab")
wil_lm3.MIS ("Dimentia to go!")
wil_lh1.MIS ("Taxi Drivers Must Die!")
wil_lh2.MIS ("Gang War A-Go-Go!")
Yakuza Missions:
![[yakuza] [yakuza]](./images/smilies/gangs/yakuza.png)
wil_ye1.MIS ("Get ZitZaki!")
wil_ye2.MIS ("Bank Robbery!")
wil_ym1.MIS ("Happy Gas Smash!")
wil_ym2.MIS ("Get Gama Rei!")
wil_ym3.MIS ("Follow That Traitor!")
wil_yh1.MIS ("Swat Van Swipe!")
wil_yh2.MIS ("Stop the Tank!")
Zaibatsu Missions:
![[zaibatsu] [zaibatsu]](./images/smilies/gangs/zaibatsu.png)
wil_ze1.MIS ("Cop Car Crush!")
wil_ze2.MIS ("Wheeler-Dealing!")
wil_zm1.MIS ("Lick Those Loonies!")
wil_zm2.MIS ("Yutes Must Die!")
wil_zm3.MIS ("Big Bank Job!")
wil_zh1.MIS ("Armored Car Clash!")
wil_zh2.MIS ("Bank Van Theft!")
This bundle is ready to get compiled with miss2.exe compiler.
All feedback are welcome, especially about bugs.
![[respect] [respect]](./images/smilies/powerups/respect.png)