I keep saying VRChat resembles Second Life in its golden age, because in both cases, amazingly ambitious community-made inventions keep popping up like magic mushrooms when you weren't looking.
Which brings us to this project by VRC creator Myro P: A theme park builder similar to the classic game Roller Coaster Tycoon, but in full person VR. And not only do you get to create and simulate the rides, it comes with 500 NPC customers with their own AI routines.
"Coding the NPCs was probably the trickiest part," Myro allows, "and it's still a work in progress. I programmed an AI for the NPCs; for instance, when they're hungry, they'll order food, and when they're tired, they'll rest on benches until they feel better. I had to implement my own pathfinding algorithm because I couldn't use Unity's built-in system."
It's also multi-player, thanks to a complex process he explains here.
As with many (most?) other VRChat projects, Myro is making this game free-to-play, something for the community to enjoy.
"Creating games in VRChat is quite similar to developing standalone Unity games, thanks to Udon and UdonSharp, which allow me to use built-in Unity functions." (Those are VRChat's scripting languages.) "UdonSharp closely resembles the standard C# used in Unity. Udon and UdonSharp have limitations, which sometimes require finding workarounds, but in my particular case, I haven't encountered any major issues yet."
In other words, if developers start giving up on Unity, we may start to see less projects like this (at least in the short term).
Follow Myro for project updates on Twitter/X. See also this other rollercoaster sim VRChat project from another dev team, though I believe that one doesn't have NPCs.
Hat tip: Adeon.
Some questions.
1. When spawning to the world for the first time, are there a few NPC or is it empty?
2. When spawned, they will just walk around or they can be set with specific behaviors before spawning?
3. Given the idea of the world, how big would it be in file size and will it cause lag if many NPCs are spawned?
Posted by: Ripsaw72A3 | Thursday, September 21, 2023 at 04:39 AM
Hello Ripsaw72A3,
1. When the player first spawns in, there's no theme park, players need to build it themselves, NPCs only start to enter the theme park if the theme park is open and has a few rides they can visit, players can open and close the theme park at any time.
2. The behavior of each NPC cannot be controlled, they are controlled by the AI.
3. Currently the world is 50MB heavy, it will increase because I will add more stuff, but I'll try to keep it bellow 100MB.
Posted by: MyroP | Friday, September 22, 2023 at 01:22 PM