Noob question on the new TOTPP update v0.16.

Buck2005

Prince
Joined
Feb 27, 2009
Messages
483
roadTrade (get/set - ephemeral) (since 0.16)
totpp.roadTrade[map] -> integer
Returns a bitmask with the terrain types that receive an initial trade arrow when a road is built. Provided by the Initial trade arrow for roads patch.



Does this option only work with Lua? Or is it possible to include it in the mod in the RULES? I avoid using Lua as it doesn't work in multiplayer.
I seem to have installed the update correctly. Since the game is launched through the launcher. However, I do not see any changes.
 
From the patch description of the TOTPP Launcher:

Enables a new section in RULES.TXT, @ROADTRADE. This allows configuration of the initial trade arrow for roads that is hard-coded to the first three terrain slots by default.
The @ROADTRADE section consists of a list of terrain types, e.g.:
@ROADTRADE
Plains
Grassland
Forest
Notes:
- As an alternative to the name of the terrain, its ordinal index or its abbreviation can be used. "0" and "Drt" are the same as "Desert", etc.
- @ROADTRADE1 .. @ROADTRADE3 can be used for secondary maps, similarly to @TERRAIN1-3.
If Lua is enabled, this patch registers the 'totpp.roadTrade' table for in-game read/write access to these values. This table is indexed by map, and returns a bitmask representing the terrain types that are set.
 
Enables a new section in RULES.TXT, @ROADTRADE.

Thanks for the answer.

Rules after the correct installation of update 016 RULES should be automatically updated? My RULES have not been updated. Does this mean I did the update incorrectly? Or @ROADTRADE section can I manually add RULES to the old file?



This allows configuration of the initial trade arrow for roads that is hard-coded to the first three terrain slots by default.

I am far from programming. To reformulate this in simple words, did I understand correctly that this update allows you to add or remove the trade bonus that the road gives on one of these three types of terrain? If this is the case, I will continue to struggle with installing the update. If this option only works in single player mode, it doesn't make sense to me.
 
Rules after the correct installation of update 016 RULES should be automatically updated? My RULES have not been updated. Does this mean I did the update incorrectly? Or @ROADTRADE section can I manually add RULES to the old file?

You have to manually add the @ROADTRADE section to the existing rules file.

I am far from programming. To reformulate this in simple words, did I understand correctly that this update allows you to add or remove the trade bonus that the road gives on one of these three types of terrain? If this is the case, I will continue to struggle with installing the update. If this option only works in single player mode, it doesn't make sense to me.

All the 'hard coded' stuff means here is that before this patch, you couldn't configure what terrain added a road. Now, you just have to add a @ROADTRADE section in the rules to make it work.

I've attached a rules.txt for the original game, that removes the trade bonus for roads from grassland, and adds it for hills and forests. It is at the bottom of the file.
 

Attachments

WOW! It works! )

Many thanks! The built-in road bonus on three terrains was one of the most annoying and ridiculous elements of the original vanilla gameplay. Another such element is the built-in river trading bonus. Hopefully in the future it can also be made manageable (toggled on and off as desired).

Thanks again for the help and the RULES file. Also, I am now confident that the update is working correctly for me. I will try to figure out the rest of the functions on my own.
 
Back
Top Bottom