边缘世界 RimWorld

边缘世界 RimWorld

Yayo's Combat 3 (Continued)
985 条留言
Rex705 8 小时以前 
I thought this mod was broken again with ammo not showing up, but then i removed a mod and it came back. So if you have the Lock apparel mod it will cancel out the ammo icon for it's own.
Syrus 9 小时以前 
Currently everything is quite stressful, but next month maybe, since I will have some time off to spend, I will hopefully find some time to look into developing the merged version again in that case.

In case I finish and release it, I will inform you.
Mlie  [作者] 11 月 22 日 上午 8:23 
@Syrus Regarding the 1.6 update, my workflow is not specific as I just let the script choose the next mod to work on. During that time I dont really have the time to do much else.
I have no problem with anyone taking over the mod, I have no personal interest in it. Ive let other mods go to more invested modders before so no problem there. If you release a version Ill just point to yours and deprecate this.
Syrus 11 月 22 日 上午 7:42 
@Mlie
To correct what I stated rearlier, I was mistaken about "Game.FinalizeInit", that is called after the world is loaded. "LongEventHandler.ExecuteWhenFinished" is a substitute for DefsLoaded apparently

Anyway, I used it to call ApplyDefPatches and it works for what I wanted

In regard to the control of how the mod works:
When 1.6 was released I suggested to take over the development of Yayo's Combat, merging the Addon into it. Would have reduced your workload, but as this mod was updated the day after I announced that intention, I considered that there was no interest for it, so I stopped developing the integrated version and stuck with modifying it via Harmony.
Mlie  [作者] 11 月 21 日 下午 10:52 
@Syrus I wasnt really involved in the removal of HugsLib, it was added by a PR. That route is open to you too as the repo is public, if you want even more control of how this mod works.
Syrus 11 月 21 日 下午 3:37 
Ok, letting me determine when to run the patches should work.

You could've just reimplemented the way HugsLib handled "DefsLoaded" though, applying the patches once Defs initialization is done on game start, instead of on loading into the world.

Guess that is how I will use the method in the addon then. I'll look into it tomorrow though, I'm too tired for it now
Mlie  [作者] 11 月 21 日 下午 3:12 
@Syrus Well the patch method is public so you could just call it when needed to be sure theyve been applied. It will never run more than once so feel free to trigger it so it works in your code.
Syrus 11 月 21 日 下午 3:04 
That's what I do, problem is, to create the settings I need to know which weapons use ammo (and which ammo). If the ammo is patched to them only after loading into the world, it means the settings cannot be opened (or changed) before that point
Mlie  [作者] 11 月 21 日 下午 2:36 
@Syrus Perhaps you can just postfix the patch-applier method?
Syrus 11 月 21 日 下午 2:32 
Yes, it now applies the patches to the defs properly and only once, but this way prevents my addon mod from modifying the ammo types of weapons if one has not yet loaded the game world once
Mlie  [作者] 11 月 21 日 下午 2:14 
@Syrus Strange, perhaps it has to do with load order as it worked when I tested it.
Ive moved it later in the process now, hopefully it will work better for you now.
Syrus 11 月 21 日 下午 1:22 
Was trying to make the addon mod work with the latest change and I'm pretty sure that ApplyDefPatches being called in the static constructor is too early: at that point the Defs are not yet loaded.
To checkk it, I added a debug print to the method and "DefDatabase<ThingDef>.AllDefs" is empty, so the Def patches are not actually applied (but there is also no error, as it just does nothing)
Mlie  [作者] 11 月 21 日 下午 12:46 
The reload widgets should stop multiplying now
Thanks for the detailed report Syrus!
Syrus 11 月 21 日 上午 11:58 
With the change to remove HugsLib, "YayoCombatCore.ApplyDefPatches" is now called once you load into a map, instead of after the game has loaded the defs, as was previously the case with "DefsLoaded" (from HugsLib).

For reasons unknown to me, the method is also called twice when loading into a map. I have never worked with the "WorldComponent", no idea why it is created twice.

This causes issues with my Yayo's Combat AddOn mod, preventing changing the AmmoDefs, as well as likely also causing the Reloadable-CompProperty to be applied twice (what @Gen_Goldo mentioned).

I suggest executing that method only once, after the game has started and once all Defs have been loaded, iIrc I used "Game.FinalizeInit" for that in another mod.
Sponge 11 月 21 日 上午 11:55 
Weapons have multiple ammo chargers, have a bow that had this five times, shows in weapon desc and in UI: example

Long bow
Remaining Charges 21 / 21
Remaining Charges 21 / 21
Remaining Charges 21 / 21
Remaining Charges 21 / 21
Remaining Charges 21 / 21

