• To improve security, we will soon start forcing password resets for any account that uses a weak password on the next login. If you have a weak password or a defunct email, please update it now to prevent future disruption.

vampire899

Newbie
Oct 30, 2019
77
30
Uh....
The "WHO:" is wrong as expected.
And there are plenty of other problems like identation and wrong string masking:
View attachment 530899

First get your NP++ set up correctly. Install the Syntax highlighter and enable white space display!
I already told you how to acchieve what you want. Read again please.
I don't quite understand what you mean. First of all, the "who:" is wrong as expected. What's the error? Is it a conditional error or a format error? Second, the problem in your figure is just one more " is a manual error. What are the other format problems
 

NickNo

Member
Modder
Jan 19, 2020
186
261
...Is it a conditional error or a format error? Second, the problem in your figure is just one more " is a manual error. What are the other format problems
Tabs (the orange arrows) are not supported and will cause the conditional execution to fail. You need spaces (represented by orange dots).

2nd: I am not sure (and therefore would not do it this way) that the IF condition in the WHO: clause will do anything.
That is why I suggested you leave WHO: empty and iterate through all your contacts to find a male neighbour.

This is how it is usually done.
 

vampire899

Newbie
Oct 30, 2019
77
30
Uh....
The "WHO:" is wrong as expected.
And there are plenty of other problems like identation and wrong string masking:
View attachment 530899

First get your NP++ set up correctly. Install the Syntax highlighter and enable white space display!
I already told you how to acchieve what you want. Read again please.
I know where the format error is. I replaced all the auto carriage return positioning with spaces. Now we can solve the problem of extracting conditions. What is the error of extracting conditions View attachment blackmail_neighbours_family_incest.7z
 

vampire899

Newbie
Oct 30, 2019
77
30
Tabs (the orange arrows) are not supported and will cause the conditional execution to fail. You need spaces (represented by orange dots).

2nd: I am not sure (and therefore would not do it this way) that the IF condition in the WHO: clause will do anything.
That is why I suggested you leave WHO: empty and iterate through all your contacts to find a male neighbour.

This is how it is usually done.
What I need to position is a male neighbor with a parent-child relationship, and it's a mother-child relationship rather than a father-child relationship.
so how to write this double repeated statement?
 
Last edited:

NickNo

Member
Modder
Jan 19, 2020
186
261
Your code could look something like that:
1580132729094.png

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)
 
Last edited:

vampire899

Newbie
Oct 30, 2019
77
30
Your 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)
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
 

hazetrixstudio

New Member
May 30, 2018
9
11
hello guys
im just wondering if there is a possibility to extend the buildings type...i mean it would be more easier for modders to add actions and scenes for example: instead of GYM where you can build up your muscle and fitness, a new building like a Stadium would also give the same effect but the stadiums can differ...like football stadium,basketball stadium...maybe you know what i mean by "extended building types".
 

vampire899

Newbie
Oct 30, 2019
77
30
Your 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)
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 satisfied
 

vampire899

Newbie
Oct 30, 2019
77
30
It's finally done,The code logic full of bugs……
Now it's perfect
WHAT: all, -sleep, -nap
WHERE: home
WHEN: 0-24
WHO: Actor = getRelatedPeople(ParentChild)
OTHER: isAtHome() && masochist < 0

Actor0 = getSpecific(Neighbour)
While !Actor0.isMale()
Actor0 = getSpecific(Neighbour)
Endwhile
Actor1 = Actor0.getRelatedPerson(ParentChild)
While Actor1.isMale() && Actor0:age > Actor1:age
Actor1 = Actor0.getRelatedPerson(ParentChild)
Endwhile
If Actor1.isValid()
SceneStart()
 
  • Like
Reactions: NickNo

NickNo

Member
Modder
Jan 19, 2020
186
261
It's finally done,The code logic full of bugs……
Which 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...
 

vampire899

Newbie
Oct 30, 2019
77
30
Which 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...
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 met
Finally, I want to say that I have passed the test
WHO: Actor = getRelatedPeople(ParentChild) ,In order to prevent neighbors without parent-child relationship,This is the main condition
 
Last edited:

Icebird

Member
Sep 22, 2017
306
206
Hi Guys!


I like the game much and the most community mods too! Many thx for the dev and the modders! \o/


I welcome the new NickNo's Porn Empire mod despite it's immature state. It was only a matter of time to someone accomplish it what i hoped.

For feedback:

- 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


For idea (for all):

- as i see this mod isn't far from a "brothelmod" concept, where the protagonist can run and somewhat can manage a "girl house" (or a full redlight district ;) ), i hope someone add some simlar content too to the optionals in the future....

- (but in this basis can be a "gymmod", running a gym with staff (trainers, etc) and equipments...)

- good idea the building construction too (seen it a few post ahead), maybe it could be start in small: buy a plot, buy rooms (by numbers or dedicated functionality), expand plot, expand building level, etc. This leads the need of rethinking the home rentings (maybe with the neighbour system), the furnitures, and the apliances too (this time they're values only as i know)


Have nice day, have nice play!
 

vampire899

Newbie
Oct 30, 2019
77
30
Which 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 game
WHAT: all, -sleep, -nap
WHERE: home
WHEN: 0-24
WHO:
OTHER: isAtHome() && masochist < 0

Actor0 = getSpecific(Neighbour)
If !Actor0.isValid()
SceneEnd()
Else
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Else
If Actor0.isMale()
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Else
While Actor1.isMale()
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Else
While Actor0:age > Actor1:age
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Endif
Endwhile
Endif
Endwhile
While Actor0:age > Actor1:age
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Else
While Actor1.isMale()
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Endif
Endwhile
Endif
Endwhile
Endif

If !Actor0.isMale()
While !Actor0.isMale()
Actor0 = getSpecific(Neighbour)
If !Actor0.isValid()
SceneEnd()
Else
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Else
While Actor1.isMale()
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Else
While Actor0:age > Actor1:age
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Endif
Endwhile
Endif
Endwhile
While Actor0:age > Actor1:age
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Else
While Actor1.isMale()
Actor1 = Actor0.getRelatedPerson(ParentChild)
If !Actor1.isValid()
SceneEnd()
Endif
Endwhile
Endif
Endwhile
Endif
Endif
Endwhile
Endif
Endif
If Actor1.isValid()
SceneStart()
 

Lostlegends

Active Member
Modder
Jul 9, 2017
592
1,159
vampire899
Glad you got it sorted. Probabily best next time to stick that in a spoiler, its quite a screenfull. The problem is that in general most games like this are not modable. Vinfamy has chosen to do the work, just to make it so that we can make mods. Yes the language is far from perfect, but it is getting better, and it alows us to expand the game in ways he probabily wouldnt think of and definatly wouldnt have time to do. Also everything here is a work in progress, and it is progressing unlike many games of this type.
 

MattShizzle

Well-Known Member
Oct 31, 2019
1,354
1,275
Yeah, every 2 weeks. Sadly, lots of games that go MONTHS without updates and even YEARS with no sex in the game have more patrons.
 

NickNo

Member
Modder
Jan 19, 2020
186
261
NickNo
Just a suggestion, but wouldnt it be polite to ask modders before posting there stuff elsewhere?
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?
 
Last edited:
3.30 star(s) 116 Votes