How to randomize heroes from a specific pool on a stock map?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

How to randomize heroes from a specific pool on a stock map?

Post by armyman12345 »

I'm new to the SWB2 mod community, and I really wanted to do something, on some maps, I want to randomize the heroes, but I want a specific pool, as in, in Geonosis, I want Jango Fett, General Grievous and Count Dooku to be possible heroes for the CIS each match, but only them, and no one else.

Any help would be appreciated
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: How to randomize heroes from a specific pool on a stock

Post by ARCTroopaNate »

Hi armyman!

Here is a link on how to do that, in the future, it usually pays of to check the modding FAQ or the search function, it can answer a lot of questions.

http://www.gametoast.com/viewtopic.php?f=27&t=19003

Welcome to gametoast!
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How to randomize heroes from a specific pool on a stock

Post by armyman12345 »

Thank you a lot for your link.

I have been spending the previous few hours trying to learn how to edit a mod, instead of making your own, but to no avail. The mod I want to edit in particular is the BFX mod, yet, I don't even know what files to open or how to open them, and most of the guides I've come across don't go too much into detail as to editing a mod instead of making one. Any help is wanted.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: How to randomize heroes from a specific pool on a stock

Post by CT108 »

I think that you need the permission of the BFX creators to edit the mod, and as far as I know, there isn't any tool that can open the lvl files (Notepad ++ can open the lvl files, but it's impossible to edit something). But if you want to edit the stock map and the stock sides in the future, there's some good tutorials in the FAQ ;)
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How to randomize heroes from a specific pool on a stock

Post by armyman12345 »

CT108 wrote:I think that you need the permission of the BFX creators to edit the mod, and as far as I know, there isn't any tool that can open the lvl files (Notepad ++ can open the lvl files, but it's impossible to edit something). But if you want to edit the stock map and the stock sides in the future, there's some good tutorials in the FAQ ;)
IIRC, in the readme for the BFX assets, they said that you only need permission if you're uploading the edited mod to a site. Also, is there any way to unpack, edit a lvl file then repack it? I'm pretty sure that it's not impossible to edit those fully. I just want the mission.lvl open
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: How to randomize heroes from a specific pool on a stock

Post by Teancum »

Battlefront is different than your average game. Everything is compiled before being put into a .lvl container, so even extracted it's in a different format than the mod tools can use. You'd need to get the original scripts/assets from the author.
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How to randomize heroes from a specific pool on a stock

Post by armyman12345 »

Alright, I'm dumb, I found the original BFX assets and I have the LUA files. Sorry if I'm asking for a lot, but what now? How do I open or edit them and recompile them?
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: How to randomize heroes from a specific pool on a stock

Post by CT108 »

armyman12345 wrote:
IIRC, in the readme for the BFX assets, they said that you only need permission if you're uploading the edited mod to a site.
Oh ok, I never knew it, sorry!
armyman12345 wrote:Alright, I'm dumb, I found the original BFX assets and I have the LUA files. Sorry if I'm asking for a lot, but what now? How do I open or edit them and recompile them?
Now you just have to create a new map, custom your sides and the lua file with the BFX assets, and add your new era to the stock maps. There's a lot of tutorials that can help you in the FAQ, now have fun !
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How to randomize heroes from a specific pool on a stock

Post by armyman12345 »

I've learned how to edit a LUA file and how to edit a shipped map, but what do I do now? How would I edit BFX itself so I can put my edits in the game?
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: How to randomize heroes from a specific pool on a stock

Post by CT108 »

Just replace your sides by the BFX sides ;)
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How to randomize heroes from a specific pool on a stock

Post by armyman12345 »

Yeah, I don't get it. BFX doesn't have any files for any of the maps. I edited the scripts and just the scripts and i munged them. I just don't get it. I wanted to edit Geonosis, but still, do I have to replace everything in the scripts with GEO? I just want to edit the scripts for geonosis and I can't even edit the map for geonosis because again, the BFX folder doesn't have anything on it.

Can anyone just help me step by step? None of the faqs help me that much, since a lot of them don't go too much into detail
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: How to randomize heroes from a specific pool on a stock

Post by CT108 »

Alright there is 3 tutorials that might be usefull for you, here you go :

1) How to create a new era http://www.gametoast.com/viewtopic.php? ... 96#p287596

2) How to add your side mod to a stock map (scroll down to the Zerted's post, and do the 4th method) http://www.gametoast.com/viewtopic.php?f=27&t=15120

3) There's how to edit the addme http://www.gametoast.com/viewtopic.php?f=27&t=16273
Last edited by CT108 on Wed Jun 28, 2017 12:47 pm, edited 1 time in total.
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How to randomize heroes from a specific pool on a stock

Post by armyman12345 »

Followed instructions, still came up with errors along the way. Do I need to edit all maps at once?
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: How to randomize heroes from a specific pool on a stock

Post by CT108 »

armyman12345 wrote:Followed instructions, still came up with errors along the way. Do I need to edit all maps at once?
What are the errors ?
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How to randomize heroes from a specific pool on a stock

Post by armyman12345 »

All the maps don't have the BFX era anymore except a new geonosis map, which crashes if you load it up.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: How to randomize heroes from a specific pool on a stock

Post by CT108 »

Do you have any error in your BFront2 log ? (C:\Program Files (x86)\SWBF2_location\Star Wars Battlefront II\GameData)
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: How to randomize heroes from a specific pool on a stock

Post by Marth8880 »

Teancum wrote:Battlefront is different than your average game. Everything is compiled before being put into a .lvl container
Off-topic: Well, technically speaking that's actually how most games do it. Very few games load their assets as loose files (for legal reasons, naturally) - the only exception I can really think of is the Microsoft Flight Simulator games.
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How to randomize heroes from a specific pool on a stock

Post by armyman12345 »

CT108 wrote:Do you have any error in your BFront2 log ? (C:\Program Files (x86)\SWBF2_location\Star Wars Battlefront II\GameData)
I didn't save the log when it crashed, sorry.

All I'm changing is geo1a_con.lua and geo1b_con.lua . Can you help me do it with the BFX mod?
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: How to randomize heroes from a specific pool on a stock

Post by ARCTroopaNate »

Just play with the debug again and let it crash, it will generate a new log.
armyman12345
Recruit Womprat Killer
Posts: 10
Joined: Sun Jun 25, 2017 4:54 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How to randomize heroes from a specific pool on a stock

Post by armyman12345 »

Can't, deleted the map
Post Reply