Fake Console Breakthrough!
Moderator: Moderators
- Tourny
- Command Sergeant Major
- Posts: 289
- Joined: Sat Sep 27, 2008 5:58 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Crifton
- Contact:
Fake Console Breakthrough!
Through research, me and my friends have found that using the Code Console in the fake console you can use setclassproperty to change things.
- Maveritchell
- Jedi Admin
- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Fake Console Breakthrough!
...and? What is the breakthrough?
- Tourny
- Command Sergeant Major
- Posts: 289
- Joined: Sat Sep 27, 2008 5:58 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Crifton
- Contact:
Re: Fake Console Breakthrough!
It means you can change your game while your in it. We used it to give a Super Battle Droid 1 Hp. Now everything kills it. I guess it's better for RPGing, but I thought gametoast should know if it didn't already.
- Maveritchell
- Jedi Admin
- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Fake Console Breakthrough!
I am willing to bet everyone who read the readme that came with the download already knew, since that's exactly what the Code Console was designed for.Tourny wrote:It means you can change your game while your in it. We used it to give a Super Battle Droid 1 Hp. Now everything kills it. I guess it's better for RPGing, but I thought gametoast should know if it didn't already.
- 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: Fake Console Breakthrough!
Yep, if folks read the documentation/release threads thoroughly they'd see this isn't something new.
Glad you found it though.
Glad you found it though.
- Tourny
- Command Sergeant Major
- Posts: 289
- Joined: Sat Sep 27, 2008 5:58 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Crifton
- Contact:
Re: Fake Console Breakthrough!
lol. People are lazy, what do you expect?
- Maveritchell
- Jedi Admin
- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Fake Console Breakthrough!
I have grown to expect less and less, but I would imagine that when someone makes a readme, they expect people to read it.Tourny wrote:lol. People are lazy, what do you expect?
- Par3210
- Jedi
- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Fake Console Breakthrough!
it would be good if you could post all the commands for code console that you can change or at least some of them
- [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:
Re: Fake Console Breakthrough!
The Code Console runs Lua code. You can type any Lua code into it and it will attempt to run it. As for what you can change with SetClassProperty, its any ODF parameter.
Glad you're trying new things, but thats what that command is for.
Glad you're trying new things, but thats what that command is for.
- Par3210
- Jedi
- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Fake Console Breakthrough!
RDH Zerted would it be possible to add/get rid of unit classes ingame via code console? If so it would be absoultley awesome.
- Fierfek
- High General
- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Fake Console Breakthrough!
You could add units, but I don't know about removing them.....Par3210 wrote:RDH Zerted would it be possible to add/get rid of unit classes ingame via code console? If so it would be absoultley awesome.
- Par3210
- Jedi
- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Fake Console Breakthrough!
how would you add them
- Fierfek
- High General
- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Fake Console Breakthrough!
Use the addunit class function. So, you would type in:Par3210 wrote:how would you add them
Code: Select all
AddUnitClass(ALL, "rep_hero_kiyadimundi",1,2)
- 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: Fake Console Breakthrough!
Yeah, but I dunno - can you add units on the fly? I've never tried it outside of initial startup of the level.
- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Fake Console Breakthrough!
Sure, check Mav's FFX Lua script.
- Fierfek
- High General
- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Fake Console Breakthrough!
But would the new unit have to be read in the read side part of the lua? Or does it automatically read it when you type the command?
And is it possible to add weapons to units with this command? Like adding a jawa and giving him a chaingun? That would be sweet!
And is it possible to add weapons to units with this command? Like adding a jawa and giving him a chaingun? That would be sweet!
- 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: Fake Console Breakthrough!
Well, it'd be multiple lines, but it might be possible to do. Just make your Jawa side, and place it in /Star Wars Battlefront II/DATA/_LVL_PC/SIDE.
Then in the Fake Console
1-ReadDataFile("MyUberJawa.lvl", "tat_inf_uberjawa")
2-Press enter
3-AddUnitclass(ALL, "tat_inf_uberjawa", 1, 2)
4-Press enter
5-Respawn
If it worked, that would be the only way it could. Otherwise you're looking at a lot of lines of code. It's just easier to make a "Uber Unit" side, then load that side on the fly. Then you've got your units set up, and you only have to type two lines of code on any level.
Then in the Fake Console
1-ReadDataFile("MyUberJawa.lvl", "tat_inf_uberjawa")
2-Press enter
3-AddUnitclass(ALL, "tat_inf_uberjawa", 1, 2)
4-Press enter
5-Respawn
If it worked, that would be the only way it could. Otherwise you're looking at a lot of lines of code. It's just easier to make a "Uber Unit" side, then load that side on the fly. Then you've got your units set up, and you only have to type two lines of code on any level.
- Frisbeetarian
- Jedi
- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Fake Console Breakthrough!
You wouldn't have to go through all that. You can do it all in one executable code console line and you don't have to make a new side.
Code: Select all
ReadDataFile("des.lvl", "tat_inf_jawa");AddUnitclass(ALL, "tat_inf_jawa", 1, 2);SetClassProperty(however you want the weapon set up)
- 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: Fake Console Breakthrough!
Yeah, but odds are they don't just want to set one property of the unit. If they want to add some uber-weapon then they'll want to add super-speed, infinite health, and a toaster oven to that unit, meaning multiple SetProperty() lines.
- Fierfek
- High General
- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Fake Console Breakthrough!
It would be interesting to mess around with it, but in the end, it would just be less trouble to add the class in the lua.