Coding error - distracted programmer

User avatar
Trenton
Member
 
Posts: 22
Joined: Mon May 14, 2012 22:58

Coding error - distracted programmer

by Trenton » Wed May 16, 2012 17:38

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
Sorry for my poor english

>I'm still testing my mod. if you wanna help me contact me =)
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Wed May 16, 2012 17:48

Funny that. And I would not call this a bug: this should go into Modding General.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Wed May 16, 2012 18:20

Only the last string is read, anyway. :P
 

User avatar
Trenton
Member
 
Posts: 22
Joined: Mon May 14, 2012 22:58

by Trenton » Wed May 16, 2012 18:59

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. ^^
Sorry for my poor english

>I'm still testing my mod. if you wanna help me contact me =)
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Wed May 16, 2012 19:09

Oh, but LUA takes the last thing as fact.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
Trenton
Member
 
Posts: 22
Joined: Mon May 14, 2012 22:58

by Trenton » Wed May 16, 2012 19:17

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]
Sorry for my poor english

>I'm still testing my mod. if you wanna help me contact me =)
 

User avatar
LolManKuba
Member
 
Posts: 939
Joined: Fri Feb 10, 2012 22:36

by LolManKuba » Wed May 16, 2012 21:41

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
 

User avatar
Trenton
Member
 
Posts: 22
Joined: Mon May 14, 2012 22:58

by Trenton » Wed May 16, 2012 23:09

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


yay! where's the prize? :D
Sorry for my poor english

>I'm still testing my mod. if you wanna help me contact me =)
 

User avatar
LolManKuba
Member
 
Posts: 939
Joined: Fri Feb 10, 2012 22:36

by LolManKuba » Wed May 16, 2012 23:11

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!
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron