Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!

Author Topic: Modding Question  (Read 8071 times)

0 Members and 1 Guest are viewing this topic.

September 19, 2008, 02:35:12 PM

Offline Scarecrow63

  • Former Mod Team Member
  • Moff
  • *
  • Posts: 1,891
  • Approval: +37/-30
  • In internet speak, vowels are the first casualty
    • View Profile
Modding Question
« on: September 19, 2008, 02:35:12 PM »
This was originally posted by Nagafen, but I managed to delete it while trying to move it here.

"Cool. So here's my question:

To star me off in modding, I wanted to know something simple, but this may sound really noobish from me, so I apoligise:

How can I change it so that a vehicle can be used by another fraction as well as the previous fraction?

For an example, I love the AEM mod, due to it's massive complexity. However, I feel the Rebellion are lacking in canonical craft. (Or any large amount).

To begin with, I simply want to swap it around so that on a certain planet, lets say on a Imperial Manufacture planet, (Does anyone know where Seiner Fleet Systems was based?) I can build TIE/In Fighters for the Rebellion. Can you outline with me how to do this? The tools I need, the code I need to change? This is my first question.

If you can help me at all (bearing in mind this is with the AEM mod), then I will be A) Eternally grateful and B) On the first step of modpath to glory."
Isn't in the bath, he prefers the shower

September 19, 2008, 02:37:18 PMReply #1

Offline vadereclipse

  • Grand Admiral
  • ********
  • Posts: 939
  • Approval: +28/-27
    • View Profile
Re: Modding Question
« Reply #1 on: September 19, 2008, 02:37:18 PM »
sienar fleet systems was based in corulag.

September 19, 2008, 02:39:22 PMReply #2

Nagafen

  • Guest
Re: Modding Question
« Reply #2 on: September 19, 2008, 02:39:22 PM »
Cool. So then, I want to know how to change it to make it only bulidable for the Rebellion (But still buildable anywhere for The Empire) on Courlag.

September 20, 2008, 05:49:53 PMReply #3

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Modding Question
« Reply #3 on: September 20, 2008, 05:49:53 PM »
First off, the only tool you need is Notepad.

Step 1:
Go into the mod's XML files and open the one with the TIE Interceptor's squadron in it. I don't know what AEM is, so I don't know where they keep their TIE Interceptor squadron, though it is probably either in a file with TIE_Interceptor in the name, or Squadrons.xml

Step 2:
Advanced: Find the TIE Interceptor's squadron coding, make a variant of it. Change the squadron name to whatever you want (Probably best to just add _Rebel to the end, that's how it's typically done), and change affiliation to Rebel and then change </Required_Planets> to <Required_Planets> Corulag </Required_Planets>. Save, and test.

Simple:
Find the TIE Interceptor's squadron coding, copy and paste the entire thing, change the name to whatever (Can't be the same as something already in use), and change affiliation to Rebel and then change </Required_Planets> to <Required_Planets> Corulag </Required_Planets>. Save, and test.
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


September 21, 2008, 07:52:55 AMReply #4

Nagafen

  • Guest
Re: Modding Question
« Reply #4 on: September 21, 2008, 07:52:55 AM »
Would I have to manually add the <Required Planets> section to Squadrons, as I can only find it in sections  to do with Frigates (And bigger craft.)

Plus, how far do I have to go in order to ass a unit not present in the game at all? Like a Lucrehelk TF Droid Control Ship, for example?

September 21, 2008, 12:41:04 PMReply #5

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Modding Question
« Reply #5 on: September 21, 2008, 12:41:04 PM »
Yes, you have to add it yourself if it isn't there. And to remove ships, delete their entries in the XMLs. Each ship should usually only have one with the actual ship, and then the hardpoints.
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


September 21, 2008, 01:17:26 PMReply #6

Nagafen

  • Guest
Re: Modding Question
« Reply #6 on: September 21, 2008, 01:17:26 PM »
So, how do I add new craft?

September 21, 2008, 01:22:51 PMReply #7

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Modding Question
« Reply #7 on: September 21, 2008, 01:22:51 PM »
You have to get the model and skin, and any animations and put them in the proper art folder. Then you need to make an entry in the XMLs for it (usually done by copying and pasting another unit and adding or removing what you want. Then you'll need to code any hardpoints.
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


October 14, 2008, 10:57:58 PMReply #8

Offline GrndAdmrlPellaeon

  • Chat Members
  • Grand Admiral
  • *
  • Posts: 1,319
  • Approval: +35/-35
  • Yub Squadron This (Replaced by ASG)
    • View Profile
Re: Modding Question
« Reply #8 on: October 14, 2008, 10:57:58 PM »
I heard somewhere that it is not possible to remove corruption in FoC, is this true?
"No! Try not. Do, or do not. There is no try." Jedi Master Yoda

I hate the Yuuzhan Vong!

92% of teens have moved on to (c)rap. if you are one of the 8% who listen to real music, copy and paste this into your sig

October 15, 2008, 12:49:46 PMReply #9

Offline Scarecrow63

  • Former Mod Team Member
  • Moff
  • *
  • Posts: 1,891
  • Approval: +37/-30
  • In internet speak, vowels are the first casualty
    • View Profile
Re: Modding Question
« Reply #9 on: October 15, 2008, 12:49:46 PM »
What do you mean remove corruption?
Isn't in the bath, he prefers the shower

October 15, 2008, 01:05:07 PMReply #10

Offline vadereclipse

  • Grand Admiral
  • ********
  • Posts: 939
  • Approval: +28/-27
    • View Profile
Re: Modding Question
« Reply #10 on: October 15, 2008, 01:05:07 PM »
well, if you were to remove defilers, and get rid of ciding which enables it, you might not be able to. however, i expect the AI will still be able to then.

October 15, 2008, 01:58:50 PMReply #11

Offline Scarecrow63

  • Former Mod Team Member
  • Moff
  • *
  • Posts: 1,891
  • Approval: +37/-30
  • In internet speak, vowels are the first casualty
    • View Profile
Re: Modding Question
« Reply #11 on: October 15, 2008, 01:58:50 PM »
Of course its possible to, the AI can only use abilities and such that are in the coding for the faction, you take out the stuff that allows them to use corruption and they can't corrupt stuff.
Isn't in the bath, he prefers the shower

October 15, 2008, 02:42:19 PMReply #12

Offline vadereclipse

  • Grand Admiral
  • ********
  • Posts: 939
  • Approval: +28/-27
    • View Profile
Re: Modding Question
« Reply #12 on: October 15, 2008, 02:42:19 PM »
still though, there may be crashes if you do that. you may forget a tag which tlls the AI to do something which tlls it to corrupt, for example. the bureaucracy of coding...

October 15, 2008, 03:40:22 PMReply #13

Offline Scarecrow63

  • Former Mod Team Member
  • Moff
  • *
  • Posts: 1,891
  • Approval: +37/-30
  • In internet speak, vowels are the first casualty
    • View Profile
Re: Modding Question
« Reply #13 on: October 15, 2008, 03:40:22 PM »
Then fix it....
Isn't in the bath, he prefers the shower

October 15, 2008, 04:15:57 PMReply #14

Offline Slornie

  • Mod Team Member
  • Moff
  • ****
  • Posts: 2,759
  • Approval: +54/-13
  • Every Silver Lining has a Cloud
    • View Profile
Re: Modding Question
« Reply #14 on: October 15, 2008, 04:15:57 PM »
EotH in TR don't have corruption ;)
Quote from: RonMaverick291 (Gametrailers)
why do u hate america? if it were not for us u guys would be lost. i mean we invented the tv, we invented the internet, cars and we even went to the planet moon. we won all the wars and we always help the little countries who cant fight and we give food to poor people.

October 15, 2008, 09:22:32 PMReply #15

Offline GrndAdmrlPellaeon

  • Chat Members
  • Grand Admiral
  • *
  • Posts: 1,319
  • Approval: +35/-35
  • Yub Squadron This (Replaced by ASG)
    • View Profile
Re: Modding Question
« Reply #15 on: October 15, 2008, 09:22:32 PM »
I know this. But when you capture a planet it corrupts it. Is it possible to take it out?
"No! Try not. Do, or do not. There is no try." Jedi Master Yoda

I hate the Yuuzhan Vong!

92% of teens have moved on to (c)rap. if you are one of the 8% who listen to real music, copy and paste this into your sig

October 15, 2008, 09:40:20 PMReply #16

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Modding Question
« Reply #16 on: October 15, 2008, 09:40:20 PM »
There's a oline in Expansion_Factions called Benefits from corruption. Change it to no.

Looks like this:
<Benefits_From_Corruption> Yes </Benefits_From_Corruption>

Remove this:
<Automatic_Planetary_Corruption_Upgrade_Type>
         Generic_Intimidation_Corruption_Upgrade,
         Generic_Piracy_Corruption_Upgrade,
         Generic_Kidnapping_Corruption_Upgrade,
         Underworld_Racketeering_Corruption_Upgrade,
         Generic_Corrupt_Militia_Corruption_Upgrade,
         Generic_Bribery_Corruption_Upgrade,
         Generic_Black_Market_Corruption_Upgrade,
         Generic_Bonded_Citizens_Corruption_Upgrade,
      </Automatic_Planetary_Corruption_Upgrade_Type>


That should do it, IIRC.

I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


June 25, 2009, 11:47:14 AMReply #17

Offline TeKniiQuE

  • Recruit
  • *
  • Posts: 3
  • Approval: +0/-0
    • View Profile
Re: Modding Question
« Reply #17 on: June 25, 2009, 11:47:14 AM »
how do i code hard points, i kind of find it weird isnt there a limit??

June 25, 2009, 11:48:25 AMReply #18

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Modding Question
« Reply #18 on: June 25, 2009, 11:48:25 AM »
Start a new topic for new questions, don't just revive old ones. Especially when they've been resolved.
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


 

Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!