Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Gameanater Offline
#1 Posted : Wednesday, May 29, 2013 6:11:04 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,574
United States
Location: The Matrix

Thanks: 579 times
Was thanked: 171 time(s) in 147 post(s)
I want to make the American CIA officer able to swim. I know it's possible because I've seen in happen in a map, but I couldn't find the code for it.
Also, how do i change the display name of an object? I tried, but it crashed the game whenever I tried to load the map.
It is better to die standing up than to live life on your knees.
Sponsor
Annihilationzh Offline
#2 Posted : Wednesday, May 29, 2013 6:24:00 PM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,719
United Kingdom

Thanks: 26 times
Was thanked: 443 time(s) in 301 post(s)
You have to change it's locomotor. The first one in the file able to cross water is BasicAmphibiousLocomotor.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
 1 user thanked Annihilationzh for this useful post.
Gameanater on 5/29/2013(UTC)
precision_bomber Offline
#3 Posted : Thursday, May 30, 2013 5:48:43 AM(UTC)
precision_bomber
Major
Joined: 12/18/2011(UTC)
Posts: 314
Location: Planet Cutezome

Thanks: 7 times
Was thanked: 75 time(s) in 58 post(s)
Just a little bit of extra info.

After changing the Locomotor to 'BasicAmphibiousLocomotor'.

You'll notice that the CIA Officer is walking on water.

If you want it to swim, you'll have to create a swimming animation for it.

Then Add "OVER_WATER" ConditionStates.
Death Label:
Reduced back to 3 main factions(and a couple of extras).
Each faction can choose a(or all of them) tech-tree via General's Powers.
Angel Wings: Jets and Anti-Air, Helicopters and Missiles, Hovercraft and Lasers
Red Skulls: Armor Division, Mecha Armada, Drone Swarm
Earth's Saviors: Air Raid, Homeworld Security, Stealth
 1 user thanked precision_bomber for this useful post.
Gameanater on 5/30/2013(UTC)
Gameanater Offline
#4 Posted : Thursday, May 30, 2013 4:57:40 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,574
United States
Location: The Matrix

Thanks: 579 times
Was thanked: 171 time(s) in 147 post(s)
Originally Posted by: Annihilationzh Go to Quoted Post
You have to change it's locomotor. The first one in the file able to cross water is BasicAmphibiousLocomotor.

Thanks, AZH. Smile

Originally Posted by: precision_bomber Go to Quoted Post
Just a little bit of extra info.

After changing the Locomotor to 'BasicAmphibiousLocomotor'.

You'll notice that the CIA Officer is walking on water.

Grr. Banghead

Originally Posted by: precision_bomber Go to Quoted Post
If you want it to [actually] swim, you'll have to create a swimming animation for it..

Banghead Is there a way to make him just look like he's walking in the water? Because all of the water in my map is supposed to be very shallow (shallow enough to walk on the ground).

Originally Posted by: precision_bomber Go to Quoted Post
Then Add "OVER_WATER" ConditionStates.

Hmm, interesting. I'm not entirely sure I know how to do that, but I might have seen code for that somewhere.
Thanks for the help, guys. Big Smile Hope you enjoy the map when I eventually finish i! Cool

It is better to die standing up than to live life on your knees.
Gameanater Offline
#5 Posted : Friday, May 31, 2013 8:15:27 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,574
United States
Location: The Matrix

Thanks: 579 times
Was thanked: 171 time(s) in 147 post(s)
It's not working, or I'm not typing the code in correctly, the CIA Agent still can't get into (or onto) the water.
This is all of the code for him I have so far:
[/quote]
;=====================================================
;Paul Wayne
;=====================================================
;For some reason, this code doesn't work, the buttons don't even show up!
;Which is why I also did not bother to add the "modules" for the special abilities,
;The buttons should show up grayed-out as-is, but they don't.
CommandSet AmericaInfantryCIAOfficerCommandSet
1 = Command_ChinaInfantryTankHunterTNTAttack
2 = Demo_Command_ConstructGLADemoTrap
3 = Chem_Command_ConstructGLADemoTrap
End

