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 Sat Apr 20, 2024 8:36 am
All times are UTC + 0
New mod feature in the latest patch
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [1 Post] Mark the topic unread ::  View previous topic :: View next topic
Author Message
jonwil
Rocket Infantry


Joined: 24 Jul 2005

PostPosted: Tue Aug 11, 2020 10:10 pm    Post subject:  New mod feature in the latest patch Reply with quote  Mark this post and the followings unread

CCHyper clued me into a new feature in the latest patch that modders will be interested in.
The engine now supports a file called gameconstants_mod.xml that will be read and used to override gameconstants.xml.

If for example you want to override the zoom levels, you would make a gameconstants_mod.xml that contains something like this:
Code:

<?xml version="1.0"?>
<GameConstants>
   <GameConstantsClass>
      <CNCZoomFactors network="client" overwrite="true">
         <ZoomFactor>1.0</ZoomFactor>
         <ZoomFactor>1.15</ZoomFactor>
         <ZoomFactor>1.30</ZoomFactor>
         <ZoomFactor>1.45</ZoomFactor>
         <ZoomFactor>1.60</ZoomFactor>
         <ZoomFactor>1.75</ZoomFactor>
         <ZoomFactor>1.87</ZoomFactor>
         <ZoomFactor>2.0</ZoomFactor>
      </CNCZoomFactors>
   </GameConstantsClass>
</GameConstants>

You then change the numbers to whatever you want (the above numbers are the stock settings)
When the game loads, it will use these settings in gameconstants_mod.xml instead of the stock settings in gameconstants.xml. The overwrite="true" bit is important to make it work.

You should be able to override anything in gameconstants.xml this way (although exactly how much of that is actually useful to override I dont know)

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] 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
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can 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.1421s ][ Queries: 11 (0.0076s) ][ Debug on ]