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

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: 387
Portugal

Thanks: 80 times
Was thanked: 131 time(s) in 94 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
 2 users thanked SkyMix_RMT for this useful post.
UTD^Force on 4/17/2019(UTC), 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: 793
Jordan
Location: Middle east

Thanks: 448 times
Was thanked: 161 time(s) in 145 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

<3
The lilacs where the robin built,
And where my brother set
The laburnum on his birthday,
The tree is living yet!

"I rarely have many failures. If I'm baking a cake and it fails, it becomes pudding."

"Sometimes I sit and wonder, "why am I not in a mental asylum?" Then I take a good look at everyone around me and realize, maybe I am."

A flower does not think of competing to the flower next to it. It just blooms.
 2 users thanked UTD^Force for this useful post.
SkyMix_RMT on 4/17/2019(UTC), MoqqyT on 4/17/2019(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-2020, Yet Another Forum.NET
This page was generated in 0.598 seconds.