Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - desert

#1
Mods / [Mod Request] Enhanced Trade Beacon
July 18, 2017, 12:26:37 PM
A trade beacon with full-map radius. Accomplished by either creating a new beacon-like structure with a larger radius, or modding the original beacon. Likely involves C#.

For example:

Replace the TradeableCellsAround function in the object Building_OrbitalTradeBeacon with code enabling full-map coverage for the trade beacon.
public static List<IntVec3> TradeableCellsAround(IntVec3 pos, Map map)
{
Building_OrbitalTradeBeacon.tradeableCells.Clear();
if (!pos.InBounds(map))
{
return Building_OrbitalTradeBeacon.tradeableCells;
}
return map.AllCells.ToList();
}


Supplementary edit to the structure XML removing the building radius highlight. In the Core mod Thingsdef_Buildings file "Buildings_Misc.xml", the code enabling radius highlight seems to be:
<placeWorkers>
      <li>PlaceWorker_ShowTradeBeaconRadius</li>
    </placeWorkers>


Reference to this thread.
#2
The thread title poses a more general question, but my immediate interest is in getting colonists to eat single servings of insect jelly.

Insect jelly gives a mood buff, so that's nice, but I don't want colonists to demolish my inventory for full meals.

Morsels, eh?
#3
Mods / [Mod Idea] Re: Trade Beacon Limitations
July 06, 2017, 09:56:32 AM
What could be done to allow full-map trade through a beacon or console, like with land-agent trade?

At the very least, for the existing beacon framework where would I go to change the beacon stockpile radius?
#4
Ideas / Trade Beacon (Full) Map Coverage
June 30, 2017, 01:00:29 AM
Why does the beacon delimit a space in which trade items are detected? Besides the fundamental sense that it should just have full coverage in the first place, a limited beacon requires the player to further wrestle with the game's extremely finicky stockpile system. Having direct trade through the comm console with full map coverage (just as with personal trade on the ground) would save the player time and effort as a matter of quality of life.

Speaking of which, I would be grateful to know of any existing mods that implement this or something like it, or information on how to implement it for myself.