Let's say in git I have a main branch with 10 files changed. What I want to do is to…
- User
Let's say in git I have a main branch with 10 files changed. What I want to do is to select 10 out of 10 changed files. add them to git and commit them with 'MOONTOUCHED-001 upload gui files' message. After I do the commit I want to take this commit and cut it to a new branch that will be called MOONTOUCHED-001 with the rest of 8 non commited files remaining on main. How can I do this
- Assistant
You can achieve this in Git through a series of commands. Here's a step-by-step guide on how to commit specific files and then move that commit to a new branch:
Step-by-step instructions
- User
if in my renpy file I have a function called combine_lexicon but the standard renpy console doesn't show me all of the printed data in it, then how can I force it to do it by using the command long: that renpy provides?
- Assistant
In Ren'Py, if you have a function called
combine_lexiconand you want to ensure that all of the printed data from this function is shown in the console, you can use thelongcommand in the Ren'Py console to print the output of your function. This is useful when the output might be too long to display in the standard console view. - User
Rewrite the text bellow in a more literal manner. Apparently I've been fighting ghosts for a while, trying to figure out why does my newly created dictionary print only a few of the elements that are supposed to be inside of it thinking there was some mistake on my part. Truth was that Renpy by default feels like omitting part of the print statements ignoring them, creating illusion that something is wrong with your end result.
- Assistant
I have been struggling to understand why my newly created dictionary only prints a few of the elements that are supposed to be in it. I initially thought that there was an error on my part. However, the reality is that Ren'Py, by default, tends to omit some of the print statements, which makes it seem like there is a problem with the final result.
- User
No make it more expressive I want the part with the ghosts to still be there.
- Assistant
I’ve been battling invisible ghosts for a while, trying to uncover the reason why my newly created dictionary only displays a handful of the elements that should be there. I kept thinking it was a mistake on my part. However, the truth is that Ren'Py, by default, seems to skip over certain print statements, creating the illusion that something is wrong with the outcome I'm getting. It’s as if these ghosts are playing tricks on me, leading me to believe there’s an error when, in fact, it's just the way Ren'Py handles its output.
- User
if I have a function in renpy that returns a dictionary, def combine_lexicon(): combined_lexicon = {} for dictionaries in (locations, concepts, world, great_spirits): for entryName, description in dictionaries.items(): combined_lexicon[entryName]=description return combined_lexicon how then can I use this returned dictionary as a value for iteration in another function called hyperling_lexicon Here is the code of the function in question def hyperlink_lexicon( str_to_test ):
codefor keys in lexicon: if isinstance(keys, basestring): keys = [keys] for phrase in keys: # preceded by a space str_to_test = str_to_test.replace( " {0}".format(phrase), " {{a=lexicon:{phrase}}}{phrase}{{/a}}".format( phrase = phrase ) ) # followed by a space str_to_test = str_to_test.replace( "{0} ".format(phrase), "{{a=lexicon:{phrase}}}{phrase}{{/a}} ".format( phrase = phrase ) ) return str_to_test - Assistant