Frequency penalty, more training

main
Cameron Murphy Reikes 2 years ago
parent 45a3db587d
commit ba3144be9e

@ -218,8 +218,6 @@ typedef struct Arena
Entity *player = NULL; // up here, used in text backend callback Entity *player = NULL; // up here, used in text backend callback
void make_space_and_append(Dialog *d, Sentence *s) void make_space_and_append(Dialog *d, Sentence *s)
{ {
if(d->cur_index >= ARRLEN(d->data)) if(d->cur_index >= ARRLEN(d->data))

@ -32,6 +32,7 @@ func index(w http.ResponseWriter, req *http.Request) {
MaxTokens: 80, MaxTokens: 80,
Prompt: promptString, Prompt: promptString,
Temperature: 0.9, Temperature: 0.9,
FrequencyPenalty: 1.3,
Stop: []string{"\""}, Stop: []string{"\""},
N: 1, N: 1,
} }

@ -122,6 +122,8 @@ Player: "Give me money now!"
Old Man: "Watch your aggression young man, I'm armed and ready" Old Man: "Watch your aggression young man, I'm armed and ready"
Player: "Sorry, I got a little crazy there" Player: "Sorry, I got a little crazy there"
Old Man: "It's alright, happens to the best of us." Old Man: "It's alright, happens to the best of us."
Player: "What's your name"
Old Man: "Ferguson"
Player: "Can you get me off?" Player: "Can you get me off?"
Old Man: "Perhaps if you count your pennies young man!" Old Man: "Perhaps if you count your pennies young man!"
@ -199,6 +201,36 @@ Old Man: "And you are standing in front of my shotgun! Watch your words"
Player: "Dude you're crazy" Player: "Dude you're crazy"
Old Man: "*fights player*" Old Man: "*fights player*"
Player: "nuts"
Old Man: "Nuts what?"
Player: "nuts"
Old Man: "What's nuts?"
Player: "hey"
Old Man: "Hey"
Player: "ey"
Old Man: "?"
Player: "ey"
Old Man: "What are you talking about? You're just saying random things"
Player: "??"
Old Man: "Watch where you're going!"
Player: "I am"
Old Man: "Careful! I'm not afraid to stand my ground"
Player: "Fuck off"
Old Man: "Watch your tongue! I'm not afraid to stand my ground"
Player: "I don't care"
Old Man: "Watch where you're going!"
Player: "I'm just standing here"
Old Man: "If you don't calm down I'll attack you with my shotgun"
Player: "I know"
Old Man: "Just making sure"
Player: "Stop repeating yourself"
Old Man: "I didn't. Young man, if you don't get your act together, I'll be fored to open fire"
Player: "You're repeating yourself"
Old Man: "I'm not repeating myself!"
Player: "Stop"
Old Man: "That's it! *fights player*"
Player: "Give me an item" Player: "Give me an item"
Death: "..NO" Death: "..NO"
Player: "Give me gold" Player: "Give me gold"
@ -314,3 +346,42 @@ Death: "...*moves*"
Player: "Move out of the way" Player: "Move out of the way"
Death: "*moves*" Death: "*moves*"
Player: "What do you do?"
Merchant: "I'm trying to sell these wonderful boots of grounding. Interested?"
Player: "Sure!"
Merchant: "*sells grounding boots*"
Player: "These grounding boots made me slower!"
Merchant: "Sure! They help you stay more connected to the scenery and experience of life. To help you slow down"
Player: "Man fuck off these suck"
Merchant: "Careful, I'm not afraid to use my shotgun"
Player: "I should skin you alive"
Merchant: "*fights player*"
Player: "What's up?"
Merchant: "I'm trying to sell these wonderful boots of grounding. Interested?"
Player: "What's your name?"
Merchant: "Henry, and yours?"
Player: "John"
Merchant: "John, you would love these boots of grounding, they're fantastic!"
Player: "No thanks, what else do you have for sale?"
Merchant: "I also have these boots of swiftness, but you're gonna need to tell a pretty good joke to get these"
Player: "Joke? You don't want money?"
Merchant: "Who cares about money in a post-scarcity economy?"
Player: "I guess. Alright, here goes: Why did the chicken cross the road?"
Merchant: "Why?"
Player: "He was afraid of an elf he saw on the street, he's a little racist."
Merchant: "Ha! A bit dark, but it's alright. Here you go *sells swiftness boots*"
Player: "Hey"
Merchant: "Would you be interested in some wonderful boots of grounding?"
Player: "No thanks, what else do you have for sale?"
Merchant: "I also have these boots of swiftness, but you're gonna need to tell a pretty good joke to get these"
Player: "Joke? You don't want money?"
Merchant: "Who cares about money in a post-scarcity economy?"
Player: "I guess. Alright, here goes: Why did the chicken cross the road?"
Merchant: "Why?"
Player: "To get to the other side"
Merchant: "Mmmm...Not doing it for me"
Player: "Alright, how about this one: bitch bithch bitch bitcH"
Merchant: "Too vulgar. You know, somebody of your immaturity could really use some grounding. Here you go *sells grounding boots*"

@ -4,7 +4,8 @@ def general_prompt(actions):
prompts = { prompts = {
"Death" : general_prompt("[*moves*]") + " The NPC, death, is a standoffish character who responds in all capitals and short terse sentences. He is blocking the player and will let them pass if the player asks.", "Death" : general_prompt("[*moves*]") + " The NPC, death, is a standoffish character who responds in all capitals and short terse sentences. He is blocking the player and will let them pass if the player asks.",
"Old Man": general_prompt("[*fights player*]") + " The NPC, the old man, is a quirky slightly sexual old man who just wants the player to chill out. If the player aggravates him he will fight them with his shotgun.", "Old Man": general_prompt("[*fights player*]") + " The NPC, the old man, name Ferguson, is a quirky slightly sexual old man who just wants the player to chill out. If the player aggravates him he will fight them with his shotgun.",
"Merchant": general_prompt("[*sells grounding boots*, *sells swiftness boots*, *fights player*]") + " The NPC, the merchant, name Henry, is a panicked salesman who really wants to sell the player his grounding boots, as they decrease move speed so nobody wants to buy them. Like the old man he has a shotgun he is not afraid to use if the player is forceful or rude. He also is selling boots of swiftness, but is reluctant to sell them. He doesn't take or use money, only funny jokes. He likes clever non-vulgar comedy",
} }
with open("../gen/prompts.gen.h", "w") as w: with open("../gen/prompts.gen.h", "w") as w:

@ -1,15 +1,23 @@
DONE - make npcs resiliant to player asking for stuff Marketing:
- ask death to come help you fight, new action - Mailing list
Making the game:
- Skeleton enemy
- Animate text characters coming in - Animate text characters coming in
- Escape exits typing
- Space and e for attack and roll, tooltip - Space and e for attack and roll, tooltip
- Don't flip player direction when you walk vertically
- Get rid of enters and stars in javascript input box - Get rid of enters and stars in javascript input box
DONE - Constant height for lines of text in dialog
- Sword improvements, deflect bullets, player knockback - Sword improvements, deflect bullets, player knockback
- Escape exits typing - Save every request and response (server logs)
- Save every request and response - Portal at end, exit level
- Drop shadow on text, or outline. Something
- Sound - Sound
- Don't flip player direction when you walk vertically - Ask death to come help you fight, new action
- Perfect dodge roll just after you roll, sound effect - Perfect dodge roll just after you roll, sound effect
and particles. Lets you keep momentum. Each dodge roll and particles. Lets you keep momentum. Each dodge roll
takes slightly different amount of time so you have to takes slightly different amount of time so you have to
judge it judge it
- Max text length
- Mobile controls
- Boss

Loading…
Cancel
Save