HEX EDITING: Adding more AI to the stock levels.
Moderator: Moderators
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
HEX EDITING: Adding more AI to the stock levels.
I'm modifying the PSP game, and I want to add more AI (AI per team) into the game by any means necessary.
EVEN MURDER.
I want to do this because the PSP limits the game to 10 AI per team on single player and 6 AI per team on multiplayer, which are ridiculously low amounts as the PSP could easily handle more. 16 AI per team at least, but I'd like to try 32 first to see how fast/slow it goes.
Please don't go off-subject and start asking about how I'm modifying the PSP game in this topic. Just take a gander at this link if you're interested: http://www.gametoast.com/index.php?name ... pic&t=7031
The PSP is incompatible with anything from the PC, so I have to do everything via hex editing. I've tried out a lot of stuff with repeated failures (though I got Episode 2 clones in, which is always awesome), so now all I plan on doing is adding more AI per team, whether I'm able to add AI for specific levels or a global amount for every level.
TAKE NOTE THAT THE PSP .LVLS ARE ALMOST EXACTLY LIKE THE PC .LVLS! If something works for the PC in hex editing to raise the AI per team, please tell me, because it's almost gauranteed it will also work for the PSP!
http://rapidshare.de/files/33864730/_lvl_psp.zip.html Here are the mission.lvl and shell.lvl files from the PSP. As you can see, they're just like the PC. Mostly.
I've tried modifying both "SetUnitCount" and "units" in the mission.lvl.
"SetUnitCount" will crash the game in the loading screen of a level.
"units" will make some levels crash on the loading screen, and make other levels take forever to load. When those levels finally do load, there's no difference in the amount of AI.
The very second I figure out how to add more AI per team (or someone so kindly tells me how), I will release my modified files with clear instructions on how to use them so other PSP owners can enjoy their copy of Star Wars Battlefront 2 even more.
THE ULTIMATE QUESTION
How do I add more AI (per team) to a level, or raise the global limit from 10 to something like 16 or 32, via hex editing?
EVEN MURDER.
I want to do this because the PSP limits the game to 10 AI per team on single player and 6 AI per team on multiplayer, which are ridiculously low amounts as the PSP could easily handle more. 16 AI per team at least, but I'd like to try 32 first to see how fast/slow it goes.
Please don't go off-subject and start asking about how I'm modifying the PSP game in this topic. Just take a gander at this link if you're interested: http://www.gametoast.com/index.php?name ... pic&t=7031
The PSP is incompatible with anything from the PC, so I have to do everything via hex editing. I've tried out a lot of stuff with repeated failures (though I got Episode 2 clones in, which is always awesome), so now all I plan on doing is adding more AI per team, whether I'm able to add AI for specific levels or a global amount for every level.
TAKE NOTE THAT THE PSP .LVLS ARE ALMOST EXACTLY LIKE THE PC .LVLS! If something works for the PC in hex editing to raise the AI per team, please tell me, because it's almost gauranteed it will also work for the PSP!
http://rapidshare.de/files/33864730/_lvl_psp.zip.html Here are the mission.lvl and shell.lvl files from the PSP. As you can see, they're just like the PC. Mostly.
I've tried modifying both "SetUnitCount" and "units" in the mission.lvl.
"SetUnitCount" will crash the game in the loading screen of a level.
"units" will make some levels crash on the loading screen, and make other levels take forever to load. When those levels finally do load, there's no difference in the amount of AI.
The very second I figure out how to add more AI per team (or someone so kindly tells me how), I will release my modified files with clear instructions on how to use them so other PSP owners can enjoy their copy of Star Wars Battlefront 2 even more.
THE ULTIMATE QUESTION
How do I add more AI (per team) to a level, or raise the global limit from 10 to something like 16 or 32, via hex editing?
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: HEX EDITING: Adding more AI to the stock levels.
Aw, come on, guys. I'm beggin' ya'! I'm beggin', here!
Just throw some ideas at me! Just suggest something you think MIGHT work, or sounds like it maybe could work in some other land far away from our own!
I'm so tired of playing in colossal XL battles on the PC, then having to do tiny 10 versus 10 battles on the PSP! It's supposed to be a friggin' battle, not an intellectual debate followed by a feast of cupcakes! Nay, followed by a feast of CORPSES!
Not that I think the PSP could handle XL, but you get my point. Too small, is what I'm saying. Drives me insane with the tiny battles.
Just throw some ideas at me! Just suggest something you think MIGHT work, or sounds like it maybe could work in some other land far away from our own!
I'm so tired of playing in colossal XL battles on the PC, then having to do tiny 10 versus 10 battles on the PSP! It's supposed to be a friggin' battle, not an intellectual debate followed by a feast of cupcakes! Nay, followed by a feast of CORPSES!
Not that I think the PSP could handle XL, but you get my point. Too small, is what I'm saying. Drives me insane with the tiny battles.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
RE: HEX EDITING: Adding more AI to the stock levels.
Dude......it's been less than a half hour. Chill
Why not munge a project for PC with the number of AI you want, then litereally look in PCs mission.lvl to find SetUnitCount then copy the data after it to your PSP mission.lvl
Why not munge a project for PC with the number of AI you want, then litereally look in PCs mission.lvl to find SetUnitCount then copy the data after it to your PSP mission.lvl
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: HEX EDITING: Adding more AI to the stock levels.
It was a day and twenty-four minutes.
I don't know how to munge a mission.lvl, but I know that if I did, it would screw everything up. When I take the present mission.lvl from the PC and put it onto the PSP, nothing changes except the models in the game get stretchy and weird and no sounds work.
Though I would like to munge a mission.lvl for the PC. But that's not the point. Point is, stuff can't be taken from the PC and put onto the PSP.
I don't know how to munge a mission.lvl, but I know that if I did, it would screw everything up. When I take the present mission.lvl from the PC and put it onto the PSP, nothing changes except the models in the game get stretchy and weird and no sounds work.
Though I would like to munge a mission.lvl for the PC. But that's not the point. Point is, stuff can't be taken from the PC and put onto the PSP.
-
Zaborack
- 1st Lieutenant

