Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Dark_Phantom

#1
SWBF1 Modding / SWBF1 Memory Extender/Patches
January 20, 2025, 05:27:54 PM
https://github.com/phantom567459/BF1MemExt/releases/tag/v1.0

Version 1.0
Only supports BF1 SWBFspy version (1.2), which can be obtained here: https://info.swbfgamers.com/
Support for SPTest should not take long to get live, some of the offsets are already there for DLC extension.

Active patches (despite what the GUI may say) are:
Support for 10 units
Changed Addon limit from 50 to (theoretically) 4096.  We'll see about that.

Included detailed readme for how to include in your own mods.  Check out what Giftheck is working on here: https://www.swbfgamers.com/index.php?topic=15020.0

There's also a cheat table included for BF1 (Cheat Engine) that has some cool stuff that I add to occasionally.

Let me know if there's any questions or concerns - the Github will be the current location for this.  All credits are included there.

#2
Correct, I made a few updates after I did some more research. 1-20 is the default range of values and ET adds 4 to that value.
https://ibb.co/p2rrpYG

I tried to attach a screenshot showing the difficulties and addresses that they are found at in the SWBFSpy exe.  At the bottom is the ET modifier and the MAX_DIFFICULTY which was capping the enemy and player skill levels. Let me know if you can't see the screenshot.  The address is 006f07cc.
#3
I did not see a limit when I did it.  I think there's a point of diminishing returns obviously but it didn't seem to break.  I think I only set it to 50 at max though. They were rolling through enemies on hard.

EDIT:
So the max constraint is 20 for skill level.  Hard is set to 17 by default for the enemy AI, and 4 for the user AI.
In the SWBFspy exe, at 0x2F07CC (or 6f07cc while running) is a variable that I had misnamed as MIN_DIFFICULTY.  It seems this is actually the MAX_DIFFICULTY.
Pushing this variable up allowed the skill level to exceed 20 when using Elite Training.


#4
SWBF1 Modding / Re: Bonus Descriptions
November 15, 2024, 05:34:06 PM
6+ years later, I relevantly updated 4 of the bonuses with new information:
Training: Clarified that this does actually work
Reserves: Did the math
Surplus Supplies: Replicated and reliably got to work for a while
Sneak Attack: Did the math
#5
Sounds like a memory issue with the specific hero you're using.

MP has much more stringent limits than SP to better facilitate online play.  It leaves a lot of maps by someone like Sereja without an immediate solution for online play.

You'll have to either swap out or rebuild the hero so that it is compatible.  It looks to me that it is probably a mesh or animation issue because it waits until they spawn into the game to crash.  What exactly that would entail to fix, I'm not sure.  There are minute differences in the BF2 skins that do cause issues in BF1 I believe but in SP the game usually compensates for them.
#6
The PC spawn screen was farmed out to a third-party.  It was coded to be more refined for PC users but in the process they only allocated 5 slots for everything on the screen because they only had 5 units for each team on every map at the time - one of the few situations where modding has been hampered on the PC version.
#7
Hello there!

One of my big projects recently has been to try to document some of the bonuses in BF1 and get a much clearer idea of what they do and possibly patch one of the cut bonuses, Surplus Supplies.
In my research, I was trying to figure out what Elite Training exactly does.  I don't have a complete answer, but I have a much better one than I did before, and can confirm that it does work.  The reason it is disputed is because it is tuned so low that it may seem negligible.  I posted this in the GT server but here is a more permanent and visible home for it.
The chunk of code I identified is this.  I've not ran the function all the way down to the nitty gritty but here's the gist:
Code (cpp) Select
                    /* Is Elite Training Selected? */
      if (*(char *)(&mActiveBonus + local_cc) < '\0') {
        ...
        CombatUtil::SetAISkill(4,0);
       ...
      }


If Elite Training was selected, it runs the function CombatUtil::SetAISkill(4,0).  Tracing this function down, it does some calculations which boil down to this:

