Live data from Hacker News

Far Cry 1.34 source code (2006)

archive.org

271–280 of 547 posts

Re: Far Cry 1.34 source code (2006)

#271

Earlier quoted context omitted.

Escape Velocity was what got me into coding. I was huge into moding that game when I was younger on my old mac OS 7.x system. Absolutely fell in love with being able to extend the game. Thanks for bringing that up. Those were good times. And agreed. Would love the source to original EV alone. Gonna take a gander at maelstrom! Thank you!

We walked a similar path. Fond memories of modding EV with ResEdit.

Before having an idea of how "proper" cracks should be done, EV copy protection was corrected in resedit by turning Cap'n Hector into an escape pod (so he couldn't kill you) and something else I forget right now to unlock some missions

Re: Far Cry 1.34 source code (2006)

#272
post #219

I remember that the initial levels of Far Cry 1 were amazing jungle/beach scenarios that enabled a lot of different strategies for overcoming the smart human enemies. The last levels, however, were all inside claustrophobic buildings with weird monsters running around. If all levels had the feeling of the first ones, it would be my favorite game of all time.

Agreed. I had amazing fun playing the first bits of Far Cry 1, sneaking through the jungle and playing sniper. It was great. Then I got to the end part, inside dark buildings and suddenly stealth isn't important at all, its more of a twitch shooter full of jump scares and requiring fast reactions over anything. I never finished the game

Re: Far Cry 1.34 source code (2006)

#273

Illegal or not I'm glad to see these getting released on public, it won't cause much harm due to being ancient but they're great learning resource.

I would advise NOT using this to learn from. There are so many antipatterns in here that it's a hot mess. There are plenty of better resources that teach good habits than learning how to become another high turnover C++ developer intern about to throw in another broken, fragile lava layer.

So what should people be learning from then? What are some better resources?

Re: Far Cry 1.34 source code (2006)

#274

Earlier quoted context omitted.

Why would parents prevent publishing of source code? Unless you mean that someone could see that you implemented their patent and retroactively go to sue them?

A license to use someone else's code doesn't necessarily include permission to publish the source.

A patent isn't permission to use their code, that would be a copyright.

A patent is a method, not an implementation.

Re: Far Cry 1.34 source code (2006)

#275

Earlier quoted context omitted.

A license to use someone else's code doesn't necessarily include permission to publish the source.

A patent isn't permission to use their code, that would be a copyright. A patent is a method, not an implementation.

We’re not talking about patents. Software licenses are about me allowing you to use code that I wrote, which is copyright.

Re: Far Cry 1.34 source code (2006)

#276

Earlier quoted context omitted.

A patent isn't permission to use their code, that would be a copyright. A patent is a method, not an implementation.

We’re not talking about patents. Software licenses are about me allowing you to use code that I wrote, which is copyright.

Literally the person I initially responded to said:

> The only problem might be the software patents that their code leverages.

We are talking about patents because Wengo brought it up and I was asking how they are applicable here.

Re: Far Cry 1.34 source code (2006)

#277

Earlier quoted context omitted.

I would advise NOT using this to learn from. There are so many antipatterns in here that it's a hot mess. There are plenty of better resources that teach good habits than learning how to become another high turnover C++ developer intern about to throw in another broken, fragile lava layer.

So what should people be learning from then? What are some better resources?

https://news.ycombinator.com/item?id=36370684

Re: Far Cry 1.34 source code (2006)

#278

Earlier quoted context omitted.

don't quote me on that but i read somewhere that microsoft has a strict policy of NIH in their codebase - everything gets reimplemented from scratch unless it's completely unfeasible. The only problem might be the software patents that their code leverages.

From memory they got their TCP/IP stack via the MIT licence

BSD license, because Berkeley was literally paid to port TCP/IP to Unix (and C) on basis that the resulting code would be available for incorporation by others free of charge.

Re: Far Cry 1.34 source code (2006)

#279

Earlier quoted context omitted.

I agree. Wasn't it zombies? The first levels set a great feeling and atmosphere, everything was mysterious, and then it felt like they ran out of ideas and were like "hm yeah let's add zombies, because that's not totally something overused". And yes, I don't even remember the later levels and didn't even finish the game.

Not zombies, I remember mutants. Dr Evil[1] created mutants from people, etc, etc [1] I don't remember the name. It was so long ago that it was when I first got married, the first time!

Dr. Krieger

Re: Far Cry 1.34 source code (2006)

#280
post #7

Earlier quoted context omitted.

Old engines are very far from the current way is doing things. You might learn a lot, but you won't learn what you need to program modern games

It‘s still interesting to see how certain challenges have been solved back in the day. Or as a case study in what _not_ to do today. For example, Quake‘s ingame console commands were stored in a linked list. I believe looking up a command was a linear search through that list. You wouldn‘t do it like that today.

Intrusive lists are not bad. Building one does not require heap allocation unless the object itself is heap allocated. I can imagine this being case for a list of console commands, just a bunch of static allocated structs in various places tied together via intrusive list. In fact we (abother game company) are also how are doing it today as well

As for the linear search, it is just console commands. User types it and then it makes a search in what, a couple hundred entries at most? Sounds perfectly fine

Post reply on HN