Your code only circularly extracts the male neighbor, and does not circularly locate whether his parent-child relationship is male or female, so the test failsYour code could look something like that:
View attachment 530947
You should check the if and add the single conditions like Actor0.isNeightbour() etc...
In your original IF you were looking for a male neighbour with his mom / dad. (Actor1:age>Actor0:age)
I wasn't going to write your mod - that is up to you ;-)Your code only circularly extracts the male neighbor, and does not circularly locate whether his parent-child relationship is male or female, so the test fails
As mentioned above, this is a dual cycle positioning. First, you need to locate a male neighbor who has a parent-child relationship, and then you need to locate that his parent-child relationship must be a parent-child relationship, that is, the parent-child relationship of this male neighbor must be female, and older than him. When you test this code, you only need to locate a known n with a parent-child relationship in a single cycle PC, even neighbors, may not be satisfiedYour code could look something like that:
View attachment 530947
You should check the if and add the single conditions like Actor0.isNeightbour() etc...
In your original IF you were looking for a male neighbour with his mom / dad. (Actor1:age>Actor0:age)
whatever,Thank you for helping me solve the format problemI wasn't going to write your mod - that is up to you ;-)
Which code?It's finally done,The code logic full of bugs……
Thanks for u remarks but That's enough :If Actor1.isValid() the Actor0.isValid() If the SceneStart() the Actor1.isValid() There is no dead cycle。At most, it will only loop in the background, but it will not affect the foreground. Instead, it will directly jump out of the event when the conditions are metWhich code?
Just some remarks:
Your While loops both can cause an infinite loop. Especially if you do not have any male neighbours or they do not have famale kids.
Add ActorN.isValid() to each of it. (ActorN will be invalid if you reach the end of the person list.)
The "WHO: Actor = getRelatedPeople(ParentChild)" in the head still is nonsense.
And: "If Actor1.isValid()" should check for Actor0 as well...
This is the final modified version of the code. It is already the most accurate character positioning of the game. There will be no more bugs without parent-child relationship or Father daughter relationship, and it will not jump out of the endless loop system error prompt. The only regret is that occasionally no one can be found. I have nothing to say about the code language logic of this gameWhich code?
Just some remarks:
Your While loops both can cause an infinite loop. Especially if you do not have any male neighbours or they do not have famale kids.
Add ActorN.isValid() to each of it. (ActorN will be invalid if you reach the end of the person list.)
The "WHO: Actor = getRelatedPeople(ParentChild)" in the head still is nonsense.
And: "If Actor1.isValid()" should check for Actor0 as well...
Yeah, well little late now. Really forgot to ask here in the forum. Only in discord. So other way round: Is it OK for you if I keep your Mods in the repository?NickNo
Just a suggestion, but wouldnt it be polite to ask modders before posting there stuff elsewhere?
Thanks for your feedback. That is very welcome!- It's seems maybe need some optimizing (or what) because when i interact with their elements (example Business Report) the game freezing for long seconds, before its return the UI control.
- Some buyable equipment don't use my local country currency, instead display the default (USD?)
- it's unclear how to make someone model from my contactlist. One of them accept a shooting, but when i want another one he hasn't listable as a model (PEM)
- it's (personally) unclear how it work together with the other popular mods (like the pimpyourgirl, the dungeonmod) and the other similar (management like) mods or the official modules (mean pregnacy, and health related doings), but i hope it will
Thats the point though. I have a release platform that works for me. What you have effectivly done is circumvent that by taken in development mods and posting them elsewhere. There are right ways to do these things. You could have created a mod draw in the roots dir or docs folder, you could have created a file assosciation to download straight from the net. By doing it your way it creates a dependance on an installer. Why would anyone even come to the forum or my release page, when they can just download and update from you?Yeah, well little late now. Really forgot to ask here in the forum. Only in discord. So other way round: Is it OK for you if I keep your Mods in the repository?
Removed. Sorry to have offended you.No, not in its current format, unless they are marked as being finnished.