Search found 1144 matches

by Nathan.S
Wed Feb 21, 2024 00:49
Forum: Modding Discussion
Topic: How do i iterate trough players?
Replies: 3
Views: 87

Re: How do i iterate trough players?

Use a loop, something like this. for _, player in pairs(minetest.get_connected_players()) do --run whatever code with the player variable end This will give you a list of all the connected players. You will have the player object so if you need the name or meta you can get it with the normal player:...
by Nathan.S
Sat Feb 10, 2024 19:53
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

Sharing with other players is fixed, bob will no longer have access if you give access to bobby. Turned out to be a super easy fix, not sure why I didn't think of it in the first place.
by Nathan.S
Sat Feb 10, 2024 02:17
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

I'm working on a fix for the name issue. Just need to do some testing before I push the changes. I had given some thought to remote interfaces, though I planned on still requiring them to connect to the main system via the lift nodes. I don't think my current implementation would work with a fully r...
by Nathan.S
Fri Feb 09, 2024 00:56
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

That's fantastic! I envisioned people doing exactly this. The use of chests in the recipe only made sense, what else would all those chest be used for. :) I do wish the pipeworks integration would work better so that items could be removed from more than just the base node, but that doesn't seem pos...
by Nathan.S
Wed Feb 07, 2024 00:23
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

That was a silly mistake on my part. I never expected anybody to put items into the search inventory, so when you did the items weren't correctly placed into the main inventory. I've fixed it and pushed the changes to git. ContentDB should alert you when the update becomes available.
by Nathan.S
Tue Feb 06, 2024 22:22
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

That certainly doesn't look good. I'll take a look and see what's going on and get it fixed.
by Nathan.S
Mon Feb 05, 2024 00:49
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

The code that does the sorting is code that I've been using for years in several mods and I've never noticed any issues with it. I can do some testing and try to see if I can break anything.
by Nathan.S
Wed Jan 31, 2024 01:44
Forum: Modding Discussion
Topic: (Solved)Made 3D Model Sword- can it be put in Minetest?
Replies: 3
Views: 313

Re: Made 3D Model Sword- can it be put in Minetest?

Sadly a tool can't use a mesh object. You can register a node and use it as a tool, but there are some hacky workarounds you need to use, and you don't get all the options that registering a tool gives you.
by Nathan.S
Mon Jan 29, 2024 02:06
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

Support has been added for Mineclonia and maybe mineclone, mineclone2 and mineclone5 depending on if they all use the same internal names for the items used in the craft recipes.
by Nathan.S
Sun Jan 21, 2024 22:58
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

I have added three new nodes, these allow you to connect the asrs system to pipes from pipeworks, techage, and techpack(technically tubelib). You can still connect directly to the main controller as well if you choose.
by Nathan.S
Sun Jan 21, 2024 22:25
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

Using Ctrl+C to kill the server will probably not call anything in minetest.register_on_shutdown(). Only calling the datasave there is my fault. I should have been doing it more frequently.
by Nathan.S
Sun Jan 21, 2024 18:35
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

Sorry for the delay, .. is lua's concatenation operator, turns out I forgot to test pulling things from the search inventory after I added the code that logged the inventory movement. I have been unable to reproduce the new error. The only thing I can think of is a crash could be at fault. The curre...
by Nathan.S
Sun Jan 14, 2024 20:44
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

The original asrs_systems file, from before you built a second one is/was corrupted somehow, could be my fault not sure as this is the first report I've heard of it happening. I checked over the code and don't see anything that appears to be incorrect with the reading and saving of that file. The is...
by Nathan.S
Fri Jan 12, 2024 19:30
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

Were you able to change pages in the past? Looking at the error and code this suggests that the system_id was somehow removed from the controller, which shouldn't be possible as that is stored in the node metadata, and has been since I initially posted the mod. If you create a new system do you have...
by Nathan.S
Sat Dec 23, 2023 21:05
Forum: Modding Discussion
Topic: copy bug [solved]
Replies: 3
Views: 273

