Posted by: evilhobo - Friday, October 5, 2007 6:01:44 PM
I'm changing a few in map.ini but it's not affecting the game. (actually, it changes the tooltip but only charges the original value, takes original time to build)
It seems to work for upgrades, just not working for units.
Anyone else have this problem?
this is in zh btw. its a skirmish/lan map
Posted by: Me Myself and Pi - Friday, October 5, 2007 6:33:45 PM
Upload the map.ini file so that I can find what the problem is. Although is sounds like in your post you meant "INI", not "map.ini". If you modified one if the object INI files, then just upload the entire INI file & tell me which unit(s) you modified.
Posted by: evilhobo - Saturday, October 6, 2007 8:54:18 PM
Its not in an ini file, its in map.ini. Its only a modification for a map, not the entire game.
I altered americabarracks to produce rangers in pairs, like redguards, and also modified the behavior of the rangers to include stealth after advancedtraining. This all works well. However, i need to change buildcost and time, for obvious reasons. using the code
Upgrade Upgrade_AmericaAdvancedTraining
BuildTime = 90.0
BuildCost = 8000
End
works in changing both time and cost of the upgrade but
Object AmericaInfantryRanger
BuildCost = 700
BuildTime = 6.0 ;in seconds
End
does not change how much rangers cost, or the time it take to build.
when mouseover the command button to train a ranger (in game), the tooltip correctly shows rangers costing 700, but when you click on the button, it only charges the original price (225 i think). similarly build time is unaffected.
is this because buildcost and buildtime does not work in map.ini? if so why does it work for upgrades but not units?
is there a specific place that buildcost and buildtime must occur in the object (currently, there is some code above and below buildcost and buildtime)?
thanks for any help.
Posted by: evilhobo - Saturday, October 6, 2007 9:01:40 PM
just did some more tests. i deleted all the other code around buildcost and time to make sure that wasn't the problem, and it still only charges 225.
then i changed the cost to 60000 (in other words, unaffordable).
in game, the commandbutton to train ranger is greyed out, the tooltip informing me that i have insufficient funds. So the game obvious is realising that the value has changed, but when purchasing, it simply ignores the changes for some reason.
could it be something to do with the commandbutton itself?
Posted by: Me Myself and Pi - Sunday, October 7, 2007 6:23:58 AM
Not sure, go ahead & upload the map.ini file in a ZIP folder so that I can look at it.
Posted by: evilhobo - Sunday, October 7, 2007 6:04:57 PM
here the ini.
try changing the buildtime and cost to something ridiculous.
[b]Download Attachment:[/b] [url=http://www.cncgeneralsworld.com/public/files/evilhobo/map.zip][img]http://www.cncgeneralsworld.com/forums/images/icon_paperclip.gif[/img] map.zip[/url]
1.01 KB
Posted by: Me Myself and Pi - Sunday, October 7, 2007 6:19:04 PM
It worked perfactly for me. The rangers cost $600 & two came out of the barracks. Try using the INI file on a different map. If the same thing still happens, reinstalling the game might help. If it still doesn't work, upload the map folder your using the INI file for so I can look at it.