[WIP] Time Travel (name subject to change) [time_travel]

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

[WIP] Time Travel (name subject to change) [time_travel]

by iangp » Mon Nov 30, 2015 12:18

Any Steins;Gate fans?
Hi guys,
This mod would be implement a time travel on minetest.
The IDEA:
Using a microwave and your cell phone, you can send messages to the cell phone of someone that are in the past.
In this case for yours phone, and preventing you to place that node, kill that chicken and etc... Using a text...

What you will actually get:
A phone with this actualy these apps working:
  • Message
  • Video Galery
  • Alarm
  • Notes
Divergence Meter;
The microwave and the (gel) apple [now it's working fine];

Instructions
  • Making Gel Apple:
    Requirements:
    • Apples
    • CRT TV (From Homedecor mod)
    • Microwave Cellphone (Name Subject to change)
    • Fuel (any flammable thing)
    How to make:
    Get the microwave cellphone aparatus (from creative inv.) and place it.
    Get the CRT television from homedecor mod and place near the microwave.
    Finally put a apple in the microwave and put the fuel (I know it's better change that...)
    Gel-apple will appear on the microwave's output!

Check the code on github, here
Download Latest version of Mod

Screenshot
Image

Some videos

1st test with video feature
2nd Test with improvements by Rui


License:
Textures: (CC BY-NC 4.0)
Sounds: (CC BY-NC 4.0)
Code: LGPL

Dependencies:
homedecor (the television [CRT TV])

The organization records the activities in the site.
El. Psy. Kongroo.
That's all sonovabits
Attachments
screenshot.png
(166.69 KiB) Not downloaded yet
Last edited by iangp on Fri Feb 05, 2016 12:58, edited 18 times in total.
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
cx384
Member
 
Posts: 498
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384
 

User avatar
Inocudom
Member
 
Posts: 3051
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [WIP] Time Travel (name subject to change) [time_travel]

by Inocudom » Mon Nov 30, 2015 23:40

Well, that node is certainly very decorative.
The comedic value of my videos is how abysmal they are: https://www.youtube.com/channel/UC5cyeM ... YTfYFlih_A
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Wed Dec 02, 2015 10:56

[UPDATE] Added a darker back on nixie's tubes (for better visualization) and a boost on light source;
Last edited by iangp on Thu Dec 03, 2015 11:13, edited 1 time in total.
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Thu Dec 03, 2015 11:00

In progress:
Make a functional Phone...
Image
It's so cooooool!!!
Attachments
screenshot_20151203_085837.png
(93.29 KiB) Not downloaded yet
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Fri Dec 04, 2015 12:34

More screenshots of the phone:
Image
Image
Attachments
screenshot_20151204_103101.png
(236.57 KiB) Not downloaded yet
screenshot_20151204_103059.png
(231.96 KiB) Not downloaded yet
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
Location: On earth
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Mon Dec 07, 2015 12:31

The message system it's getting great !!!
have sounds... cell phone numbers...
And I'm approaching to play a video in-game on minetest:
I choose a animated gif split layers and merge in vertical frames with gimp...
but it still slowly for more than one users...

If everything goes wrong with time travel (what I think not will happens)
the code can be forked to make a cell phone mod
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Fri Dec 11, 2015 13:17

Hi people now you can play a short video from GIFs on minetest...
Check my video HERE

Image
Attachments
unnamed.jpg
(49.21 KiB) Not downloaded yet
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
mahmutelmas06
Member
 
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Mon Dec 14, 2015 22:41

mahmutelmas06 wrote:Woaa getting much better then i imagine :)

Thank you
UPDATE: added a "progress bar" to video player...
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Fri Dec 18, 2015 14:06

Microwave is coming...
Image
Attachments
Captura.png
(429.65 KiB) Not downloaded yet
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

Rui
Member
 
Posts: 261
Joined: Wed Oct 01, 2014 12:59
Location: Japan

[DELETED]

by Rui » Wed Dec 23, 2015 05:22

[DELETED]
Last edited by Rui on Fri Nov 04, 2016 13:30, edited 1 time in total.
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Wed Dec 23, 2015 11:46

Mother of God Ó_O
XD XD XD XD XD XD
I was working on the audio file trail... but for copyright questions I didn't do anything
that's awesome!!!
I'll try use "minetest.after" and see how it works on my notebook. (a cool thing with "after" is no frame dropping)
The memory use it's OK?

PS:
I've serched for hours to find that: "minetest.get_dir_list()" and I didn't find ははははは
Last edited by iangp on Wed Dec 23, 2015 16:56, edited 1 time in total.
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Wed Dec 23, 2015 13:39

Well, I test and find it offensive hahahaha it works pretty well :D
A new commit it's comming soon so...
I working on implement a way to pause the video and artificial intelligence (parsing language) for messages for the past.
Now the code of show video function is like this
and some lines are removed...
Code: Select all
function show_video(player)
   local name = player:get_player_name()
   local videosrc = PHHandler[name]["video"].src
   local t_frames = PHHandler[name]["video"].frames
   --local snd = PHHandler[name]["video"].snd
   local i = 1
   --local images = minetest.get_dir_list(modpath.."/textures", false) -- 1.png, 2.png, 3.png....
   local t = 0
   for i = 1, t_frames do
      minetest.after(t, function()
         if PHHandler[name]["playing"] then
            minetest.show_formspec(name, "time_travel:show_video",
               "size[10,10]" ..
               "background[0,0;10,10;timetravel_phone_90.png;false]"..
               "image[0.8,7.4;9.4,0.6;timetravel_video_bar.png]"..
               "image[0.3,2.5;"..(5*2)..","..(2.81*2)..";"..videosrc.."."..i..".png]".. --500 x 281
               "image[0.8,7.4;"..(9.4*(i)/t_frames)..",0.6;timetravel_video_bar_BLUE.png]"..
               "image_button[0.3,7.4;0.7,0.7;timetravel_button_pause.png;pause;]"..
               "image_button_exit[8.7,3;0.6,0.6;timetravel_phone_X.png;x;]"..
               "image_button[8.7,4.5;0.6,0.6;timetravel_phone_O.png;o;]"..
               "image_button[8.7,6;0.6,0.6;timetravel_phone_P.png;p;]"..
               "")
               if i == 1 then
                  --minetest.sound_play(snd)
               end
         else
            minetest.show_formspec(name, "time_travel:show_video",
               "size[10,10]" ..
               "background[0,0;10,10;timetravel_phone_90.png;false]"..
               --"image_button[3.5,4;2,2;timetravel_button_play.png;play;;false;false;]"..
               "image[0.8,7.4;9.4,0.6;timetravel_video_bar.png]"..
               "image[0.8,7.4;"..(9.4*(i)/t_frames)..",0.6;timetravel_video_bar_BLUE.png]"..
               "image[0.3,2.5;"..(5*2)..","..(2.81*2)..";"..videosrc.."."..i..".png]"..
               "image_button[0.3,7.4;0.7,0.7;timetravel_button_play.png;play;]"..
               "image_button_exit[8.7,3;0.6,0.6;timetravel_phone_X.png;x;]"..
               "image_button[8.7,4.5;0.6,0.6;timetravel_phone_O.png;o;]"..
               "image_button[8.7,6;0.6,0.6;timetravel_phone_P.png;p;]"..
               "")
         end
      end)
      t = t+1/10 -- frame rate
      end

end

ありがとう Rui さん (your name is written in katakana? I'm learning (trying) japanese XD)
Last edited by iangp on Wed Dec 23, 2015 16:57, edited 1 time in total.
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

Rui
Member
 
Posts: 261
Joined: Wed Oct 01, 2014 12:59
Location: Japan

[DELETED]

by Rui » Wed Dec 23, 2015 15:26

[DELETED]
Last edited by Rui on Fri Nov 04, 2016 13:30, edited 1 time in total.
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Wed Dec 23, 2015 16:22

Rui wrote:>>The memory use it's OK?
It's running so slow.
However, it have the advantage of being able to adjust the length.

This mechanism is very slow and buggy.
If a short video, you should use the verticalframe.

If you use this mechanism, you need to write actions for closing the formspec.

Well, It still better than global steps here on my コンピュター 'cause It does not have... eh... large frame dropping issues
Play large movies it's just a "programing challenge for crazy guys" *hehehe* and it not will be a problem for the mod.
I think it could be useful for video tutorials on servers or something like that...
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Wed Dec 23, 2015 17:53

Ah it's slow only with more frames than 100~148 frames at 15fps... ~9 seconds of video
And the startup time are slow too.. cause are too many frames for load on memory...

hmm :-/

I think I'll find a way to lock the frame rate using global steps... :(
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

Rui
Member
 
Posts: 261
Joined: Wed Oct 01, 2014 12:59
Location: Japan

[DELETED]

by Rui » Thu Dec 24, 2015 02:58

[DELETED]
Last edited by Rui on Fri Nov 04, 2016 13:29, edited 1 time in total.
 

Rui
Member
 
Posts: 261
Joined: Wed Oct 01, 2014 12:59
Location: Japan

[DELETED]

by Rui » Mon Jan 04, 2016 13:50

[DELETED]
Last edited by Rui on Fri Nov 04, 2016 13:29, edited 1 time in total.
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Mon Jan 04, 2016 16:00

Rui wrote:Another idea (line 551~):
Code: Select all
elseif fields.play then
   PHHandler[player_name]["playing"] = true
   local rate = PHHandler[player_name]["video"].framerate or 1/15 -- Frame rate
   local frame = PHHandler[player_name]["video"].frames
   local s = 0
   for i = 1, frame do
      minetest.after(s, function()
         show_video(player)
         if i ~= frame then
            PHHandler[player_name]["frame"] = PHHandler[player_name]["frame"] + 1
         end
      end)
      s = s + rate
   end
   minetest.after(s + rate, function()
      PHHandler[player_name]["playing"] = false
      show_video(player)
   end)

sounds nice but need a fix:

Code: Select all
elseif fields.play then
   PHHandler[player_name]["playing"] = true
   local rate = PHHandler[player_name]["video"].framerate or 1/15 -- Frame rate
   local frame = PHHandler[player_name]["video"].frames
   local s = 0
   for i = 1, frame do
      minetest.after(s, function()
         if PHHandler[player_name]["playing"] then
            show_video(player)
            if i ~= frame then
               PHHandler[player_name]["frame"] = PHHandler[player_name]["frame"] + 1
            end
         end
      end)
      s = s + rate
   end
   minetest.after(s + rate, function()
      PHHandler[player_name]["playing"] = false
      show_video(player)
   end)

Without this "if", you won't be able to get out of the movie player until the all of "afters" registered run...
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
Krock
Developer
 
Posts: 4242
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [WIP] Time Travel (name subject to change) [time_travel]

by Krock » Tue Jan 05, 2016 15:54

Oh nice idea!
I think you should rename this mod to "Phone Simulator" because a time travel mod is kinda hard to realize in our space and time continuum.

One question: After changing the history with my microwave, how would I get from the Beta line back to the Alpha one?
>> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Wed Jan 06, 2016 11:37

If it's hard it's for me hahaha
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Wed Jan 06, 2016 11:54

Krock wrote:One question: After changing the history with my microwave, how would I get from the Beta line back to the Alpha one?

I'll keep it random at this time...
but I can also make a comparison: What changed in relation to the current world you are in... and transform this info in a percentage, that involves your current_world% + changes%, that will turn into your sekai line. So you can go back to the Alpha lines only if have a negative change...
that's really confuse... I must work more on it, however I'm working on easy things first.
but it's a really good programming challenge uh?
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [WIP] Time Travel (name subject to change) [time_travel]

by iangp » Wed Jan 06, 2016 16:34

Rui
I've tested the idea and it works!
I just get some random video and split in frames... and separate the audio trail with audacity and export it to OGG format.
[you speak engrish right hahaha? (I think me too)]
check the newest video folks
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

Next

Return to WIP Mods



Who is online

Users browsing this forum: Bing [Bot] and 1 guest