;Special thanks to AnnailationZH
Locomotor = BasicAmphibiousLocomotor
Surfaces = GROUND RUBBLE WATER
Speed = 50 ;45
SpeedDamaged = 45 ;38
TurnRate = 350
TurnRateDamaged = 300
Acceleration = 500 ;100
AccelerationDamaged = 250 ;50 ; in dist/(sec^2)
Braking = 150 ; in dist/(sec^2)
MinTurnSpeed = 0 ; in dist/sec
ZAxisBehavior = NO_Z_MOTIVE_FORCE
Appearance = TWO_LEGS
StickToGround = Yes ; walking guys aren't allowed to catch huge (or even small) air.
End
;=====================================================
;End Paul Wayne
;=====================================================
[/quote]
It is better to die standing up than to live life on your knees.
CommieDog Offline
#6 Posted : Friday, May 31, 2013 9:03:57 PM(UTC)
CommieDog
Administrator
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffRed Alert Staff: Red Alert Staff MemberAll Stars Staff: All Stars Staff
Joined: 8/3/2003(UTC)
Posts: 3,080
United States

Thanks: 418 times
Was thanked: 185 time(s) in 129 post(s)
Unless you're omitting it, you haven't actually changed the CIA Officer's locomotor.

CommieDog: Because someone has to do your dirty work for you
 2 users thanked CommieDog for this useful post.
Annihilationzh on 6/1/2013(UTC), Gameanater on 6/5/2013(UTC)
Gameanater Offline
#7 Posted : Wednesday, June 5, 2013 4:38:12 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,574
United States
Location: The Matrix

Thanks: 579 times
Was thanked: 171 time(s) in 147 post(s)
Originally Posted by: CommieDog Go to Quoted Post
Unless you're omitting it, you haven't actually changed the CIA Officer's locomotor.


Doh! I figured out the mistake, and it was such an obvious mistake, to!Banghead
But now, I have a new problem! Sad I fixed the mistake (I think), but now it crashes the game with a "fatal error"! Banghead *Bangs head of keyboard 3000 times) How do I fix this?

My code:

;Special thanks to AnnailationZH and Commie Dog
Object AmericaInfantryCIAOfficer
Locomotor = BasicAmphibiousLocomotor
Surfaces = GROUND RUBBLE WATER
Speed = 50 ;45
SpeedDamaged = 45 ;38
TurnRate = 350
TurnRateDamaged = 300
Acceleration = 500 ;100
AccelerationDamaged = 250 ;50 ; in dist/(sec^2)
Braking = 150 ; in dist/(sec^2)
MinTurnSpeed = 0 ; in dist/sec
ZAxisBehavior = NO_Z_MOTIVE_FORCE
Appearance = TWO_LEGS
StickToGround = Yes ; walking guys aren't allowed to catch huge (or even small) air.
End
It is better to die standing up than to live life on your knees.
precision_bomber Offline
#8 Posted : Thursday, June 6, 2013 6:09:17 AM(UTC)
precision_bomber
Major
Joined: 12/18/2011(UTC)
Posts: 314
Location: Planet Cutezome

Thanks: 7 times
Was thanked: 75 time(s) in 58 post(s)
First off, I don't get the structure of your code.
Second. Run it through Worldbuilder, and see the error, or, check CrashReleaseInfo.txt on your:

Code:
Documents/Command and Conquer Generals Zero Hour Data

Edited by user Thursday, June 6, 2013 6:09:53 AM(UTC)  | Reason: Not specified

Death Label:
Reduced back to 3 main factions(and a couple of extras).
Each faction can choose a(or all of them) tech-tree via General's Powers.
Angel Wings: Jets and Anti-Air, Helicopters and Missiles, Hovercraft and Lasers
Red Skulls: Armor Division, Mecha Armada, Drone Swarm
Earth's Saviors: Air Raid, Homeworld Security, Stealth
 1 user thanked precision_bomber for this useful post.
Gameanater on 6/6/2013(UTC)
Annihilationzh Offline
#9 Posted : Thursday, June 6, 2013 3:31:24 PM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,719
United Kingdom

Thanks: 26 times
Was thanked: 443 time(s) in 301 post(s)
You need to learn how to INI code. You got lucky by copying Beng's code, but if you really want to code properly, you have to learn.

Edited by user Thursday, June 6, 2013 3:59:29 PM(UTC)  | Reason: Not specified

If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
 1 user thanked Annihilationzh for this useful post.
Gameanater on 6/6/2013(UTC)
Gameanater Offline
#10 Posted : Thursday, June 6, 2013 6:36:44 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,574
United States
Location: The Matrix

