Posts: 3,856
Thanks: 8449 in 67 Posts
28 Achievements
Experimenting with EA's Debugging tools
Heya!
It's unknown that the game still has a lot of debugging code. And some of it is actually quite valuable stuff! So I kinda wanted to dedicate this thread to open this treasure chest
The Debugging code that i'm specifically looking for is really more the technical stuff, especially since nraas debugenabler did already an awesome job on finding debug options
But it makes sense that they didn't get to enable debug options for non-interactions.
Currently, I've been able to get the following to work:
'Draw line & Draw circle' :
Now, this is a very regular one tbh. If you have WA, you might recognise these lines (They use the same debug code for creating arrows). Currently I got it to work with it showing the forward vector. Which also keeps in mind where the sim will stand and starts it's interaction with the object. (base.StandardEntry() is the function that will lead the sim to here). Same can be used for sims!
Now the circle stuff I still need to fix. I'm actually using the wrong vector3 positionings for it to work. And it takes some maths and brains to figure out the middle of a circle
Toggle Debug Info:
This, I will say, since I've discovered it, is actually a super helpful one when script modding (especially the heavy work!). It shares the Frame rate, the memory usage, how many 'Tasks' there are currently running But also, how much script memory there's still left. Furthermore it includes the time it took to render the game's frame, and how excessive that 'render frame' call was to begin with.
This also updates in realtime
What I'm currently trying to get to work:
Currently I'm working on getting the 'AnimationDebugWindow' to work and show up. Looking at the code itself, it seems SUPER helpful for debugging jazz scripts and just animations to begin with!
Haven't yet been able to even pop up correctly but that was partial because it doesn't like static functions.
If you guys have any functions or things that you'd like to see up and running or just share some code/images/things, I'd love to see it!