In RealmCraft, you'll take control of your favourite fictional universe and make choices that define its governance. Your decisions mould the realm's very fabric.

✨ Please rate the game and add any comments if you have ideas! ✨

How it works

This prototype is driven by ChatGPT 3.5 and takes inspiration from the classic 2002 web game "NationStates." This is the first prototype of a concept I've been interested in for a while where I handle the frontend and basic logic and GPT acts as game master.

---

Common errors

  • The game might hang if it can't connect to the GPT API for some reason. It calls the API every time you request a new issue or get a result.
  • The bars go from 0 to 1 with 1 being good and 0 being bad. GPT controls the bars so any unexpected behaviour will be due to GPT not following orders.
  • I'm a newbie when it comes to configuring servers. Please let me know if you encounter any CORS errors.

Created in 1 week for the "GAME-A-WEEK" jam

What went right?

Thanks to the plugin Chat GPT for Games, Chat GPT integration was seamless and relatively simple to use. I already knew how to securely manage the server interactions for ChatGPT requests.

What went wrong?

Getting ChatGPT 3.5 to produce the kind of questions and evaluations I wanted was a bit of a struggle. It often gave extreme 'good or bad' judgments. Additionally, I ran into CORS issues when I launched the game on Itch, an obstacle I hadn't encountered before. Thankfully, it was a quick fix.

And what did I learn?

I had GPT-4 fine-tune the prompts I was sending to GPT-3.5, and the results were impressively refined. I also learned how to resolve CORS issues for deploying a server-connected game on Itch. But perhaps the biggest takeaway was discovering how effective GPT-4 can be as a coding collaborator.


Updated 2 days ago
StatusReleased
PlatformsHTML5
Rating
Rated 3.9 out of 5 stars
(8 total ratings)
Authorlem
GenreSimulation, Interactive Fiction
Made withUnity
Tags2D, ai-generated, artificial-intelligence, Endless, Fangame, Management, Narrative, Text based
Average sessionA few minutes
LanguagesEnglish
InputsMouse

Development log

Comments

Log in with itch.io to leave a comment.

(+1)

I abolished slavery and gave women rights then immediately lost because my peace reached 0.

10/10

I keep getting "gpt is tired, try again later" pls hel

(+1)

Thanks for letting me know, I'll investigate it tonight. I'm getting the same error.

(+1)

Hey, the problem should be fixed now!

It is thanks!

okay this is really cool esp the game of thrones one imo, I just got to season 7 in it though so not sure if I should have tried it without finishing the show xD didn't give any spoilers per say, but it mentioned something about a "great war" which hasn't came up in the show so idk. either way really cool and fun it's like sort the court but infinite and generated by ai and with custom choices!

What is the reason for this error?

Hi, did you download the file rather than trying to play it on itch.io? I don't think it will run locally because it communicates with a server to fetch the GPT results.

Can you add a place to use my own api key so it doesnt cost you? 

I updated it a while ago to use a lower cost GPT, so feel free to use it as much as you want! I should remove that line about the cost from the description.

You are amazing!

(+4)(-1)

Also really cool game + idea! I loved playing Nationstates, awesome influence!