Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

MoqqyT Offline
#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
SkyMix_RMT Offline
#2 Posted : Tuesday, April 16, 2019 7:11:26 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 388
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
 1 user thanked SkyMix_RMT for this useful post.
MoqqyT on 4/17/2019(UTC)
MoqqyT Offline
#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

UTD^Force Offline
#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: 798
Jordan
Location: Middle east

Thanks: 438 times
Was thanked: 180 time(s) in 164 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

 2 users thanked UTD^Force for this useful post.
SkyMix_RMT on 4/17/2019(UTC), MoqqyT on 4/17/2019(UTC)
SkyMix_RMT Offline
#5 Posted : Saturday, October 15, 2022 6:28:28 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 388
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
 1 user thanked SkyMix_RMT for this useful post.
UTD^Force on 10/17/2022(UTC)
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.

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