FieldSim
- 30 Devlogs
- 53 Total hours
An FRC game in unity, complete with a website for distributing the game and modding.
An FRC game in unity, complete with a website for distributing the game and modding.
Yep you read that right. I wrote a very bad swerve script that works. I also acquired the least broken cad of my FRC teams robot. I optimized from about 60 mil vertices to about 4.8 million(ty decimate modifier). Ill try my best to finish this robot, and add swerve to other robots(9126 and 9450)
#Website update!
I made some modifications to the design on the home page to make it easier to see the text in the center. I wrote nearly half of the documentatoin for adding robots!
I made a simple static html website inside a subfolder of the repo. Setting up github actions took about 30 minutes
. Turns out github servers are slower than they used to be.
I also made a simple documentation page and put in some basic info about this project. I kinda stole a lot of styling from a previous project.
I added sound effects to it and a basic indexer sound effect system. I also fixed a major bug where sometimes fuel scored in the hub just disappears(i genuinely dont know how this even happened in the first place)
The new indexer SFX system plays as long as the robot is enabled, and it gets a bit louder when you shoot. Added this to make silver hawks robot feel more alive.
I finally undertook the process of making the menu. Unity makes it really easy to make UI but getting graphics settings to work took a while. When I first implemented changing graphics settings, the outcome is the complete opposite. If you choose the Horrendous preset, you get maxed out settings and vice versa. I fixed this by reordering options. I also added fullscreen as a toggle and a resolutions dropdown.
I also modified the gamemanager and the menu to allow for loading a robot from the main menu. It works by saving your robot index to a playerprefs, and gamemanager loads that corresponding robot. The scripts for camera management and robot enabling and disabling are all modular, so everything works smoothly!
I added the SilverHawks, 9126. Adding this robot was kind of difficult. For starters, the CAD was too high fidelity, with every single screw and bolt set up. I had to remove all of them and I had to make my own bumpers for this.(which had flipped normals
). I also had to adjust the way turret and hood aiming worked. These were previously locked to only modify the z axis of the gameobjects. I had to write methods to choose a new axis. I also had to write a system for sliding hoppers.
I am going to work on a menu, then make a website for this game. The website will have a simple robot tutorial.
9450 is almost done with its implementation into Fieldsim. I added a working automatic aligning turret and hood. This didn’t work initially, some values had to be fine tuned to ensure turret accuracy. The robot can shoot at the hub, and pass both left and right. This turned out pretty good and I hope to keep going
I am almost done getting Rebuilt fully implemented! This took a lot longer than expected. I wrote scripts to handle scoring, hub lights, and heavily modified the gamemanager.
i am so bad at driving 😭
I finally finished implementing the real comp field! It is complete with fuel in the depot, and neutral zone(I haven’t decided what to do about the outpost yet). I set up the robot and all collision. All I need to do is program the actual robot game and UI, and this would be a good, somewhat functional game!
I worked on modifying most of my scripts to work with the gamemanager. This allows robot enabling and disabling, which makes the game more realistic! I also made a script which actually makes the RSL(robot status light) strobe when the robot is deactivated, and stay on when the robot is activated!
I am going to import normal rebuilt playing field soon so I can make the robot game work!
Quick update, I am gonna take it easy this weekend with working on this. I added sound effects for the drivetrain and when fuel hits the hub. I also added a QoL improvement. When you start shooting, the robot stops moving, making it easier to shoot and stay in place for accuracy.
I added a dynamic audio system to the spinning shaft system. It plays audio from an audio source and adjusts its pitch based on the shaft’s rpm. In addition to this, I added events that can trigger functions in other scripts when the shaft reaches max speed and spools down.
I also wrote a 3rd person camera follower, it uses tags on the player to make it easy to implement in other robots!
I also remodeled the front bumper of the robot in blender. The original one looked kinda bad since the bevels were not matching with the rest of the bumpers.(screenshots included!)
In the past 3 hrs of development, I wrote a not physics based intaking and hopper system. I also wrote a very simple shooting method.
The previous intake system I made(not devlogged), relied on a bunch of physics. The end result was pretty realistic, but buggy. When fuel was intaked, it would try to occupy the outtake zone of the robot, if there was already fuel there, the robot would “pop” and explode. This new system completly disables fuel physics and teleports fuel to preset positions. It isn’t as realistic, but its less buggy, and leads to less framerate drops!
I added a basic shooter. It takes fuel from the 0th slot in the hopper, shoots it, and then cycles the fuel in the hopper. The shooting is pretty unrealistic compared to the real kitbot. It shoots too high and too far. With a bit of tuning though, this should be fixed.
i still need to add collision to the field elements, i keep forgetting 😭
This devlog is gonna be a long one. I finished the tank drivetrain along with animated wheels. I also began to add spinning-ness to the intake. I also made the fuel.
I finished writing the movement script and set up all of the wheels. I also spent some time tuning physics values to attempt to recreate a somewhat realistic tank drive.
I created an easy to implement script, which allows you to bind a key to shaft, and make it spin however fast you want it to!
Added fuel 
some things still need collision, so dont mind me driving through the hub
I wrote a basic swerve controller, it allows you to drive the robot around and it even has field oriented driving! I also imported the test field that you might have seen at competitions for robot testing.
The old mesh for the robot was kinda(extremely) unoptimized. So i replaced it with cubes. Check the screenshot for wireframe view.
I forgot to set up hackatime, its been like an hr of getting this drivetrain parented properly. Now I can move on to writing a basic movement script. Then i can go through other FRC team’s swerve code and steal logic for wheel rotation. I also need to get a “gyro” working.
welp, see ya next time!
i made this lil guy, his name is greg
Today I tried doing a web build, which did not turn out great. You could not see anything, so I fixed that by adjusting MSAA settings.
I am starting my first CAD robot. 3128(im doing the sd districts alliance)
intake lookin a bit goofy. Still needs a lot of work before it the robot is finished.
After this I plan to add 2102
Comment FRC team suggestions to see your robot added(cad would be rlly tuff)