Search found 10 matches
- Fri Jan 08, 2016 18:51
- Forum: Modding Discussion
- Topic: Post your modding questions here
- Replies: 4208
- Views: 572509
Re: Post your modding questions here
Ok, thanks for your time. I think you are the same guy who wrote the mod manual, so, could you include this information there. Apparently, it is hard to figure out just reading from the API reference, so it would be great help for future readers. I can make some images with marks and tags to explain...
- Fri Jan 08, 2016 17:06
- Forum: Modding Discussion
- Topic: Post your modding questions here
- Replies: 4208
- Views: 572509
Re: Post your modding questions here
Ok, that explains a lot. I was missing some of that. In the code for the telport requests, sender and receiver are declared, but never defined. That's one of my biggest issues, I don't know how those vars get their value, or how the engine sorts them. Can I change those vars with, let's say paka and...
- Fri Jan 08, 2016 14:19
- Forum: Modding Discussion
- Topic: Post your modding questions here
- Replies: 4208
- Views: 572509
Re: Post your modding questions here
This is the code in init.lua for the teleport requests I was talking earlier: local timeout_delay = 60 -- Set to true to register tpr_admin priv local regnewpriv = false local version = "1.1" local tpr_list = {} local tphr_list = {} --Teleport Request System local function tpr_send(sender,...
- Fri Jan 08, 2016 14:13
- Forum: Modding Discussion
- Topic: Post your modding questions here
- Replies: 4208
- Views: 572509
- Fri Jan 08, 2016 14:09
- Forum: Modding Discussion
- Topic: Post your modding questions here
- Replies: 4208
- Views: 572509
Re: Post your modding questions here
Why "playerName = minetest.get_player_name()" doesn't work alone?
- Fri Jan 08, 2016 14:08
- Forum: Modding Discussion
- Topic: Post your modding questions here
- Replies: 4208
- Views: 572509
Re: Post your modding questions here
Ok, cool. I'm trying that now.
How is it that "name" and "param" get their values?
How is it that "name" and "param" get their values?
- Fri Jan 08, 2016 13:29
- Forum: Modding Discussion
- Topic: Post your modding questions here
- Replies: 4208
- Views: 572509
Re: Post your modding questions here
Also, I was reading the mods scripts, and noticed that in most of them they make use of undefined/undeclared vars and arguments, like in the teleport mod, where "sender" and "receiver" are used all over the file, but never initialised. What's up with that?
- Fri Jan 08, 2016 13:26
- Forum: Modding Discussion
- Topic: Post your modding questions here
- Replies: 4208
- Views: 572509
Re: Post your modding questions here
I tried to do that about 20 times, in different ways, including a funtion defined outside the list. It just doesn't work. I think I forgot to make a list this last time, so I fixed it, but it doesn't work. Then I tried to copy the code provided by "iangp" and that doesn't work either, the ...
- Fri Jan 08, 2016 06:14
- Forum: General Discussion
- Topic: Thank you, I had a great time!
- Replies: 10
- Views: 2033
Re: Thank you, I had a great time!
This post is plain ridiculous in every way. We all know about those things you've said, and still, is not that bad. MT has few players, but that's not true for some servers, where I see about 20 users online at the same time. If you need to feel more people around you, head over Facebook. There are ...
- Fri Jan 08, 2016 04:37
- Forum: Modding Discussion
- Topic: Post your modding questions here
- Replies: 4208
- Views: 572509
Re: Post your modding questions here
Hello everyone. I seem to have a huge problem trying to write scripts for a mod. I did my best trying to follow what the API reference says, but I get nothing but errors. Check this code: minetest.register_chatcommand("getpname",function(player) local user = player:get_player_name() if use...