Random multi troop skins? [Solved]
Moderator: Moderators
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Random multi troop skins? [Solved]
is it possible to have two skins for one unit and make it random on what you get
like 501st and the 212st
like 501st and the 212st
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: multi troop skins
It will take some LUA scripting know-how, but yes. You could modify THIS script by Ace_Azzameen_5.
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: multi troop skins
so i did everthing and it works but as soon as i put in another side such as 212 it crash i have the side in my side folder am i missing something
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: multi troop skins
Do you mind showing me your Lua?
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: multi troop skins
which one error log
Hidden/Spoiler:
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: multi troop skins
Nope, your IU3c_con.lua please.
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: multi troop skins
Hidden/Spoiler:
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: multi troop skins
Looks good, can I also see the contents of your RandomRepLegion.lua please? (This is where you need to have the game look for your custom rep side)
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: multi troop skins
Hidden/Spoiler:
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: multi troop skins
So is the game crashing on you? Or is it just always giving you the stock Republic side? Right now the biggest thing I'm seeing is that there's a logic problem in the RandomRepLegion code... you're telling the game "if the random number is less than 4, load cor.lvl, otherwise load rep.lvl". And then underneath that you're saying "and by the way, if the random number is 4 or 5, 6, or 7, or 8, 9, 10, load cor.lvl" so the game is getting mixed messages from you (I don't know if that's the way the code was shipped or if that's something you changed yourself though... either way it's not a good idea).
Here's how I would change it:
That should suffice. You can tweak the number '5' to something higher or lower if you want to change the probability of your custom Republic legion being chosen.
Also, the custom Republic side .lvl (cor.lvl) is in GameData\addon\IU3\data\_LVL_PC\SIDE\ right?
Here's how I would change it:
Hidden/Spoiler:
Also, the custom Republic side .lvl (cor.lvl) is in GameData\addon\IU3\data\_LVL_PC\SIDE\ right?
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: multi troop skins
i changed it to this
and no cor is not there how would i add it , it is in my sides folder, also it is in my data sides folder
Hidden/Spoiler:
Last edited by jojo3450 on Sat Mar 28, 2015 7:15 pm, edited 1 time in total.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: multi troop skins
If cor is a side you made yourself then you should only have to munge your sides and it will appear there. If it's a premade side then just copy the .lvl there from wherever you downloaded it.
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: multi troop skins
OK i had the cor side have a rep.req , so every time i die i should get a chance of being 501st or 121st or is it that it choses it at the begging
Last edited by jojo3450 on Sat Mar 28, 2015 7:23 pm, edited 1 time in total.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: multi troop skins
Yep that's a problem. Needs to be a cor.req.
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: multi troop skins
k so now it always chooses the cor side and not the rep side
-does this make it so that every time u die u get chance of having a different skin
or
- it chose the side only for the rest of the game
thanks for ur help
-does this make it so that every time u die u get chance of having a different skin
or
- it chose the side only for the rest of the game
thanks for ur help
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: multi troop skins
This one. ^jojo3450 wrote:- it chose the side only for the rest of the game
If you want it to randomize the clones' skins in-game check this tutorial/thread out HERE. (Look at the code in kinetosimpetus's post)
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: multi troop skins
can someone give me the making own era tutorial link
also adding a different sky link thanks
also adding a different sky link thanks
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: multi troop skins
Basically all tutorials in the FAQ can be found, well, in the FAQ. http://www.gametoast.com/viewtopic.php?f=27&t=13806 
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: multi troop skins
Ninja'd. You and I are checking the exact same threads at the same time, Marth... I'm going to go do something else for a while. 
-
jojo3450
- Rebel Warrant Officer

- Posts: 317
- Joined: Fri Jul 18, 2014 12:29 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: multi troop skins
i know its there but cant find i knew how to do it but i havent modded in some time so i forgot i only see random sky link but i want to add a space sky to mine or night time sky
