Author Topic: Question regarding source code of FOnline 2238  (Read 14460 times)

Question regarding source code of FOnline 2238
« on: February 09, 2019, 02:19:51 pm »
Hey guys, I'm in the process of creating a sort of remake of Fallout Tactics, brand new graphic engine, active pause for real time combat and all that fluff. I recently stumbled upon the source code of the FOnline 2238 game. Great stuff! Upon looking at the combat script logic, a lot of that stuff look really in line with the digging that I have done regarding combat mechanics in Fallout. My question was, did you guys have access to fallout 1-2-tactics source code when building this game? If not, how close to real would you say the combat mechanics are?

Also would it be OK for me to use the code for inspiration/validation of my own implementation? Thank you guys so much for releasing the code. If you guys are interested, you can check out the progress on my project here: https://rotsin.itch.io/project-freefall
« Last Edit: March 22, 2019, 01:03:24 pm by rotsin »

Offline Lexx

  • Rotator
  • Mexican Apple Thief
Re: Question regarding source code of FOnline 2238
« Reply #1 on: February 09, 2019, 03:34:02 pm »
Lots of code from Fallout 2 was reverse engineered in the early days. There should still be a huge pdf file flying around somewhere. As FOnline source is open now, I'm guessing nobody will mind if you take inspiration from parts of it.


PS: You're stuff looks quite nice amazing.
« Last Edit: February 09, 2019, 03:41:34 pm by Lexx »

Re: Question regarding source code of FOnline 2238
« Reply #2 on: February 09, 2019, 08:39:47 pm »

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: Question regarding source code of FOnline 2238
« Reply #3 on: February 11, 2019, 09:28:50 pm »
Don't know about huge PDF, but there's:

https://rotators.fodev.net/atom/fo2calg.pdf
https://rotators.fodev.net/atom/F2_function_list.txt
https://rotators.fodev.net/atom/F2_function_structure.txt - decent starting point for reversing fallout2.exe, although there's a better IDA DB here

Critical hit tables were lifted from fallout2.exe also, don't remember if there's anything else.

As for tactics... there's https://github.com/melindil/FTSE maybe contact melindil to get more info. Same methods as we used for fallout 2 can be used for tactics but it requires painstaking reading/testing of the disassembled x86 asm code to get the exact behavior of original combat/mechanics, which may not be your thing

Re: Question regarding source code of FOnline 2238
« Reply #4 on: February 12, 2019, 09:00:57 pm »
Lots of code from Fallout 2 was reverse engineered in the early days. There should still be a huge pdf file flying around somewhere. As FOnline source is open now, I'm guessing nobody will mind if you take inspiration from parts of it.


PS: You're stuff looks quite nice amazing.

I've heard rumors about that big ol' pdf flying around under the radar, did not seem to make it's way around to me tho :)

Thanks for the feedback, the current build is actually in a more advanced state, I'll get around posting an updated video soon but work has been hectic lately. It has full character creation for both PC and enemy team, perks, traits (some not yet implemented) and I've also tried my hand at some UI art. And I am currently working on coding in critial hit stuff, which led me to search for some of the more hidden mechanics.

Is it your work?

https://www.dailymotion.com/video/x4nmquo

That is made by someone else. I've contacted him several times trying to strike up a collaboration but it was to no avail. He did help me with some critical scripting code regarding the volume of the sprites (that allowed me to grey box maps from FT).
Don't know about huge PDF, but there's:

https://rotators.fodev.net/atom/fo2calg.pdf
https://rotators.fodev.net/atom/F2_function_list.txt
https://rotators.fodev.net/atom/F2_function_structure.txt - decent starting point for reversing fallout2.exe, although there's a better IDA DB here

Critical hit tables were lifted from fallout2.exe also, don't remember if there's anything else.

As for tactics... there's https://github.com/melindil/FTSE maybe contact melindil to get more info. Same methods as we used for fallout 2 can be used for tactics but it requires painstaking reading/testing of the disassembled x86 asm code to get the exact behavior of original combat/mechanics, which may not be your thing

Ghosthack, this is uncanny, first of all thanks for all the info! It was actually a more draft pdf version of your first link that finally led me to this awesome forum and the holy grail, the source code of FO. I'm still reading most of those scripts in preparation of porting some of that logic in my little project.

You're right in assuming I'm not really cut out to doing low level stuff. I have little to no experience with dissasembly/c/cpp stuff, nor do I have the taste for it. I'm not a complete purist, I'm OK with some creative freedom, but where possible I would love to get the real deal in there :)

The great thing about this project is that it doesn't need to be limited to FT, F1 & F2 can easily be ported in once the mechanics & assets are in, so it's going to be quite the interesting year.

I have to say I really appreciate you guys chiming in, and would like to give out an open invitation to whomever wants to contribute in any way. God knows I would appreciate any help I can get :)

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: Question regarding source code of FOnline 2238
« Reply #5 on: February 13, 2019, 02:15:02 am »
Ghosthack, this is uncanny, first of all thanks for all the info! It was actually a more draft pdf version of your first link that finally led me to this awesome forum and the holy grail, the source code of FO. I'm still reading most of those scripts in preparation of porting some of that logic in my little project.

You're right in assuming I'm not really cut out to doing low level stuff. I have little to no experience with dissasembly/c/cpp stuff, nor do I have the taste for it. I'm not a complete purist, I'm OK with some creative freedom, but where possible I would love to get the real deal in there :)

The great thing about this project is that it doesn't need to be limited to FT, F1 & F2 can easily be ported in once the mechanics & assets are in, so it's going to be quite the interesting year.

I have to say I really appreciate you guys chiming in, and would like to give out an open invitation to whomever wants to contribute in any way. God knows I would appreciate any help I can get :)

Glad that the source is of some use, sadly it's lacking when it comes to comments so some parts are probably pretty rough reading.

Not to scare you but I would say that nailing down mechanics/game logic in an accurate way is probably the hardest thing when doing a reimplementation, loading/rendering/playing assets in the same way as original is usually the easier part. Except maybe lighting, FOnline engine's lighting is pretty different from FO2 for instance. But like you've said, if you allow some deviation from originals you can probably avoid a lot of tedium.

I personally don't really have that much energy for such a massive project these days sadly, working on 2238 almost every day for a few years was enough for a while. Fingers crossed that you'll find some contributors though.

And good luck with your project and hope that you can keep the steam going, you've already made some great progress!
« Last Edit: February 13, 2019, 02:20:17 am by Ghosthack »

Re: Question regarding source code of FOnline 2238
« Reply #6 on: March 22, 2019, 01:02:54 pm »
[EDIT]:
Quick fire update no. 3, a little thin on features but important nonetheless (expanded inventory & basic melee), check it out here:

https://youtu.be/auneYeOgL7E

[INITIAL]:

Hey guys, 4 months later update 2 is upon us, check it out here:

https://youtu.be/p4RjxNHG-uY

It will soon be available for download on itch aswell:
https://rotsin.itch.io/project-freefall
« Last Edit: March 29, 2019, 06:18:35 pm by rotsin »

Re: Question regarding source code of FOnline 2238
« Reply #7 on: May 08, 2023, 10:49:38 am »
OMG, did you know that the critical hit tables were actually lifted from fallout2.exe?! 😱 Can't remember if there's anything else, but that's just mind-blowing! 🤯