Page 1 of 11

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

Posted: Fri Jun 16, 2017 22:14
by GamingAssociation39
Version: 0.41

The Laptop mod is a group collaboration between Bell07, Toby109tt, SFENCE, 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 (besides 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
Painting App

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.

Re: [MOD] Laptop? (WIP)

Posted: Sat Jun 17, 2017 10:42
by azekill_DIABLO
i agree with this project! i totally love the idea, and i'm ready to help with formspecs!

Re: [MOD] Laptop (WIP)

Posted: Sat Jun 17, 2017 21:23
by GamingAssociation39
UPDATE:
Adjusted inventory image. Fixed the inventory code/cleaned it up.

Re: [MOD] Laptop (WIP)

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

Re: [MOD] Laptop (WIP)

Posted: Sun Jun 18, 2017 08:40
by GamingAssociation39
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 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.

Re: [MOD] Laptop (WIP)

Posted: Sun Jun 18, 2017 10:10
by azekill_DIABLO
you could also add a kind of terminal in lua for the computer!

Re: [MOD] Laptop (WIP)

Posted: Sun Jun 18, 2017 21:56
by bell07
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.

Re: [MOD] Laptop (WIP)

Posted: Sun Jun 18, 2017 22:24
by GamingAssociation39
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

Re: [MOD] Laptop (WIP)

Posted: Mon Jun 19, 2017 08:20
by GamingAssociation39
UPDATE:
Added a monitor
Edited how to operate the computers (WIP)
Added a proper readme and license documents

Re: [MOD] Laptop (WIP)

Posted: Mon Jun 19, 2017 10:55
by azekill_DIABLO
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!

Re: [MOD] Laptop (WIP)

Posted: Tue Jun 20, 2017 02:30
by Diamond knight
Ooh, maybe an admin app or an in game minetest wiki.

Re: [MOD] Laptop (WIP)

Posted: Thu Jun 22, 2017 02:01
by GamingAssociation39
Update:
Added a brand-new computer to the mod.

Re: [MOD] Laptop (WIP)

Posted: Thu Jun 22, 2017 15:21
by azekill_DIABLO
+1

Re: [MOD] Laptop (WIP)

Posted: Thu Jun 22, 2017 16:52
by Diamond knight
maybe use this MC mod for some ideas?

https://www.youtube.com/watch?v=e27UmZcvebg

Re: [MOD] Laptop (WIP)

Posted: Thu Jun 22, 2017 17:05
by BBmine
I'm trying to figure out, which is better, this mod or octacian's mod?

Re: [MOD] Laptop (WIP)

Posted: Thu Jun 22, 2017 18:45
by azekill_DIABLO
which one? (OM*G what happened to your profile pic?)

Re: [MOD] Laptop (WIP)

Posted: Fri Jun 23, 2017 13:38
by BBmine
azekill_DIABLO wrote:which one? (OM*G what happened to your profile pic?)
Lone_Wolf ductaped me because he thought I talked too much :(

Re: [MOD] Laptop (WIP)

Posted: Fri Jun 23, 2017 14:05
by azekill_DIABLO
XD

Re: [MOD] Laptop (WIP)

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

Re: [MOD] Laptop (WIP)

Posted: Tue Nov 21, 2017 19:31
by GamingAssociation39
I am still looking for some developers help to work on this mod. Please!!!!

Re: [MOD] Laptop (WIP)

Posted: Thu Nov 23, 2017 23:07
by GamingAssociation39
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 :)

Re: [MOD] Laptop (WIP)

Posted: Fri Nov 24, 2017 08:12
by GamingAssociation39
Added:
App API Documentation

By bell07

Re: [MOD] Laptop (WIP)

Posted: Fri Nov 24, 2017 08:13
by bell07
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 ;-)

Re: [MOD] Laptop (WIP)

Posted: Fri Nov 24, 2017 18:05
by bell07
Image
Image

Re: [MOD] Laptop (WIP)

Posted: Fri Nov 24, 2017 18:22
by azekill_DIABLO
amazing, i must say!