Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 17:02:13: ACTION[main]: .__ __ __
- 17:02:13: ACTION[main]: _____ |__| ____ _____/ |_ ____ _______/ |_
- 17:02:13: ACTION[main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
- 17:02:13: ACTION[main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
- 17:02:13: ACTION[main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
- 17:02:13: ACTION[main]: \/ \/ \/ \/ \/
- 17:02:13: ACTION[main]: World at [J:\minetest-0.4.12\bin\..\worlds\g]
- 17:02:13: ACTION[main]: Server for gameid="minetest" listening on 0.0.0.0:59077.
- 17:02:16: ERROR[main]: generateImage(): Could not load image "default_stone.2" w
- 17:02:16: ERROR[main]: generateImage(): Creating a dummy image for "default_ston
- 17:02:16: ACTION[ServerThread]: singleplayer [127.0.0.1] joins game.
- 17:02:16: ACTION[ServerThread]: singleplayer joins game. List of players: single
- Irrlicht log: Could not open file of texture: character.png
- -- BUG WITH Meta:set_string and Meta:get_string?
- preparing to write at(47,3,13) motus_source 4 old: 3 <---block #1
- now writing at (47,3,13) "motus_source" 4 return "4" 4
- preparing to write at(47,3,14) motus_source 3 old: 4 <---block #2
- now writing at (47,3,14) "motus_source" 3 return "3" 3
- preparing to write at(47,3,13) motus_source 4 old: 3 <---block #1, old should be 4, not 3
- now writing at (47,3,13) "motus_source" 4 return "4" 4
- preparing to write at(47,3,14) motus_source 3 old: 4 <---block #2, old should 3, not 4
- now writing at (47,3,14) "motus_source" 3 return "3" 3
- 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?)
- now writing at (47,3,13) "motus_source" 4 return "4" 4
- preparing to write at(47,3,14) motus_source 3 old: 4 <--- again its wrong >>
- now writing at (47,3,14) "motus_source" 3 return "3" 3
- My meta:get_string and set_string definer:
- function nodeProperty(pos,name,setValue)
- local meta =minetest:get_meta(name);
- if not setValue then
- print("getting", "\"".. name.."\"",minetest.pos_to_string(pos),minetest.serialize(meta:get_string(name)),testTable[minetest.pos_to_string(pos)]);
- return meta:get_string(name..""); -- doesn't seem to return right result for some reason
- end
- if meta:get_string(name)..""==setValue.."" then
- --print("duplicated set_string event, removing it", setValue,meta:get_string(name),testTable[minetest.pos_to_string(pos)],minetest.pos_to_string(pos));
- return nil;
- end
- print("preparing to write at"..minetest.pos_to_string(pos),name,setValue,"old: "..meta:get_string(name));
- meta:set_string(name.."",setValue.."");
- testTable[minetest.pos_to_string(pos)]=setValue;
- print("now writing at ", minetest.pos_to_string(pos), "\"".. name.."\"", setValue,minetest.serialize(meta:get_string(name)),testTable[minetest.pos_to_string(pos)]);
- return nil;
- end
- nodeProperty({x=47,3,z=14},"_test","3");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement