Real time in-game tracker

Marmelada

Villager
Member
Joined
Dec 13, 2017
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hi all,

I need a couple of plugins for a project I'm working on, but couldn't find any that do exactly what we need.

One thing we need is a way to know at what point in real time the players were in a certain area, because we need to synchronise their position with the data our other machine records. If you're not sure what I mean, this thread for the main plugin we need could provide a bit of background. What we thought is we could send a trigger to our other machine at certain points. Most importantly, we need a precise time signal when players start the game, not when the code first runs, but when they press play in the title screen or even better when the world loads and puts them in control of the character. After that we would like to have a signal sent from the machine running the game to this other machine running something else, because we need to synchronise them afterwards. For example, every minute or every five minutes, depending on what we need, the game sends a special trigger to our other machine. That way we would have a reference say at time point t=60s the player was in coordinates (x,y), that's all we need.

I found a couple of plugins that sort of seem like they could potentially help, but none of them do exactly what we need in a reliable way. E.g. ICF-Soft Time Utility seems promising. It actually might be exactly what we need for tracking real time, and maybe we wouldn't need the trigger to the parallel machine if it's reliable, but it depends if we can have it run at the precise point we need (when the game loads after pressing start in the title screen). We might need to test that, but if anyone already know how it works and whether it can fit our needs please let me know. :)

Again, any suggestions are very welcome!

TL;DR - we need a plugin that either records real time in-game starting from when the player gains control after title screen, until the software closes or they reach the game end (short game), or have a trigger repeatedly sent from the game to a parallel machine every t=x (in seconds) in which we can manipulate x.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,608
Reaction score
1,405
First Language
French
Primarily Uses
RMMV
withOut plugin you can use a easy interval update
PHP:
var reelTimeX, reelTimeY;
setInterval(function(){
   reelTimeX = $gamePlayer._realX;
   reelTimeY = $gamePlayer._realY;
console.log('x:',reelTimeX, ' y:',reelTimeY );
 }, 100); // 1000ms = 1second
https://www.w3schools.com/jsref/met_win_setinterval.asp
 

Marmelada

Villager
Member
Joined
Dec 13, 2017
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMMV
Thanks for the link @Jonforum! It doesn't necessarily need to be a plugin, we just need the function, so code works as well. I'll try to adjust it to our ideas.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

You know, I sometimes ponder if working on the story and details is more necessary than the game itself. Its... technically work, just not direct.

Like for me specifically I never stop evolving the story based on what avenues I can approach in gameplay and then I get anxious thinking "hey good thing I thought about that now instead of later". Repeat ad nauseam.
World Of Final Fantasy Livestream~!
(Ft. Kaliga)
So my office building has 8 individually rented offices in it; 3 of which are social workers and 2 are marriage therapists... Unsurprisingly it always sound very angry out there. Glad I have my own private entrance. :LZSexcite: :thumbsup-right:
I wonder if there's ever been an art challenge that involves drawing faces from the generator.

Forum statistics

Threads
94,378
Messages
920,476
Members
124,152
Latest member
phiny
Top