• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Food as Contraband?

kaeldragor

Landlubber
Food is sometimes contraband, which doesn't make much sense.

I checked the program\store\initGoods.c file, and the canbecontraband value was set to 0, which I thought would have controlled this.


Can anyone tell me if I'm looking in the wrong place for this?
 
Just a hunch, but try <b>Islands_init.c</b> and search for <b> = GOOD_FOOD;</b> Any one of those that has "contraband" in front of it might need to be commented out.
Comment those lines out, and then see if food is still contraband.


Of course I don't have to tell you to back up the file, first just in case <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

[edit: it looks like three islands have contraband food, so you need to just change the three. And you might have to adjust the "id" tags when you remove food, but I'm not sure.]

[edit: I just tested it and it works, but you have to start a new game.]
 
<!--quoteo(post=336617:date=Jul 11 2009, 06:06 PM:name=Dread_Pirate)--><div class='quotetop'>QUOTE (Dread_Pirate @ Jul 11 2009, 06:06 PM) <a href="index.php?act=findpost&pid=336617"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Just a hunch, but try <b>Islands_init.c</b> and search for <b> = GOOD_FOOD;</b> Any one of those that has "contraband" in front of it might need to be commented out.
Comment those lines out, and then see if food is still contraband.


Of course I don't have to tell you to back up the file, first just in case <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

[edit: it looks like three islands have contraband food, so you need to just change the three. And you might have to adjust the "id" tags when you remove food, but I'm not sure.]

[edit: I just tested it and it works, but you have to start a new game.]<!--QuoteEnd--></div><!--QuoteEEnd-->

Thank you, I appreciate that.
 
That's an awesome tweak, thanks for that. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
That canbecontraband variable is probably for when the random system is enabled. AOP had import/export/contraband randomized at the beginning of each game, I'm assuming Seaward simply turned it off and set the stuff manually instead.
 
Excellent find, definitely something to be added to any modding we do.

Cap'n Drow
 
Did you have to add an id for food from the 3 that were contraband? If a line reads: Islands[n].Trade.Contraband.id4 = GOOD_FOOD;

What do I comment out?
" Islands[n].Trade.Contraband.id4 = GOOD_FOOD;" ???(is this commented out)???

Also can an id be added to each settlement to make food an export so that there is a surplus in every port? Can you add an 8th export id for food?
Thanks
 
Back
Top