Icebird

Member
Sep 22, 2017
379
275
More Modding question: is there a way for me to make/get a specific person who works at a particular place (not your own business, if I assign business somehow my poly's mvoes there as employees)? GetPersonHere() may get guests and I don't seem to be able to find in Docs anything to assign people's place of work (and then I have to figure out assigning work at current location if available)
There isn't any documents for your problem. Because only the AI distributes the npcs 1. current location, 2. work location, 3. and where's living (home). (And the ai will fill nearby places with permanent npcs. It happens too when you visit far places at first time).
If you take the ownership of a business after that you can hire contacts to work there (fixing they 'work' loc), so that npc workplace changing to your business (addEmployee(Salary) cmd will do anything) until you fire them and the AI begin redistribute to elsewhere (same way if you reset the npc's location in the contacts, that's what is undocumented).
The "GetPersonHere()" is working without optional bool (true/false for the permanent/temp npcs) and the only really usable purpose is to count the ai distributed npc number at the current location. If you read through the command description in the Mods folder, you can find this in the example.

But if it work:
workerworkloc = worker.getBuilding(work)

...then maybe this one too (it's a fiction):
currentloc = Player.getBuilding(current)
"DEBUG: currentloc value is <currentloc>"
Actor.setBuilding(work, currentloc)
or Actor.setActorVar(work, currentloc)
 
Last edited:

ianskman

Member
Mar 12, 2021
197
262
gowaypest.jpg
over and over in a loop ..ive had no interaction with the name,this loop blocks all pregs from giving birth that are in contacts ,290 day pregs and over as a result..update had a 790 day pregnancy when the game was tripping on me.. would have had to call it elephantplay
 
Last edited:
Nov 1, 2019
174
65
There isn't any documents for your problem. Because only the AI distributes the npcs 1. current location, 2. work location, 3. and where's living (home). (And the ai will fill nearby places with permanent npcs. It happens too when you visit far places at first time).
If you take the ownership of a business after that you can hire contacts to work there (fixing they 'work' loc), so that npc workplace changing to your business (addEmployee(Salary) cmd will do anything) until you fire them and the AI begin redistribute to elsewhere (same way if you reset the npc's location in the contacts, that's what is undocumented).
The "GetPersonHere()" is working without optional bool (true/false for the permanent/temp npcs) and the only really usable purpose is to count the ai distributed npc number at the current location. If you read through the command description in the Mods folder, you can find this in the example.

But if it work:
workerworkloc = worker.getBuilding(work)

...then maybe this one too (it's a fiction):
currentloc = Player.getBuilding(current)
"DEBUG: currentloc value is <currentloc>"
Actor.setBuilding(work, currentloc)
or Actor.setActorVar(work, currentloc)
Ah, Actor.setBuilding(work, currentloc) should be what I am looking for. It isn't in the Docs though so I will need to make test runs to see if it works :/
 

Icebird

Member
Sep 22, 2017
379
275
Ah, Actor.setBuilding(work, currentloc) should be what I am looking for. It isn't in the Docs though so I will need to make test runs to see if it works :/
On second thought that cmd won't work.
The game changing player work location with 'moveJobs()', the home location with the 'moveHome()' command.
Also the AI use moving npcs with the 'Actor.setCurrentLocation(BuildingVariable)' (this is documented in the Docs folder, and you can see it in the lpai files).
This should work for you if you call in the desired npc with getPerson() or getSpecific() (or if you interact the getTarget()) command and you can try assign the current location to be that actor workplace ( Actor.setCurrentLocation(work)).
So two things can happen: Actor will be a worker at the current location, or actor went to his/her current work location elsewhere. Sadly I hasn't find any different command either in the AI files too, and there isn't any trace how the ai assign these variables and values.
 

ianskman

Member
Mar 12, 2021
197
262
And is this from the original scene? You should try accompany with that npc and run in console the 'force_birth' scene.
It doesn't let me leave the room,when I click go to hospital option it reloads the same location over and over ,If i exit the game completely and continue then it lets me go to the hospital or decline.then another random name pops up that's giving birth that is also not on contacts.I then have to exit game every time.I cured the issue by deleting all the children and nearly half my contacts.I think Lifeplay is losing track of pregs names as well,as sometimes after 30 days the npc on my contact is not preg any more.
 

Icebird

Member
Sep 22, 2017
379
275
It doesn't let me leave the room,when I click go to hospital option it reloads the same location over and over ,If i exit the game completely and continue then it lets me go to the hospital or decline.then another random name pops up that's giving birth that is also not on contacts.I then have to exit game every time.I cured the issue by deleting all the children and nearly half my contacts.I think Lifeplay is losing track of pregs names as well,as sometimes after 30 days the npc on my contact is not preg any more.
Yes, there is a mistype in the 'NPC_gives_birth' scene, what exists in the later updates too (it's shame to be released again).
Ravenger6666 posted a quickfix not far ago. Take that or take my attached file with quickfix and overwrite the old one.

BTW: In similar situations you should try breaking the run of a faulty script with the red 'emergency' button.
 
Last edited:
  • Like
Reactions: ianskman

dregon87

Member
May 6, 2019
194
113
Can someone tell me the mods that are relevant for the current version of the game, I looked that in all mods the editing date is 2020-2021, and as far as I understand, some mods get into the game with time.
 

Mommysbuttslut

Forum Fanatic
Feb 19, 2021
4,191
10,275
Can someone tell me the mods that are relevant for the current version of the game, I looked that in all mods the editing date is 2020-2021, and as far as I understand, some mods get into the game with time.
Aside from a little age stat mod I only use Ravenger's. It has a lot of good scenes, it makes good improvements to a lot of vanilla scenes and it adds in a few really useful mechanics. It's very regularly updated so you won't typically run into conflicts with updates.
 

Icebird

Member
Sep 22, 2017
379
275
Can someone tell me the mods that are relevant for the current version of the game, I looked that in all mods the editing date is 2020-2021, and as far as I understand, some mods get into the game with time.
As far as I know basically all popular mod what written to the Lifeplay version 4.x+ should working. And still exist some older mod what modify the game's basic mechanics, so it is recommended to avoid them.
 
  • Like
Reactions: dregon87

PhazeUFO

Well-Known Member
Sep 28, 2021
1,598
1,553
it adds in a few really useful mechanics.
Yeah, like trivializing most stat gains. Takes away much of the grind if you want to get those perk points easier or get someone to like you without cheating. Also, I believe it fixes the bug that has you start with hundreds of thousands of perk points.
 

ianskman

Member
Mar 12, 2021
197
262
Yes, there is a mistype in the 'NPC_gives_birth' scene, what exists in the later updates too (it's shame to be released again).
Ravenger6666 posted a quickfix not far ago. Take that or take my attached file with quickfix and overwrite the old one.

BTW: In similar situations you should try breaking the run of a faulty script with the red 'emergency' button.
Does it replace ravengers file or the one in preg folder in the main game
 

hakarlman

Engaged Member
Jul 30, 2017
2,138
3,360
In the tutorial, a couple is having sex, but it just stays in that mode forever. How do you move on? Meaning, when does the couple climax, and the tutorial moves forward?
 

TFFBladez

Active Member
Oct 10, 2020
818
296
Question about relationships do you always have to be the one to purpose them? I have an open relation ship and have been giving out gifts to my knowledge everyone is 100 social with me so I am wondering why they are not asking to date my char?
 

PhazeUFO

Well-Known Member
Sep 28, 2021
1,598
1,553
Question about relationships do you always have to be the one to purpose them? I have an open relation ship and have been giving out gifts to my knowledge everyone is 100 social with me so I am wondering why they are not asking to date my char?
No, but I do believe it is a random event.
 

Bom969

Member
Jul 25, 2019
147
58
What all Can I do in this game. Can I become a crime lord or a mayor of the region or something like that? How long does it take for a woman to give birth in this game?
I took the easy way for checking out the game. Maxed out all the attributes and skills, and now itfeels there is not much to do in the game now.
 

dividesense

Newbie
Nov 2, 2021
36
22
What all Can I do in this game. Can I become a crime lord or a mayor of the region or something like that? How long does it take for a woman to give birth in this game?
I took the easy way for checking out the game. Maxed out all the attributes and skills, and now itfeels there is not much to do in the game now.
There isn't much endgame material.

There's a good mafia mod.

Re: pregnancy. As little as 3 days if you move the slider in options. There's also a force birth button to fix extended pregnancy bugs, but I think it's in Rav's mod pack (basically required).
 
  • Like
Reactions: Coomer341
3.30 star(s) 118 Votes