[Mod] Laptop (WIP) (V. 0.39)

User avatar
GamingAssociation39
Member
 
Posts: 735
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

[Mod] Laptop (WIP) (V. 0.39)

by GamingAssociation39 » Fri Jun 16, 2017 22:14

Version: 0.39

The Laptop mod is a group collaboration between Bell07, Toby109tt, veNext, Cross_over, v-rob, Grizzly-Adam and Yours truly lol.
We aim to make a working laptop inside of MineTest.
There is multiple different computers to choose from and to use.

All Default Laptop Icons Made By Cross_over
Email read and unread (beside email) by: Toby109tt


Does anyone have any suggestions for it?

App suggestions other than basic laptop apps:
viewtopic.php?f=9&t=18920

Features (added):
Sticky Notepad
Settings
Email
Calculator
TNTSweeper
Tetris
Chess
MineBrowse

Features (maybe):
Store (Trading)
Crafting/Crafting Guide
Some kind of game of sorts

PC Pack 1 & 2 has been released:
viewtopic.php?f=9&t=19097

Additional Themes:
https://github.com/Gerold55/Laptop_Themes

Additional Websites
https://github.com/Gerold55/MineBrowse-Sites

There is an API documentation: https://github.com/Gerold55/laptop/blob/master/API.md

If you have questions about how a specific feature should be done, just ask bell07

Image
Image
Image

License: MIT
Download: https://github.com/Gerold55/laptop/archive/master.zip
GitHub: https://github.com/Gerold55/laptop

Use with MineTest 0.4.16 and above.
Rename mod to laptop.
Attachments
modern_os.png
(196.42 KiB) Not downloaded yet
CS-BOS.png
(186.32 KiB) Not downloaded yet
pc.png
(213.89 KiB) Not downloaded yet
Last edited by GamingAssociation39 on Mon Jul 23, 2018 17:58, edited 67 times in total.
Jesus Is Lord and Savior!!!
 

User avatar
azekill_DIABLO
Member
 
Posts: 7450
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [MOD] Laptop? (WIP)

by azekill_DIABLO » Sat Jun 17, 2017 10:42

i agree with this project! i totally love the idea, and i'm ready to help with formspecs!
 

User avatar
GamingAssociation39
Member
 
Posts: 735
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [MOD] Laptop (WIP)

by GamingAssociation39 » Sat Jun 17, 2017 21:23

UPDATE:
Adjusted inventory image. Fixed the inventory code/cleaned it up.
Jesus Is Lord and Savior!!!
 

User avatar
v-rob
Member
 
Posts: 555
Joined: Thu Mar 24, 2016 03:19
Location: Right behind you.
GitHub: v-rob

Re: [MOD] Laptop (WIP)

by v-rob » Sun Jun 18, 2017 04:50

Finally! A computer that will be more than decoration!

You should make it look like an actual computer when you use the computer. Have a good desktop background with file folders and/or a taskbar that direct you to the accessories. In other words, you click on the program icon (like a picture of a notepad) and it directs you to whatever it is (the notepad).

The crafting guide should direct you to a search engine-like thing. You could type in the name of the node here. If you want to search for it like in an inventory type of thing, then you click on a button in the search engine-like thing to direct you there.

Add a help sort of thing similar to this

A file that appears specifically for explaining how the computer works that opens the moment you start the computer for the first time.

Add statistics of what you've dug like this As a result of these being personalized to you only, you would have to sign into your account. Your account would be your server/multiplayer name. (Example: You sign in to the server by the name ExampleDigger, so your account is ExampleDigger. Single player games have the account singleplayer.) Your password would be set using a command like /set_password (your password goes here). Admins do not need passwords to sign in to accounts.

Multiple notepads could be saved. This would result in a notepad folder, where notepad files are stored. It does need a delete function and maybe a limit to the amount of documents. (You should also make sure that you can scroll down and up or have multiple pages in the folder and the document. Books can't do either, and it is annoying when typing something very big)

A printer. A written notepad document would have a print button. A printer would print a piece of paper with the text document title and content. Digging the paper would not make it lose this content. The printer would need to be next to the computer to print. If there is no printer next to the computer, an error message pops up on the computer screen.

Spreadsheet documents. Maybe ten to fifteen rows and columns at most. Also printable. Have some basic spreadsheet functions. They would have a folder like notepad documents.

A calculator. The more advanced, the better. If you make a full graphing calculator, then I have no complaints :-)

