Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 12:14 am
All times are UTC + 0
My walls won't change price
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
dodgevipergts
Chem Warrior


Joined: 31 Jan 2011

PostPosted: Sun Dec 29, 2013 12:02 am    Post subject:  My walls won't change price
Subject description: Can you believe it. Something so simple. This kind of thing only happens to me
Reply with quote  Mark this post and the followings unread

So I thought I'd do something as trivial as changing the price of GAWALL and NAWALL to 100 from 250 by changing 1 single tag, I've done this same procedure about dozen times before throughout my years of modding TS and never had any problems until now...

When I change the walls price to 100, it will still be 250 in game for some unknown reason.

What I also noticed is when I took a look at the wall entries in the rules.ini before i edited them, there price was set to 50 but still cost 250 ingame.

I know this is just a small problem, but it's a really annoying one. Why this is happening i don't know. The only thing i can think of is it's a issue with the FreeTS version of TS that i'm using right now. Anyone else using FreeTS and get this problem?

Back to top
View user's profile Send private message
Bittah Commander
Defense Minister


Joined: 21 May 2003
Location: The Netherlands

PostPosted: Sun Dec 29, 2013 12:54 am    Post subject: Reply with quote  Mark this post and the followings unread

This is happening because the prices of GAWALL and NAWALL are hardcoded in the Game.exe file.

There are 2 ways to solve this:
either un-hardcode the prices by opening the Game.exe file with a hex editor, then searching for GAWALL and NAWALL and replacing their strings entirely with 0-bytes
or
simply change the IDs of GAWALL and NAWALL to something else in Rules.ini and give them Image=GAWALL/Image=NAWALL.

_________________

Back to top
View user's profile Send private message ModDB Profile ID YouTube User URL Facebook Profile URL
dodgevipergts
Chem Warrior


Joined: 31 Jan 2011

PostPosted: Sun Dec 29, 2013 1:02 am    Post subject: Reply with quote  Mark this post and the followings unread

Bittah Commander wrote:
This is happening because the prices of GAWALL and NAWALL are hardcoded in the Game.exe file.

There are 2 ways to solve this:
either un-hardcode the prices by opening the Game.exe file with a hex editor, then searching for GAWALL and NAWALL and replacing their strings entirely with 0-bytes
or
simply change the IDs of GAWALL and NAWALL to something else in Rules.ini and give them Image=GAWALL/Image=NAWALL.


I was about to do the second option. But I was so sure i'd changed the price before though. And thinking that really annoyed me. I think i'll edit the game.exe just to satisfie me

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1461s ][ Queries: 11 (0.0073s) ][ Debug on ]