Advertisement
Guest User

Untitled

a guest
Jun 5th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. 17:02:13: ACTION[main]: .__ __ __
  2. 17:02:13: ACTION[main]: _____ |__| ____ _____/ |_ ____ _______/ |_
  3. 17:02:13: ACTION[main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
  4. 17:02:13: ACTION[main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
  5. 17:02:13: ACTION[main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
  6. 17:02:13: ACTION[main]: \/ \/ \/ \/ \/
  7. 17:02:13: ACTION[main]: World at [J:\minetest-0.4.12\bin\..\worlds\g]
  8. 17:02:13: ACTION[main]: Server for gameid="minetest" listening on 0.0.0.0:59077.
  9. 17:02:16: ERROR[main]: generateImage(): Could not load image "default_stone.2" w
  10. 17:02:16: ERROR[main]: generateImage(): Creating a dummy image for "default_ston
  11. 17:02:16: ACTION[ServerThread]: singleplayer [127.0.0.1] joins game.
  12. 17:02:16: ACTION[ServerThread]: singleplayer joins game. List of players: single
  13. Irrlicht log: Could not open file of texture: character.png
  14. -- BUG WITH Meta:set_string and Meta:get_string?
  15. preparing to write at(47,3,13) motus_source 4 old: 3 <---block #1
  16. now writing at (47,3,13) "motus_source" 4 return "4" 4
  17.  
  18. preparing to write at(47,3,14) motus_source 3 old: 4 <---block #2
  19. now writing at (47,3,14) "motus_source" 3 return "3" 3
  20.  
  21. preparing to write at(47,3,13) motus_source 4 old: 3 <---block #1, old should be 4, not 3
  22. now writing at (47,3,13) "motus_source" 4 return "4" 4
  23.  
  24. preparing to write at(47,3,14) motus_source 3 old: 4 <---block #2, old should 3, not 4
  25. now writing at (47,3,14) "motus_source" 3 return "3" 3
  26.  
  27. preparing to write at(47,3,13) motus_source 4 old: 3 <---block #1, old should be 4, not 3 again (its like its overwriting at the same position no matter what position I specifify?)
  28. now writing at (47,3,13) "motus_source" 4 return "4" 4
  29.  
  30. preparing to write at(47,3,14) motus_source 3 old: 4 <--- again its wrong >>
  31. now writing at (47,3,14) "motus_source" 3 return "3" 3
  32.  
  33.  
  34.  
  35. My meta:get_string and set_string definer:
  36.  
  37. function nodeProperty(pos,name,setValue)
  38.  
  39. local meta =minetest:get_meta(name);
  40. if not setValue then
  41. print("getting", "\"".. name.."\"",minetest.pos_to_string(pos),minetest.serialize(meta:get_string(name)),testTable[minetest.pos_to_string(pos)]);
  42. return meta:get_string(name..""); -- doesn't seem to return right result for some reason
  43. end
  44. if meta:get_string(name)..""==setValue.."" then
  45. --print("duplicated set_string event, removing it", setValue,meta:get_string(name),testTable[minetest.pos_to_string(pos)],minetest.pos_to_string(pos));
  46. return nil;
  47. end
  48. print("preparing to write at"..minetest.pos_to_string(pos),name,setValue,"old: "..meta:get_string(name));
  49. meta:set_string(name.."",setValue.."");
  50. testTable[minetest.pos_to_string(pos)]=setValue;
  51. print("now writing at ", minetest.pos_to_string(pos), "\"".. name.."\"", setValue,minetest.serialize(meta:get_string(name)),testTable[minetest.pos_to_string(pos)]);
  52. return nil;
  53. end
  54.  
  55. nodeProperty({x=47,3,z=14},"_test","3");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement