Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sat Apr 20, 2024 2:51 am
All times are UTC + 0
Questions about separate E1
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [15 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Elite_Pirate
Grenadier


Joined: 03 Feb 2007
Location: Sweden, Stockholm

PostPosted: Wed Jun 16, 2010 2:22 am    Post subject:  Questions about separate E1
Subject description: Is there a way to make the AI build them?
Reply with quote  Mark this post and the followings unread

Can I somehow make the AI (both for GDI and Nod) build the new E1's? At the moment I've added both units with different images and stats etc. But the AI isn't building them whatsoever, neither in skirmish nor in the campaign for TS/FS. It builds the standard E1 no problem if I enable it, but that's obvious. I'm sure this is all about ai.ini and I'd appreciate it if someone could give me a heads up how to do this, if it's possible.

Also, is there any way to remove the E1 from spawning from the droppod superweapon in FS?

/E_P

_________________

Back to top
View user's profile Send private message
Shakar
Cyborg Cannon


Joined: 04 Jan 2008
Location: Places

PostPosted: Wed Jun 16, 2010 2:52 am    Post subject: Reply with quote  Mark this post and the followings unread

Droppod EI is hardcoded as far as I can tell from a post LKO made... As for AI building your new E1, you'll need to edit the AI.ini to have them build it. Dutchy should know more on this then I do, as well as any other AI coders ^_^

Back to top
View user's profile Send private message
Player1
Soldier


Joined: 05 Jan 2010

PostPosted: Wed Jun 16, 2010 3:56 am    Post subject: Re: Questions about separate E1 Reply with quote  Mark this post and the followings unread

Elite_Pirate wrote:
Can I somehow make the AI (both for GDI and Nod) build the new E1's? At the moment I've added both units with different images and stats etc. But the AI isn't building them whatsoever, neither in skirmish nor in the campaign for TS/FS. It builds the standard E1 no problem if I enable it, but that's obvious. I'm sure this is all about ai.ini and I'd appreciate it if someone could give me a heads up how to do this, if it's possible.

Also, is there any way to remove the E1 from spawning from the droppod superweapon in FS?

/E_P


AI needs to be coded to use those individual infantry. It's very simply just did it for my mod.

_________________
Red Alert Reloaded

Back to top
View user's profile Send private message
Death Cultist
Scorpion Sniper


Joined: 28 Apr 2009
Location: Auckland, New Zealand

PostPosted: Wed Jun 16, 2010 9:52 am    Post subject: Reply with quote  Mark this post and the followings unread

yup just take a look in there, theres AI tutorials too

_________________
Beta Tester for Mental Omega 3.0


Back to top
View user's profile Send private message
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Wed Jun 16, 2010 2:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

Player1 already told you what to do Wink The only stuff that is hardcoded is that E1 is a DropPod inf (as Shakar mentioned), and that survivors from structures can only be 1 infantry (either your Nod or GDI one).

Back to top
View user's profile Send private message Send e-mail Skype Account
Elite_Pirate
Grenadier


Joined: 03 Feb 2007
Location: Sweden, Stockholm

PostPosted: Wed Jun 16, 2010 5:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Dutchygamer wrote:
The only stuff that is hardcoded is that E1 is a DropPod inf (as Shakar mentioned), and that survivors from structures can only be 1 infantry (either your Nod or GDI one).


What about the other infantry in the droppod, like the disc thrower? Can he be replaced by other infantry such as the medic or the engineer?

And yeah, I'm taking a look at the ai.ini tutorials here on PPM.

_________________

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Wed Jun 16, 2010 7:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

E1 and E2 are hardcoded for the Drop Pod infantry. E2 is also hardcoded to Explode.

Back to top
View user's profile Send private message
SuperJoe
Commander


Joined: 03 Sep 2009

PostPosted: Thu Jun 17, 2010 5:00 am    Post subject: Reply with quote  Mark this post and the followings unread

Elite_Pirate wrote:
Dutchygamer wrote:
The only stuff that is hardcoded is that E1 is a DropPod inf (as Shakar mentioned), and that survivors from structures can only be 1 infantry (either your Nod or GDI one).


What about the other infantry in the droppod, like the disc thrower? Can he be replaced by other infantry such as the medic or the engineer?

And yeah, I'm taking a look at the ai.ini tutorials here on PPM.


Get a hex editor (such as Hex Editor Neo), open Game.exe and search for line "chemlauncher". A little after this you can see E2 and E1. Change them to whatever infantry you want to come out of the droppods. Note that both infantry have to have a 2 character long identifier, for example if you want the medic to come out of a droppod you'll have to change its name from [MEDIC] to [ME]. Btw you can also change how many infantry you want to come out of the drop pods by changing the lines
Code:

DropPodInfantryMinimum=5
DropPodInfantryMaximum=8

at the start of firestrm.ini.

To get AI to build side specific light infantry search ai.ini (and aifs.ini) for the line E1. Change all E1 to whatever you want them to build instead, like G1 for GDI and N1 for Nod. You'll have to create 2 extra taskforces since 2 of the taskforces are shared between GDI and Nod. They are
Code:

[07E04DC0-G]
Name=4 light infantry
0=4,E1
Group=-1

[08602640-G]
Name=1 light infantry
0=1,E1
Group=-1

Just change these E1 to G1 and create the new taskforces for Nod. Then search for both [07E04DC0-G] and [08602640-G], and change all Nod entries that are using these to the new taskforces you made for Nod.

This will make the AI build side specific light infantry in skirmish and multiplayer modes. They will still build the standard E1 in campaigns though, you'd have to edit the campaign maps to change that.

Back to top
View user's profile Send private message
Elite_Pirate
Grenadier


Joined: 03 Feb 2007
Location: Sweden, Stockholm

PostPosted: Thu Jun 17, 2010 9:04 am    Post subject: Reply with quote  Mark this post and the followings unread

CCHyper wrote:
E1 and E2 are hardcoded for the Drop Pod infantry. E2 is also hardcoded to Explode.


-Sadface-

SuperJoe wrote:
Get a hex editor (such as Hex Editor Neo), open Game.exe and search for line "chemlauncher". A little after this you can see E2 and E1. Change them to whatever infantry you want to come out of the droppods. Note that both infantry have to have a 2 character long identifier, for example if you want the medic to come out of a droppod you'll have to change its name from [MEDIC] to [ME]. Btw you can also change how many infantry you want to come out of the drop pods by changing the lines


Orly, so hardcoded isn't = Impossible to edit?
I was thinking about the droppod and how one mod I tried back in the day, TF: A Dying World, had a superweapon using the droppod logic which launched a series of mutant commandos in your base.
So when I was told it didn't work to change up the infantry in it I was like: wait what? So you're saying it's possible if I'm willing to employ some .exe modding, would there be any drawbacks to doing this?
And is there also a way to make the droppod carry more than two different units at a time? Like instead of replacing E1 with the Medic could he simply be added on to the team that spawns by the superweapon?

SuperJoe wrote:
AI tutorial

Yep I implemented it and got it to work before this, but thanks anyway.

SuperJoe wrote:
They will still build the standard E1 in campaigns though, you'd have to edit the campaign maps to change that.


Ah..was afraid of that. Stupid map-based AI.
And since I disabled the normal E1 for both the AI and the player, will the map-based AI just build no E1 whatsoever during the campaign?

_________________

Back to top
View user's profile Send private message
SuperJoe
Commander


Joined: 03 Sep 2009

PostPosted: Thu Jun 17, 2010 10:55 am    Post subject: Reply with quote  Mark this post and the followings unread

There are no drawbacks if you edit the exe to change the drop pod infantry types. But no, you can't use more than 2 types of infantry with it. Think you could make it into only 1 type though, by entering the same value twice in the exe, or just make a clone of the type you want and put it as the 2nd value.

Don't think you can "disable" any unit from the AI, no matter what keys you use (BuildLimit=0 might possibly do it from my tests). If the script tells the AI to build a certain unit, they will, regardless of tech level, prerequisites, ownership, etc. And these scripts are bound to the campaign maps I believe. So the campaign AI would still be building the E1 infantry. Also, all the units that are placed on the campaign maps at the start (not built), will be the default ones, such as E1.

Back to top
View user's profile Send private message
Elite_Pirate
Grenadier


Joined: 03 Feb 2007
Location: Sweden, Stockholm

PostPosted: Thu Jun 17, 2010 12:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Very informative, thanks Joe.

_________________

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Thu Jun 17, 2010 3:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Fingers crossed that i can code up some type of object array to allow many types of objects.

Back to top
View user's profile Send private message
huhnu
Cyborg Engineer


Joined: 16 May 2009

PostPosted: Fri Jun 18, 2010 4:15 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh that'd be an unfathomable amount of win if you could. #Tongue

I'd give you an endless supply of cookies.

Back to top
View user's profile Send private message
Elite_Pirate
Grenadier


Joined: 03 Feb 2007
Location: Sweden, Stockholm

PostPosted: Fri Jun 18, 2010 2:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

huhnu wrote:
I'd give you an endless supply of cookies.


Not good enough, he should get the jar too.

_________________

Back to top
View user's profile Send private message
huhnu
Cyborg Engineer


Joined: 16 May 2009

PostPosted: Fri Jun 18, 2010 6:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Elite_Pirate wrote:
huhnu wrote:
I'd give you an endless supply of cookies.


Not good enough, he should get the jar too.


I'll give him endless jars filled to the brim with cookies and some other cookies that might have fallen out.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [15 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2137s ][ Queries: 11 (0.0074s) ][ Debug on ]