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

Forum Info
Forum Members: 18,643
Total Threads: 8,744
Posts: 95,520

Administrators:
DeeZire, Redemption

There are currently 24 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 06-10-2003, 12:54 PM   #1 (permalink)
Junior Member
 
Join Date: Jun 2003
Location: Netherlands
Posts: 11
Default Whats wrong with this code?

I use the code below in a map.ini for use with a mission.

Somehow the transport behaviour makes the game crash (because when I remove the whole transport code (from Behavior to end) there is no crash..
What am I doing wrong?

I also want the policecar to act like it has a turret (fire in all directions without turning).

Another thing, is there a way to change the name of a unit for a certain mission?


Note: I am a bit of a newbie in Generals editing.

Here is the code:



Object PoliceCar


WeaponSet
Conditions = None
Weapon = PRIMARY AmericaOfficerMachineGun
End


Behavior = TransportContain ModuleTag_05
PassengersAllowedToFire = Yes
Slots = 5
; EnterSound = GarrisonEnter
; ExitSound = GarrisonExit
DamagePercentToUnits = 100% ;10%
AllowInsideKindOf = INFANTRY
ExitDelay = 250
NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
End


VoiceSelect = RangerVoiceSelect
VoiceGroupSelect = BattleCrySound
VoiceMove = RangerVoiceMove
VoiceAttack = RangerVoiceAttack
SoundEnter = HumveeEnter
SoundExit = HumveeExit

End
NationalSniper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2003, 01:30 PM   #2 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: Netherlands
Posts: 206
Send a message via MSN to WickedBlizzard
Default

You might want to tell it what model to use .

Wickster
WickedBlizzard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2003, 02:16 PM   #3 (permalink)
Junior Member
 
Join Date: Jun 2003
Location: Netherlands
Posts: 11
Default

Quote:
Originally Posted by WickedBlizzard
You might want to tell it what model to use .

Wickster
Not needed here.
This is a map.ini, so special ini modifications for a certian map.
So you only give the code which has to be diffirent, the rest is used from the main ini files.

So if you only write this:

Object PoliceCar

WeaponSet
Conditions = None
Weapon = PRIMARY AmericaOfficerMachineGun
End

End


Then the policecar get a weapon added to it (the officers pistol), the rest of the stats are taken from the original ini files.
I know, because I tested that and it works, the sounds also work.

The game crashes when I try to give it transport capability.
NationalSniper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2003, 02:40 PM   #4 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 853
Send a message via AIM to mastermind2003 Send a message via MSN to mastermind2003
Default

It might be a conflicting module tag, other than that, is the number of exit paths wrong?
mastermind2003 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2003, 02:41 PM   #5 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: Netherlands
Posts: 206
Send a message via MSN to WickedBlizzard
Default

Oh :|. Thought you had to add models to map.ini too. Anyway, I had a look at this, thought there wasn't anything wrong, compared to Humvee, the same. I hope someone experienced with map.ini can help you out, cause I never use that ini.

Wickster
WickedBlizzard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2003, 06:30 PM   #6 (permalink)
Junior Member
 
Join Date: Jun 2003
Location: Netherlands
Posts: 11
Default

All I did was copy the Humvee transport tags to the police car.
Perhaps there is another tag which is required so a unit can transport?

I found another problem, I wanted to change the Chinese agent into a SWAT sniper (with UN soldier appearance).
So in my map.ini I gave the Chinese agent all the specs of the UN soldier (but with the weapon of the Pathfinder instead of the Ranger weapon), this makes the game crash as well. :cry:

I am confused.
NationalSniper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-11-2003, 03:07 AM   #7 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

You have to make it an addon tag. Look around the map.ini's, and you'll see what I mean

*oops, confused add-on with upgrade :tard: *
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-11-2003, 03:22 AM   #8 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

Because its a map.ini you have to 'add' that module since the object doesnt normally have it;-

Code:
AddModule
Behavior = TransportContain ModuleTag_05 
PassengersAllowedToFire = Yes 
Slots = 5 
; EnterSound = GarrisonEnter 
; ExitSound = GarrisonExit 
DamagePercentToUnits = 100% ;10% 
AllowInsideKindOf = INFANTRY 
ExitDelay = 250 
NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn 
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting 
End
End
DeeZire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-11-2003, 12:56 PM   #9 (permalink)
Junior Member
 
Join Date: Jun 2003
Location: Netherlands
Posts: 11
Default

The policecar and van now work as transports

Thanks for the tip Deezire!

They were however unable to unload, but that was fixed by giving them the Humvee commandset.
NationalSniper 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
Whats going wrong? Mr Graffitti Red Alert 2 & Yuri's Revenge Editing 9 10-20-2005 06:11 PM
What is wrong with this code? Minimi Red Alert 2 & Yuri's Revenge Editing 13 04-08-2005 08:32 AM
Whats Wrong With This Code? adamstrange Generals & Zero Hour Editing 7 09-01-2004 03:57 PM
Whats wrong with this peice of code??? heartless_ali Generals & Zero Hour Editing 14 07-23-2004 09:49 PM
v3 trailer hardcoded? & whats wrong with my voxel? doog Red Alert 2 & Yuri's Revenge Editing 5 08-24-2003 08:18 AM


All times are GMT -4. The time now is 09:19 PM.


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