Thanks: 579 times
Was thanked: 171 time(s) in 147 post(s)
Originally Posted by: precision_bomber Go to Quoted Post
First off, I don't get the structure of your code.

What do you mean? Is it not very readable or something?
Originally Posted by: precision_bomber Go to Quoted Post
Second. Run it through Worldbuilder, and see the error, or, check CrashReleaseInfo.txt on your:

Code:
Documents/Command and Conquer Generals Zero Hour Data

Well, opened up the map in World Builder, but I got no error messages. BUT, I did check Crashrelease info.txt and saw what caused the crash, it says "Release Crash at Wed Jun 05 16:35:12 2013
; Reason Error parsing INI file 'c:\users\nathan\documents\command and conquer generals zero hour data\maps\battle with the mob\map.ini' (Line: 'Object AmericaInfantryCIAOfficer ')


Last error:


Current stack:"
So I guess I made a typo on that line, I'll try and fix it at some future point.


Originally Posted by: Annihilationzh Go to Quoted Post
You need to learn how to INI code. You got lucky by copying Beng's code, but if you really want to code properly, you have to learn.

Yeah, I do. I really want to learn how. Any help with that would be much appreciated.



Thank you, everyone for your help, and I'm sorry if any of these questions seem stupid or silly, I'm just really, really new to .ini coding...
It is better to die standing up than to live life on your knees.
CommieDog Offline
#11 Posted : Friday, June 7, 2013 12:37:38 AM(UTC)
CommieDog
Administrator
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffRed Alert Staff: Red Alert Staff MemberAll Stars Staff: All Stars Staff
Joined: 8/3/2003(UTC)
Posts: 3,080
United States

Thanks: 418 times
Was thanked: 185 time(s) in 129 post(s)
I see what the problem is: you're trying to post the entire locomotor's code into the object. You only need the name:
Code:
Object AmericaInfantryCIAOfficer
Locomotor = BasicAmphibiousLocomotor
End

CommieDog: Because someone has to do your dirty work for you
 1 user thanked CommieDog for this useful post.
Gameanater on 6/7/2013(UTC)
Annihilationzh Offline
#12 Posted : Friday, June 7, 2013 8:47:54 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,719
United Kingdom

Thanks: 26 times
Was thanked: 443 time(s) in 301 post(s)
Originally Posted by: Annihilationzh Go to Quoted Post
You need to learn how to INI code. You got lucky by copying Beng's code, but if you really want to code properly, you have to learn.
Yeah, I do. I really want to learn how. Any help with that would be much appreciated.



Thank you, everyone for your help, and I'm sorry if any of these questions seem stupid or silly, I'm just really, really new to .ini coding...

Don't start with Map.inis. Try modding the game itself, and experimenting. It's much more forgiving and you'll have better debugging software.

Quote:
I see what the problem is: you're trying to post the entire locomotor's code into the object. You only need the name:

Locomotors are linked to the AIUpdate, and they must always be specified together.

Code:
Object AmericaInfantryCIAOfficer
 RemoveModule ModuleTag_03
 AddModule ModuleTag_03
  Behavior = AIUpdateInterface ModuleTag_03_Override
    AutoAcquireEnemiesWhenIdle = Yes
  End
 End
 Locomotor = SET_NORMAL BasicAmphibiousLocomotor
End

I just found these code tags that don't remove spaces. Very handy!

EDIT: I copied CommieDog's mistake of missing SET_NORMAL. FIXED.

Edited by user Saturday, June 8, 2013 12:14:16 PM(UTC)  | Reason: Not specified

If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
 1 user thanked Annihilationzh for this useful post.
Gameanater on 6/7/2013(UTC)
Menard Offline
#13 Posted : Thursday, October 31, 2019 7:03:26 AM(UTC)
menard
Captain
Joined: 8/29/2014(UTC)
Posts: 99
Location: Planet of the Apes

Thanks: 3 times
Was thanked: 6 time(s) in 5 post(s)
hi im back this is my problem cause i make a tanya with animation i got successfully animate her swim but if you stop it into specific direction she walk over water even i apply those code.I had prepare create all bones and skin with my own using 3dsmax but still no luck to run perfectly in Generals.
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.6.1 | YAF © 2003-2019, Yet Another Forum.NET
This page was generated in 1.367 seconds.