Re: copy bug

You don't give an error here, how are we suppose to know what you are asking about fixing?
by Nathan.S
Sun Dec 17, 2023 18:28
Forum: Modding Discussion
Topic: How to use b3d in blender?
Replies: 49
Views: 20584

Re: How to use b3d in blender?

What exporter and version of Blender are you using?
I have Blender 3.6.1 and the exporter from GreenXenith, found here: https://github.com/GreenXenith/io_scene_b3d
When I export a model there are no export options listed.
by Nathan.S
Fri Dec 15, 2023 22:44
Forum: Modding Discussion
Topic: How to use b3d in blender?
Replies: 49
Views: 20584

Re: How to use b3d in blender?

From what I recall the export only exports frames that are in the active range in Blender. I think you also needed to have the mesh and armature selected when exporting. Lastly animations that are node-based or otherwise not keyframed aren't exported. There is a way to bake the animation to keyframe...
by Nathan.S
Sat Dec 09, 2023 12:45
Forum: Modding Discussion
Topic: Check if media with specified name exists from Lua?
Replies: 5
Views: 1063

Re: Check if media with specified name exists from Lua?

I think this is what you are looking for. You do need to know the file path though.

Code: Select all

   local filename = minetest.get_modpath('custom_skin')..'/textures/my_texture.png'
   local f = io.open(filename)
   if f then
      f:close()
      --texture exists
   else
      --texture does not exist
   end
by Nathan.S
Thu Nov 09, 2023 23:43
Forum: Modding Discussion
Topic: Updating formspec after manipulating the inventory
Replies: 1
Views: 398

Re: Updating formspec after manipulating the inventory

Unfortunately formspecs can't be partially updated, meaning you need to resend the entire formspec to update any portion of it, which as you mention clears any unsaved fields.
by Nathan.S
Sun Oct 29, 2023 20:12
Forum: Mod Releases
Topic: [Mod] Tech Age [techage]
Replies: 473
Views: 87321

Re: [Mod] Tech Age [techage]

Okay, I think I can figure out how to add compatibility using the chests code as an example.
Thank you!
by Nathan.S
Fri Oct 27, 2023 22:35
Forum: Mod Releases
Topic: [Mod] Tech Age [techage]
Replies: 473
Views: 87321

Re: [Mod] Tech Age [techage]

So I have a mod, asrs, and I added compatibility for tubelib but I've discovered through reports from some users that the tubelib compatibility doesn't transfer over to tubelib2. I'm having trouble locating any documentation that explains how to add compatibility to other mods/nodes. If you could po...
by Nathan.S
Tue Oct 24, 2023 23:14
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

I've just added a button to the settings tab which will let you remove a system, as long as you are the owner. This can be useful if you have a system that was placed prior to some updates that broke some backwards compatibility. This button will only be available for the system owner, and the node ...
by Nathan.S
Wed Oct 18, 2023 22:41
Forum: Modding Discussion
Topic: mob error
Replies: 2
Views: 665

Re: mob error

Very likely there is some error in the exported file, or how you set the file up in Blender. Hard to say for sure with only a few pictures.
by Nathan.S
Thu Sep 21, 2023 22:50
Forum: WIP Mods
Topic: [Mod] Simple_Dialogs for Minetest entities [simple_dialogs]
Replies: 34
Views: 6312

Re: [Mod] Simple_Dialogs for Minetest entities [simple_dialogs]

I wish I had a usecase for this mod, because it looks really nice.
by Nathan.S
Thu Sep 14, 2023 22:25
Forum: WIP Mods
Topic: [mod] Automated Storage & Retrieval System [asrs]
Replies: 30
Views: 3239

Re: [mod] Automated Storage & Retrieval System [asrs]

I've just added support for techpack/tubelib. I don't personally use those mods, so testing is needed. :)