RimWorld

RimWorld

130 ratings
Caravan Activities Framework
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
1.129 MB
21 Oct, 2023 @ 8:26am
15 Jun @ 3:18am
4 Change Notes ( view )

Subscribe to download
Caravan Activities Framework

Description
Feel free to join my discord if you want to drop some thoughts: https://discord.gg/uQzpnCdBPS

Welcome to Caravan Activities Framework!

It's an easy to use XML-based framework that allows you to add Caravan Activities by adding simple XML objects. For adding new stuff, refer to existing activities as well as the FrameworkGuide.txt.

Framework possibilities:
* You can define an activity for a caravan to be able to perform on the world map
* Each new activity adds a new gizmo
* Each activity can have many Options to choose from
* Options are risks and outcomes
* Activities can be limited to particular biomes; roads, rivers and base proximity - base proximity can be further limited by base-faction's tech level
* Each activity incurs a cooldown on the tile it's performed on, and it's customizable.
* Each of the Options can be limited to particular skill levels
* Each of the Options may or may not require specific items
* Each of the Options may specify items that boost the outcome
* Each of the Options has good and bad outcomes defined for it. Good outcome happens once at the end of activity. Bad outcomes are rolled every day of the activity.
* Outcomes can include items, relationship changes, ideology changes, colonist injury or death, pollution change.

Activities defined by default are:
* Offer help to a nearby faction base for goodwill and silver
* Steal resources from a nearby faction base, risking death and injury
* Chop down some trees for wood, risking injury and death
* Forage some plants
* Hunt some animals, risking injury and death
* Mine some resources, risking injury and death
* convert faction to your ideology
* clear pollution
This list will be expanded whenever I find a new idea and somet time to add it :)


Compatibility:
* VF is compatible
* SRTS is not compatible (SRTS caravan won't be able to perform activities)
* Aerocraft Framework - I have no idea
* Almost There - seems to be incompatible

Credits:
idea and funding - Bambaryła
implementation and bug fixes - Temmie

Translation:
Chinese: https://steamproxy.net/sharedfiles/filedetails/?id=3058707038

Github:
https://github.com/databobek/RimworldCaravanActivitiesFramework
71 Comments
Bambaryła  [author] 15 Jun @ 1:09am 
@Akronyhm
thanks bro, i responded to your pull request
Akronyhm 14 Jun @ 7:41pm 
I looked into the errors that were thrown when driving a vehicle on the map.
I had to decompile the dll's to access the codebase, it appears that the patch that you commissioned from Temmie is the culprit.

It looks like the "Vehicle Framework" changed some variable names around, and as a result the patch/mod is unable to find the "PathFollower"-component on the vehicle caravan object...

I recompiled the DLL with the correct property names using dnSpy and the mod started behaving like it was supposed to again (atleast insofar it relates to driving vehicles on the map)
Pengus 30 May @ 11:22pm 
yeah that tracks for most of the mods im looking at. thanks for letting me know tho
Bambaryła  [author] 30 May @ 11:20pm 
@Chris Ben'wah
it has some issues but it works
Pengus 30 May @ 6:32pm 
i understand you didn't code this, and its recompiled to 1.5 but just to be safe, theres nothing inherently wrong or nonfunctional about this, correct? Should still function?
Bambaryła  [author] 21 May @ 2:06am 
@Seti
no idea, i didnt code it
Seti 17 May @ 2:11am 
btw have an issue where using this mod with vehicles the game starts log spamming errors, do you know what could be causing it?
Belhun 25 Apr @ 10:10pm 
@IslandPotato thank you for mentioning it is when there is an animal with the caravan, iv just assumed it never worked because i allways have an animal lol. Been going Crazy trying to figure it out
Bambaryła  [author] 11 Apr @ 10:26am 
Recompiled for 1.5
IslandPotato 5 Mar @ 3:36am 
@ Bambaryła no worries, thought I would just highlight the issue