How do you make assault a duel?

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
richard

How do you make assault a duel?

Post by richard »

I have a question with assault..
I want to make it so that only 2 charas can find eachother. So its a duel.
How do i make it like that? I added quinlan and dooku as the 2 units but all the other units are still there and when i try something to delete them it wont work...Does anyone has a idea how to make it so that only quinlan and dooku are fighting?? It would really help if you have experience with making duel maps. If anyone could help me with this problem plz post it here :cry:
User avatar
Epena
Old School Staff
Posts: 1176
Joined: Fri Oct 21, 2005 2:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: How do you make assault a duel?

Post by Epena »

Um.

Did you delete the other units in the LUA? In both places?

When you get down to the setup teams part in the LUA, make it 0, 1 for both Dooku and Vos, and it should work.

That's really all you need to do. (assuming Vos is a side that's working)
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 do you make assault a duel?

Post by Teancum »

If you want to make a class so that only the player can play as it, you need to set the min and max (it's right after the class name) to 0,0.
richard

RE: How do you make assault a duel?

Post by richard »

I made vos and dooku 0,1 already. And teancum so..If i make the rest 0,0 the other classes wont be on the map right??(cause thats what i want only dooku and vos on the field and no other units.)

EDIT: i changed the other units classes count to 0,0 and still all the other units like aayla and the others are still there to select... I dont want that i just want so that you can only select quinlan in the heroes and dooku in the villians...You know how to do that?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: How do you make assault a duel?

Post by [RDH]Zerted »

Remove the heros you don't want from the SetupTeams/AddUnitClass section and the ReadDataFile section. Comment them out, don't delete them. That way, its easy to fix if you commented out the wrong line.
richard

RE: How do you make assault a duel?

Post by richard »

Comment them out? :? You mean delete their name?
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 do you make assault a duel?

Post by Teancum »

Sort of. Commenting means you can see it when you open the LUA, but the game doesn't notice it's there (it ignores it).

This is an example of commenting:

--SetMemoryPool("EntityFlyer", 15)

The -- tell the game to ignore it.
richard

RE: How do you make assault a duel?

Post by richard »

SO what do i have to change when i want it so that you cant zsee the heroes in the selection screen?
User avatar
Epena
Old School Staff
Posts: 1176
Joined: Fri Oct 21, 2005 2:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: How do you make assault a duel?

Post by Epena »

Note that this is the stock assault. I don't have Vos in here.
ReadDataFile("SIDE\\rep.lvl",
--"rep_hero_yoda",
--"rep_hero_macewindu",
--"rep_hero_anakin",
--"rep_hero_aalya",
--"rep_hero_kiyadimundi",
--"rep_hero_obiwan",
--"rep_hero_plokoon")

ReadDataFile("SIDE\\cis.lvl",
--"cis_hero_grievous",
--"cis_hero_darthmaul",
"cis_hero_countdooku",
--"cis_hero_jangofett")

--[[ Turrets disabled
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_chaingun_roof",
"tur_weap_built_gunturret")
SetMemoryPoolSize("MountedTurret", 15)
--]]

--ReadDataFile("SIDE\\snw.lvl", "snw_inf_wampa")

SetupTeams{
hero = {
team = ALL,
units = 30,
reinforcements = -1,
--soldier = { "all_hero_hansolo_tat",1,3},
--assault = { "all_hero_chewbacca", 1,2},
--engineer= { "all_hero_luke_jedi", 2,3},
--sniper = { "rep_hero_obiwan", 2,3},
--officer = { "rep_hero_yoda", 2,3},
--special = { "rep_hero_macewindu", 2,3},
},
}

--AddUnitClass(ALL,"all_hero_leia", 1,2)
--AddUnitClass(ALL,"rep_hero_aalya", 2,3)
--AddUnitClass(ALL,"rep_hero_kiyadimundi",2,3)
--AddUnitClass(ALL,"rep_hero_plokoon",2,3)

SetupTeams{
villain = {
team = IMP,
units = 30,
reinforcements = -1,
--soldier = { "imp_hero_bobafett", 2,3},
--assault = { "imp_hero_darthvader",2,3},
--engineer= { "cis_hero_darthmaul", 2,3},
--sniper = { "cis_hero_jangofett", 2,3},
--officer = { "cis_hero_grievous", 2,3},
--special = { "imp_hero_emperor", 2,3},

},
}
--AddUnitClass(IMP, "rep_hero_anakin",2,3)
AddUnitClass(IMP, "cis_hero_countdooku",2,3)
busterkinkade

Why don't you just hex edit it?

Post by busterkinkade »

Why don't you just hex edit it? Then, you can hex edit out the units and leave just the heros, then, set the instant action/multiplayer host options so that the hero respawn time is 0, and that you require no points to get it. The only problem is that if you were doing a campaign game like Rise of the Empire then, well, you would have problems (because you wouldn't be able to set the options)
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: Why don

Post by Teancum »

Hex editing is only useful in compiled maps. Why do it in a project like this when you can fix the source itself?
richard

RE: Why don

Post by richard »

So i need to make -- for their names?
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: Why don

Post by Teancum »

Put it in front of it, like Epena showed. Any line with a -- at the beggining will be ignored.
User avatar
Epena
Old School Staff
Posts: 1176
Joined: Fri Oct 21, 2005 2:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Why don

Post by Epena »

Don't do it to Dooku or Vos, though. Like Tean said, it'll be ignored byt he game and then you won't have any units.

Just thought I should mention that. :P
richard

RE: Why don

Post by richard »

I'm not that stupid :wink: :P But im going to test it now.
EDIT: It didnt work. I munged it and after it i munged everything and the others are still there. What is it that i'm doing wrong? Anyone has a idea?
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: Why don

Post by Teancum »

Just delete the lines you don't need then.
richard

RE: Why don

Post by richard »

Delete a whole line like this line: "all_hero_leia" and this line: all_hero_hansolo_tat ??
Or delete a piece of it or something? Can you maybe show what part to delete?
richard

RE: Why don

Post by richard »

Ok first of all srry for this if you think its double post. But:
Theres no chara on the field except quinlan and dooku, thats good BUT all the others are still in the selection screen. How can i get them of the selection screen?
richard

RE: Why don

Post by richard »

YES!!! Its finnaly worked i just did something wrong with the -- in front of their names. Tnx you 2!!!
Post Reply