A Pull request was created that corrects all problems with the initialization of the player.
I expect the Pull request to be accepted soon.
PS. GitHub account from which the Pull request from EvolutionPixG was made is not mine, but my friend's.
Search found 29 matches
- Sun Jan 19, 2020 21:21
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
- Sun Jan 19, 2020 17:17
- Forum: Problems
- Topic: Error in Lua code
- Replies: 4
- Views: 1012
Re: Error in Lua code
This code will work local player = minetest.localplayer local function dostuff ( something ) ... -- make sure we have a reference to player if not player and not minetest.localplayer then return elseif not player then player = minetest.localplayer end local pos = player:get_pos() Yes. This code hel...
- Sun Jan 19, 2020 17:04
- Forum: Problems
- Topic: Error in Lua code
- Replies: 4
- Views: 1012
Re: Error in Lua code
Thank you for the explanation. This information should help get rid of the current problem.zing269 wrote:CSMs load before the player exists in the world so you will need to make sure that you have a reference to the player before you try to use it.
And thank you for setting a good example.
- Sun Jan 19, 2020 15:55
- Forum: Problems
- Topic: Error in Lua code
- Replies: 4
- Views: 1012
Error in Lua code
Error attempt to index field 'player' (a nil value) in mod for CSM.
The error occurs because the code cannot initialize the player.
How do I initialize a player without making error?
Reception: We need it to work for CSM Mod.
The error occurs because the code cannot initialize the player.
Code: Select all
local player = minetest.localplayer
Reception: We need it to work for CSM Mod.
- Sun Nov 10, 2019 16:52
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
Don't use a while loop. That will freeze the entire client until player exists. Do this instead: minetest.register_globalstep( function( dtime ) -- wait until the player exists if not player and not minetest.localplayer then return elseif not player then player = minetest.localplayer end --register...
- Sun Nov 10, 2019 12:15
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
I modified the minetest.register_globalstep function minetest.register_globalstep( function( dtime ) -- wait until the player exists while not player do player = minetest.localplayer end --registering key presses That removed the error but as soon as I set a marker my screen goes completely gray. I...
- Sat Nov 09, 2019 08:11
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
@Monika_Miyazaki : Remember this is a client side mod. Not a mod. From the error you posted it looks like you put the clientside mod in the mods folder This topic helps with installing clientside mods: viewtopic.php?f=53&t=17830 The error is due to the CSM not checking if minetest.localplayer i...
- Fri Nov 08, 2019 21:35
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
The developers are surely aware of this. No, there's yet no report of such an issue. I created an issue https://github.com/minetest/minetest/issues/9091 on GitHub. So that this problem can be solved faster. PS. Sad to hear that even the developer did not know about this error. Although it has been ...
- Fri Nov 08, 2019 20:08
- Forum: Русский
- Topic: [Server] Crimea HiTech&Magic (RUS)
- Replies: 212
- Views: 59333
Re: [Сервер] Сrimea HiTech&Magic (RUS)
Не понимаю проблем с номером не показывай его некому и все. https://forum.minetest.net/download/file.php?mode=view&id=20510 Я тоже не понимаю проблем с номером. Скрыл его от всех в Телеграм и всё, проблем нет. PS. Мой номер в Телеграм например скрыт от всех кроме тех кого добавил в контакты(тип...
- Fri Nov 08, 2019 07:27
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
The developers are surely aware of this. No, there's yet no report of such an issue. I created an issue https://github.com/minetest/minetest/issues/9091 on GitHub. So that this problem can be solved faster. PS. Sad to hear that even the developer did not know about this error. Although it has been ...
- Sun Oct 27, 2019 08:22
- Forum: Русский
- Topic: [Server] Crimea HiTech&Magic (RUS)
- Replies: 212
- Views: 59333
Re: [Сервер] Сrimea HiTech&Magic (RUS)
Upd 31.10.19: Жаль сервер сейчас не работает :(
- Sat Oct 26, 2019 20:42
- Forum: Русский
- Topic: [Server] Crimea HiTech&Magic (RUS)
- Replies: 212
- Views: 59333
Re: [Сервер] Сrimea HiTech&Magic (RUS)
Предлагаю добавить на сервер следующие 3 мода(они не нарушают его работу и скорость). 1. Мод моста BridgesX: Мод простого и хорошо выглядящего моста. https://image.ibb.co/iGisdz/ezgif_5_4244f567da_min.gif Ссылка на мод: https://forum.minetest.net/viewtopic.php?f=9&t=20612 2. Мод Emoji(эмодзи): М...
- Wed Oct 23, 2019 19:08
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
That doesn't make any sense right now. The developers are surely aware of this.Miniontoby wrote:I think you need to post it in the minetest 5.1.0 topic, only that they know it and then that they can change it, I think
- Wed Oct 23, 2019 15:05
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
I had an older version of minetest 5.1.0 and now because I have the env_meta error to much I did replace my minetest with the newest version and this mod doesn't work by me also with the same error My conclusion is that this mod is got broken with the newest version of minetest Well, in that case, ...
- Wed Oct 23, 2019 15:03
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
https://forum.minetest.net/download/file.php?mode=view&id=20400&sid=918d7d37b92cbacbf9bdebc287b2c83c 23.10.19.PNG blocked attempted read from This means that your minetest couldn't read from the file, I think So that's in case you run it as a regular mod. But I need it as a mod for CSM (to ...
- Wed Oct 23, 2019 15:01
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
I had an older version of minetest 5.1.0 and now because I have the env_meta error to much I did replace my minetest with the newest version and this mod doesn't work by me also with the same error My conclusion is that this mod is got broken with the newest version of minetest Well, in that case, ...
- Wed Oct 23, 2019 14:44
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
I think that I have the solution for your problem Set "Client Side Modding" to Disable Start your world and walk a bit in the world and then leave the world Set "Client Side Modding" to Enable Start your world and I hope that it's solved I don't know of that is the real solution...
- Wed Oct 23, 2019 07:42
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
I like to debug mod errors so I will try it to solve. When I have the solution I'm going to post it. It would be interesting to know whether the problem can be solved higher on the screenshot or not. I think that it is an problem with your Minetest or your downloaded code of this mod Monika , becau...
- Tue Oct 22, 2019 12:34
- Forum: Deutsch
- Topic: [Server v5.8.0] German-MineClone2-server ( german )
- Replies: 424
- Views: 58721
Re: [Server] [v5.0.0] German-MineClone2-server
Favourites in the client by ip, have to be deleted manually. Otherwise never get out there That's not what was said above. I mean, the server changes its IP address for some reason. The server can stay on the same IP address and not change it (but it changes it). thats because i have no domain and ...
- Sun Oct 20, 2019 17:12
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
I see that nobody cares about this mistake . And nobody wants to help . I see that nobody is patient and nobody thinks that the mod author might be busy this time of year :P I've been busy, haven't got much time to tinker with minetest nowdays unfortunately. I noticed this problem too. It only occu...
- Sun Oct 20, 2019 17:10
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
It would be interesting to know whether the problem can be solved higher on the screenshot or not.Miniontoby wrote:I like to debug mod errors so I will try it to solve. When I have the solution I'm going to post it.
- Sun Oct 20, 2019 08:47
- Forum: Deutsch
- Topic: [Server v5.8.0] German-MineClone2-server ( german )
- Replies: 424
- Views: 58721
Re: [Server] [v5.0.0] German-MineClone2-server
That's not what was said above. I mean, the server changes its IP address for some reason. The server can stay on the same IP address and not change it (but it changes it).Festus1965 wrote:Favourites in the client by ip, have to be deleted manually. Otherwise never get out there
- Sat Oct 19, 2019 13:21
- Forum: Deutsch
- Topic: [Server v5.8.0] German-MineClone2-server ( german )
- Replies: 424
- Views: 58721
Re: [Server] [v5.0.0] German-MineClone2-server
Why is the server moving from the old IP to the new IP?
The image shows the old IP addresses and the current running server.
The image shows the old IP addresses and the current running server.
- Sat Oct 12, 2019 20:47
- Forum: News
- Topic: Minetest 5.1.0
- Replies: 57
- Views: 53511
Re: Minetest 5.1.0
Excellent news :)
- Sat Oct 12, 2019 17:30
- Forum: Client-side modding
- Topic: [csm] Location markers [locations_markers_csm]
- Replies: 43
- Views: 9460
Re: [csm] Location markers [locations_markers_csm]
I understand that. But such an error occurs not only in this mod for CSM.Lone_Wolf wrote:I see that nobody is patient and nobody thinks that the mod author might be busy this time of year :PMonika_Miyazaki wrote:I see that nobody cares about this mistake.
And nobody wants to help.