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,637
Reaction score
1,463
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 Posts

Latest Profile Posts

[Literally everything] is not defined.
Some neat things I made.
Shown to you in the form of an awful Windows Movie Maker Video.
1653453172179.png
Another amazing plugin by Dsiver! Thank you!

Salvage plugin. Craft something you decide you no longer need, or find an item you have no interest in, salvage it for scrap and resources. As you salvage items, gain EXP and level up. The higher your level, the better odds you have at succeeding, and the more material you'll actually acquire.
Harold Jam 2022: Dark Universe game jam is live! https://itch.io/jam/haroldjam22

Forum statistics

Threads
122,110
Messages
1,146,569
Members
160,400
Latest member
shipwill422
Top