- May 30, 2017
- 1,079
- 1,068
King's way 2.0 should work fine for BK 0.15b, I have updated the OP of the thread about packs and mods, now including download and instructions of the mod
On the mods thread, I have a reconstruction of kite80's original trainer.
That said, I'm looking at the place where you change traits and thinking, old or new, that can be better.
Take the text apart, autocapitalize, put it back together, run it through the list of actual traits and error
on a typo. I recently typo'd on that and it forced a complete reboot of the game.
O-
Checked, and sure that traits in Ver 0.2 and 0.15b are all only first letter capitalized. Any programming to take advantage of this to avoid error/crashes is welcome.Autocapitalise isn't so hot an idea, since someone might have a trait with an initial, but not middle capital, or vice versa.
Like I said:Checked, and sure that traits in Ver 0.2 and 0.15b are all only first letter capitalized.
That someone is not necessarily Goldo. For example, _neronero's Trait King has a trait called 'Strong Gag Reflex', and at least intermediate versions of Bonanza also had mixed formats. Writing code that only fixes the immediate issue or assumes a given input format for no specific reason is never a good idea.someone might have a trait with an initial, but not middle capital
Traits are saved in a data structure named trait_dict. You can create a list of of the keys of this dict and compare text to text in a cap insensitive manner.Like I said:
That someone is not necessarily Goldo. For example, _neronero's Trait King has a trait called 'Strong Gag Reflex', and at least intermediate versions of Bonanza also had mixed formats. Writing code that only fixes the immediate issue or assumes a given input format for no specific reason is never a good idea.
Which is not necessarily static. E.g. _neronero's Fran pack tried to play with adding dynamically created traits; and I had no end of trouble in Bonanza because I added a modified form of Trait King and regenerated the whole trait dictionary. So when you create these lists can matter, and a girl can perchance have traits outside of that list.Traits are saved in a data structure named trait_dict.
Which is exactly what I suggested earlier.You can create a list of of the keys of this dict and compare text to text in a cap insensitive manner.
Uh, the whole point of this exercise is not to have to do that, right?And then you can fix the capitalization, WhAtEveR iT Is, on a case by case basis.
I'd rather code than talk.You're right that it's not rocket science, but ..
def gSanitizeTrait(mytrait):
matchcount = 0
sanitized = ""
tlen = len(mytrait)
for key in trait_dict:
kk = key
kl = len(key)
if kl > tlen:
kk = kk[:tlen]
if kk.casefold() == mytrait.casefold():
matchcount += 1
sanitized = key
if matchcount > 1:
sanitized = ""
return sanitized
Not that it's very important in hobby projects like these, but this kind of attitude is actually a pretty big problem in serious software development.I'd rather code than talk.
Seeing my name mentioned here makes me wonder...E.g. _neronero's Fran pack tried to play with adding dynamically created traits; and I had no end of trouble in Bonanza because I added a modified form of Trait King (...)
Nah, Trait King is certainly something you can be proud of. Most of my troubles were self-inflicted. I could have chosen to fully integrate TK into my mod, but was too lazy to do it.Probably not something to be proud of...
Definitely.But the fact you can contribute mods/events/stories without much programming experience is just another thing to like about Brothel King.
I have (or had) nearly zero experience as well. Forking was just the natural consequence of me wanting to retouch everything. A professional would probably not have done that. On the other hand, a professional would most likely find entertainment in the non-programming parts, like Leortha does....slightly too limiting for someone with too much experience (quickly leading to a fork)?
If 'every time' is every day, that's intended. Girls get up in the morning and pick different clothing, or makeup, etc.The images of girls keep chaning every time I look at them
Portraits and profiles are different files, since Ren'Py does not have an advanced AI zoom feature. And most people don't crop portraits based on profiles, because it's a lot of work.The small images do not match the big image as well.
I see. That kinda sucks to me because I just cannot anchor the girl in my imagination when she keeps switching between completely different characters. Oh well.If 'every time' is every day, that's intended. Girls get up in the morning and pick different clothing, or makeup, etc.
If it's every time you click a button ('Girls', 'Slave market', 'Farm', etc), it's a bug.
Portraits and profiles are different files, since Ren'Py does not have an advanced AI zoom feature. And most people don't crop portraits based on profiles, because it's a lot of work.
Wait, wait. Different characters? Can you provide an example screenshot? The whole point of girl packs is that it's the same character, but different pictures of her. The only times this is not the case is if the pack maker fucked up, or you have default pictures enabled, which are generally anonymised, even if hardcore fans can still occasionally recognise a few of the pictures.That kinda sucks to me because I just cannot anchor the girl in my imagination when she keeps switching between completely different characters.