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

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
Offline bio138  
#1 Posted : Tuesday, March 31, 2015 8:26:05 PM(UTC)
bio138
Private
Joined: 11/27/2013(UTC)
Posts: 42

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
Hello, I have a very limited knowledge of how to map.ini

I am trying to achieve the following

Increase the amount of slots in a Amphibious Transport
Change the scale/size of the Amphibious Transport
Change it so players may only make one Supply Drop Zone/Black Market/8 Hackers (If at all possible)
Move the GLA Black Market Upgrades into the Palace(If the previous isnt possible)

This is what I have below that let me increase the health, something else that I intended to do and it works, although I have no idea why its code cut and pasted together.
I have looked though the games .ini and the respective


Object AmphibiousTransport
RemoveModule ModuleTag_02
AddModule ModuleTag_02
Body = ActiveBody ModuleTag_02_Override
MaxHealth = 500.0
InitialHealth = 500.0
End
End
End

If you do know how to help me please explain the though process behind/meaning behind it, I would appreciate it greatly.

Thanks
Sponsor
Offline Gameanater  
#2 Posted : Tuesday, March 31, 2015 8:40:24 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Starting with a map.ini for your early modding experience really is not the best idea.

Modding normally, by creating copies of the .ini files in INIZH.big is much less frustrating and is also easier because you will have more resources at your disposal and you will have WB as the built-in debugger.

Wink

However, I can help a little bit with some of these.


Quote:
Increase the amount of slots in a Amphibious Transport


Look at the module TransportContain module and change this:

....Slots = 8

To whatever number you want.
Note that you'll have to change the CommandSet if you want the buttons at the bottom to look right.

EDIT: Although I don't know if it's the same in map.ini's...

Quote:
Change the scale/size of the Amphibious Transport


Add "Scale = [number here]" to the Geometry code block. WITHOUT THE BRACKETS []

EDIT: Although this is how you do it for normal modding...

Quote:
Change it so players may only make one Supply Drop Zone/Black Market/8 Hackers (If at all possible)

Hint: Check out Black Lotus (not in THAT way xD), or Colonel Burton and Jarmen Kell. Look for a "MaxSimultanousOfType = 1" and give that to your buildings. Wink

EDIT: Although I don't know if this is the same for map.ini's...

Quote:
Move the GLA Black Market Upgrades into the Palace(If the previous isnt possible)

CommandSet.ini

EDIT: For map.ini's, copy the CommandSet from CommandSet.ini into your map.ini and "comment out" whatever you want by putting a ; before the line of code

Quote:
This is what I have below that let me increase the health, something else that I intended to do and it works, although I have no idea why its code cut and pasted together


Try these code tags without the "s

