Search found 129 matches

by fairiestoy
Mon Oct 21, 2013 15:22
Forum: WIP Mods
Topic: meta data help
Replies: 54
Views: 6796

Not to be rude, but did you ever inserted any debug prints in order to find out what your script is doing? I suggest you put this in, because i think its the problem: if drop_name == "suitcase:" then local bag_list = minetest.get_inventory({type='detached', name=user:get_player_name()..'_b...
by fairiestoy
Sat Oct 19, 2013 23:33
Forum: WIP Mods
Topic: meta data help
Replies: 54
Views: 6796

Ok, although i totally dislike doing this, tell me how the following code behaves. if mode==1 then local bag1_stack = user:get_inventory():get_stack("bag1",1) local suitcase_name = bag1_stack:get_name() if string.match(suitcase_name,"suitcase:") then local pt = pointed_thing if m...
by fairiestoy
Sat Oct 19, 2013 19:18
Forum: WIP Mods
Topic: meta data help
Replies: 54
Views: 6796

I have a suggestion: Upload everything to Github and post your repository here. Then its much easier to look through your code. If its only one single file you could also use a code paste service like pastebin.
for this test i used Minetest 0.4.7-bc5db9b
by fairiestoy
Sat Oct 19, 2013 11:25
Forum: WIP Mods
Topic: meta data help
Replies: 54
Views: 6796

I tried my code as single mod, so put this code in a init.lua in a new folder within the mod directory. It was for testing purpose and not to show you an entire ready-to-use function. Also, as i mentioned, this was only a testcode and was done with the unified_inventory:small_bag just to have an ite...
by fairiestoy
Fri Oct 18, 2013 19:11
Forum: WIP Mods
Topic: meta data help
Replies: 54
Views: 6796

Im sorry, but im afraid that i am right. The inventory you were trying to access is not within the players object reference. Try this code, it worked local. As i said, better read through the lines carefully: --[[ Code example to show how to erase the bag from the bag slot of the unified inventory ]...
by fairiestoy
Fri Oct 18, 2013 16:05
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 380114

Afaik thats not possible.
I don't know what you want to code, even though you mentioned something about plants. Anyway, is it necessary in your code to use an ABM? If not, and you need a timer that can be turned off whenever needed, try NodeTimers.
by fairiestoy
Fri Oct 18, 2013 16:03
Forum: WIP Mods
Topic: meta data help
Replies: 54
Views: 6796

And thats what i meant by my previous post. You are currently working on the 'bagcontents' itself and want to delete the bag as a item from the inventory slot shown in the unified inventory when clicking on the Bag icon in the bottom. While your metadata code works well, since you are in the correct...
by fairiestoy
Thu Oct 17, 2013 21:25
Forum: WIP Mods
Topic: meta data help
Replies: 54
Views: 6796

Im sorry, my bad. Got the wrong case. Anyway, i read a bit through the unified inventory and stumbled over something. You tried to access the inventory list bag1 from the player inventory. But it seems the bags themself are not stored as bag1 bag2 bagn [..] but within the inventory list '<player nam...
by fairiestoy
Thu Oct 17, 2013 17:32
Forum: WIP Mods
Topic: meta data help
Replies: 54
Views: 6796

I suggest that you set some debug info. Like what name is printing 'suitcase_name'. It might be possible that you are even getting a nil value here, if your bag has more than one inventory slot and you didn't put the item in the first index. Since thats the only indexing your asking for in your code.
by fairiestoy
Wed Oct 16, 2013 16:54
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 380114

I've encountered a new error, if I put this: for c=1,2,3,4,5,6,7,8 do I get "do expected near ," If I put this: for c=1,8 do I get "attempt to concatenate global 'c' a nil value" Any fixes? First error you should look at the implementation of the for [..] do statement in the lua...
by fairiestoy
Mon Oct 14, 2013 23:35
Forum: Problems
Topic: Error Ocurrede in server
Replies: 7
Views: 817

Github link to API doc

allow_metadata_inventory_put = func(pos, listname, index, stack, player),
^ Called when a player wants to put something into the inventory
^ Return value: number of items allowed to put
^ Return value: -1: Allow and don't modify item count in inventory
by fairiestoy
Sun Oct 13, 2013 18:13
Forum: Servers
Topic: PVP Server reccomendation
Replies: 3
Views: 951

Instead of spawning at fixed places, you could use dynamic spawn points in order to prevend such things or a protected spawn city where pvp is disabled somehow.
by fairiestoy
Sat Oct 12, 2013 20:47
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 380114

Hey guys, i totally stuck on this problem and finally decided to ask here in the forum. Its about this: I wanted to create a furnace which is not working with ABMs too make sure that server lags are causing to much of time loss as well as having a furnace which is capable of working even when the ch...
by fairiestoy
Sat Oct 12, 2013 10:55
Forum: Mod Releases
Topic: [MOD] voltbuild, a fork of itest [voltbuild]
Replies: 77
Views: 18051

Great work up to now, even though i had some problems with a slightly older version of yours getting to work. Maybe im a bit too used to technic for that. Anyway i like that this mod nearly has no dependencies and just include them as optional. But i didn't get to test something and would like to kn...
by fairiestoy
Mon Oct 07, 2013 18:06
Forum: Problems
Topic: Help, Minetest Error Message
Replies: 12
Views: 2345

PilzAdam,
thanks for the patch. The user which has set this node already found and removed it before he applied the patch. However, its fixed now and some users already started to update their minetest in order to prevend future crashes.
by fairiestoy
Mon Oct 07, 2013 17:39
Forum: Mod Releases
Topic: [Mod] Technic [0.4.16-dev] [technic]
Replies: 1551
Views: 522965

jeffrash, please check our server topic. trukoil and several other members mentioned that the conversion works, but: a) Is not shown with any values within the switching station b) MV battery boxes are not charging and not charging contents in it So if you just want to use for example the workshop o...
by fairiestoy
Sat Oct 05, 2013 19:17
Forum: Problems
Topic: Help, Minetest Error Message
Replies: 12
Views: 2345

PilzAdam,
where should we start to look for exactly? We roughly know were it occurs, but can't find the correct location. How can we find the node that affects the clients like this?
by fairiestoy
Sun Sep 29, 2013 09:40
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 380114

Thanks for the answer :3
by fairiestoy
Sun Sep 29, 2013 06:22
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 380114

Hey guys,

a little question:
Are NodeTimers persistent even after restart, or act they like the minetest.after() routine and vanish once the server has restarted?
by fairiestoy
Sat Sep 28, 2013 15:13
Forum: Servers
Topic: Server help
Replies: 3
Views: 573

You know, it would help to start reading: Forums thread about server creation I also suggest to read through the wiki and through the forum. There are tons of topics about this. And always opening a new one is about of head pain cause it just shows that another newbie wants only to set up his own se...
by fairiestoy
Sat Sep 28, 2013 12:37
Forum: Problems
Topic: Wierd behaviour of water
Replies: 5
Views: 799

Evergreen, then we must be a bit nuts it seems. I also discovered Water which hangs in air or seems just be stopped by a invisible wall. And i visited that place a few more times without noticable change. Calculation kicked in, after i placed a node near the water.
by fairiestoy
Sat Sep 28, 2013 01:03
Forum: Mod Releases
Topic: [Mod] Advanced area protection [areas]
Replies: 207
Views: 93658

A few things i would like to mention too: ( i didn't take a closer look into your code ) Keep in mind what TNT and Technic stuff does. On landrush we fixed already problems with TNT (somehow) and the screwdriver which had a really annoying security issue. But still the problem with constructers rema...
by fairiestoy
Thu Sep 26, 2013 00:35
Forum: Mod Releases
Topic: [Mod] Land Rush [landrush]
Replies: 48
Views: 25030

First suggestions:
Did you installed the money2 mod?
Did you tried to

Code: Select all

/giveme landrush:sale_block
Did the rest of the mod loaded as expected?

Instead of just saying 'It doesn't work', better supply as much
information as possible. Just saying
by fairiestoy
Wed Sep 25, 2013 19:11
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 380114

Is it possible to make a crafting table that only crafts on certain set of things. I want a castle:anvil to craft castle:armor_"item" but not like wood, because an anvil only makes metal items like armor, not trees into planks... do it like a chest and allow_inventory_move only those thin...
by fairiestoy
Tue Sep 24, 2013 19:51
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 380114

Hey everybody, a little question, since i couldn't find anything related to that. Is it possible to run Lua Code Ingame with the minetest namespace? Like opening a formspec, type in your code and execute it. It would increase the development of formspec design for example a bit ( at least for me ). ...