Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
HugsLib is not as bad for performance as many people say. I had to look at the code to port this mod, and it is quite well done. It's just that it hooks things in weird places, because it came from a time where the Vanilla rimworld code wasn't as friendly or convenient for modders. Currently, most if not all functions could be easily done with vanilla hooks.
And about the hotkeys, if you mean all the instances about holding alt or control, all of those are now Event.current checks.
`WorldRendererUtility.WorldSelected = true` (world is being rendered in background)
`Find.CurrentMap != null` (local map exists and is active)
But we're actually interacting with the map, not the world.
My fix was to use 'WorldRendererUtility.DrawingMap' to tell us whether we're actively interacting with a map as opposed to the world view, regardless of the background rendering state.
On line 68 of the PawnSquadHandler.cs, this is what you currently have;
if (ViewingWorldMap) {
My fix was;
if (ViewingWorldMap && !WorldRendererUtility.DrawingMap) {
Also for some performance gains; you could look into changing the Hotkeychecks to be every 3 ticks instead of every tick, possibly look into moving away from event polling and use direct unity input key state checking.
Also, I added a link to my github repo in the description, In case you want to see what I'm making. In short, I moved most things to a MapComp to have positions being saved on per map basis, and I'm in the middle of simplifying a few functions to ease any future maintenance task.
Ayy lets go! I was actually in the process of doing this myself too, but got caught up in other things. I did already have a working fix for the gravship in place for the hugslib version that I never uploaded since the OG version updated. Wanted to save it for the non-hugslib version.
If you'd like to compare, feel free! Also, I'm unsure if you fixed the issue with squad hotkeys in space that the original Defensive Positions upload has that I had fixed in my 1.6 version, but I can help you with that if it's not.