Skip to content

Mod verification & space colony fixes & destroy defeated factions#8

Open
myszsoda wants to merge 12 commits intoTorannD:mainfrom
myszsoda:main
Open

Mod verification & space colony fixes & destroy defeated factions#8
myszsoda wants to merge 12 commits intoTorannD:mainfrom
myszsoda:main

Conversation

@myszsoda
Copy link
Copy Markdown
Contributor

@myszsoda myszsoda commented Apr 8, 2026

  • Fix issues with scanning for paths in space
  • Revert some changes and do optimization
  • Defeat factions without settlements and parties. This just sets flag to mark faction as defeated, as this could have only been done by player when destroying last settlement. Defeated factions are marked and do not generate quests nor quest raids.
  • Add detection for incompatible mods. There has been lot of bitching 'I have incompatible mods and RimWar breaks'. We ain't fixing that, just add big error so people can't complain.

myszsoda added 12 commits April 2, 2026 23:27
In recent fixes we assured that space destination tiles are not scanned
when checking for objects in range. But we forgot that player can also be in
space and this creates huge log spam since scanning for objects in range
for Alert is done all the time.
Fix it in two places - in function polling and in Alert call.

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
This reverts commit ce00543.

After considereation and testing, for big ranges and longer saves,
having such low limit creates trend towards using caravans mostly,
due to amount of friendly settlements in proximity.
Alerts in Rimworld are updated every tick and there are some measures
that need to be taken by mods. Generally AlertsReadoutUpdate does
update values every 60 ticks, but that is still quite a lot.

While solution in this commit is far from optimal,
this improves performance a bit and makes notification readable.

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
In Vanilla faction can be defeated if all its bases are destroyed.
This only triggers for player actions so this does not work for RimWar.
Defeated factions is highlighted in other way and cannot generate quests,
quest raids and raids of course in Vanilla.

Add this feature for RimWar, polling if faction has bases once in a while.

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
Threading still has many problems and we would need to rewrite a lot of logic
for proper multithreading. Eg. current codebase does not use mutexes at all
and is generally not secured enough to run multithreaded.
Also RimWorld itself does change what can be run from main thread and
what cannot, so it is better to disable it (by default only).

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
Recently we added setting of 'defeated' flag for factions without settlements,
but we missed option that there might be party on the map that captures
settlement.
Add check if all parties are dead before defeating faction.

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
Create separate function that allows passing prefix/sufix function without
too much null passing. It makes code more clear and allows to add new patches
easier.
Also change some function names, there is bit of inconsequential naming of some
function (missing prefix/sufix in function name).

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
People love complaining 'RimWar is broken' while having >800 random mods (true
story). We cannot and WILL NOT support some random mods. This commit purpose
is to add 'big red warning' that some mods are breaking RimWar. It will work
only when RimWar is loaded after them though.

One of examples used for testing is VEF (Vanilla Expanded Framework) and
VVE (Vanillla Vehicles Expanded).

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
Remove leftover '$' signs, forgot how strings work in c#.

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
Original implementation of incompatible mods has not been true in all cases,
as we were checking all methods but patching only one usually.
This has been fixed by simple check which method is being parsed.

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
Frankly I would gladly leave it as error to be visible,
but change it to warning, as patching will process further, even with
incompatible stuff.

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant