Commit 0ec56da2 by Jonathan Thomas

Renaming project from mobgpt to creaturechat.

parent 5a0dce31
Pipeline #11996 passed with stage
in 22 seconds
...@@ -14,7 +14,7 @@ build_mod: ...@@ -14,7 +14,7 @@ build_mod:
script: script:
- ./gradlew build - ./gradlew build
- find build/libs -type f -name '*sources*.jar' -exec rm {} \; - find build/libs -type f -name '*sources*.jar' -exec rm {} \;
- mv build/libs/mobgpt-*.jar . - mv build/libs/creaturechat-*.jar .
- export FABRIC_VERSION=$(grep 'fabric_version' gradle.properties | cut -d'=' -f2) - export FABRIC_VERSION=$(grep 'fabric_version' gradle.properties | cut -d'=' -f2)
- export FABRIC_API_JAR="fabric-api-${FABRIC_VERSION}.jar" - export FABRIC_API_JAR="fabric-api-${FABRIC_VERSION}.jar"
- echo Detected Fabric API version from gradle.properties $FABRIC_API_JAR - echo Detected Fabric API version from gradle.properties $FABRIC_API_JAR
...@@ -24,7 +24,7 @@ build_mod: ...@@ -24,7 +24,7 @@ build_mod:
artifacts: artifacts:
paths: paths:
- mobgpt-*.jar - creaturechat-*.jar
- fabric-api-*.jar - fabric-api-*.jar
only: only:
- develop - develop
......
...@@ -43,9 +43,9 @@ The CreatureChat mod allows users to configure settings via in-game commands. He ...@@ -43,9 +43,9 @@ The CreatureChat mod allows users to configure settings via in-game commands. He
- If the `--config` option is not specified, the `default` configuration scope is assumed. - If the `--config` option is not specified, the `default` configuration scope is assumed.
## Screenshots ## Screenshots
![Pig Teaching Player](src/main/resources/assets/mobgpt/screenshots/pig-teaching.png "Pig Teaching Player") ![Pig Teaching Player](src/main/resources/assets/creaturechat/screenshots/pig-teaching.png "Pig Teaching Player")
![Villager Greeting Player](src/main/resources/assets/mobgpt/screenshots/villager_greeting.png "Villager Greeting Player") ![Villager Greeting Player](src/main/resources/assets/creaturechat/screenshots/villager_greeting.png "Villager Greeting Player")
![Chat User-Interface](src/main/resources/assets/mobgpt/screenshots/chat-ui.png "Chat User-Interface") ![Chat User-Interface](src/main/resources/assets/creaturechat/screenshots/chat-ui.png "Chat User-Interface")
## Upgrade Dependencies ## Upgrade Dependencies
......
...@@ -19,11 +19,11 @@ repositories { ...@@ -19,11 +19,11 @@ repositories {
} }
loom { loom {
accessWidenerPath = file("src/main/resources/mobgpt.accesswidener") accessWidenerPath = file("src/main/resources/creaturechat.accesswidener")
splitEnvironmentSourceSets() splitEnvironmentSourceSets()
mods { mods {
"mobgpt" { "creaturechat" {
sourceSet sourceSets.main sourceSet sourceSets.main
sourceSet sourceSets.client sourceSet sourceSets.client
} }
......
...@@ -5,7 +5,7 @@ org.gradle.parallel=true ...@@ -5,7 +5,7 @@ org.gradle.parallel=true
# Mod Properties # Mod Properties
mod_version=1.0.0 mod_version=1.0.0
maven_group=com.owlmaddie maven_group=com.owlmaddie
archives_base_name=mobgpt archives_base_name=creaturechat
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/develop # check these on https://fabricmc.net/develop
......
...@@ -36,7 +36,7 @@ import java.util.stream.Collectors; ...@@ -36,7 +36,7 @@ import java.util.stream.Collectors;
* text, friendship status, and other UI-related rendering code. * text, friendship status, and other UI-related rendering code.
*/ */
public class BubbleRenderer { public class BubbleRenderer {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
protected static TextureLoader textures = new TextureLoader(); protected static TextureLoader textures = new TextureLoader();
public static int DISPLAY_PADDING = 2; public static int DISPLAY_PADDING = 2;
public static int animationFrame = 0; public static int animationFrame = 0;
......
...@@ -35,7 +35,7 @@ import java.util.stream.Stream; ...@@ -35,7 +35,7 @@ import java.util.stream.Stream;
* back to the server. * back to the server.
*/ */
public class ClickHandler { public class ClickHandler {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
private static boolean wasClicked = false; private static boolean wasClicked = false;
static HashMap<Integer, byte[]> receivedChunks = new HashMap<>(); static HashMap<Integer, byte[]> receivedChunks = new HashMap<>();
......
...@@ -15,7 +15,7 @@ import java.util.Set; ...@@ -15,7 +15,7 @@ import java.util.Set;
* contained for this mod. UI and Entity icons. Missing textures are logged once. * contained for this mod. UI and Entity icons. Missing textures are logged once.
*/ */
public class TextureLoader { public class TextureLoader {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
private static final Set<String> missingTextures = new HashSet<>(); private static final Set<String> missingTextures = new HashSet<>();
public TextureLoader() { public TextureLoader() {
...@@ -23,7 +23,7 @@ public class TextureLoader { ...@@ -23,7 +23,7 @@ public class TextureLoader {
public Identifier GetUI(String name) { public Identifier GetUI(String name) {
String texturePath = "textures/ui/" + name + ".png"; String texturePath = "textures/ui/" + name + ".png";
Identifier textureId = new Identifier("mobgpt", texturePath); Identifier textureId = new Identifier("creaturechat", texturePath);
Optional<Resource> resource = MinecraftClient.getInstance().getResourceManager().getResource(textureId); Optional<Resource> resource = MinecraftClient.getInstance().getResourceManager().getResource(textureId);
if (resource.isPresent()) { if (resource.isPresent()) {
...@@ -38,7 +38,7 @@ public class TextureLoader { ...@@ -38,7 +38,7 @@ public class TextureLoader {
} }
public Identifier GetEntity(String texturePath) { public Identifier GetEntity(String texturePath) {
Identifier textureId = new Identifier("mobgpt", texturePath); Identifier textureId = new Identifier("creaturechat", texturePath);
Optional<Resource> resource = MinecraftClient.getInstance().getResourceManager().getResource(textureId); Optional<Resource> resource = MinecraftClient.getInstance().getResourceManager().getResource(textureId);
if (resource.isPresent()) { if (resource.isPresent()) {
...@@ -47,7 +47,7 @@ public class TextureLoader { ...@@ -47,7 +47,7 @@ public class TextureLoader {
return textureId; return textureId;
} else { } else {
// Texture not found, log a message and return the "not_found" texture Identifier // Texture not found, log a message and return the "not_found" texture Identifier
Identifier notFoundTextureId = new Identifier("mobgpt", "textures/entity/not_found.png"); Identifier notFoundTextureId = new Identifier("creaturechat", "textures/entity/not_found.png");
MinecraftClient.getInstance().getTextureManager().bindTexture(notFoundTextureId); MinecraftClient.getInstance().getTextureManager().bindTexture(notFoundTextureId);
logMissingTextureOnce(texturePath); logMissingTextureOnce(texturePath);
return notFoundTextureId; return notFoundTextureId;
......
...@@ -38,16 +38,16 @@ import java.util.concurrent.TimeUnit; ...@@ -38,16 +38,16 @@ import java.util.concurrent.TimeUnit;
* messages to the client. * messages to the client.
*/ */
public class ModInit implements ModInitializer { public class ModInit implements ModInitializer {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
public static MinecraftServer serverInstance; public static MinecraftServer serverInstance;
private static ChatDataSaverScheduler scheduler = null; private static ChatDataSaverScheduler scheduler = null;
public static final Identifier PACKET_C2S_GREETING = new Identifier("mobgpt", "packet_c2s_greeting"); public static final Identifier PACKET_C2S_GREETING = new Identifier("creaturechat", "packet_c2s_greeting");
public static final Identifier PACKET_C2S_READ_NEXT = new Identifier("mobgpt", "packet_c2s_read_next"); public static final Identifier PACKET_C2S_READ_NEXT = new Identifier("creaturechat", "packet_c2s_read_next");
public static final Identifier PACKET_C2S_SET_STATUS = new Identifier("mobgpt", "packet_c2s_set_status"); public static final Identifier PACKET_C2S_SET_STATUS = new Identifier("creaturechat", "packet_c2s_set_status");
public static final Identifier PACKET_C2S_START_CHAT = new Identifier("mobgpt", "packet_c2s_start_chat"); public static final Identifier PACKET_C2S_START_CHAT = new Identifier("creaturechat", "packet_c2s_start_chat");
public static final Identifier PACKET_C2S_SEND_CHAT = new Identifier("mobgpt", "packet_c2s_send_chat"); public static final Identifier PACKET_C2S_SEND_CHAT = new Identifier("creaturechat", "packet_c2s_send_chat");
public static final Identifier PACKET_S2C_MESSAGE = new Identifier("mobgpt", "packet_s2c_message"); public static final Identifier PACKET_S2C_MESSAGE = new Identifier("creaturechat", "packet_s2c_message");
public static final Identifier PACKET_S2C_LOGIN = new Identifier("mobgpt", "packet_s2c_login"); public static final Identifier PACKET_S2C_LOGIN = new Identifier("creaturechat", "packet_s2c_login");
@Override @Override
public void onInitialize() { public void onInitialize() {
...@@ -222,7 +222,7 @@ public class ModInit implements ModInitializer { ...@@ -222,7 +222,7 @@ public class ModInit implements ModInitializer {
} }
}); });
LOGGER.info("MobGPT Initialized!"); LOGGER.info("CreatureChat MOD Initialized!");
} }
public static void generate_character(ChatDataManager.EntityChatData chatData, ServerPlayerEntity player, MobEntity entity) { public static void generate_character(ChatDataManager.EntityChatData chatData, ServerPlayerEntity player, MobEntity entity) {
......
...@@ -38,7 +38,7 @@ public class ChatDataManager { ...@@ -38,7 +38,7 @@ public class ChatDataManager {
// Use a static instance to manage our data globally // Use a static instance to manage our data globally
private static final ChatDataManager SERVER_INSTANCE = new ChatDataManager(true); private static final ChatDataManager SERVER_INSTANCE = new ChatDataManager(true);
private static final ChatDataManager CLIENT_INSTANCE = new ChatDataManager(false); private static final ChatDataManager CLIENT_INSTANCE = new ChatDataManager(false);
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
public static int MAX_CHAR_PER_LINE = 20; public static int MAX_CHAR_PER_LINE = 20;
public static int DISPLAY_NUM_LINES = 3; public static int DISPLAY_NUM_LINES = 3;
public static int MAX_CHAR_IN_USER_MESSAGE = 512; public static int MAX_CHAR_IN_USER_MESSAGE = 512;
......
...@@ -25,7 +25,7 @@ import java.util.regex.Pattern; ...@@ -25,7 +25,7 @@ import java.util.regex.Pattern;
* messages. * messages.
*/ */
public class ChatGPTRequest { public class ChatGPTRequest {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
static class ChatGPTRequestMessage { static class ChatGPTRequestMessage {
String role; String role;
...@@ -67,7 +67,7 @@ public class ChatGPTRequest { ...@@ -67,7 +67,7 @@ public class ChatGPTRequest {
// This method should be called in an appropriate context where ResourceManager is available // This method should be called in an appropriate context where ResourceManager is available
public static String loadPromptFromResource(ResourceManager resourceManager, String filePath) { public static String loadPromptFromResource(ResourceManager resourceManager, String filePath) {
Identifier fileIdentifier = new Identifier("mobgpt", filePath); Identifier fileIdentifier = new Identifier("creaturechat", filePath);
try (InputStream inputStream = resourceManager.getResource(fileIdentifier).get().getInputStream(); try (InputStream inputStream = resourceManager.getResource(fileIdentifier).get().getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) { BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) {
......
...@@ -16,7 +16,7 @@ import java.util.*; ...@@ -16,7 +16,7 @@ import java.util.*;
* entity more than once. * entity more than once.
*/ */
public class EntityBehaviorManager { public class EntityBehaviorManager {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
private static final Map<UUID, List<Goal>> entityGoals = new HashMap<>(); private static final Map<UUID, List<Goal>> entityGoals = new HashMap<>();
public static void addGoal(MobEntity entity, Goal goal, GoalPriority priority) { public static void addGoal(MobEntity entity, Goal goal, GoalPriority priority) {
......
...@@ -13,7 +13,7 @@ import java.util.regex.Pattern; ...@@ -13,7 +13,7 @@ import java.util.regex.Pattern;
* a {@code ParsedMessage} result, which separates the cleaned message and the included behaviors. * a {@code ParsedMessage} result, which separates the cleaned message and the included behaviors.
*/ */
public class MessageParser { public class MessageParser {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
public static ParsedMessage parseMessage(String input) { public static ParsedMessage parseMessage(String input) {
LOGGER.info("Parsing message: {}", input); LOGGER.info("Parsing message: {}", input);
......
{ {
"schemaVersion": 1, "schemaVersion": 1,
"id": "mobgpt", "id": "creaturechat",
"version": "${version}", "version": "${version}",
"name": "Mob GPT", "name": "Creature Chat",
"description": "Elevate your Minecraft experiences with Mob GPT, a cutting-edge mod that brings intelligent, dynamic conversation to Minecraft mobs! We harnesses the power of GPT (Generative Pre-trained Transformer) to make your world more interactive and communicative.", "description": "Elevate your Minecraft experiences with Creature Chat, a cutting-edge mod that brings intelligent, dynamic conversation to Minecraft creatures! We harnesses the power of GPT (Generative Pre-trained Transformer) to make your world more interactive and communicative.",
"authors": [ "authors": [
"Jonathan Thomas <jonathan@openshot.org>", "Jonathan Thomas <jonathan@openshot.org>",
"Owlmaddie <owlmaddie@gmail.com>" "Owlmaddie <owlmaddie@gmail.com>"
], ],
"contact": { "contact": {
"homepage": "http://owlmaddie.com", "homepage": "http://owlmaddie.com",
"sources": "http://gitlab.openshot.org/minecraft/mobgpt" "sources": "http://gitlab.openshot.org/minecraft/creature-chat"
}, },
"license": "GPLv3", "license": "GPLv3",
"icon": "assets/mobgpt/icon.png", "icon": "assets/creaturechat/icon.png",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
"main": [ "main": [
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
] ]
}, },
"mixins": [ "mixins": [
"mobgpt.mixins.json", "creaturechat.mixins.json",
{ {
"config": "mobgpt.client.mixins.json", "config": "creaturechat.client.mixins.json",
"environment": "client" "environment": "client"
} }
], ],
"accessWidener": "mobgpt.accesswidener", "accessWidener": "creaturechat.accesswidener",
"depends": { "depends": {
"fabricloader": ">=0.14.22", "fabricloader": ">=0.14.22",
"minecraft": "~1.20.2", "minecraft": "~1.20.2",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment