Makes weapons condition tied to it's parts and wise-versa. New weapon and outfit part repair options and repair mechanics.
Optional:
- Keep Crafting Window Opened (link)
Modified version of WPO (most of the credit goes to original creators):
- weapon condition major changes
- part repair major changes with new custom tools and unique tool mechanics
- trader changes, more close to normal TO
- outfit repair and helmet removal
Makes weapons condition tied to it's parts and wise-versa. New weapon part repair options and repair mechanics.
- Now weapon condition is calculated form its parts (other way around for new guns and guns where no calculations were done).
- Weapons can still be field-stripped and before, and replacing parts in field conditions slightly degrades them.
- Welding kit added to repair parts below 50%, below 10% on workbench (all using scrap as a resource).
- Welding kit has condition, but does NOT get used up when conditions reaches 0%, instead it can be refilled with propane gas for more repairs.
- Weapons with missing parts cannot be repaired with mechanic or sold (no stripping and selling abuse).
P.S.
Post in the comments all errors you have.
My modding discord (link)
24-02-2023
- fixed unjamming weapons, NOW FOR SURE
23-02-2023
- removed KCWO from requirements and nil-proofed ':UpdateUI' method
10-01-2023
- additions to trader_autoinject (some gamma additions?)
05-01-2023
- fixed disassembly for BaS kit/composite weapons
- fixed some parts of tader_autoinject script, better callback and function fixes
25-12-2022 - hotfixes
- fixed not being able to fully repair outfit part on last charge of tool
- lessened the amount of exo parts sold
25-12-2002
- can now remove and replace helmets in outfits
- new part repair mechanics
- can now repair armor parts on workbench
- outfit parts tables
22-12-2022
- fixes to unjam mechanic
- unjam automatically triggered on reload button
19-12-2022
- fixes for crashes and lockups
- removed weapon part re-evaluation on weapon spawn (too good gun drops)
new game?
not needed
I seem to be crashing when the SOIP is loaded passed the activated charcoal addon and talking to traders. Other than that, it's working pretty good. Where do I find the portable welder?
fixed now, wait 1-5 mins for upload to update.
Welding are sold by mechanics that have at least basic tools delivered (supply level > 1). Added programmatically on restock, not to require new game.
If not, then i guess, i'm not against compat patches, but i don't usually do them myself for something i don't use.
No dice this time around. Same hard crash. Tried experimenting with the load order more. It crashes when specifically placed after DLTX Activated Charcoal and then talking to a normal trader (not mechanic) which is doubly weird because the crash window says something about a LUA Error with a global setting "blacklisted_comms" is a nil value.
Placing it before mentioned addon does not trigger the cash but the welder never spawns in the mechanics inventory. The rest of the addon's functions work fine though. This was tested at the bandits base. I attempted to rest and see of the inventories reset but the mechanic did not stock the welder.
I can't remove the activated charcoal addon because my saves are bound to it. What might solve the incompatibility problem especially with future conflicts would be converting your addon to DLTX format which I don't know how to do.
I'm certainly enjoying your version of WPO though!
You can try and see what that mod overrides and compare (e.g. git diff) those files and see what are they modifying and create a merge path mod that overrides these files one more time (And of course send them my way and i'll create an installation option for your mod)
I was able to make a patch no sweat, Lines 148 to 152. The person who made the Activated Charcoal mod included some extra lines to the trader auto inject script. It's amazing how well this engine pinpoints the exact cause of it's crashes.
The mod works now, though since you don't use the add-on that conflicts, I'll only send you a copy of the script if there's a demand for it. But hell, it was only 4 lines text..
It's not engine, it's LUA, the best embed language there is. (script language is LUA btw, no idea why they call them .script files instead of .lua)
'blacklisted_comms' is now fixed, wonder how it got there, since it was part of bas and not autoinject, but now it is and fixed, try it out, if you want :)
спасибо за мод, а есть возможность сделать тоже самое но для комбинезонов, чтобы тоже состояние зависело от состояние частей
Ja bi posmotrel kak ti chasti tekstila vitaskivajesh iz kombinezona XD, no mogu poprobivatj so shlemami i exo-skeletami chto-to sdelatj
U menja pojavilisj idei kak mozno uluchitj outfit repair mehaniki, sledushij raz kogda nado budet chinitj bronu dobavlu funkcional
Ja sdelal, chekaj
а это для какой версии wpo?
ne dla, a zamesto, i toj chto po linke
Expression : <no expression>
Function : CScriptEngine::lua_pcall_failed
File : ..\xrServerEntities\script_engine.cpp
Line : 204
Description : fatal error
Arguments : LUA error: .../anomaly 1.5.2\gamedata\scripts\zzzz_soip_repairs.script:150: attempt to call global 'UIRepair_UpdateUi' (a nil value)
stack trace:
Seems like something re-defines item_repair.UIRepair.UpdateUi, in that case mod cannot function as it is incompatible, you are welcome to fix this yourself and send me your version, so i can add it as a install option.
That usually has something to do with mod developer not being smart and redefining whole game script library files instead of writing patches like a normal person.
So the other option is to tell them to fix their code.
Got this error trying to use the welding kit on a pistol part. Mo2 is showing me there are no other conflicts.
Help me fix it, discord link in description, replicate bug and post there your x-ray log, so I can see what happened.
Tested it, no errors on my part
What addons are you running on your build? It feels like these crashes are caused by a missing reference as attempting to weld individual parts results in a crash.
Also note I'm using modified exes for DLTX support and Screen Space Shaders. I don't think that would cause this but it maybe worth mentioning.
Interesting, can you post log files on my discord server, i would look into it.
I regret to inform you that I've decided to take your addon off my roster for now. I've checked and completely reinstalled my entire Anomaly compilation of addons of over 100+ addons and still could not find the addon responsible for such conflicts.
I wish you luck in future projects. Godspeed.
What version of anomaly are you running, myself flat 1.5.2, did you test it just vanilla + my mod did it work then? Logs are always welcome on my discord, if you haven't done yet already (some ppl have already contacted me for different mods)
Come to think of it, it might be some UI overhaul addon of sorts, if it restructures UI classes and their methods, there is no other way except for writing new clauses for those mods, or even new scripts.
As I've said in my earlier statement, I've checked and verified all of them. Nothing touches this line. It has to be the modified exes I'm using for DLTX stuff. You said it yourself you're using a flat 1.5.2 version of Anomaly.
Logs would be nice tho. Because you're not the only person as it seems, i just wander at this point what the hell it is.
Should be fixed in new version
Hello. Do you adapt mods on a paid basis ? I would really like a mod Moddb.com update . Or at least maybe you know who to contact :(
I do on free-will basis, currently busy polishing my mod setup for modpack + work.
does this work with efp v4?
No idea, test it yourself?
! [SCRIPT ERROR]: .../anomaly 1.5.2\gamedata\scripts\trader_autoinject.script:154: attempt to index global 'blacklisted_comms' (a nil value)
* Saving spawns...
* Saving objects...
* 34944 objects are successfully saved
* Game fatal_ctd_save_5.scop is successfully saved to file 'k:/leyenda/anomaly/anomaly 1.5.2\appdata\savedgames\fatal_ctd_save_5.scop'
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_pcall_failed
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 204
[error]Description : fatal error
[error]Arguments : LUA error: .../anomaly 1.5.2\gamedata\scripts\trader_autoinject.script:154: attempt to index global 'blacklisted_comms' (a nil value)
You are missing the mod that adds blacklisted_comms table, which uses
-- used to get the real community of the NPC by checking spawn id
-- author: HarukaSai
function get_real_community(npc, default)
try consulting original modder as of why that function is present there.
As it is not called for me so no error occurs.
'blacklisted_comms' issue is now fixed
trader_autoinject WHY MODIFY THIS FILE?
It would be better to edit a BAS trade script so that the welder appears in the trade of the mechanics in the area
There is only one edit, that is a callback, you can easily merge that with anything you need.
Also original mod also modified it, in y exp. it is compatible with BaS
Just posting here because it bothers me every time I check the addon list here on MODDB and I see this mod:
It's "The sum of its parts", not "The sum of it's parts". "It's" is a short form of "it is", which doesn't make sense here. You want the "its" which is the possessive pronoun of everything which is not male or female (his, hers, its).
**** i forgot, there was a time that i beat everybody over the head for mixing up there, their and they're
Great this is the take on WPO i was looking for! Really neat streamlining of the mod.
But there are two minor gripes i have with it currently.
1) awkward behavior with magsredux - reloading will unjam and change magazine. (tested on latest github build of magsredux). Original WPO has full compatibility with mags so maybe you can look at it?
2) would like a customizable keybind for weapon unjam check instead of it being hardcoded to double-tap use.
That was the idea, do you have scripting skill, if anything you can send your fixes my way. Or i'll look into it some time later, i think i found another bug.
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_pcall_failed
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 204
[error]Description : fatal error
[error]Arguments : LUA error: d:/efp\gamedata\scripts\zzzz_soip_repairs.script:206: attempt to call global 'UIRepair_UpdateUi' (a nil value)
what could be the problem?
orverriden UI classes => no compatibility, fix yourself, then send files to me for new install options, or upload mod version yourself
Should be fixed in new version
All the guns doesn't play the jam animations, other than that, awesome mod
Some guns do not have un-jam animations defined