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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline MoqqyT  
#1 Posted : Tuesday, April 16, 2019 3:55:58 PM(UTC)
MoqqyT
Private
Joined: 4/15/2019(UTC)
Posts: 8
Bouvet Island

Thanks: 3 times
Why buildcost stay the same even tho i changed it in .ini?

or it displays the new buildcost i set but it didnt actually change the real cost.
Sponsor
Offline SkyMix_RMT  
#2 Posted : Tuesday, April 16, 2019 7:11:26 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
If we are talking about map.ini file, you can't change buildcost with a map.ini, it's just not possible, you can however, use a different unit that has the price you're looking for, then give it completely new code for the original unit you wanted.

If this is a mod, then you must be doing something wrong, what changes did you make exactly?
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
thanks 1 user thanked SkyMix_RMT for this useful post.
MoqqyT on 4/17/2019(UTC)
Offline MoqqyT  
#3 Posted : Wednesday, April 17, 2019 5:20:53 AM(UTC)
MoqqyT
Private
Joined: 4/15/2019(UTC)
Posts: 8
Bouvet Island

Thanks: 3 times
Originally Posted by: SkyMix_RMT Go to Quoted Post
If we are talking about map.ini file, you can't change buildcost with a map.ini, it's just not possible, you can however, use a different unit that has the price you're looking for, then give it completely new code for the original unit you wanted.

If this is a mod, then you must be doing something wrong, what changes did you make exactly?


I am just making a multiplayer map.

Code example:

Object x
Buildcost = 1400
Buildtime = 12.0
End

Edited by user Wednesday, April 17, 2019 6:36:11 AM(UTC)  | Reason: Not specified

Offline UTD^Force  
#4 Posted : Wednesday, April 17, 2019 8:01:56 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
I will just quote what skymix said and explain it:

Originally Posted by: SkyMix_RMT Go to Quoted Post
If we are talking about map.ini file, you can't change buildcost with a map.ini, it's just not possible, you can however, use a different unit that has the price you're looking for, then give it completely new code for the original unit you wanted.


A multiplayer map uses map.ini, so you can't change the cost of units in map.ini.
The solution is to take a unit that has the price which you are looking for, and replace its entire code with the unit you want to change the price for.

Edited by user Wednesday, April 17, 2019 8:02:31 AM(UTC)  | Reason: quote code error

Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
thanks 2 users thanked UTD^Force for this useful post.
SkyMix_RMT on 4/17/2019(UTC), MoqqyT on 4/17/2019(UTC)
Offline SkyMix_RMT  
#5 Posted : Saturday, October 15, 2022 6:28:28 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
UPDATE: it's actually possible to change.

Use this:

PlayerTemplate <FACTION NAME>
ProductionCostChange = <OBJECT NAME> <FLOAT>%
ProductionCostChange = <OBJECT NAME> -<FLOAT>%
ProductionTimeChange = <OBJECT NAME> <FLOAT>%
ProductionTimeChange = <OBJECT NAME> -<FLOAT>%
End
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
thanks 1 user thanked SkyMix_RMT for this useful post.
UTD^Force on 10/17/2022(UTC)
Offline BLEACH  
#6 Posted : Saturday, June 24, 2023 5:37:12 PM(UTC)
BLEACH
Private
Joined: 6/22/2023(UTC)
Posts: 9

How do I change the build cost with the ini? where do I put the code
Users browsing this topic
Guest
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.