Page 1 of 2
Fake Console Breakthrough!
Posted: Sun Jul 12, 2009 2:40 pm
by Tourny
Through research, me and my friends have found that using the Code Console in the fake console you can use setclassproperty to change things.
Re: Fake Console Breakthrough!
Posted: Sun Jul 12, 2009 2:41 pm
by Maveritchell
...and? What is the breakthrough?
Re: Fake Console Breakthrough!
Posted: Sun Jul 12, 2009 2:56 pm
by Tourny
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.
Re: Fake Console Breakthrough!
Posted: Sun Jul 12, 2009 2:58 pm
by Maveritchell
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.
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.
Re: Fake Console Breakthrough!
Posted: Sun Jul 12, 2009 3:07 pm
by Teancum
Yep, if folks read the documentation/release threads thoroughly they'd see this isn't something new.
Glad you found it though.
Re: Fake Console Breakthrough!
Posted: Sun Jul 12, 2009 3:15 pm
by Tourny
lol. People are lazy, what do you expect?
Re: Fake Console Breakthrough!
Posted: Sun Jul 12, 2009 3:18 pm
by Maveritchell
Tourny wrote:lol. People are lazy, what do you expect?
I have grown to expect less and less, but I would imagine that when someone makes a readme, they
expect people to read it.
Re: Fake Console Breakthrough!
Posted: Sun Jul 12, 2009 3:26 pm
by Par3210
it would be good if you could post all the commands for code console that you can change or at least some of them
Re: Fake Console Breakthrough!
Posted: Sun Jul 12, 2009 5:18 pm
by [RDH]Zerted
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.
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 2:36 pm
by Par3210
RDH Zerted would it be possible to add/get rid of unit classes ingame via code console? If so it would be absoultley awesome.
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 2:37 pm
by Fierfek
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.
You could add units, but I don't know about removing them.....
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 3:17 pm
by Par3210
how would you add them
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 3:26 pm
by Fierfek
Par3210 wrote:how would you add them
Use the addunit class function. So, you would type in:
Code: Select all
AddUnitClass(ALL, "rep_hero_kiyadimundi",1,2)
AddUnitClass tells it to add this to the game. ALL specifies the team (in this case, the alliance). Then, it specifies which unit to add (in this case, rep_hero_kiyadimundi). Then, you put in the minimum number of that class, followed by the maximum (units on the field). If you're wondering what Ki-Adi is doing with the rebels, this script is from Hero Assault.
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 3:30 pm
by Teancum
Yeah, but I dunno - can you add units on the fly? I've never tried it outside of initial startup of the level.
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 3:33 pm
by Frisbeetarian
Sure, check Mav's FFX Lua script.
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 3:40 pm
by Fierfek
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!
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 3:58 pm
by Teancum
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.
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 4:02 pm
by Frisbeetarian
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)
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 4:20 pm
by Teancum
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.
Re: Fake Console Breakthrough!
Posted: Mon Jul 13, 2009 4:23 pm
by Fierfek
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.