Switching Models/Textures?

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
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Switching Models/Textures?

Post by Sky_216 »

Is there any way to switch the model/texture a unit uses through lua without causing online crashing??? So say I wanted to load the same republic side in two maps, with the same unit names, but wanted one map to use one set of models/textures and the other to use another set? Or is there some other way to do it?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Switching Models/Textures?

Post by Maveritchell »

Please clarify. From your explanation, I'm not sure why you wouldn't just make two separate sides with the same unit names. They're on two different maps, why would that crash online?
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Switching Models/Textures?

Post by Sky_216 »

Attempt at reducing file size + not having a whole load of extra localising to do. Oh and the online thing is irrelevant, I initially wanted a random Phase I/II switch, so please ignore that.


But if I just have the clone legion with different models as a side 'based' on the other side (ie contains only some odfs and models for clones themselves), and use the method of loading the initial rep side in the lua first, then the second rep side (with the wanted models), would that work?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Switching Models/Textures?

Post by Maveritchell »

Sure, you could do it. It's not going to reduce your final size by a lot, though, since you've still got to load all those models into your side and then load them into your lua somehow.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Switching Models/Textures?

Post by Sky_216 »

K, thanks anyway. This can now be Locked.
Post Reply