Page 1 of 1

Coding error - distracted programmer

PostPosted: Wed May 16, 2012 17:38
by Trenton
I was checking the -\games\minetest_game\default\init.lua
and I found a double string for the inventory image of the clay brick, the code is:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_craftitem("default:clay_brick", {
    description = "Clay brick",
    inventory_image = "default_steel_ingot.png",
    inventory_image = "default_clay_brick.png",
})



maybe it was a distraction error during the copy of the command.

I hope this and other segnalation will improve the making of new versions of this awesome game ^^


(maybe this can become a "coding error" thread if someone else found some others error

PostPosted: Wed May 16, 2012 17:48
by Jordach
Funny that. And I would not call this a bug: this should go into Modding General.

PostPosted: Wed May 16, 2012 18:20
by Calinou
Only the last string is read, anyway. :P

PostPosted: Wed May 16, 2012 18:59
by Trenton
Jordach wrote:Funny that. And I would not call this a bug: this should go into Modding General.


it makes the code longer and maybe with some new release of the code may interfer with something and cause problem, that's why I called it bug. ^^

PostPosted: Wed May 16, 2012 19:09
by Jordach
Oh, but LUA takes the last thing as fact.

PostPosted: Wed May 16, 2012 19:17
by Trenton
I'm still a n00b at coding, and I still have to learn how does LUA works. the others normally it takes in consideration only the first string

[Spoiler] I take this occasion to ask if there's a topic about LUA scripting [/spoiler]

PostPosted: Wed May 16, 2012 21:41
by LolManKuba
Trenton wrote:I'm still a n00b at coding, and I still have to learn how does LUA works. the others normally it takes in consideration only the first string

[Spoiler] I take this occasion to ask if there's a topic about LUA scripting [/spoiler]

You have written the 2000th post on the Bugs and Problems forum :O

PostPosted: Wed May 16, 2012 23:09
by Trenton
LolManKuba wrote:You have written the 2000th post on the Bugs and Problems forum :O


yay! where's the prize? :D

PostPosted: Wed May 16, 2012 23:11
by LolManKuba
Trenton wrote:
LolManKuba wrote:You have written the 2000th post on the Bugs and Problems forum :O


yay! where's the prize? :D

Go visit a dungeon master to get it and its... 1 GRAVEL!