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

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

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

by bell07 » Mon Sep 03, 2018 06:03

The Laptop OS does use Nodemeta for data storage and for formspecs. So the OS requires a node to work (=Hardware). To open Nodemeta's formspec without right-click is not possible.
But I think you do not need the full framework for your game or concept. What do you need? Just a framework: you can use smartfs. My smart_inventory does use smartfs for example.

The Theming: themes.lua could be used in other projects slightly modified.

The "Window Manager" Stack? Ok, this needs to be written new, optimized to your needs.

I am the author of Laptop-OS and may can help you to port some functionalities to your project. Just mention me in a github issue and I look if I can help you.
 

vtwindsurfer
New member
 
Posts: 9
Joined: Sun Oct 01, 2017 14:57
Location: Vermont, USA

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

by vtwindsurfer » Sun Oct 28, 2018 17:15

A strange bug popped up for me recently. I've been using this mod for a while and I have not made any changes or updates recently. When I try to print a document, my server crashes with the following:
Code: Select all
2018-10-28 12:19:13: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'laptop' in callback node_on_receive_fields(): /usr/share/minetest/builtin/common/misc_helpers.lua:597: attempt to concatenate local 'color' (a nil value)
2018-10-28 12:19:13: ERROR[Main]: stack traceback:
2018-10-28 12:19:13: ERROR[Main]:    /usr/share/minetest/builtin/common/misc_helpers.lua:597: in function 'get_color_escape_sequence'
2018-10-28 12:19:13: ERROR[Main]:    /usr/share/minetest/builtin/common/misc_helpers.lua:606: in function 'colorize'
2018-10-28 12:19:13: ERROR[Main]:    ...netest/mods/minetest-laptop-master/apps/os_print_app.lua:220: in function 'formspec_func'
2018-10-28 12:19:13: ERROR[Main]:    ..._server/.minetest/mods/minetest-laptop-master/app_fw.lua:11: in function 'get_formspec'
2018-10-28 12:19:13: ERROR[Main]:    ...st_server/.minetest/mods/minetest-laptop-master/mtos.lua:349: in function 'set_app'
2018-10-28 12:19:13: ERROR[Main]:    ...st_server/.minetest/mods/minetest-laptop-master/mtos.lua:406: in function 'print_file_dialog'
2018-10-28 12:19:13: ERROR[Main]:    ...test/mods/minetest-laptop-master/apps/stickynote_app.lua:76: in function <...test/mods/minetest-laptop-master/apps/stickynote_app.lua:33>
2018-10-28 12:19:13: ERROR[Main]:    ..._server/.minetest/mods/minetest-laptop-master/app_fw.lua:36: in function 'receive_data'
2018-10-28 12:19:13: ERROR[Main]:    ...st_server/.minetest/mods/minetest-laptop-master/mtos.lua:370: in function 'pass_to_app'
2018-10-28 12:19:13: ERROR[Main]:    ...er/.minetest/mods/minetest-laptop-master/hardware_fw.lua:61: in function <...er/.minetest/mods/minetest-laptop-master/hardware_fw.lua:59>


Strange because it only happens to certain computers in certain locations (not all of them, at least, not yet). I've rebooted the server, reinstalled the mod but the problem persists. I don't really know lua but I'm slowly learning but I don't even know where to start with this so I figured I'd ask the experts. Does anyone know what the problem is? Is there anything I can do to fix it?
 

User avatar
StarNinjas
Member
 
Posts: 313
Joined: Wed Mar 14, 2018 00:32
Location: aincrad
GitHub: starninjas
IRC: StarNinjas
In-game: J1
 

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

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

by bell07 » Mon Oct 29, 2018 20:13

Thank you for the bug report. Found the issue with printer app and "Printer removed" Status. Fixed in GA and my fork github repo
 

User avatar
migdyn
Member
 
Posts: 292
Joined: Mon Aug 20, 2018 00:44
Location: A non-existing flat forest on flat earth
GitHub: migdyn
In-game: migdyn

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

by migdyn » Wed Nov 21, 2018 01:10

Nice mod
"How can I get my Winmodem to work?"
 

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

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

by GamingAssociation39 » Thu Mar 07, 2019 12:38

migdyn wrote:Nice mod


Thanks but all credit goes to Bell07
Jesus Is Lord and Savior!!!
 

User avatar
Isja Krass
Member
 
Posts: 46
Joined: Sat Aug 18, 2018 19:30
Location: {X=25.25, y=-400, z=478,8} Bavaria, Germany
In-game: init.lua

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

by Isja Krass » Sun Jun 16, 2019 18:46

maybe you can add Servers, that can do different thigs.

for example:
[*] mailserver: players can write E-Mails
[*] mediaserver: players can listen to some music
[*] gameserver: players can play minigames together
[*] bank-account server: a onlinebanking server for the currency mod
[*] cloud server: data storage

serves should be placeable and amenable like digiline-cannels.
my topics | profile | contact me | nothing else to say...
 

User avatar
FreeGamers
Member
 
Posts: 476
Joined: Sat May 25, 2019 00:15
Location: United States
GitHub: is proprietary I use NotABug

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

by FreeGamers » Tue Jul 02, 2019 06:47

I've run into an error when using the "item_drop" mod.

I had players report to me that they could infinitely duplicate computers ("laptops") by placing a computer and punching it to pick it back up. It instantly adds the computer to inventory but also drops another computer in the world. I haven't looked at the source for this mod yet, but I'd suspect that it is manually adding it to inventory somehow but the item_drop mod is likely overriding default behavior in MT.

I was able to reproduce the issue myself with a test user account with basic privs. It doesn't occur with an admin account in creative. I haven't experienced this with any other nodes/items in my server yet. I've used a large number of mods with item_drop too.

I gave three players one cp core laptop each only to find that they had tiled the floor of their patio with about two dozen laptops.

EDIT: I eventually fixed this by disabling item_drop_on_dig or whatever its called fro the item_drop mod.
Last edited by FreeGamers on Sun Jul 28, 2019 17:58, edited 1 time in total.
 

FaceDeer
Member
 
Posts: 454
Joined: Sat Aug 29, 2015 19:01
GitHub: FaceDeer

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

by FaceDeer » Sun Jul 28, 2019 17:43

Hi, I just posted an initial alpha version of a new mod called commoditiesmarket and I'm told it might serve as a useful component for this mod to incorporate or call upon so I figured I should comment here. Currently there's just a simple "show_market" API to pop open a formspec for a given market, I can add more hooks if desired to make it easier to use by this mod or other similar frameworks. I haven't tried out this mod myself before so I don't know what it's interface is like.
 

Previous

Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 12 guests