logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,537
Total Threads: 8,626
Posts: 94,207

Administrators:
DeeZire, Redemption

There are currently 103 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 05-27-2006, 11:51 AM   #1 (permalink)
Member
 
Join Date: May 2006
Posts: 32
Send a message via MSN to ramon156
Default "My topic" Ramon156 / Scripting etc.

Hi. Ill first introduce myself.
I'm Ramon H from Holland. 18 years old and i'm trying to modify C&C: ZH. My English is pretty good, but i'm not an expert. If you see things in my posts that look wierd, or have to be said in other ways please tell me.
I will try to only use this topic for my questions. I will try to open a minimum number of other topics.

I will update this post as much as I can. So you don't have to read all of the posts and/or pages with answers and other peptalk If I have more questions I will also add them here.

I started with modifying the USA side. Now I have modified some things like they get more money, build a little bit faster, build some more defense, and that's it. I stopped modifying because I got annoyed by 2 things for now.

Bug 1 : The bazooka infantry (Forgot the name) can use the ability to lock with a laser and shoot tanks. The bug is, they can shoot buildings, infantry from a far distance. Is there a way to fix it?

Bug 2 : The "Fuel air bomb" just pops out of nowere and drops the bomb. I'm really annoyed by that. I want to fix it, but how?

Bug 3 : Missile defender ammonution dissappears when not attacking. I've seen a topic with the answer but I can't figure out which *.ini contains the info. http://www.deezire.net/modules.phpna...wtopic&t=11595

Things I want to change and need help with are:

*1) [Fixed] The AI has to rebuild the command center for unlimited times.
*2) [New] I'm replacing upgrades like "Composite armor" to the war factory, but if I place them there I can use them and normally it requires a Strategy center to do, because they can only be upgraded from the Strategy Center as default.. How can I make upgrades only ready for purchase if a Strategy center is build? I know a *.ini file holds something about the buildings. Like a strategy center requires a war factory / air field. I don't know what's the command, maybe I can use it for the upgrades.
*3) [New] I want to make a M4 upgrade, so the infantry is "More precise" and will do a little more damage.
*4) [New] Patriot Defense pops out infantry after destroyed, it's a system which can't hold infantry so I don't want to pop out infantry.
*5) [New] The command center has to pop out different types of infantry because it's a special and very important building. 2 snipers, 4 rangers, and 4 missile defenders should do the trick.
ramon156 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2006, 12:19 PM   #2 (permalink)
Senior Member
 
Join Date: Aug 2003
Posts: 134
Default

Hello Ramon, welcome to the forums!

Bug 1: the bazooka infantry (aka missile defender) has that bug, try making it's weapon, 'MissileDefenderLaserGuidedMissileWeapon', setting these two lines of code:
Code:
AntiAirborneVehicle = No
AntiAirborneInfantry = No
if it is there, change it; if it's not, add it.

As for the fuel air bug, not sure how to fix that. It might be due to something that the AI does since human controlled fuel air bombs never act like that as far as I know.

To change the AI to rebuild the command center, you'll have to use worldbuilder. Since I never even opened worldbuilder in my life, I can't help you too much.

But you can check SDI for scripting tutorials to help get you started in AI scripting. Although the SDI is no longer an active site, the material is still holds is valuable.
GuyInTheWindow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2006, 01:37 PM   #3 (permalink)
Member
 
Join Date: May 2006
Posts: 32
Send a message via MSN to ramon156
Default

Quote:
Originally Posted by GuyInTheWindow";p=&quot View Post
Hello Ramon, welcome to the forums!

Bug 1: the bazooka infantry (aka missile defender) has that bug, try making it's weapon, 'MissileDefenderLaserGuidedMissileWeapon', setting these two lines of code:
Code:
AntiAirborneVehicle = No
AntiAirborneInfantry = No
if it is there, change it; if it's not, add it.

As for the fuel air bug, not sure how to fix that. It might be due to something that the AI does since human controlled fuel air bombs never act like that as far as I know.

To change the AI to rebuild the command center, you'll have to use worldbuilder. Since I never even opened worldbuilder in my life, I can't help you too much.

But you can check SDI for scripting tutorials to help get you started in AI scripting. Although the SDI is no longer an active site, the material is still holds is valuable.
Thank you! I see these lines :

Code:
  AntiAirborneVehicle = Yes
  AntiAirborneInfantry = Yes
Is this wrong coding, or did they really want to make the MissileDefender shoot at infantry? Because if I select a MissileDefender I can't target infantry to shoot at. They also shoot at buildings from a far distance. should I add "AntiAirborneBuilding = No" ?

I changed it to "AntiAirborneInfantry = No"
I still want them to shoot at vehicles and helicopters and airplanes with the laserlock, but not on buildings and infantry.
ramon156 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2006, 07:27 PM   #4 (permalink)
Senior Member
 
Join Date: Aug 2004
Location: St. Petersburg, FL
Posts: 272
Default

If I remember, there is a file in Data\INI\Default, called AIData.ini

Here is an example of the HQ (it is my NekoHQ, for you it should be AmericaCommandCenter or something, as I don't have the original file on hand.)

Structure NekoHQ
Location = X:501.22 Y:546.25
Rebuilds = 0
Angle = -135.00
InitiallyBuilt = No
AutomaticallyBuild = Yes
END

If I remember, if you change "Rebuilds = 0" to something like "Rebuilds = 999" it should work. I'm not sure, but hopefully I am right.

Hope it works/helps: Dakatsu
Yuki Kiba Dakatsu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-28-2006, 05:51 AM   #5 (permalink)
Member
 
Join Date: May 2006
Posts: 32
Send a message via MSN to ramon156
Default

Quote:
Originally Posted by Yuki Kiba Dakatsu";p=&quot View Post
If I remember, there is a file in Data\INI\Default, called AIData.ini

Here is an example of the HQ (it is my NekoHQ, for you it should be AmericaCommandCenter or something, as I don't have the original file on hand.)

Structure NekoHQ
Location = X:501.22 Y:546.25
Rebuilds = 0
Angle = -135.00
InitiallyBuilt = No
AutomaticallyBuild = Yes
END

If I remember, if you change "Rebuilds = 0" to something like "Rebuilds = 999" it should work. I'm not sure, but hopefully I am right.

Hope it works/helps: Dakatsu
Thanks I have it, I've set it to Rebuilds = -1 (Unlimited) like I did with all of the buildings. It rebuilds the command center now. I also had to add a script to SkirmishScripts.scb to make it work. The last couple of days reading tutorials and other things really made me script, and think allot better. I'm learning more every day, I hope I can fix every big bug in C&C:ZH.
ramon156 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mu;tiple "types" of Rebel Ambush units Hostile Generals & Zero Hour Editing 2 09-03-2004 12:57 PM
Rememeber the topic "Redone Humvee"? Mohawk Generals & Zero Hour Editing 4 06-18-2004 12:33 PM
"Buibable" Carpbet Bombing Airplane Tutorial The_Hunter Generals & Zero Hour Editing 15 06-12-2004 06:25 PM
"The Project" promo pic: Yuri's Mole machine. Blade Red Alert 2 & Yuri's Revenge Editing 15 01-20-2003 06:20 AM


All times are GMT -4. The time now is 06:39 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.0 Release Candidate 2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.