["code=plain"]["/code]

Code:

Hi
   I 
     Would
          Be
             Your
                 Code 


Hope this helps. Big Smile

Edited by user Tuesday, March 31, 2015 8:49:08 PM(UTC)  | Reason: EDIT:

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline bio138  
#3 Posted : Tuesday, March 31, 2015 8:48:56 PM(UTC)
bio138
Private
Joined: 11/27/2013(UTC)
Posts: 42

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
Thank you for the swift reply

I have tried
Scale = 2
Slots = 50

Both have resulted in the game crashing upon loading the map.

Thanks for the heads up about MaxSimultanousOfType, this could be very interesting.

Thanks again
Offline Gameanater  
#4 Posted : Tuesday, March 31, 2015 8:50:46 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
No problem!

Could you put all your code up here? Maybe I can see what's wrong with it.


It's fun to put a MaxSimultanousOfType = 5 for Jarmen Kell. Or Colonel Burton. DOOM!!

No problem!

EDIT: Also, I edited that post. Not all coding is the same between map.ini's and normal modding.

Edited by user Tuesday, March 31, 2015 8:51:23 PM(UTC)  | Reason: EDIT:

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline bio138  
#5 Posted : Tuesday, March 31, 2015 8:53:19 PM(UTC)
bio138
Private
Joined: 11/27/2013(UTC)
Posts: 42

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
Sure

Object AmphibiousTransport
RemoveModule ModuleTag_02
AddModule ModuleTag_02
Body = ActiveBody ModuleTag_02_Override
;Only changes
Scale = 2
Slots = 50
;Only changes
MaxHealth = 500.0
InitialHealth = 500.0
End
End
End

Still unsure how many ends I need lol...
Thanks again
Offline Gameanater  
#6 Posted : Tuesday, March 31, 2015 9:02:28 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Put in the code tags? A little easier to read that way for me, especially with telling how many Ends you need. Smile
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
thanks 1 user thanked Gameanater for this useful post.
bio138 on 3/31/2015(UTC)
Offline bio138  
#7 Posted : Tuesday, March 31, 2015 9:10:11 PM(UTC)
bio138
Private
Joined: 11/27/2013(UTC)
Posts: 42

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
I am unsure of what you mean by code tags, my bad.
I do not know what they are, that is all I have in my map.ini

Thanks again
Offline Gameanater  
#8 Posted : Tuesday, March 31, 2015 9:16:34 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
type this:

[Zcode=plainZ][Z/codeZ]


Without the Z's. Put your code between the "plain]" and "[/code]"
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline bio138  
#9 Posted : Tuesday, March 31, 2015 9:42:29 PM(UTC)
bio138
Private
Joined: 11/27/2013(UTC)
Posts: 42

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
Like this?

[code=plain]
Object AmphibiousTransport
RemoveModule ModuleTag_02
AddModule ModuleTag_02
Body = ActiveBody ModuleTag_02_Override
;Only changes
Scale = 2
Slots = 50
;Only changes
MaxHealth = 500.0
InitialHealth = 500.0
End
End
End
[code]
Offline Annihilationzh  
#10 Posted : Wednesday, April 1, 2015 2:01:19 PM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Originally Posted by: bio138 Go to Quoted Post
Sure

Object AmphibiousTransport
RemoveModule ModuleTag_02
AddModule ModuleTag_02
Body = ActiveBody ModuleTag_02_Override
;Only changes
Scale = 2
Slots = 50
;Only changes
MaxHealth = 500.0
InitialHealth = 500.0
End
End
End

Still unsure how many ends I need lol...
Thanks again

Why do you have slots and scale in the body module? Scale needs to be put outside of the modules. Slots belongs in an entirely different module. You forgot the slash in your code tags.

Edited by user Wednesday, April 1, 2015 2:04:06 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.
thanks 2 users thanked Annihilationzh for this useful post.
Gameanater on 4/1/2015(UTC), bio138 on 4/1/2015(UTC)
Offline bio138  
#11 Posted : Wednesday, April 1, 2015 4:21:10 PM(UTC)
bio138
Private
Joined: 11/27/2013(UTC)
Posts: 42

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
Thank you for the replies,
I do not understand what a 'module' is yet, so far I only understand that certain things belong in certain 'modules'.

Would something like this be more acceptable?
This is actually the first attempt that I try myself.
Everything I type or get the stuff from is what I found in the Zero Hour .ini's I had unpacked.

I will attempt to point out things I understand and things I do not understand to hopefully help myself or help someone point me in a direction.

Code:

Object AmphibiousTransport; This points out the object
Body = ActiveBody ModuleTag_03; Determines how its collisions/movement behave?

MaxHealth = 500.0; health
InitialHealth = 100.0; health
End; Ends Body = activebody moduleTag_03 Statement?

Behavior = TransportContain ModuleTag_04; Creates a new behavior indicating how to load troops?
Slots = 20; Amount of slots
End; ends behavior statement?

CrusherLevel = 3; Objects it can crush

Geometry = BOX; That it behaves like a box?
Scale = 2; Scale of the object
End; Ends Geometry = BOX statement?
End;Ends Object AmphibiousTransport?


Game crashes upon map load, tried to remove Geometry section, CrusherLevel, and Behavior section.
Nothing I have tried has successfully launched.
I added the ;... Comments on this site, they are not there in game.

Thanks again for anyone taking the time to read and help me, I must be testing peoples patience by now D:
Offline Annihilationzh  
#12 Posted : Thursday, April 2, 2015 2:01:43 PM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
My last job was teaching science to children. I don't think it's even possible to try my patience any more.

Code:
Object AmphibiousTransport; This points out the object

RemoveModule ModuleTag_03 ; Removing the old health module
RemoveModule ModuleTag_04 ; and transport, because we can't have duplicates.

AddModule
  Body              = ActiveBody ModuleTag_03 ;opening a module
    MaxHealth       = 500.0
    InitialHealth   = 500.0
  End ;Body/Module
  Behavior              = TransportContain ModuleTag_04 ;opening a module
    Slots               = 20
    AllowInsideKindOf   = INFANTRY VEHICLE
    DoorOpenTime        = 2000
    ScatterNearbyOnExit = No ; I have bones for exiting
  End ; Behavior/Module
End ; We're closing AddModule because we're not adding any more modules
 
Scale = 2; Scale of the object

End; Object
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.
thanks 2 users thanked Annihilationzh for this useful post.
bio138 on 4/2/2015(UTC), Gameanater on 4/2/2015(UTC)
Offline bio138  
#13 Posted : Thursday, April 2, 2015 3:41:01 PM(UTC)
bio138
Private
Joined: 11/27/2013(UTC)
Posts: 42

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
Thank you, it works perfectly I understand the Modules now as well. Hope you have a good one.

Also for anyone wondering if "MaxSimultanousOfType = x" works for map.ini's it does, same with changing the "CrusherLevel = x". I did not try commandset though because MaxSimultanousOfType worked.


Thanks to everyone again.
Offline Gameanater  
#14 Posted : Thursday, April 2, 2015 3:43:02 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Smile
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline bio138  
#15 Posted : Saturday, April 4, 2015 6:56:31 PM(UTC)
bio138
Private
Joined: 11/27/2013(UTC)
Posts: 42

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
Now I hate to bump this thing since I finished my original objectives of this post, but a new problem that I don't understand has arisen.

Following the logic that Annihilationzh has politely taught me and worked, I have so far successfully

I have been able to place crew into t a BattleBus and a Humvee
However when placing crew into a technical
Code:

Object GLAVehicleTechnical

RemoveModule ModuleTag_16

AddModule

	Behavior = TransportContain ModuleTag_16
		Slots = 5
		InitialPayload     = GLAInfantryTunnelDefender 5
    		AllowInsideKindOf   = INFANTRY
    		DamagePercentToUnits = 10%
    		GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
   	End
End
	BuildCost = 2000
End


At least to me the code looks spot on compared to the others, I could be missing something very simple and small. I have seen however that there is a ton of code attached to the technical as well, is it crashing due to the nature of the technical and all of the code attached to it or am I missing something small/stupid?

Thanks again

Edited by user Saturday, April 4, 2015 6:59:04 PM(UTC)  | Reason: Not specified

Offline Gameanater  
#16 Posted : Saturday, April 4, 2015 7:27:41 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
My memory is probably betraying me, but it looks like that code doesn't have correct spacing...

I don't know though. Give em some time to go look at the Troop Crawler's stuff for InitialPayloads and see what I can dig up.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline bio138  
#17 Posted : Saturday, April 4, 2015 7:40:32 PM(UTC)
bio138
Private
Joined: 11/27/2013(UTC)
Posts: 42

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
The odd spacing was due to the copy and paste,

For the Humvee and BattleBus it works just fine.
Code:

Object GLAVehicleBattleBus

RemoveModule ModuleTag_10

AddModule

	Behavior = TransportContain  ModuleTag_10
    		PassengersAllowedToFire = Yes
    		Slots             = 8
		InitialPayload     = GLAInfantryTunnelDefender 8
   		 DamagePercentToUnits = 100%
   		 AllowInsideKindOf  = INFANTRY
    		ExitDelay = 250
    		NumberOfExitPaths = 5 ; 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
   		 WeaponBonusPassedToPassengers = Yes
    		DelayExitInAir = Yes
    		ArmedRidersUpgradeMyWeaponSet = Yes
  	End

End
	BuildCost = 3400
End

Object AmericaVehicleHumvee

RemoveModule ModuleTag_05

AddModule

	Behavior = TransportContain  ModuleTag_05
    		PassengersAllowedToFire = Yes
    		Slots             = 5
		InitialPayload     = AmericaInfantryMissileDefender 1
		; 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
	BuildCost = 1000
End

These ones work just fine. Unless I am missing something small/stupid, it may be too complex. None the less it cant hurt to see if someone else knows the answer, I have had no luck finding information on this on other sites or this one.

Thanks for the quick replies though
Offline klingondragon  
#18 Posted : Saturday, April 4, 2015 7:41:58 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
Nonetheless is one word not three.
Offline Gameanater  
#19 Posted : Saturday, April 4, 2015 7:44:36 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Originally Posted by: KlingonDragon Go to Quoted Post
Nonetheless is one word not three.


Yeah that's very helpful to know in map.ini coding. Don't take this advice for granted!

*Sarcasm*

xD
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline Gameanater  
#20 Posted : Saturday, April 4, 2015 7:48:04 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Hmm...

To be honest I can't figure out what's wrong then.

Try putting the code in a .txt file and attaching it in a .zip?
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Users browsing this topic
Guest
2 Pages12>
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.