A clock telling Minetest time and a clock telling real time should always be present in one of the corners of the computer.

To email someone else, type in their server/multiplayer name in the Email search bar. They should pop up. Emails should have a delete function and a spam function. Marking people as spam makes it impossible to receive Emails from them. Unmarking them should also be allowed.

Music player. Make it highly customizable for players. Only the player that owns the computer can hear it, though. The song should repeat until player stops it or changes the song. Might have to use client side modding for this, so I don't expect it to happen.

Bank accounts. Players should be able to buy and sell things with money. Buying and selling online (not with other players) should exist as well as with other people. Online stores should change their prices within a set range periodically.

Trading/buying and selling with other players should have a chat function for bargaining. There needs to be a create trading post/store button in the trading interface. In the title, say exactly what you are selling and for what. A search bar will be used to find these trading posts/stores.

For buying and selling/trading, there should be three interfaces: One for online, one for player trades, and lastly one for buying and selling. All three would have a search bar and a set trading post/store.

Make a good mesh node that makes a nice slim computer. Add a texture for a computer that is on (probably only showing the desktop background). Make a monitor with the same functions (I like monitors better.). Lastly, add optional HD textures.

That's all that I have, but it's a lot more than I thought I would suggest, and it took me a long time :/
I think it was worth it though. This mod has huge potential.
 

User avatar
GamingAssociation39
Member
 
Posts: 735
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [MOD] Laptop (WIP)

by GamingAssociation39 » Sun Jun 18, 2017 08:40

v-rob wrote:Finally! A computer that will be more than decoration!

You should make it look like an actual computer when you use the computer. Have a good desktop background with file folders and/or a taskbar that direct you to the accessories. In other words, you click on the program icon (like a picture of a notepad) and it directs you to whatever it is (the notepad).

The crafting guide should direct you to a search engine-like thing. You could type in the name of the node here. If you want to search for it like in an inventory type of thing, then you click on a button in the search engine-like thing to direct you there.

Add a help sort of thing similar to this

A file that appears specifically for explaining how the computer works that opens the moment you start the computer for the first time.

Add statistics of what you've dug like this As a result of these being personalized to you only, you would have to sign into your account. Your account would be your server/multiplayer name. (Example: You sign in to the server by the name ExampleDigger, so your account is ExampleDigger. Single player games have the account singleplayer.) Your password would be set using a command like /set_password (your password goes here). Admins do not need passwords to sign in to accounts.

Multiple notepads could be saved. This would result in a notepad folder, where notepad files are stored. It does need a delete function and maybe a limit to the amount of documents. (You should also make sure that you can scroll down and up or have multiple pages in the folder and the document. Books can't do either, and it is annoying when typing something very big)

A printer. A written notepad document would have a print button. A printer would print a piece of paper with the text document title and content. Digging the paper would not make it lose this content. The printer would need to be next to the computer to print. If there is no printer next to the computer, an error message pops up on the computer screen.

Spreadsheet documents. Maybe ten to fifteen rows and columns at most. Also printable. Have some basic spreadsheet functions. They would have a folder like notepad documents.

A calculator. The more advanced, the better. If you make a full graphing calculator, then I have no complaints :-)

A clock telling Minetest time and a clock telling real time should always be present in one of the corners of the computer.

To email someone else, type in their server/multiplayer name in the Email search bar. They should pop up. Emails should have a delete function and a spam function. Marking people as spam makes it impossible to receive Emails from them. Unmarking them should also be allowed.

Music player. Make it highly customizable for players. Only the player that owns the computer can hear it, though. The song should repeat until player stops it or changes the song. Might have to use client side modding for this, so I don't expect it to happen.

Bank accounts. Players should be able to buy and sell things with money. Buying and selling online (not with other players) should exist as well as with other people. Online stores should change their prices within a set range periodically.

