News for hackers. Stuff that matters.
Re:Riot: Source code for League of Legends and TFT were exfi... by bradhe on Tuesday January 24, 2023 @11:28AM (#34505818)
Honestly would love to see how these games are built...
Re:Riot: Source code for League of Legends and TFT were exfi... by jdmichal on Tuesday January 24, 2023 @11:56AM (#34506317)
We already knew that. Everything is coded as a minion.

It's an geeky in-joke from the old Warcraft3 DotA and early LoL days. Please don't murder me.

https://www.reddit.com/r/dotamasterrace/comments/4pozfx/can_...

Re:Riot: Source code for League of Legends and TFT were exfi... by Q6T46nT668w6i3m on Tuesday January 24, 2023 @12:53PM (#34507256)
So … Unreal? ;)
Re:Riot: Source code for League of Legends and TFT were exfi... by bob1029 on Tuesday January 24, 2023 @01:03PM (#34507379)
I think it is natural that every game engine eventually winds up with some sort of god object placed into a recursive, tree-like structure.

You need some abstraction to represent "a thing in the world" and usually a way to say if a thing is subordinate to another thing.

Minon, GameObject, Actor, Item, etc., are all solving the same problem.

Re:Riot: Source code for League of Legends and TFT were exfi... by aliqot on Wednesday January 25, 2023 @02:10AM (#34515330)
> I think it is natural that every game engine eventually winds up with some sort of god object placed into a recursive, tree-like structure.

I experienced less distress when discovering Santa wasn't real.

Re:Riot: Source code for League of Legends and TFT were exfi... by shoo on Wednesday January 25, 2023 @02:35AM (#34515491)
reduce the signal to noise ratio of your cache reads with this one weird trick! data-oriented game engine developers hate him!

more seriously, resources:

CppCon 2014 Mike Acton Data Oriented Design and C++ https://www.youtube.com/watch?v=92KFSD3ObrY

Richard Fabian's https://media.handmade-seattle.com/practical-data-oriented-d...: https://www.dataorienteddesign.com/dodbook/

Handmade Seattle 2021 Andrew Kelley A Practical Guide to Applying Data-Oriented Design https://media.handmade-seattle.com/practical-data-oriented-d...

Re:Riot: Source code for League of Legends and TFT were exfi... by epolanski on Tuesday January 24, 2023 @11:57AM (#34506331)
Same, I would be both interested in how they are built as well as the game modes and features that are in the code but aren't live.
Re:Riot: Source code for League of Legends and TFT were exfi... by mangosteenjuice on Tuesday January 24, 2023 @11:58AM (#34506347)
IIRC the source code for League's engine is originally licensed and derived from a shovelware racing game. Presumably it was rebuilt from scratch, but who knows.
Re:Riot: Source code for League of Legends and TFT were exfi... by misterprime on Tuesday January 24, 2023 @03:48PM (#34510119)
"presumably".

No, they made a big deal about rewriting the code a few years back to help make things more stable, easier to maintain, and easier to expand.

Re:Riot: Source code for League of Legends and TFT were exfi... by Lapsa on Wednesday January 25, 2023 @01:39AM (#34515148)
it used to be famous for spaghetti quality
Re:Riot: Source code for League of Legends and TFT were exfi... by eldenlad on Wednesday January 25, 2023 @01:36AM (#34515132)
I was told it was "Big Mutha Truckers"
Re:Riot: Source code for League of Legends and TFT were exfi... by cpeterso on Wednesday January 25, 2023 @01:46AM (#34515191)
Do you have any more details? If they licensed an engine, a racing game’s engine seems like a bad fit.

All Wikipedia says is: “A demonstration of League of Legends built in the Warcraft III game engine was completed in four months and then shown at the 2007 Game Developers Conference.”

Re:Riot: Source code for League of Legends and TFT were exfi... by SOLAR_FIELDS on Wednesday January 25, 2023 @02:13AM (#34515348)
Also wondering if the stack is discussed at all. Have a mild curiosity as to whether LoL is a Java game or C++.
Re:Riot: Source code for League of Legends and TFT were exfi... by flohofwoe on Wednesday January 25, 2023 @03:29AM (#34515810)
Haven't seen the code but it's almost certainly C++. The next option would be C#, but it's not a Unity game so that's unlikely.

Maybe Java is used in some backend services here and there, but almost certainly not for the game client, and I'd be very surprised if the game server is written in Java.

Re:Riot: Source code for League of Legends and TFT were exfi... by unflaggedbird on Wednesday January 25, 2023 @03:49AM (#34515973)
C++ for sure.
Re:Riot: Source code for League of Legends and TFT were exfi... by nerdponx on Wednesday January 25, 2023 @02:50AM (#34515594)
I wonder if it started life as a DotA fork. Guinsoo was the DotA developer who originally recruited Icefrog, and as far as I know has been working at Riot on League since day 1.
Re:Riot: Source code for League of Legends and TFT were exfi... by chupasaurus on Wednesday January 25, 2023 @03:26AM (#34515796)
Yet leftover config file with default key bindings had WASD + LMB for Shoot + 1-5 as weapons IIRC.
Re:Riot: Source code for League of Legends and TFT were exfi... by flohofwoe on Wednesday January 25, 2023 @03:24AM (#34515788)
With a project that big with random features bolted on for 15 years, I bet it's the typical giant hairball of 'legacy code' every coder loves to complain about ;)