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:
script:
- ./gradlew build
- 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_API_JAR="fabric-api-${FABRIC_VERSION}.jar"
- echo Detected Fabric API version from gradle.properties $FABRIC_API_JAR
......@@ -24,7 +24,7 @@ build_mod:
artifacts:
paths:
- mobgpt-*.jar
- creaturechat-*.jar
- fabric-api-*.jar
only:
- develop
......
......@@ -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.
## Screenshots
![Pig Teaching Player](src/main/resources/assets/mobgpt/screenshots/pig-teaching.png "Pig Teaching Player")
![Villager Greeting Player](src/main/resources/assets/mobgpt/screenshots/villager_greeting.png "Villager Greeting Player")
![Chat User-Interface](src/main/resources/assets/mobgpt/screenshots/chat-ui.png "Chat User-Interface")
![Pig Teaching Player](src/main/resources/assets/creaturechat/screenshots/pig-teaching.png "Pig Teaching Player")
![Villager Greeting Player](src/main/resources/assets/creaturechat/screenshots/villager_greeting.png "Villager Greeting Player")
![Chat User-Interface](src/main/resources/assets/creaturechat/screenshots/chat-ui.png "Chat User-Interface")
## Upgrade Dependencies
......
......@@ -19,11 +19,11 @@ repositories {
}
loom {
accessWidenerPath = file("src/main/resources/mobgpt.accesswidener")
accessWidenerPath = file("src/main/resources/creaturechat.accesswidener")
splitEnvironmentSourceSets()
mods {
"mobgpt" {
"creaturechat" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
......
......@@ -5,7 +5,7 @@ org.gradle.parallel=true
# Mod Properties
mod_version=1.0.0
maven_group=com.owlmaddie
archives_base_name=mobgpt
archives_base_name=creaturechat
# Fabric Properties
# check these on https://fabricmc.net/develop
......
......@@ -36,7 +36,7 @@ import java.util.stream.Collectors;
* text, friendship status, and other UI-related rendering code.
*/
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();
public static int DISPLAY_PADDING = 2;
public static int animationFrame = 0;
......
......@@ -35,7 +35,7 @@ import java.util.stream.Stream;
* back to the server.
*/
public class ClickHandler {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt");
public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
private static boolean wasClicked = false;
static HashMap<Integer, byte[]> receivedChunks = new HashMap<>();
......
......@@ -15,7 +15,7 @@ import java.util.Set;
* contained for this mod. UI and Entity icons. Missing textures are logged once.
*/
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<>();
public TextureLoader() {
......@@ -23,7 +23,7 @@ public class TextureLoader {
public Identifier GetUI(String name) {
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);
if (resource.isPresent()) {
......@@ -38,7 +38,7 @@ public class TextureLoader {
}
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);
if (resource.isPresent()) {
......@@ -47,7 +47,7 @@ public class TextureLoader {
return textureId;
} else {
// 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);
logMissingTextureOnce(texturePath);
return notFoundTextureId;
......
......@@ -38,16 +38,16 @@ import java.util.concurrent.TimeUnit;
* messages to the client.
*/
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;
private static ChatDataSaverScheduler scheduler = null;
public static final Identifier PACKET_C2S_GREETING = new Identifier("mobgpt", "packet_c2s_greeting");
public static final Identifier PACKET_C2S_READ_NEXT = new Identifier("mobgpt", "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_START_CHAT = new Identifier("mobgpt", "packet_c2s_start_chat");
public static final Identifier PACKET_C2S_SEND_CHAT = new Identifier("mobgpt", "packet_c2s_send_chat");
public static final Identifier PACKET_S2C_MESSAGE = new Identifier("mobgpt", "packet_s2c_message");
public static final Identifier PACKET_S2C_LOGIN = new Identifier("mobgpt", "packet_s2c_login");
public static final Identifier PACKET_C2S_GREETING = new Identifier("creaturechat", "packet_c2s_greeting");
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("creaturechat", "packet_c2s_set_status");
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("creaturechat", "packet_c2s_send_chat");
public static final Identifier PACKET_S2C_MESSAGE = new Identifier("creaturechat", "packet_s2c_message");
public static final Identifier PACKET_S2C_LOGIN = new Identifier("creaturechat", "packet_s2c_login");
@Override
public void onInitialize() {
......@@ -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) {
......
......@@ -38,7 +38,7 @@ public class ChatDataManager {
// Use a static instance to manage our data globally
private static final ChatDataManager SERVER_INSTANCE = new ChatDataManager(true);
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 DISPLAY_NUM_LINES = 3;
public static int MAX_CHAR_IN_USER_MESSAGE = 512;
......
......@@ -25,7 +25,7 @@ import java.util.regex.Pattern;
* messages.
*/
public class ChatGPTRequest {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt");
public static final Logger LOGGER = LoggerFactory.getLogger("creaturechat");
static class ChatGPTRequestMessage {
String role;
......@@ -67,7 +67,7 @@ public class ChatGPTRequest {
// This method should be called in an appropriate context where ResourceManager is available
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();
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) {
......
......@@ -16,7 +16,7 @@ import java.util.*;
* entity more than once.
*/
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<>();
public static void addGoal(MobEntity entity, Goal goal, GoalPriority priority) {
......
......@@ -13,7 +13,7 @@ import java.util.regex.Pattern;
* a {@code ParsedMessage} result, which separates the cleaned message and the included behaviors.
*/
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) {
LOGGER.info("Parsing message: {}", input);
......
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