Trading/buying and selling with other players should have a chat function for bargaining. There needs to be a create trading post/store button in the trading interface. In the title, say exactly what you are selling and for what. A search bar will be used to find these trading posts/stores.

For buying and selling/trading, there should be three interfaces: One for online, one for player trades, and lastly one for buying and selling. All three would have a search bar and a set trading post/store.

Make a good mesh node that makes a nice slim computer. Add a texture for a computer that is on (probably only showing the desktop background). Make a monitor with the same functions (I like monitors better.). Lastly, add optional HD textures.

That's all that I have, but it's a lot more than I thought I would suggest, and it took me a long time :/
I think it was worth it though. This mod has huge potential.

Well I've found this mod https://forum.minetest.net/viewtopic.php?f=9&t=14464 for the emails just gotta figure how to implement image button w/o text and to incorporate other mod into mine that intertwine with the laptop & Computer (WIP;Not Done Yet). Any suggestions? Anyone willing to help out some? I've got the idea I'm still a noob @ lua but I'm gonna be adding as much as I can to the laptop. So if u wanna contribute to it let me know.
Jesus Is Lord and Savior!!!
 

User avatar
azekill_DIABLO
Member
 
Posts: 7450
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

bell07
Member
 
Posts: 534
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: [MOD] Laptop (WIP)

by bell07 » Sun Jun 18, 2017 21:56

Some proposals:
In homedecor_modpack there is a "Arcade" computer with the tetris game
We have some trading mods you can integrade for "mobile home banking"
Lua does have an "os.call()" so it is possible to write an interface to the "Real" Host the minetest runs on.

Maybe you get the infrastructure / an API working at the first. My proposal is to create an function
Code: Select all
laptop.register_app(name, required_permission, formspec, on_receive_fields)
so it could be possible to write "Apps" for our laptop from other mods.

For complex fomspecs you can get a look to the smartfs or my enhanced fork I use in smart_inventory.
 

User avatar
GamingAssociation39
Member
 
Posts: 735
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [MOD] Laptop (WIP)

by GamingAssociation39 » Sun Jun 18, 2017 22:24

bell07 wrote:Maybe you get the infrastructure / an API working at the first. My proposal is to create an function
Code: Select all
laptop.register_app(name, required_permission, formspec, on_receive_fields)
so it could be possible to write "Apps" for our laptop from other mods.

NVM
Jesus Is Lord and Savior!!!
 

User avatar
GamingAssociation39
Member
 
Posts: 735
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [MOD] Laptop (WIP)

by GamingAssociation39 » Mon Jun 19, 2017 08:20

UPDATE:
Added a monitor
Edited how to operate the computers (WIP)
Added a proper readme and license documents
Jesus Is Lord and Savior!!!
 

User avatar
azekill_DIABLO
Member
 
Posts: 7450
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [MOD] Laptop (WIP)

by azekill_DIABLO » Mon Jun 19, 2017 10:55

i had an excelent idea: there is some time, a guy realised the exploit of embeding a working browser in a formspec, and he managed to go on youtube from minetest!
 

User avatar
Diamond knight
Member
 
Posts: 436
Joined: Sun Apr 19, 2015 19:50
Location: stalker...
GitHub: Diamondknight
In-game: Ferrumprinceps

Re: [MOD] Laptop (WIP)

by Diamond knight » Tue Jun 20, 2017 02:30

Ooh, maybe an admin app or an in game minetest wiki.
The IMPERIVM FERRVM shall once more blossom!
viewtopic.php?f=3&t=20851

My modding team:
https://github.com/Ferrumian-modding-team
https://discord.gg/FDjC2ah
 

User avatar
GamingAssociation39
Member
 
Posts: 735
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [MOD] Laptop (WIP)

by GamingAssociation39 » Thu Jun 22, 2017 02:01

Update:
Added a brand-new computer to the mod.
Jesus Is Lord and Savior!!!
 

User avatar
azekill_DIABLO
Member
 
Posts: 7450
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
Diamond knight
Member
 
Posts: 436
Joined: Sun Apr 19, 2015 19:50
Location: stalker...
GitHub: Diamondknight
In-game: Ferrumprinceps
 

