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,636
Reaction score
1,459
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.
 

Latest Threads

Latest Profile Posts

Streaming some game development! Feel free to drop by!
SF_Enemy1_4 added!
index.php

Who wants to see me mock my brother's story? Brother story: thus he summoned a mighty twenty foot lizard. My Comment: Godzilla is attacking the city! As bad as these 4 are at shopping I wouldn't be surprised if Jun didn't proudly return with a chamber pot on her head. "Look at this helmet I got for 1,000 gold!"
Apparently I'm a grandpa now.

20220128_181216.jpg20220128_181227.jpg
Sales Goal of Learn RPG Maker MV at 64% now! :kaopride:

Forum statistics

Threads
118,809
Messages
1,118,875
Members
155,989
Latest member
mastercheikh
Top