Looks like everytime you load a save, it adds an extra line to the description
Gen_Goldo 11 月 21 日 上午 11:02 
Bug after the update there's 2 stats for the ammo counter and ammo type in the description.
Hugalafutro 11 月 21 日 上午 5:55 
It would appear all is well after latest update I fought a mech cluster and only lost an eye and a nose and didn't have to dev build 100 turrets to kill 5 mechs.
Pazik 11 月 20 日 下午 4:20 
Some wierdness I noticed is multiple ammo counts in the UI when examining a weapon, and when selecting raiders
Pazik 11 月 20 日 下午 2:00 
Disregard, it seems fixed. Must have been a one time thing, or workshop update wierdness
Mlie  [作者] 11 月 20 日 下午 1:40 
@Pazik I dont know what a janky ui is
Pazik 11 月 20 日 下午 1:23 
Ammo is now working, but the UI is a little janky. Is this a bug or a mod conflict?
kzs583 11 月 20 日 上午 6:30 
I always appreciate your kindness.
Hugalafutro 11 月 20 日 上午 2:36 
Thanks for the update, my fighters got knocked up so I gotta wait till the little beans pop out before trying War Queen again. Fingers crossed I can make a dent in their armor :D
Mlie  [作者] 11 月 19 日 下午 12:11 
The settings should now be applied correctly on game-start, sorry about that
Ur8695 11 月 19 日 下午 12:08 
@CentiSully "Yayos Combat 3 - Addon" mod was doing it for me, take off that mod and it works fine
Hugalafutro 11 月 19 日 上午 9:37 
2 Scythers and ~8 Urchins destroyed >50 turrets and all the shots are glancing off of them feels like I never ditched CE :D

https://steamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3608508970
CentiSully 11 月 19 日 上午 3:28 
To get the previous working version, go here and download v1.6.3 , then extract it to your rimworld mods folder.

https://github.com/emipa606/YayosCombat3/releases?q=1.6.3&expanded=true

Afterwards just make sure that version is enabled in your modlist. Then be sure to reenable ammo (which requires a restart after enabling).
Rex705 11 月 19 日 上午 3:03 
After the update Yayo Combat isn't active anymore even with it turned on in the options. I have restarted the game a bunch of times but it remains off the little bullet ammo icon is not there. I got it working once after a bunch of restarts but then after coming back later it is off again.
CentiSully 11 月 19 日 上午 3:02 
Assign tab doesn't show for me now. Also UI for ammo isn't visible anymore.
Hugalafutro 11 月 19 日 上午 2:37 
First of all thanks for no hugs! Last mod that required it.

Is there something going on with mechanoids after the update though? Before the no-hugs I killed Diabolus with my current squad/weapons more or less effortlessly. I summoned War Queen right after updating and removing hugs and I literally can't make a dent in either the scythers or pikemen, nor the little urchins. I built 100 uranium slug and sentry turrets in dev mode, they barely killed few pikemen before the urchins and scythers mowed them down.

Or it's more like the accuracy is off, all combat logs are like this 99.99% shots on the mechanoids missing https://pastebin.com/hQ2B1QsW
The Dutchman 11 月 18 日 下午 5:33 
Fantastic
Dizzy Ioeuy 11 月 18 日 下午 4:52 
No HUGSLIB! YEAH THANK YOU!!!!!!!
Pazik 11 月 18 日 下午 4:29 
I don't see the ammo anymore? And I did re-enable in options and restart the game
Gerewoatle 11 月 18 日 下午 3:19 
Now that's pretty damn huge.
Rex705 11 月 18 日 下午 12:23 
OMG thank you you sweet sweet legends Hugslib was the mod giving me so much headache with errors breaking my UI and god knows what else.
Mlie  [作者] 11 月 18 日 下午 12:17 
Thanks to Zaljerem, this mod no longer needs HugsLib! All settings should transfer over to the new system but you may need to restart the game one extra time if you were using the ammo-system
Mlie  [作者] 11 月 5 日 上午 2:01 
@explodoboy Please see the Reporting Issues section described above
explodoboy 11 月 5 日 上午 1:47 
This mod appears to have a compatibility issue with Only If 'Tolerance' Below in Drug Policy . When both mods are active, YC3 appears to fail to load.
Tika 11 月 4 日 下午 1:30 
@Mlie Thanks for the quick response on it! Totally understand not having the time, thanks for the answer~
Mlie  [作者] 11 月 4 日 下午 1:19 
@Tika Not without a full rewrite of the mod-settings, something I do not really have time to do at the moment.
Tika 11 月 4 日 下午 1:16 
Is there anyway to get away from the HugLib requirement for this mod? I adore the changes this makes, but am trying to remove Hugs from my load order entirely.
Anon Tokyo 10 月 29 日 上午 4:54 
anyone knows specific algorithm of armor? It confused me a lot, 40% penetration weapon could deal complete damage against 140% armor mechnoids
Mlie  [作者] 10 月 11 日 下午 1:44 
@rhyndo I see, havent tried those
rhyndo 10 月 11 日 下午 1:40 
@Mlie yayo had some old tutorials on how to add your own ammos to weapons, on this github page: https://github.com/rimworldYayo/Yayo-s-Combat/wiki/Custom-Ammo-Setting-Tut
Mlie  [作者] 10 月 11 日 下午 12:04 
@PARSA TV Should be fixed now
PARSA TV 10 月 11 日 上午 11:47 
Downed/dead raiders don't drop anything anymore after Odyssey update. I can't find a mod option to control this.
Mlie  [作者] 10 月 10 日 下午 10:44 
@rhyndo What custom ammo?
rhyndo 10 月 10 日 下午 6:56 
does custom ammo still work?
Sir Bitar 9 月 27 日 下午 1:28 
Downed/dead raiders don't drop any ammo anymore after Odyssey update, even though they had ammo before downed. I can't find a mod option to control this. Is this a bug?
Rovstam 9 月 27 日 上午 12:58 
I LOVE THIS MOD SO MUCH