User avatar
BBmine
Member
 
Posts: 3452
Joined: Sun Jul 12, 2015 22:51
Location: USA
GitHub: BBmine
IRC: BBmine
In-game: Baggins

Re: [MOD] Laptop (WIP)

by BBmine » Thu Jun 22, 2017 17:05

I'm trying to figure out, which is better, this mod or octacian's mod?
 

User avatar
azekill_DIABLO
Member
 
Posts: 7450
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
BBmine
Member
 
Posts: 3452
Joined: Sun Jul 12, 2015 22:51
Location: USA
GitHub: BBmine
IRC: BBmine
In-game: Baggins

Re: [MOD] Laptop (WIP)

by BBmine » Fri Jun 23, 2017 13:38

azekill_DIABLO wrote:which one? (OM*G what happened to your profile pic?)

Lone_Wolf ductaped me because he thought I talked too much :(
 

User avatar
azekill_DIABLO
Member
 
Posts: 7450
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
v-rob
Member
 
Posts: 555
Joined: Thu Mar 24, 2016 03:19
Location: Right behind you.
GitHub: v-rob

Re: [MOD] Laptop (WIP)

by v-rob » Wed Jul 26, 2017 19:36

Is this mod still under development? If so, then I have a few more suggestions.

First of all it that it would be nice if you could add a start menu kind of thing for quick access to the most useful things. It should also have the shut down button.

The computers should have a brand logo, not just the Minetest symbol. It would be interesting if it was making fun of a computer company.

You should have multiple computer versions. The older the version is, the less features it has. Older versions are also cheaper to craft/buy.

If you want suggestions for games, I had this idea, and I thought of this mod a little while afterwords. It would be a very good thing to integrate into the computers. Of course, the older computers have less games.
 

User avatar
GamingAssociation39
Member
 
Posts: 735
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [MOD] Laptop (WIP)

by GamingAssociation39 » Tue Nov 21, 2017 19:31

I am still looking for some developers help to work on this mod. Please!!!!
Jesus Is Lord and Savior!!!
 

User avatar
GamingAssociation39
Member
 
Posts: 735
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [MOD] Laptop (WIP)

by GamingAssociation39 » Thu Nov 23, 2017 23:07

Update:
API/OS
Redone coding/cleanup


Many updates and advancements are happening thanks to bell07. :)

Thank you for all of your help with this mod. You didn't have to do it, thanks :)
Last edited by GamingAssociation39 on Fri Nov 24, 2017 08:13, edited 1 time in total.
Jesus Is Lord and Savior!!!
 

User avatar
GamingAssociation39
Member
 
Posts: 735
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [MOD] Laptop (WIP)

by GamingAssociation39 » Fri Nov 24, 2017 08:12

Added:
App API Documentation

By bell07
Jesus Is Lord and Savior!!!
 

bell07
Member
 
Posts: 534
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: [MOD] Laptop (WIP)

by bell07 » Fri Nov 24, 2017 08:13

Primary I did work on the framework as I am not a UI-Guy.
Now I wrote the API-Documentation: https://github.com/bell07/laptop/blob/master/API.md
The App-Development can be started for now ;-). For example the demo2 App to get the feeling
Code: Select all
laptop.register_app("demo2", {
   app_name = "Demo App 2",
   formspec_func = function(app, os)
      local data = app:get_storage_ref()
      data.counter = data.counter or 1

      if data.counter % 2 == 0 then
         app.background_img = "background1.png"
      end
      return 'button[3,1;5,1;count;Click: '..data.counter..']'..
            'button[3,3;5,1;back;Back to launcher]'
   end,
   receive_fields_func = function(app, os, fields, sender)
      if fields.count then
         local data = app:get_storage_ref()
         data.counter = data.counter + 1
      elseif fields.back then
         os:set_app("launcher")
      end
   end
})


I think the most important part is to get the launcher-app eye-candy ;-)
 

bell07
Member
 
Posts: 534
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07
 

User avatar
azekill_DIABLO
Member
 
Posts: 7450
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

Next

Return to WIP Mods



Who is online

Users browsing this forum: runs and 6 guests