Giter Club home page Giter Club logo

Comments (8)

erdelf avatar erdelf commented on September 24, 2024

A common error in that position, sadly nothing I can do about it. Try going in the mod options and removing the ones that include modded drugs that you don't have anymore.

from exportagency.

ab9rf avatar ab9rf commented on September 24, 2024

That would make sense; VG hasn't been updated for 1.0 yet and so the references to drugs from VG are dead.

However, I disagree with your contention that you "can do nothing about it"; you really should handle such references without throwing exceptions. Surely it's possible to wrap those calls in try/catch?

from exportagency.

erdelf avatar erdelf commented on September 24, 2024

if I would, you wouldn't be able to access any of them.. so yeah.

from exportagency.

ab9rf avatar ab9rf commented on September 24, 2024

Your last comment doesn't make any sense to me at all.

from exportagency.

erdelf avatar erdelf commented on September 24, 2024

you wouldn't be able to access any of your things you saved with this mod.

from exportagency.

ab9rf avatar ab9rf commented on September 24, 2024

Ok, you've convinced me that it's time to figure out how to build RimWorld mods, because I'm absolutely certain that what you've said above is 100% wrong.

I'm not familiar with RimWorld's internals and I have relatively little experience with C#, but there's no reason whatsoever why a try-catch wrapper around the code at

{
DrugPolicy policy = __instance.MakeNewDrugPolicy();
for (int i = 0; i < li.Count; i++)
policy[index: i] = li[index: i] as DrugPolicyEntry;
policy.label = li.Name;
}
(the set_Item call that is excepting is clearly the implicit call at line 172) would make it so that "you wouldn't be able to access any of your things you saved with this mod". (It would simply prevent accessing the things that can't be loaded because they have stale references.)

But since you seem adverse to even considering it, I'll just have to fork and do it myself.

from exportagency.

erdelf avatar erdelf commented on September 24, 2024

Nice try, but that is not the problem.

from exportagency.

ab9rf avatar ab9rf commented on September 24, 2024

Since you wontfix, I'll just close this for you.

from exportagency.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.