ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,335
1,410
I suspect this error message appears when you kick out or sell a Companion.

You have to disconnect/remove the Companion in the upper left corner first.
Yeah. That error is related to companions, just need to find out why and fix it.
 

Magnus Castor

Newbie
Jun 8, 2023
64
94
I am an old developer interested in how people ccde. That's why I peek at your code and found another typo {v. 15b}

- max number of workers in garden/greenhouse -- 6 in girl/guy view and 7 in "guest view assign to".

This happens easily when you hard-code constants in code. If you define these numbers as "constants" in one place, maintaining of the code will be easier. And it is always more fun to add new stuff than fixing old things ... :love:

Examples: max workers, max slave cells, max guest rooms, days between harvest.

When you have these "constants" you can add a settings page where the player can try different combinations. Perhaps helping with balance.

----

And now something different -- food ideas

- Young children, say up to 5 years old, prefer to drink milk instead of eating food if available. :)

- Mothers with young children can get auto-milked. That is, if the hero hasn't milked them they will be milked in the book-keeping phase.

- New role "milk maid" for milking the farm animals: slaves, goats, cows...

- Guests getting wood in the forest might stumble upon berries as bonus. Some % chance to get some berries.

- In the book-keeping phase: Do the harvest before checking for starvation... Might save some in a low food situation.

:mad:Sorry if I meddle to much.
 

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,335
1,410
I am an old developer interested in how people ccde. That's why I peek at your code and found another typo {v. 15b}

- max number of workers in garden/greenhouse -- 6 in girl/guy view and 7 in "guest view assign to".

This happens easily when you hard-code constants in code. If you define these numbers as "constants" in one place, maintaining of the code will be easier. And it is always more fun to add new stuff than fixing old things ... :love:

Examples: max workers, max slave cells, max guest rooms, days between harvest.

When you have these "constants" you can add a settings page where the player can try different combinations. Perhaps helping with balance.

----

And now something different -- food ideas

- Young children, say up to 5 years old, prefer to drink milk instead of eating food if available. :)

- Mothers with young children can get auto-milked. That is, if the hero hasn't milked them they will be milked in the book-keeping phase.

- New role "milk maid" for milking the farm animals: slaves, goats, cows...

- Guests getting wood in the forest might stumble upon berries as bonus. Some % chance to get some berries.

- In the book-keeping phase: Do the harvest before checking for starvation... Might save some in a low food situation.

:mad:Sorry if I meddle to much.
Thanks! Totally agree on constants. As this is my first code in sugarcube, there are already ton if things I would do different now so look at the code with grain of salt will move maxgreenhouse workers to constants thanks for suggestions, will add some of them in later releases
 
  • Like
Reactions: GamerDaddy

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,335
1,410
Hopeful being useful here. If a companions who is also assigned to scavening don't come home then you are in trouble (n)

You don't have permission to view the spoiler content. Log in or register now.

Edit 1: missed a linebreak
Thanks. Actually if someone is assigned as companion, probably shouldnt allow them to be assigned to any job. Will take a look at it
 

GamerDaddy

Well-Known Member
Feb 6, 2023
1,158
673
I am an old developer interested in how people ccde. That's why I peek at your code and found another typo {v. 15b}

- max number of workers in garden/greenhouse -- 6 in girl/guy view and 7 in "guest view assign to".

This happens easily when you hard-code constants in code. If you define these numbers as "constants" in one place, maintaining of the code will be easier. And it is always more fun to add new stuff than fixing old things ... :love:

Examples: max workers, max slave cells, max guest rooms, days between harvest.

When you have these "constants" you can add a settings page where the player can try different combinations. Perhaps helping with balance.

----

And now something different -- food ideas

- Young children, say up to 5 years old, prefer to drink milk instead of eating food if available. :)

- Mothers with young children can get auto-milked. That is, if the hero hasn't milked them they will be milked in the book-keeping phase.

- New role "milk maid" for milking the farm animals: slaves, goats, cows...

- Guests getting wood in the forest might stumble upon berries as bonus. Some % chance to get some berries.

- In the book-keeping phase: Do the harvest before checking for starvation... Might save some in a low food situation.

:mad:Sorry if I meddle to much.
good ideas I like these too
 
  • Like
Reactions: ttyrke

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,335
1,410
I want to know if I can edit slaves and guests' traits
You can if you're a bit familiar with console.
Just open girl you want to edit (so talk, fuck, assign button shows)
And then write in console.
Code:
SugarCube.State.variables.tmpGirl.traits = ['breeder', 'scavanger']
then press back and go back to the girl list and it's done.
 

vivache

Newbie
May 5, 2017
28
28
You can if you're a bit familiar with console.
Just open girl you want to edit (so talk, fuck, assign button shows)
And then write in console.
Code:
SugarCube.State.variables.tmpGirl.traits = ['breeder', 'scavanger']
then press back and go back to the girl list and it's done.
wow it works! thanks! can I change slaves' breast size, beauty, race, age ?
 

GamerDaddy

Well-Known Member
Feb 6, 2023
1,158
673
You can if you're a bit familiar with console.
Just open girl you want to edit (so talk, fuck, assign button shows)
And then write in console.
Code:
SugarCube.State.variables.tmpGirl.traits = ['breeder', 'scavanger']
then press back and go back to the girl list and it's done.
i have guest that i wanted to give a trait to, and i couldnt figure out what to do after i did
SugarCube.State.variables.tmpGirl.traits i didnt see her name (Yamilet) anywhere or where traits was
 

tgp31

Member
Aug 17, 2018
213
64
SugarCube.State.variables.tmpGirl.breasts = 'big'
SugarCube.State.variables.tmpGirl.beauty = '100'
SugarCube.State.variables.tmpGirl.sub = '100'
SugarCube.State.variables.tmpGirl.relationship = '100'

console commands I figured out so far.
What is the command for changing the age of girls?
 

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,335
1,410
0.16 release:

Next update will be "tech update" again. I've got already "todo list" for next update but I would like to hear a few more suggestions from you.

You don't have permission to view the spoiler content. Log in or register now.
 

TTha

New Member
Feb 26, 2018
5
4
Constantly getting
index.html:12875 Error: <<set>>: bad evaluation: Unexpected identifier 'State'
when trying to add someone as guest/slave. Any suggestions?
 
Last edited:
3.60 star(s) 29 Votes