Offworld Trading Company

Offworld Trading Company

View Stats:
Terhonator Dec 16, 2016 @ 12:16pm
Modding: Remove black market
Hi! I just started modding.

What is best solution to remove black market?
Last edited by Terhonator; Dec 16, 2016 @ 12:24pm
< >
Showing 1-5 of 5 comments
jbowers Dec 16, 2016 @ 12:50pm 
Depending what you're trying to accomplish:

XML:
You could make remove xml entries for black market items and their dependencies. They are in sabotage.xml and black-market.xml depending how much you want to strip them from the game or if you want the sabotages to be around for some other acquisition type.

C#:
-You could disable sabotages by setting the NO_SABOTAGE game option
-This will hide the black market UI:
AppGlobals.GameHUDHelpers.SetVisible(HUDElement.BLACK_MARKET, false);
-You could extend GameServer and override the function doBlackMarkets which makes items available.

Olden Sloe Dec 17, 2016 @ 7:26am 
Why remove the baest part of the game, without the black market the game is simply and economic model. Love the Black Market, it makes the game fun to play.
Terhonator Dec 17, 2016 @ 8:32am 
Well at this point I am just learning how to remove / add things.
But yes, as you saied "simple and economic model" is what I am trying to achieve at first then add more layers.
I will test removing some of the game options first.
Terhonator Dec 17, 2016 @ 8:56am 
Ok, lets say I want to modify game options so that game option "No sabotage" is selected [x] and player cant select to turn it off. [ ]

<zType>GAMEOPTION_NO_SABOTAGE</zType>
<Name>TEXT_GAMEOPTION_NO_SABOTAGE</Name>
<Description>TEXT_GAMEOPTION_NO_SABOTAGE_DESC</Description
<LobbyToggleOutput>TEXT_GAMEOPTION_NO_SABOTAGE_LOBBYTOGGLE</LobbyToggleOutput>
<bDefaultValueSP>0</bDefaultValueSP>
<bDefaultValueCampaign>0</bDefaultValueCampaign>
<bDefaultValueMP>0</bDefaultValueMP>
<bDefaultValueQM>0</bDefaultValueQM>
<bMultiPlayerOption>1</bMultiPlayerOption>
<bSinglePlayerOption>1</bSinglePlayerOption>
<bCampaignOption>0</bCampaignOption>
<bPriorityOption>0</bPriorityOption>
<bRequiresDLCMaps>0</bRequiresDLCMaps>
<bRequiresDLCCeres>0</bRequiresDLCCeres>

Which of these fields (or somewhere else) modifies that?

When I am developing my mod I need to restrict some game options at first.
Last edited by Terhonator; Dec 17, 2016 @ 9:01am
Olden Sloe Dec 17, 2016 @ 4:00pm 
Oh my, I have a bad code! Don't know how ti do that!
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Dec 16, 2016 @ 12:16pm
Posts: 5