- Posts: 452
- Joined: Sun Aug 20, 2006 1:08 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
RE: HEX EDITING: Adding more AI to the stock levels.
lol Teancum who's the one who should be chillin' here? 
JK
it's awsome that you are modifiying BFII for the PSP Broadus, i can't help you out but i hope someone will.
-zaborack
JK
it's awsome that you are modifiying BFII for the PSP Broadus, i can't help you out but i hope someone will.
-zaborack
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: HEX EDITING: Adding more AI to the stock levels.
I hope so, too. Playing with 10 AI per team is really sucking, and there's no way to enjoy multiplayer with 6 AI per team.
-
Adreniline
- Command Sergeant Major

- Posts: 290
- Joined: Fri Oct 28, 2005 8:24 pm
- Projects :: No Mod project currently.
- xbox live or psn: XTIndie
- Location: Coffee Centre of the World
- Contact:
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Oh! Now I see what he was saying. That makes a lot of sense. Zerted suggested it before, but I was pretty confused when he said it, too. Thanks for suggesting that, Teancum, and thanks for esplainin' to me what he said (that I misread), Adreniline.
Still, I don't know how to munge a mission.lvl and I want 32 AI per team. Doesn't the mission.lvl for the PC already specify 32 AI per team, so I shouldn't have to munge anyway? I've looked, and the SetUnitCount doesn't seem to be different... Well, tomorrow, I'll try the whole SetUnitCount thing one more time. I'll try friggin' anything.
Are you guys sure changing the SetUnitCount for a level to something higher than 10 will work, though? I mean, I'm still going to try it again. Just wanting to know what you guys know about it.
Still, I don't know how to munge a mission.lvl and I want 32 AI per team. Doesn't the mission.lvl for the PC already specify 32 AI per team, so I shouldn't have to munge anyway? I've looked, and the SetUnitCount doesn't seem to be different... Well, tomorrow, I'll try the whole SetUnitCount thing one more time. I'll try friggin' anything.
Are you guys sure changing the SetUnitCount for a level to something higher than 10 will work, though? I mean, I'm still going to try it again. Just wanting to know what you guys know about it.
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Aw, man. I'm disappointed to announce my disappointing discoveries of the meaning of the word disappointment.
SetUnitCount only seems to apply to special units like wookies on Kashyyyk, ewoks on Endor and jawas in Mos Eisley. Basically, if I changed SetUnitCount via hex, I would only be changing the amount of AI-only characters in levels, rather than player-like AI. Some levels don't have SetUnitCount at all, because they don't have the AI-only characters.
So, SetUnitCount does nothing for the AI per team when hex editing.
Now I'm just confused. For obvious reasons, SetUnitCount won't work, but neither will units, which seems to be the only other reasonable factor for level-specific AI-per-team changing.
Surely there's a global thing somewhere that will let me change the AI per team!
This is driving me insane!
SetUnitCount only seems to apply to special units like wookies on Kashyyyk, ewoks on Endor and jawas in Mos Eisley. Basically, if I changed SetUnitCount via hex, I would only be changing the amount of AI-only characters in levels, rather than player-like AI. Some levels don't have SetUnitCount at all, because they don't have the AI-only characters.
So, SetUnitCount does nothing for the AI per team when hex editing.
Now I'm just confused. For obvious reasons, SetUnitCount won't work, but neither will units, which seems to be the only other reasonable factor for level-specific AI-per-team changing.
Surely there's a global thing somewhere that will let me change the AI per team!
This is driving me insane!
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Well, SetupTeams contains units, classes and reinforcements. I can change reinforcements all I'd like, changing the units does absolutely nothing, and the numbers next to the classes don't seem to do anything, either.
I don't know. I have to find the thing that determines how high/low the global amount can be set, but I don't know if that can be edited, whether it be with ModTools or hex.
I don't know. I have to find the thing that determines how high/low the global amount can be set, but I don't know if that can be edited, whether it be with ModTools or hex.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Well, yeah, I can't hex edit uber mode in.
How can you tell what the cap is? I hope and pray it's not twenty on the PSP... Though that would certainly explain a lot.
There has to be some way to raise the cap, or raise the global amount, or something.
I mean, surely there's a secret difference in multiplayer/single player I could try to spot. Single player allows for 10 AI per team, but multiplayer only allows for 6 AI per team. I don't know. Maybe I'm crazy and I'll never figure it out, but it's gotta' be hidden in the hex somewhere...
How can you tell what the cap is? I hope and pray it's not twenty on the PSP... Though that would certainly explain a lot.
There has to be some way to raise the cap, or raise the global amount, or something.
I mean, surely there's a secret difference in multiplayer/single player I could try to spot. Single player allows for 10 AI per team, but multiplayer only allows for 6 AI per team. I don't know. Maybe I'm crazy and I'll never figure it out, but it's gotta' be hidden in the hex somewhere...
Last edited by Broadus on Tue Sep 26, 2006 12:36 am, edited 1 time in total.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
-
Adreniline
- Command Sergeant Major

- Posts: 290
- Joined: Fri Oct 28, 2005 8:24 pm
- Projects :: No Mod project currently.
- xbox live or psn: XTIndie
- Location: Coffee Centre of the World
- Contact:
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
He told me the PSP version was pretty much outsourced in that only one guy on the team worked on the porting of it.Adreniline wrote:If you can't seem to find out how to edit this, why not try contacting psych0fred?
Since he was helping with development, he may know some of the walls you are coming up against, maybe not, but I have a feeling he just might...
