GTA V is coded in Java?

  • Thread starter Thread starter jonthedit
  • Start date Start date
  • Views Views 12,621
  • Replies Replies 7
  • Join the GBAtemp community: it's free
    • 50% fewer ads
    • Reply alerts
    • Join the discussion
    • Watch & bookmark

jonthedit

Well-Known Member
Member
Joined
May 30, 2011
Messages
1,682
Reaction score
428
Trophies
0
XP
1,075
Country
Bangladesh
After looking at the 'confirmed leaked' source code image of Grand Theft Auto V's "Heists" DLC, I noticed the formatting has a high resemblance of Java. Then again, there are other programming languages that also end in a semicolon;

gta-v-heists-payout.jpg
 
Java's syntax is largely based upon C & C++ and for that reason alone you can't just look at what I assume to be constants being declared to determine the programming language being utilized. I highly doubt they'd use Java for game development though.
 
It's just internal style for configuration files. Like .inf or .ini in Windows.

All high end games on consoles use mixed C, C++ lang with various other langs for scripting.
 
Seeing that heists are online content, I wouldn't be surprised if they were made in Java to facilitate live updates while the rest of the game is pre-compiled in C++, although the snippet above doesn't prove that theory. I've seen it done in multiplayer games before.
 
That appears to be a snippet from either some type of configuration/data file or a scripting language. Assuming normal coding practices are in use, that can't be Java, C, or C++ since the "variable" names are in all capitals. Normally, names in all capitals represent constant values, but the displayed lines of code do not specify data types. If that code was Java, C, or C++, then the code would have to be assigning values to already declared variables (not constants) and go against a very common naming convention. Additionally, the code appears to be using parentheses to indicate comments. This is not possible in Java, C, or C++.
 
  • Like
Reactions: jonthedit

Site & Scene News

New Hot Discussed User Submitted