team1difficulty = currentSkillLevel + 4
team2difficulty = currentSkillLevel + 0


CombatUtil::SetAIAimValues() then runs and detects the difficulty levels (set through global variables) and sets a bunch of variables like weapon spread/yaw/damping, whatever all that means other than "their aiming sucks less if the difficulty is higher".  (You can see this behavior in SPTest AI cam, the AI can be looking at you and then practically shoot sideways on lower difficulties)

This is not the only influence on AI behavior, but as far as Elite Training is concerned, this seems to be the impact, although it's quite possible that I've missed more stuff in the AIUtil/CombatUtil functionality.  The way the game calls bonuses is extremely haphazard lol.

As a requested test, I changed the value at 1841e8 in the SWBFSpy exe (which is currently 6A 04 in hex) and modified the 04 to another value.  In this case, I picked 20 in hex (which is actually 32).  The easiest way to select the bonus is to play Birth of the Rebellion and pick any map.  Your AI should perform much better than previously, and in the couple of battles I tried (on Hard!), they won the battle by themselves and it wasn't really close.

My research is mainly conducted using Ghidra.  Let me know what you think.
#8
SWBF1 Modding / Re: BFbuilder pro exe needed
April 17, 2024, 04:30:27 AM
I think you're going to have more problems past this using Wine.  I'll see what I can dig up but I don't think that is going to solve all the problems with the setup.
#9
SWBF1 Modding / Re: BFbuilder pro exe needed
April 16, 2024, 01:02:46 PM
Is there a reason you'd use this instead of the HTA?

This also has improvements over the first one (also an HTA):
https://www.swbfgamers.com/index.php?action=downloads;sa=view;down=1519
#10
Hey, I did see your comment on the video but I haven't had much chance to reply.
The Bothan Spy is available through here: http://www.secretsociety.com/forum/downloads/Psych0%20Projects/Maps/ChainIsle/
DataChainisle I believe has the Bothan Spy with a higher resolution.

That iso itself I never put out there.  It was a Jampack Demo that I will have to look up and get back to you.  Volume 13 sticks out in my mind.
If I can't find a downloadable version, I may have to try to recreate it.  I just did changes through a hex editor to remove some "hide this field" code.

Hovernaut and MTT both exist in the stock game assets but I believe the Hovernaut has collision issues.
#11
Forum News and Forum Rules / Configuration Change
March 28, 2024, 09:38:14 AM
Hello there,

I'm working to update some settings and the first changes have been made.  Two issues seem to be remedied:
1.) Initial loads of SWBFGamers result in a plaintext version of the site
2.) Images that were loaded from unsecure pages were broken.  The site now caches them and shows them to you.  This should fix a lot of broken images.

Let me know if anything seems off or is broken by this change.  Thanks.
#12
https://github.com/phantom567459/SoundFMVextractor/releases/tag/1.1

I think I have the French VO files (and German and Japanese) but have never actually tried to compile them into the main game.  It's something I can look into but I've got a lot on my plate at the moment.
#13
Welcome Center / Re: Just joined......kinda
February 23, 2024, 06:04:15 AM
I've started looking at the site again to see if I can get some of the goofy quirks ironed out.  I have probable solutions but am going to check with Led first.  One of those would be to allow unsecure image links to populate correctly, which seems to be the issue after I looked at your profile settings.
#14
The original coded limit was 12.  Assuming they use the console code, that would be the limit.

The people that Pandemic farmed the PC spawn screen out made it only support 5 because that was what was on every map.

If you break the PC Spawn Select as I've noted maybe in the Tutorials section (requires hex editing the exe), you can have up to the original designed limit of 12 with various issues that come from poor memory allocations on the screen.
#15
I got it munged but not in a way ZE can read it - only ingame.  It didn't crash after a long time of running it but I was really trying to find the source of the crash.